Method and system for background replication of data objects

Abstract
In an embodiment, a system and method may manage network resources to provide a near zero-cost background replication of data. Such a system may be inhibited from causing interference with foreground data flows. Such a system may also utilize a large fraction of spare network bandwidth. A system configured to implement such a method may include one or more servers and at least one client in communication via a network. Additionally the system may include a hint server, a monitor and/or a front-end application between a demand server and the network.
Description


BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention


[0003] Embodiments disclosed herein generally relate to methods and systems for data transmission. More specifically, embodiments relate to methods and systems of background transmission of data objects.


[0004] 2. Description of the Relevant Art


[0005] TCP congestion control has seen an enormous body of work since publication of Jacobson's seminal paper on the topic. Jacobson's work sought to maximize utilization of network capacity, to share the network fairly among flows, and to prevent pathological scenarios like congestion collapse. Embodiments presented herein generally seek to ensure minimal interference with regular network traffic. Some embodiments seek to achieve high utilization of network capacity.


[0006] Congestion control mechanisms in existing transmission protocols generally include a congestion signal and a reaction policy. The congestion control algorithms in popular variants of TCP (Reno, NewReno, Tahoe, SACK) typically use packet loss as a congestion signal. In steady state, the reaction policy may use additive increase and multiplicative decrease (AIMD). In an AIMD framework, the sending rate may be controlled by a congestion window that is multiplicatively decreased by a factor of two upon a packet drop and is increased by one packet per packet of data acknowledged. It is believed that AIMD-type frameworks may contribute significantly to the robustness of the Internet.


[0007] In the Proceedings of the Second USENIX Symposium on Internet Technologies and Systems (October 1999), Duchamp proposes a fixed bandwidth limit for prefetching data. In “A Top-10 Approach to Prefetching on the Web” (INET 1998), Markatos and Chronaki adopt a popularity-based approach in which servers forward the N most popular documents to clients. A number of studies propose prefetching an object if the probability of its access before it is modified is higher than a threshold. The primary performance metric in these studies is increase in hit rate. End-to-end latency while many clients are actively prefetching and interference with other applications are generally not considered.



SUMMARY OF THE INVENTION

[0008] In embodiments presented herein, an operating system may manage network resources in order to provide a simple abstraction of near zero-cost background replication. Such a self-tuning background replication layer may enable new classes of applications by (1) simplifying applications, (2) reducing the risk of being too aggressive and/or (3) making it easier to reap a large fraction of spare bandwidth to gain the advantages of background replication. Self-tuning resource management may assist in coping with network conditions that change significantly over seconds (e.g., changing congestion), hours (e.g., diurnal patterns), months (e.g., technology trends), etc.


[0009] In an embodiment presented herein, a communications protocol (referred to herein as “TCP-Nice” or simply “Nice”) may reduce interference caused by background flows on foreground flows. For example, a TCP-Nice system may modify TCP congestion control to be more sensitive to congestion than traditional protocols (e.g., TCP-Reno or TCP-Vegas). A TCP-Nice system may also detect congestion earlier and/or react to congestion more aggressively than traditional protocols. Additionally, a TCP-Nice system may allow much smaller effective minimum congestion windows than traditional protocols. These features of TCP-Nice may inhibit the interference of background data flows (e.g., prefetch flows) on foreground data flows (e.g., demand flows) while achieving reasonable throughput. In an embodiment, an implementation of Nice may allow senders (e.g., servers) to select Nice or standard Reno congestion control on a connection-by-connection basis. Such an embodiment may not require modifications at the receiver.


[0010] In an embodiment, a method of sending data over a network may include receiving a request for one or more data packets. One or more data packets may be sent in response to the received request. The data packets may include all or portions of desired data objects and/or pointers to desired data objects. The time that a first data packet was sent may be determined. An acknowledgement of receipt of at least one data packet may be received. The time that the acknowledgement of receipt of the data packet was received may be determined. An estimate of network congestion may be determined. For example, the estimate of network congestion may be based at least in part on the time the data packet was sent and the time the acknowledgement of receipt of the data packet was received. If the estimate of network congestion indicates the existence of significant network congestion, then the network sending rate may be reduced.


[0011] In an embodiment, the network sending rate is controlled by a congestion window that represents the maximum number of packets or bytes that may be sent but not yet acknowledged. In such an embodiment, to reduce the network sending rate, the size of the congestion window may be reduced.


[0012] In an embodiment, the network sending rate may be reduced by at least a multiplicative factor if significant network congestion is detected. For example, in an embodiment, the size of the congestion window may be reduced by at least a multiplicative factor if significant network congestion is detected. For example, the size of the congestion window may be reduced to one half of its previous size. The size of the congestion window may determine the amount of low priority (e.g., prefetch) data desired to be in transit at any one time or the rate at which one or more data packets are sent (e.g., the delay between sending one data packet and the next data packet or between sending one group of data packets and the next group of data packets). In an embodiment, the congestion window may be reduced to a non-integer size. For example, the window may be reduced to less than one. In such an embodiment, the method may send one new data packet during an interval spanning more than one round trip time. For example, to affect a congestion window of ¼, one packet is sent every four round trip time intervals. In an embodiment, at least two packets are sent at once even when the congestion window size is below two packets; this embodiment ensures that a receiver using TCP “delayed acknowledgements” generally receives two packets at a time, avoiding delayed acknowledgement time-outs. For example, to affect a congestion window of ¼, two packets are sent every eight round trip intervals.


[0013] In an embodiment, Nice congestion control is implemented at user level by calculating a user-level congestion window that may be smaller than the TCP congestion window. In such an embodiment, code running at user level may restrict the amount of data that has been sent and not yet received to not exceed the user level congestion window. In one embodiment, user level code monitors the amount of data that have been received by sending user-level acknowledgements when data are received. In another embodiment, user level code monitors the amount of data that have been received by detecting the receipt of TCP acknowledgements; for example packet filter tools, such as Berkeley Packet Filter, provide a means to monitor low level network traffic of this sort. In a user level embodiment, the user level code may monitor network congestion by monitoring round trip times between sending data and receiving acknowledgements.


[0014] In an embodiment, determining the estimate of network congestion may include determining a round trip time of a first data packet and determining the estimate of network congestion based on the round trip time and the size of the congestion window. A round trip time may refer to an elapsed time between the time that a data packet is sent and the time that the acknowledgement of receipt of the data packet is received. In an alternative embodiment, determining the estimate of network congestion may include determining a number of round trip times measured during an interval that exceeds a determined threshold round trip time. Significant network congestion may be determined to exist if the number of round trip times that exceed the threshold round trip time during the interval exceeds a threshold number. In an embodiment, significant network congestion may be determined to exist if the number of round trip times that exceeds the threshold round trip time during the interval exceeds a fraction of the difference between an estimated congested round trip time and an estimated uncongested round trip time.


[0015] An estimate of uncongested round trip time may be based on a minimum round trip time for a data packet that has been detected (e.g., within a specific time period). Other estimates of uncongested round trip time may also be used, such as a decaying running average of minimum round trip times or a round trip time that represents a percentile of detected round trip times (e.g., the 1st or 5th percentile of round trip times). Similarly, the estimate of congested round trip time may be based on a minimum round trip time, an average or decaying average maximum round trip time or a percentile of maximum round trip times (e.g., the 99th or 95th percentile of round trip times). Alternatively, rather than using congested or uncongested round trip times, congested or uncongested end-to-end throughput of the network may be measured (or determined).


[0016] For example, in an embodiment, significant congestion may be determined to exist if the estimate of network congestion exceeds a determined fraction of the estimated bottleneck queue buffer capacity. In an embodiment, the buffer capacity may be known or estimated a priori. In other embodiments, the buffer capacity may be estimated based on measurements. For example, the uncongested round trip time may be taken as an estimate of the empty-queue round trip time and the congested round trip time may be taken as an estimate of the full-queue round trip time, and congestion is determined if over an interval some first fraction of measured round trip time exceeds the uncongested round trip time plus some second fraction times the difference between the congested and uncongested round trip times.


[0017] In an embodiment, the method may also include increasing the size of the congestion window based on the estimate of network congestion (e.g., if significant congestion is not detected). In such embodiments, the size of the congestion window may be increased linearly or multiplicatively. For example, the size of the congestion window may be increased by one data packet per round trip time interval.


[0018] In an embodiment, a method of sending data packets via a network may include determining end-to-end network performance (e.g., based on round trip times and/or throughput). An estimate of network congestion may be determined based at least in part on the end-to-end network performance. If significant network congestion is determined to exist, then the size of a congestion window may be reduced.


[0019] In some embodiments, a method of sending a plurality of data packets via a network may include sending a first plurality of data packets over a network using a first protocol and sending a second plurality of data packets over the network using a second protocol. The first plurality of data packets may include one or more high priority data packets (e.g., demand packets, such as data packet requested by a user). The second plurality of data packets may include one or more low priority data packets (e.g., prefetch data packets, such as data packets not explicitly requested by the user). The second protocol may be configured so that the sending of the second plurality of data packets does not interfere with the sending of the first plurality of data packets. For example, the second protocol may be configured to reduce the size of a congestion window associated with the second plurality of data packets in order to inhibit sending the second plurality of data packets from interfering with sending the first plurality of data packets.


[0020] A system for sending data packets over a network may include at least one server coupled to the network. At least one server coupled to the network may be configured to send high priority data packets via the network using a first protocol. Additionally, at least one server coupled to the network may be configured to send low priority data packets via the network using a second protocol. The server configured to send high priority data packets and the server configured to send low priority data packets may be the same server or different servers. For example, one server may be configured respond to requests using the first protocol or the second protocol on a connection-by-connection basis. The second protocol may be configured to inhibit low priority data packets from interfering with the sending of high priority data packets.


[0021] A system for sending data packets over a network may include at least one server coupled to the network. At least one server coupled to the network may be configured to send demand data packets via the network using a first protocol. Additionally, at least one server coupled to the network may be configured to send prefetch data packets via the network using a second protocol. The server configured to send demand data packets and the server configured to send prefetch data packets may be the same server or different servers. For example, one server may be configured respond to requests using the first protocol or the second protocol on a connection-by-connection basis. The second protocol may be configured to inhibit prefetch data packets from interfering with the sending of demand data packets.


[0022] A system for sending data packets over a network may include a hint server coupled to the network. The hint server may be configured to send hint lists via the network during use. Hint lists provide information referring to data to be prefetched. In an embodiment, hint lists contain one or more references to data that may be prefetched. In an embodiment, items on the hint list may be items likely to be referenced in the future by a demand request. The hint server may be configured to determine an estimate of probability of one or more data objects on at least one server being requested as a demand request. Determination of the estimate of the probability of one or more data objects being requested in a demand request may be based on factors such as past history of demand access by all clients, past history of access by a class of clients, past history of access by the client fetching a hint list, a priori estimates of object importance or object popularity, links embedded in recently viewed pages, and the like. Suitable algorithms, such as prediction by partial matching, markov chains, breadth first search, top-10 lists, and hand-constructed lists of objects, will be known by those ordinarily skilled in the art.


[0023] The hint lists sent by the hint server may be sized to inhibit prefetching of hint list objects from causing congestion on the prefetch server or demand server. The hint lists sent by the hint server may also be sized to utilize a significant portion of available prefetch server capacity for prefetching of hint list objects. In an embodiment, hint list sizing determines the number of client nodes that are allowed to prefetch in an interval.


[0024] For example, some number N of clients may be given non-zero hint list sizes while any remaining clients during an interval may be given zero hint list sizes to inhibit their prefetching during an interval. In an embodiment, hint lists are sized by the hint server including different numbers of references to data that may be prefetched. In an embodiment, hint lists are sized by the hint server including metadata that controls prefetching aggressiveness such as the rate that prefetching may occur or the number of objects that may be prefetched before the metadata is refreshed. In an embodiment, hint lists are sized by a separate server sending metadata that controls prefetching aggressiveness. For example, a client may receive a hint list from a hint server and a prefetch count or prefetch rate from a separate server.


[0025] In an embodiment, a front-end application may be included between the network and at least one server. The front-end application may be configured to determine whether a received request is a prefetch request or a demand request during use. If the request is a demand request, the front-end application may route the request to a demand server. If the request is a prefetch request, the front-end application may be configured to provide a redirection data object in response to the request.


[0026] In an embodiment, at least one server may be a demand server. A demand server may include one or more data objects associated via one or more relative references. In certain embodiments, at least one server may be a prefetch server. A prefetch server may include one or more duplicate data objects associated via one or more absolute references. The one or more duplicate data objects may include data objects that are substantially duplicates of a data object of the demand server.


[0027] In an embodiment, the system may also include a monitor coupled to the network. The monitor may be configured to determine an estimate of server congestion during use. Server congestion may include demand server congestion or prefetch server congestion or both. In an embodiment, a monitor determines server congestion by monitoring server statistics such as CPU load, average response time, queue length, IO's per second, memory paging activity, cache hit rate, internal software module load, or server throughput. In an embodiment, a monitor determines server congestion by requesting at least one object from the server and measuring the response time from when each object is requested until when it is received; in such an embodiment, if over an interval more than a first fraction of requests take longer than a second fraction (which may be greater than 1.0) times a benchmark time, then server congestion may be determined. In an embodiment, a benchmark time is an average, exponentially decaying average, minimum, or percentile (e.g., 5%-tile or 25%-tile) time measured on earlier fetches. In an embodiment, a single benchmark time is maintained for all objects fetched. In another embodiment, a list of candidate objects are used for monitor fetching and different benchmark times are maintained for each item on the list.


[0028] In an embodiment, server congestion estimates may be used to control the aggressiveness of prefetching. In an embodiment, server congestion estimates may affect the sizing of hint lists. For example, in an embodiment, a prefetch budget for an interval may be computed by starting with an initial prefetch budget value and multiplicatively decreasing it when the monitor detects server congestion and additively increasing it when the monitor detects no server congestion.


[0029] In an embodiment, clients repeatedly request hint list sizes over an interval and the hint server provides non-zero hint list sizes to up to the prefetch budget of those 10 requests and zero hint list sizes to other requests during the interval. In an embodiment, the non-zero hint list size is a small number (e.g., 1 or 2 objects or documents) in order to ensure that clients given non-zero hint list sizes only prefetch for a short amount of time before updating their hint list size; this arrangement may increase the responsiveness of the system to changes in load.


[0030] In an embodiment, a hint server may have a list of items for a client to prefetch and may send a client a first part of that list. Subsequently, the hint server may send a client subsequent parts of the list. In an embodiment, a list of items for a client to prefetch may be ordered to increase the benefit/cost of prefetching items early on the list. For example, items may be sorted by importance such as probability of demand reference, probability of demand reference divided by object size, or probability of demand reference divided by object generation cost. In an embodiment, the size of a part of the list sent to a client depends on the current hint list size.


[0031] In an embodiment, a method of sending data packets may include providing a transmission path for transmission of data packets between two or more computer systems. The transmission path may include at least one router buffer. An estimate of congestion along the transmission path may be determined at a time when at least one router buffer is not full. For example, the estimate of congestion may be determined as previously described. If significant congestion is determined to exist according to the estimate of congestion, then the size of the congestion window may be reduced by at least a multiplicative factor.


[0032] In some embodiments, an estimate of a queue size of at least one router buffer may be determined. In such a case, if the queue size exceeds a specified fraction of a capacity of at least one router buffer, the congestion window may be reduced.


[0033] In certain embodiments, a method of sending data packets may include determining an estimate of congestion along a transmission path of one or more data packets. If significant congestion exists based on the estimate of congestion, then the size of a congestion window may be reduced to a non-integer value. For example, the congestion window may be reduced to less than one.


[0034] In an embodiment, a method of prefetching data may include sending a request for one or more data packets (e.g., based on input received from a user) and receiving one or more requested data packets and one or more prefetch hints. A prefetch hint may include a suggestion to prefetch one or more data packets. The method may include determining if one or more prefetch hints refer to one or more data packets available in a local memory (e.g., browser cache). The method may also include determining one or more data packets to prefetch. For example, a local memory may be searched for one or more data packets referred to by one or more prefetch hints. One or more data packets that do not exist in the local memory may be prefetched.


[0035] After determining one or more data packets to prefetch, a request for one or more prefetch data packets may be sent. Upon receipt of one or more requested prefetch data packets, an acknowledgement of receipt of the packets may be sent. Additionally, the received packets may be stored in a local memory. If one or more of the received data packets includes a pointer, then a data packet (or data object) referenced by the pointer may be requested.


[0036] After receiving one or more data packets, one or more received data packets may be displayed to a user. Additionally, if the user requests access to one or more other data objects while prefetch data packets are being received, the method may include ceasing to receive the prefetch data packets.


[0037] In an embodiment, a method of determining a hint list may include receiving an indication of server congestion and receiving a reference list. The reference list may include a list of data objects (or files) previously requested by one or more users. The hint list may be determined based at least in part on the reference list. For example, the hint list may be determined by determining one or more data objects that have a probability of a demand request that is greater than a threshold based at least in part on the reference list. One or more data objects having a relatively high probability of receiving a demand request may be referenced in the hint list. Additionally, the size of the hint list may be based at least in part on the indication of server congestion. The size of the hint list may be further based on the size of one or more data objects identified on the hint list.


[0038] The hint list may be sent to a client that sent the reference list. In an embodiment, the hint list may be sent to the client in an order that causes an inline object to be prefetched before a data object that refers to the inline object.


[0039] The hint list may be sent to a client in parts. In an embodiment, a first part of the hint list is sent to a client. Subsequently, subsequent parts are sent to a client. In an embodiment, objects on the hint list are ordered so that more important or more valuable objects appear earlier on the hint list than less important and/or less valuable objects.


[0040] In an embodiment, the indication of server congestion may include a recommended hint list size. For example, the recommended hint list size may include a number of data objects recommended for prefetching or may be zero to suspend prefetching for an interval. In an embodiment, some clients are sent zero hint list sizes and some non-zero hint list sizes such that some fraction of clients prefetch and some other fraction do not over an interval.


[0041] In an embodiment, a method of determining network congestion may include sending one or more requests for one or more data objects. For example, a request may be sent for a file on a server. In another example, the server may be pinged. At least one data packet associated with one or more requested data objects may be received. An estimate of network congestion may be determined based at least in part on the round trip time of at least one received data packet. Additionally, a prefetch rate appropriate for the estimated network congestion may be determined. In an embodiment, two or more requests for data objects may be sent. For example, a number of requests may be sent over a length of time. The requests may be distributed (e.g., periodically, arbitrarily or randomly) throughout the length of time.


[0042] The method may determine network congestion as previously described. Alternatively, a number of round trip times may be determined. If more than a threshold number of data packets received experienced significant network delays, then significant congestion may be determined to be present. In such a case, the prefetch rate may be decreased. If fewer than a threshold number of data packets experience significant network delays, then no significant network congestion may be determined to be present. Therefore, in some embodiments, the prefetch rate may be increased. In certain embodiments, determining a prefetch rate appropriate for the estimated network congestion may include determining whether a previous change in the prefetch rate has had sufficient time to affect network congestion. After a prefetch rate has been determined, a signal including the prefetch rate may be sent.


[0043] In an embodiment, a method of providing data objects over a network may include receiving a request for one or more data objects. The method may determine whether the request comprises a demand request or a prefetch request. If the request comprises a prefetch request, then the method may return a redirection data object corresponding to one or more requested data objects. The redirection data object may cause a request to be sent to a prefetch server. If the request comprises a demand request, then the method may route the request to a demand server.







BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Advantages of embodiments presented herein will become apparent upon reading the following detailed description and upon reference to the accompanying drawings in which:


[0045]
FIG. 1 depicts an embodiment of a network diagram of a wide area network suitable for implementing various embodiments;


[0046]
FIG. 2 depicts an embodiment of a computer system suitable for implementing various embodiments;


[0047]
FIG. 3 depicts dynamics of a Nice queue system;


[0048]
FIG. 4 depicts experimental results showing spare capacity vs. latency;


[0049]
FIG. 5 depicts experimental results showing number of background flows vs. latency;


[0050]
FIG. 6 depicts experimental results showing number of background flows vs. background throughput;


[0051]
FIG. 7 depicts experimental results showing threshold vs. foreground latency;


[0052]
FIG. 8 depicts experimental results showing spare capacity vs. latency;


[0053]
FIG. 9 depicts experimental results showing number of background flows vs. latency;


[0054]
FIG. 10 depicts experimental results showing number of background flows vs. background throughput;


[0055]
FIG. 11 depicts experimental results showing spare capacity vs. latency;


[0056]
FIG. 12 depicts experimental results showing number of background flows vs. latency;


[0057]
FIG. 13 depicts experimental results showing number of background flows vs. background throughput;


[0058]
FIG. 14A depicts experimental results showing large flow transfer performance for various systems over a modem;


[0059]
FIG. 14B depicts experimental results showing large flow transfer performance for various systems over a cable modem;


[0060]
FIG. 14C depicts experimental results showing large flow transfer performance for various systems between London, England and Austin, Tex.;


[0061]
FIG. 14D depicts experimental results showing large flow transfer performance for various systems between Delaware and Austin, Tex.;


[0062]
FIG. 15A depicts experimental results showing large flow transfer performance over time for various systems using a modem;


[0063]
FIG. 15B depicts experimental results showing large flow transfer performance over time for various systems using a cable modem;


[0064]
FIG. 15C depicts experimental results showing large flow transfer performance over time for various systems between London, England and Austin, Tex.;


[0065]
FIG. 15D depicts experimental results showing large flow transfer performance over time for various systems between Delaware and Austin, Tex.;


[0066]
FIG. 16 depicts experimental results showing average response time for various methods from a particular server group;


[0067]
FIG. 17 depicts experimental results showing average response time for various methods from a particular server group;


[0068]
FIG. 18 depicts experimental results showing ideal send rates in a model of a Tivoli system selected using a Nice method;


[0069]
FIG. 19A depicts an embodiment of a one-connection architecture for a prefetching system;


[0070]
FIG. 19B depicts an embodiment of a two-connection architecture for a prefetching system;


[0071]
FIGS. 20A and 20B depict the request load on a sampled server averaged over 1-second and 1-minute intervals, respectively;


[0072]
FIG. 21 depicts an embodiment of a monitored prefetching system;


[0073]
FIG. 22 depicts a graph of experimental results showing demand response times with varying request arrival rates for several cases;


[0074]
FIG. 23 depicts a graph of experimental results showing prefetch and demand bandwidths at various demand request rates for a pfrate of 1;


[0075]
FIG. 24 depicts a graph of experimental results showing prefetch and demand bandwidths at various demand request rates for a pfrate of 5;


[0076]
FIG. 25 depicts a graph of experimental results showing average demand response time and prefetch bandwidth for several cases;


[0077]
FIGS. 26A and 26B depict experimental results showing demand rate and pfrate on a monitored server averaged over 1-second and 1-minute intervals, respectively;


[0078]
FIG. 27 depicts a graph of experimental results showing hit rates as a function of prefetch aggressiveness for several system configurations;


[0079]
FIG. 28A depicts an embodiment of a one-connection architecture for a prefetching system;


[0080]
FIG. 28B depicts an embodiment of a two-connection architecture for a prefetching system;


[0081]
FIG. 29 depicts an embodiment of program code that may be added to one or more HTML documents for use with a prefetching system;


[0082]
FIG. 30 depicts an embodiment of program code of a pfalways.html file;


[0083]
FIG. 31 depicts an embodiment of program code of a pflist.html file;


[0084]
FIG. 32 depicts a graph of experimental results showing throughput for several cases as a function of prefetch aggressiveness for a files size of 10 KB;


[0085]
FIG. 33 depicts a graph of experimental results showing throughput for several cases as a function of prefetch aggressiveness for a file size of 50 KB; and


[0086]
FIG. 34 depicts a graph of experimental results showing average demand response time for different system configurations.







[0087] While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawing and detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents- and alternatives falling within the spirit and scope of the present invention as defined by the appended claims.


DETAILED DESCRIPTION

[0088]
FIG. 1 illustrates a wide area network (“WAN”) according to one embodiment. WAN 102 may be a network that spans a relatively large geographical area. The Internet is an example of WAN 102. A wireless phone network with data transfer capability is an example of WAN 102. And a system comprising both the Internet and a wireless phone network coupled together so that wireless phones may access data from Internet servers is an example of WAN 102. WAN 102 typically includes a plurality of computer systems that may be interconnected through one or more networks. Although one particular configuration is shown in FIG. 1, WAN 102 may include a variety of heterogeneous computer systems and networks that may be interconnected in a variety of ways and that may run a variety of software applications.


[0089] One or more local area networks (“LANs”) 104 may be coupled to WAN 102. LAN 104 may be a network that spans a relatively small area. Typically, LAN 104 may be confined to a single building or group of buildings. Each node (i.e., individual computer system or device) on LAN 104 may have its own CPU with which it may execute programs, and each node may also be able to access data and devices anywhere on LAN 104. Thus, LAN 104 may allow many users to share devices (e.g., printers) and data stored on file servers. LAN 104 may be characterized by a variety of types of topology (i.e., the geometric arrangement of devices on the network), of protocols (i.e., the rules and encoding specifications for sending data, and whether the network uses a peer-to-peer or client/server architecture), and of media (e.g., twisted-pair wire, coaxial cables, fiber optic cables, and/or radio waves).


[0090] Each LAN 104 may include a plurality of interconnected computer systems and optionally one or more other devices such as one or more workstations 110a, one or more personal computers 112a, one or more laptop or notebook computer systems 114, one or more server computer systems 116 and/or one or more network printers 118. As illustrated in FIG. 1, an example LAN 104 may include one of each computer systems 110a, 112a, 114, and 116, and one printer 118. LAN 104 may be coupled to other computer systems and/or other devices and/or other LANs 104 through WAN 102.


[0091] One or more mainframe computer systems 120 may be coupled to WAN 102. As shown, mainframe 120 may be coupled to a storage device or file server 124 and mainframe terminals 122a, 122b, and 122c. Mainframe terminals 122a, 122b, and 122c may access data stored in the storage device or file server 124 coupled to or included in mainframe computer system 120.


[0092] WAN 102 may also include computer systems connected to WAN 102 individually and not through LAN 104 (e.g., workstation 110b and personal computer 112b). For example, WAN 102 may include computer systems that may be geographically remote and connected to each other through the Internet.


[0093]
FIG. 2 illustrates an embodiment of computer system 150 that may be suitable for implementing various embodiments described herein. Each computer system 150 typically includes components such as CPU 152 with an associated memory medium such as floppy disks 160. The memory medium may store program instructions for computer programs. The program instructions may be executable by CPU 152. Computer system 150 may further include a display device such as monitor 154, an alphanumeric input device such as keyboard 156, and a directional input device such as mouse 158. Computer system 150 may be operable to execute computer programs to implement various embodiments disclosed herein.


[0094] Computer system 150 may include a memory medium on which computer programs according to various embodiments may be stored. The term “memory medium” is intended to include an installation medium (e.g., a CD-ROM or floppy disks 160), a computer system memory (e.g., DRAM, SRAM, EDO RAM, Rambus RAM), or a non-volatile memory (e.g., magnetic media such as a hard drive or optical media). The memory medium may also include other types of memory or combinations thereof. In addition, the memory medium may be located in a first computer which executes the programs or may be located in a second computer which connects to the first computer over a network. In the latter instance, the second computer may provide program instructions to the first computer for execution. Also, computer system 150 may take various forms such as a personal computer system, mainframe computer system, workstation, network appliance, Internet appliance, personal digital assistant (“PDA”), television system or other device. In general, the term “computer system” may refer to any device having a processor that executes instructions from a memory medium.


[0095] The memory medium may store a software program or programs operable to implement various embodiments disclosed herein. The software program(s) may be implemented in various ways, including, but not limited to, procedure-based techniques, component-based techniques, and/or object-oriented techniques. For example, the software programs may be implemented using ActiveX controls, C++ objects, JavaBeans, Microsoft Foundation Classes (“MFC”), browser-based applications (e.g., Java applets), traditional programs, or other technologies or methodologies, as desired. A CPU such as host CPU 152 executing code and data from the memory medium may include a means for creating and executing the software program or programs according to the embodiments described herein.


[0096] Various embodiments may also include receiving or storing instructions and/or data on a carrier medium. Suitable carrier media may include storage media or memory media as described above. Carrier media may also include signals such as electrical, electromagnetic, or digital signals, conveyed via a communication medium (e.g., WAN 102, LAN 104 and/or a wireless link).


[0097] Application performance and availability may be improved by aggressive background replication. As used herein, “background replication” refers to distributing data (e.g., across a network) to where it may be needed before it is requested. In certain embodiments, background replication may involve hand tuning a network. However, given the rapid fluctuations of available network bandwidth and changing resource costs due to technology trends, hand tuning applications may risk (1) complicating applications, (2) being too aggressive and interfering with other applications, or (3) being too timid and not gaining the benefits of background replication. As used herein, “prefetching” refers to a particular form of background replication involving background replication of one or more data objects from a server to a cache. Generally, a data object may be prefetched with the goal of decreasing how long a user must wait to access the prefetched object(s). For example, in the case of a user browsing the Internet, a second web page may be prefetched while the user is viewing a first web page. Thus, if the user desires to view the second web page, the second web page (now loaded into the browser's cache) may be displayed more quickly than if the browser had to request the second web page from a server.


[0098] In an embodiment, an operating system may manage network resources in order to provide a simple abstraction of near zero-cost background replication. For example, a system referred to herein as TCP-Nice or Nice, may limit the interference inflicted by background flows on foreground flows. Microbenchmarks and case study applications suggest that, in practice, TCP-Nice interferes little with foreground flows while reaping a large fraction of spare network bandwidth and simplifying application construction and deployment. For example, in one microbenchmark, when demand flows consumed half of the available bandwidth, Nice flows consumed 50-80% of the remaining bandwidth without increasing average latencies of demand packets by more than 5%. If the same background flows are transmitted with TCP Reno, they can hurt foreground latencies by up to two orders of magnitude. Research indicates that aggressive prefetching (e.g., background replication of selected data objects) may improve demand performance by a factor of about three when Nice manages resources. However, the same prefetching may hurt demand performance by a factor of six under standard network congestion control.


[0099] Application performance and availability may be improved by aggressive background replication. A broad range of applications and services may be able to trade increased network bandwidth consumption and disk space for improved service latency, improved availability, increased scalability, and/or support for mobility. Many of these services have potentially unlimited bandwidth demands where incrementally more bandwidth consumption provides incrementally better service. For example, a web prefetching system may improve its hit rate by fetching objects from a virtually unlimited collection of objects that have non-zero probability of access or by updating cached copies more frequently as data change. Similarly, in peer-to-peer replication systems, Yu and Vahdat suggest a direct trade-off between the aggressiveness of update propagation and service availability. Technology trends suggest that “wasting” bandwidth and storage to improve latency and availability will become increasingly attractive in the future. For example, per-byte network transport costs and disk storage costs are low and have been improving at about 80-100% per year. Conversely, network availability and network latencies improve slowly, and long latencies and failures waste human time.


[0100] Current operating systems and networks typically do not provide good support for aggressive background replication. In particular, because background transfers compete with foreground requests, aggressive replication can hurt overall performance and availability by increasing network congestion. Applications should therefore carefully balance the benefits of replication against the risk of both self-interference (in which applications hurt their own performance) and cross-interference (in which applications hurt performance of other applications). Often, applications attempt to achieve this balance by setting “magic numbers” (e.g., the prefetch threshold in certain prefetching algorithms) that have little obvious relationship to system goals (e.g., availability or latency) or constraints (e.g., current spare network bandwidth or server capacity).


[0101] In embodiments presented herein, an operating system may manage network resources to provide a simple abstraction of near zero-cost background replication. Such a self-tuning background replication layer may enable new classes of applications by (1) simplifying applications, (2) reducing the risk of being too aggressive, and/or (3) making it easier to reap a large fraction of spare bandwidth to gain advantages of background replication. Self-tuning resource management may assist in coping with network conditions that change significantly over periods of seconds (e.g., changing congestion), hours (e.g., diurnal patterns), and/or months (e.g., technology trends). In an embodiment, network resources may be managed rather than processors, disks, and memory because networks are shared across applications, users, and organizations and therefore are believed to pose the most critical resource management challenge to aggressive background replication. In some embodiments, network resources may be managed in addition to one or more additional resources, such as processors, disks, and memory.


[0102] A TCP-Nice system may reduce interference inflicted by background flows on foreground flows. For example, a TCP-Nice system may modify TCP congestion control to be more sensitive to congestion than traditional protocols (e.g., TCP-Reno or TCP-Vegas). A TCP-Nice system may also detect congestion earlier and/or react to congestion more aggressively than traditional protocols. Additionally, a TCP-Nice system may allow smaller effective minimum congestion windows than traditional protocols. In an embodiment, these features of TCP-Nice may limit the interference of background flows on foreground flows while achieving reasonable throughput in practice. In an embodiment, an implementation of Nice may allow senders (e.g., servers) to select Nice or a traditional congestion control protocol on a connection-by-connection basis. Such an embodiment may not require modifications at the receiver.


[0103] It may be desirable to minimize impact on foreground flows while reaping a significant fraction of available spare network capacity. Nice has been evaluated in this regard using theory, microbenchmarks, and application case studies. Embodiments presented herein are believed to be less aggressive than Reno. Additionally, in a simplified network model, it is believed that Nice flows interfere with Reno flows' bandwidth by a factor that falls exponentially with the size of the buffer at the bottleneck router independent of the number of Nice flows in the network.


[0104] As used herein, microbenchmarks may include both network simulations (using ns) to stress test the protocol and Internet measurements to examine the system's behavior under realistic conditions. Simulation results indicate that Nice may avoid interfering with traditional congestion control protocol flows (e.g., TCP-Reno, TCP-Vegas, etc.) across a wide range of background transfer loads and spare network capacity situations. For example, when there are 16 continuously backlogged background flows competing with demand HTTP cross traffic averaging 12 open connections and consuming half of the bottleneck bandwidth, the background flows slow down the average demand packet by less than 5% and reap over 70% of the spare network bandwidth. Conversely, 16 backlogged Reno (or Vegas) flows slow demand requests by more than an order of magnitude.


[0105] Internet microbenchmarks may measure the performance of simultaneous foreground and background transfers across a variety of Internet links. Based on studies discussed herein, it is believed that background flows may cause little interference to foreground traffic (e.g., average latency and bandwidth of the foreground flows are substantially the same whether foreground flows compete with background flows or not). It is also believed that there is sufficient spare capacity that background flows may reap significant amounts of bandwidth throughout the day. During one study, for example, Nice flows between London, England and Austin, Tex. averaged more than 80% of the bandwidth achieved by Reno flows during most hours. During the worst hour of the study it was observed that the Nice flows still saw more than 30% of the bandwidth of the Reno flows.


[0106] Studies disclosed herein also examine the end-to-end effectiveness, the simplicity, and the usefulness of Nice. Two services were studied. A first system studied included a HTTP prefetching client and server and used Nice to regulate the aggressiveness of prefetching. A second system studied included a model of a Tivoli Data Exchange system for replicating data across large numbers of hosts. In both studies, Nice: (1) simplified the application by eliminating magic numbers; (2) reduced the risk of interfering with demand transfers; and (3) improved the effectiveness of background transfers by using significant amounts of bandwidth when spare capacity exists. For example, in a prefetching case study, applications that prefetch aggressively, demonstrated improved performance by a factor of 3 when Nice is used. If the applications prefetched using TCP-Reno instead, however, the prefetching overwhelmed the network and increased total demand response times by more than a factor of six.


[0107] Congestion control mechanisms in existing transmission protocols generally include a congestion signal and a reaction policy. The congestion control algorithms in popular variants of TCP (Reno, NewReno, Tahoe, SACK) typically use packet loss as a congestion signal. In steady state, the reaction policy may use additive increase and multiplicative decrease (AIMD). In an AIMD framework, the sending rate may be controlled by a congestion window that is multiplicatively decreased by a factor of two upon a packet drop and is increased by one per window of data acknowledged. It is believed that AIMD-type frameworks may contribute significantly to the robustness of the Internet.


[0108] With respect to minimizing interference, however this congestion signal (a packet loss) arrives too late to avoid damaging other flows. In particular, overflowing a buffer (or filling a RED router enough to cause it to start dropping packets) may trigger losses in other flows, forcing them to back off multiplicatively and lose throughput.


[0109] Certain traditional congestion protocols attempt to detect incipient congestion (e.g., TCP-Vegas). To detect incipient congestion due to interference, round trip delays of packets may be monitored. Increasing round trip delays may be used as a signal of congestion. By monitoring round trip delays, each Vegas flow tries to keep between a (typically 1) and β (typically 3) packets buffered at the bottleneck router. As used herein, a “bottleneck router” refers to a router (either actual or virtual) which accounts for much of the round trip delay experienced by a data packet. If fewer than a packets are queued, Vegas increases the window by one unit (typically one data packet) per received acknowledgement. If more than β packets are queued, the method decreases the window by one unit per received acknowledgement. Vegas does this estimation as follows:
1E=WminRTT,


[0110] where E is the Expected throughput
2A=WobservedRTT,


[0111] wherein A is the Actual throughput
1Diff = E − A3if(Diff<αminRTT)W = W + 14elseif(Diff>αminRTT)W = W − 1


[0112] Bounding the difference between the actual and expected throughput translates to maintaining between a and P packets in the bottleneck router. Vegas may have some drawbacks as a background replication protocol. For example:


[0113] 1. Vegas competes for throughput approximately fairly with Reno.


[0114] 2. Vegas attempts to back off when the number of queued packets from its flows increase. However, it does not necessarily back off when the number of packets enqueued by other flows increases.


[0115] 3. Each Vegas flow tries to keep α and β (e.g., between about 1 to 3) packets in the bottleneck queue; hence, a collection of background flows could cause significant interference.


[0116] Note that even setting α and β to very small values may not prevent Vegas from interfering with cross traffic. The linear decrease on the “Diff>β” trigger may not be responsive enough to inhibit interference with other flows. This expectation has been confirmed by simulations and real world experiments, and also follows as a conclusion from theoretical analysis.


[0117] The TCP-Nice includes components not present in Vegas. For example, in an embodiment, TCP-Nice may include: 1) a more sensitive congestion detector; 2) multiplicative reduction in response to incipient congestion (e.g., increasing round trip times); and 3) the ability to reduce the congestion window below one.


[0118] In an embodiment, a Nice flow may signal congestion when significant queuing is detected. In an embodiment, congestion may be signaled before dropping of demand packets from the queue impacts a foreground flow. For example, Nice may indicate significant queuing before the router queue fills for a drop-tail router. In another example, Nice may indicate significant queuing in a random early detection (RED) router before the router queue fills enough to start probabilistically dropping packets or soon after the router starts probabilistically dropping packets. In some embodiments, a Nice flow may monitor round trip delays, estimate the total queue size at the bottleneck router, and signal congestion when this total queue size exceeds a fraction of the estimated maximum queue capacity. For example, a Nice flow may use minRTT (the minimum observed round trip time) as an estimate of the round trip time when queues are empty. The Nice flow may use maxRTT (the maximum observed round trip time) as an estimate of the round trip time when the bottleneck queue is full. If more than fraction f of the packets Nice sends during a RTT (round trip time) window encounter delays exceeding minRTT+(maxRTT−minRTT)*threshold, the detector may signal congestion. In an embodiment, minRTT and maxRTT may be initialized by assuming that the first round trip delay is minRTT and setting the maxRTT to 2*minRTT. In another embodiment, Nice filters minRTT and maxRTT measurements to eliminate statistically insignificant measurements (e.g., outliers). For example, the longest 10% of round trip times and/or the shortest 10% of round trip times may be ignored. Such moving measures may have their limitations. For example, if the network is in a state of persistent congestion, a bad estimate of minRTT may be obtained. However, past studies have indicated that a good estimate of the minimum round trip delay may typically be obtained in a short time. Route changes during a transfer may also contribute to inaccuracies in RTT estimates. However, such changes are believed to be relatively uncommon. It is also believed that route changes may be handled by weighting recent measurements more heavily than older measurements. For example, exponentially decaying averages for minRTT and maxRTT estimates may be maintained.


[0119] Some systems have signaled congestion when encountering delays exceeding minRTT*(1+threshold′). Expressing the threshold in terms of the difference between minRTT and maxRTT makes the problem more mathematically tractable and reduces the need to hand-tune threshold′ for different networks.


[0120] In an embodiment, when a Nice flow signals congestion, it reduces its congestion window by a multiplicative factor. For example, in one embodiment, when a Nice flow signals congestion, the current congestion window is halved. In contrast, Vegas reduces its window by one packet each round that encounters long round trip times. A Vegas window is halved only if packets are lost (i.e., Reno-like behavior). In an embodiment, limiting interference with demand flows may include detecting when queues exceed a threshold and backing off multiplicatively. Experimental results show that such methods may achieve reasonable throughput in practice.


[0121]
FIG. 3 shows a queue at a bottleneck router that routes Nice flows with a threshold t and fraction f Round trip delays of packets are indicative of the current queue size. In an embodiment, the Nice congestion avoidance mechanism may be written as: per ack operation:
2if(curRTT > (1 − t)min RIT + t · max RTT)numCong++;


[0122] per round operation:
3if(numCong > f · W)WW/2;numCong = 0;else {//... congestion avoidance of a traditional protocol follows}


[0123] If the congestion condition does not trigger, Nice may utilize the congestion avoidance rules of a traditional protocol (e.g., TCP-Vegas or TCP-Reno). Additionally, if a packet is lost, Nice may utilize the congestion avoidance rules of a traditional protocol.


[0124] In an embodiment, TCP-Vegas congestion control rules may be used as the traditional protocol and both Nice and Vegas congestion control rules operate on a common congestion window variable. This embodiment was utilized for the experiments described below. In another embodiment, TCP-Reno congestion control rules may be used as the traditional protocol.


[0125] In another embodiment, two separate limits are maintained on sending rates. One limit is maintained by the traditional protocol and a separate limit is maintained by Nice. The system is organized so that the actual sending rate is the minimum of the two limits. For example, in an embodiment, a user-level control algorithm maintains a congestion window for each connection in accordance with the Nice rules and a kernel-level control algorithm maintains a congestion window in accordance with Reno rules. The user level control algorithm ensures that packets are submitted to the kernel TCP congestion control algorithm at a rate not exceeding the Nice-limited rate, and then kernel congestion control algorithm ensures that packets are submitted to the network at a rate not exceeding the Reno-limited rate; together these controls ensure that packets are not submitted to the network at a rate exceeding the minimum of the Nice and Reno limited rates.


[0126] In certain embodiments, Nice congestion control may to allow the window sizes to multiplicatively decrease below one if so dictated by the congestion trigger and response. To affect window sizes less than one, a packet may be sent out after waiting for the appropriate number of smoothed round trip delays. In these circumstances, ack-clocking may be lost, but the flow continues to send at most as many packets into the network as it gets out. In this phase, the packets act as network probes waiting for congestion to dissipate. By allowing the window to go below one, Nice retains the non-interference property even for a large number of flows. Both analysis and experiments indicate that this optimization may reduce interference, particularly when testing against several background flows.


[0127] In an embodiment, a Nice system may be implemented by extending an existing version of the Linux kernel that supports Vegas congestion avoidance. Like Vegas, microsecond resolution timers may be used to monitor round trip delays of packets to implement a congestion detector.


[0128] Typically, a Linux TCP implementation may maintain a minimum window size of two in order to avoid delayed acknowledgements by receivers that attempt to send one acknowledgement for every two packets received. To allow the congestion window to go to one or below one, a new timer may be added that runs on a per-socket basis when the congestion window for the particular socket (flow) is below two. In this phase, the flow waits for the appropriate number of RTTs before sending two packets into the network. Thus, a window sized at {fraction (1/16)} of a data packet sends out two packets after waiting for 32 smoothed round trip times. In an embodiment, the minimum window size may be limited. For example, in certain embodiments, the minimum window size may be limited to {fraction (1/48)}.


[0129] In an embodiment, congestion detection may include a number of configurable parameters such as, but not limited to, fraction and threshold. For example, the congestion detector may signal congestion when more than fraction=0.5 packets during an RTT encounter delays exceeding threshold=0.2. Experimental data indicate that interference of Nice flows with demand flows is relatively insensitive to the fraction parameter chosen. Since, in some embodiments, packets are sent in bursts, most packets in a round observe similar round trip times.


[0130] A simple API may be provided to designate a flow as a background flow through an option in the “setsockopt” system call. By default, flows may be considered foreground flows for experimental purposes.


[0131] Analysis indicates that under a simplified network model, for long transfers, the reduction in the throughput of Reno flows may be asymptotically bounded by a factor that falls exponentially with the maximum queue length of the bottleneck router irrespective of the number of Nice flows present.


[0132] The following analysis assumes a simplified fluid approximation and synchronous network model. The analysis may apply, for example, to long background flows. The analysis also assumes long foreground Reno flows. The analysis further assumes that a Nice sender accurately estimates the queue length during the previous epoch at the end of each RTT epoch. These assumptions apply only to the formal analysis of the Nice protocol, and are not intended to limit embodiments presented herein in any way. The Nice protocol is believed to work well under more general circumstances (as demonstrated by experimental results presented herein).


[0133] A simplified fluid approximation model of the network may be used to model the interaction of multiple flows using separate congestion control algorithms. This model may assume infinitely small packets. For purposes of the model, the network itself may be simplified to a source, a destination, and a single bottleneck. The bottleneck router may perform drop-tail queuing.


[0134] Let μ denote the service rate of the queue and B the buffer capacity at the queue. Let τ be the round trip delay of packets between the source and destination excluding all queuing delays. A fixed number of connections may be considered, including l following Reno and m following Nice. Each of the connections may have one continuously backlogged flow between a source and a destination. Let t be the Nice threshold and qt=t*B be the corresponding queue size that triggers multiplicative backoff for Nice flows. The connections may be homogeneous (i.e., they may experience the same propagation delay τ). Moreover, the connections may be synchronized so that in the case of buffer overflow, all connections may simultaneously detect a loss and multiply their window sizes by γ. The congestion avoidance phase of the model is described herein to analyze the steady-state behavior.


[0135] A bound on the reduction in the throughput of Reno flows due to the presence of Nice flows may be obtained by analyzing the dynamics of the bottleneck queue. To do so, the duration of the flows may be divided into periods. In each period, the decrease in the number of Reno packets processed by the router due to interfering Nice packets may be bounded.


[0136] Let Wr(t) and Wn(t) denote the total number of outstanding Reno and Nice packets in the network at time t, respectively. W(t), the total window size, is Wr(t)+Wn(t). These window sizes may be traced across periods. The end of one period and the beginning of the next period may be marked by a packet loss. Upon packet loss, each flow may reduce its window size by a factor of γ. Thus, W(t)=μτ+B just before a loss and W(t)=(μτ+B)*γ just after the packet loss. Let t0 be the beginning of one such period after a loss. Consider the case when W(t0)=(μτ+B)*γ<μτ and m>l. For ease of analysis it may be assumed that the “Vegas β” parameter for the Nice flows is 0. That is, the Nice flows may additively decrease upon observing round trip times greater than τ. The window dynamics in any period may be split into three intervals as described below.


[0137] Additive Increase, Additive Increase: In this interval [t0, t1], both Reno and Nice flows may increase linearly. W(t) increases from W(t0) to W(t1)=μτ, at which point the queue starts building.


[0138] Additive Increase, Additive Decrease: This interval [t1, t2] is marked by additive increase of Wr. Additionally, in embodiments where TCP-Vegas is used as the traditional protocol, Wn, may additively decrease of as the “Diff>β” rule triggers the underlying Vegas controls for the Nice flows. The end of this interval is marked by W(t2)=μτ+qt.


[0139] Additive Increase, Multiplicative Decrease: In this interval [t2, t3], Wn(t) may multiplicatively decrease in response to observing queue lengths above qt. The rate of decrease of Wn(t), however, may be bounded by the rate of increase of Wr(t), as any faster decrease may cause the queue size to drop below qt. At the end of this interval W(t3)=μτ+B. At this point, each flow may decrease its window size by a factor of γ, thereby entering into the next period.


[0140] To quantify the interference experienced by Reno flows in the presence of Nice flows, differential equations may be formulated to represent the variation of the queue size in a period. The values of Wr and Wn at the beginning of periods may stabilize after several losses, so that the length of a period converges to a fixed value. It is then straightforward to compute the total amount of Reno flow sent out in a period. The interference I, defined as the fractional loss in throughput experienced by Reno flows because of the presence of Nice flows, may be given as follows.


[0141] Theorem 1: The interference I is given by:
5I4m·(-B(1-t)γm)(μτ+B)γ


[0142] The derivation of I indicates that all three design features of Nice may contribute to reducing interference. The interference falls exponentially with B(1−t) or B−qt, which reflects the time that Nice may multiplicatively back off before packet losses occur. Intuitively, multiplicative decrease may allow any number of Nice flows to get out of the way of additively increasing demand flows. The dependence on the ratio B/m suggests that as the number of demand flows approaches the maximum queue size, the non-interference property may start to break down. Such a breakdown may not be surprising, as each flow barely gets to maintain one packet in the queue and TCP Reno is known to behave anomalously under such circumstances. In a well designed network, when B>>m, the dependence on the threshold t may be weak. That is, interference may be small when t is small. Therefore, careful tuning of the exact value of t in this region may be unnecessary. Analysis indicates that the above bound on I may hold even for the case when m>>l.


[0143] Experiments were conducted to test the non-interference properties of Nice. Additionally, the experiments determined whether Nice gets any useful bandwidth for the workloads considered. Using controlled ns simulations, the system was stress tested by varying network configurations and loads to extreme values. Nice methods were also systematically compared to other methods. In general, the experiments indicated that:


[0144] Nice flows cause almost no interference irrespective of the number of flows.


[0145] Nice flows may utilize a significant fraction of the available spare bandwidth.


[0146] Nice methods may outperform other existing protocols, including Reno, Vegas, and Vegas with reduced α and β parameters.


[0147] All of the simulation experiments were conducted using ns 2.1b8a. A barbell topology was used in which N TCP senders transmit through a shared bottleneck link L to an equal number of receivers. The router connecting the senders to L becomes the bottleneck queue. The routers performed drop-tail first-in-first-out queuing. The router buffer size was set to 50 packets. Each packet was 1024 bytes in size. The propagation delay was set to 50 ms. The capacity of the link was varied to simulate different amounts of spare capacity.


[0148] A 15 minute section of a Squid proxy trace logged at UC Berkeley was used as the foreground traffic over L. The number of flows fluctuated as clients entered and left the system as specified by the trace. On average, there were about 12 active clients. In addition to this foreground load, permanently backlogged background flows were introduced. For the initial set of experiments, the bandwidth of the link was fixed to twice the average demand bandwidth of the trace. The primary metric used to measure interference was the average round trip latency of a foreground packet (i.e., the time between its being first sent and the receipt of the corresponding ack, inclusive of retransmissions). The total number of bytes transferred by the background flows was used as the measure of utilization of spare capacity.


[0149] The performance of the background protocol was compared to several other strategies for sending background flows. For example, router prioritization that services a background packet only if there are no queued foreground packets was used for comparison. Router prioritization may be considered the ideal strategy with respect to performance for background flow transmission. In some cases, however, router prioritization may require modification to existing networks and routers, and thus may be impractical to deploy and use. In addition, Vegas (α=1, β=3), Reno, Vegas (α=0, β=0), and rate-limited Reno (which sets a maximum transmission bandwidth on each flow) were used for comparison.


[0150] Experiment 1: In this experiment, the number of background flows was fixed to 8 and the spare capacity, S, was varied. To achieve a spare capacity S, the bottleneck link bandwidth L was set to (1+S)* averageDemandBW, where averageDemandBW is the total number of bytes transferred in the trace divided by the duration of the trace. FIG. 4 is a plot the average latency of foreground packets as a function of spare capacity in the network. Different lines represent different runs of the experiments using different protocols for background flows. It can be seen that the Nice is hardly distinguishable from the router prioritization, whereas the other protocols cause a significant increase in foreground latency. Note that the Y-axis is on a log scale, indicating that in some cases Reno and Vegas increase foreground packet latencies by two orders of magnitude.


[0151] Experiment 2: In this experiment the spare capacity, S, of the network was fixed at 1. The number of background flows was varied. The bottleneck link bandwidth, L, was set to twice the bandwidth needed by demand flows. FIG. 5 is a plot of the latency of foreground packets versus the number of background flows. Even with 100 background Nice flows, the latency of foreground packets is hardly distinguishable from the ideal case when routers provide strict prioritization. On the other hand, Reno and Vegas background flows can cause latency of demand flows to increase by orders of magnitude. FIG. 6 is a plot of the number of bytes successfully transmitted by the background flows. A single Nice background flow reaped about half the spare bandwidth available under router prioritization. This background throughput improved with increasing number of Nice background flows but remained below router prioritization. Note that although Reno and Vegas obtained better throughputs, even for a small number of flows each went beyond the router prioritization line. This indicates that the Reno and Vegas flows stole bandwidth from foreground traffic.


[0152] These experiments were also performed where the Nice congestion window was not allowed to fall below 1. In these cases, when the number of background flows exceeded about 10, the latency of foreground flows began to increase noticeably. The increase in foreground flow latency was about a factor of two when the number of background flows was 64.


[0153] Experiment 3: In this experiment the effect of the Nice threshold and fraction parameters was tested. FIG. 7 shows the latency of foreground packets as a function of the threshold for the same trace as above, with S=1 and 16 background flows. As the threshold value increased, the interference caused by Nice increased until the protocol finally reverted to Vegas behavior as the threshold approached 1. Nice demonstrated low interference over a large range of threshold values, suggesting that the threshold value may not need to be manually tuned for each network. Similarly, no significant change in foreground latency was found as the trigger fraction was varied from 0.1 to 0.9.


[0154] Experiment 4a: Nice flows were compared to simple rate-limited Reno flows. The foreground traffic was again modeled by the Squid trace and the experiment performed was identical to experiment 1.


[0155]
FIG. 8 is a plot of the average latency of foreground packets as a function of the spare capacity in the network. The various lines represent rate-limited background flows with the limits corresponding to a window size of 1, 2, 4 and 16. It can be seen that even a flow with a rate limit of 1 caused slightly greater interference than Nice. This result is not surprising since Nice is equipped to reduce its window size below one when it deems necessary to minimize interference. All other flows with higher rates performed much worse and resulted in up to two orders of magnitude of increase in latency.


[0156] Experiment 4b: In this experiment the spare capacity of the network, S, was fixed at 1. The bottleneck link bandwidth, L, was set at twice the bandwidth needed by demand flows. The number of background flows was varied. This experiment was otherwise identical to experiment 2. FIG. 9 is a plot of the latency of foreground packets versus the number of background flows. Even flows limited to a window size of 1 caused up to two orders of magnitude of increase in latency when there were 64 background flows present. Nice, on the other hand, was hardly distinguishable from the router prioritization line even for 100 background flows. FIG. 10 is a plot of the number of bytes the background flows that managed to get across. A single Nice background flow achieved more throughput than a flow rate-limited to a window size of 8. This single Nice flow obtained about 10 times as much throughput as a flow rate-limited to a window of one, but still caused lower interference, as seen in FIG. 9. With increasing number of flows, the rate-limited flows showed a linear (X-axis is on a log-scale) increase in throughput while the throughput obtained by Nice increased more slowly. However, all the rate-limited flows sooner or later crossed the router prioritization line, or stole bandwidth from the foreground flows. Nice, on the other hand, remained below the router prioritization line and reaped between 60-80% of the spare bandwidth.


[0157] Experiment 5a: In this experiment the foreground traffic was modeled as a set of user datagram protocol (UDP) sources transmitting in an on/off manner in accordance with a Pareto distribution. The burst time and idle time were each set to 250 ms, and the value of the shape parameter set to 1.5. The experiments performed were otherwise identical to the experiments involving trace-based traffic (e.g., spare capacity and the number of background flows were varied).


[0158]
FIG. 11 shows average latency of foreground packets as a function of spare capacity in the network. The Nice flows caused less latency overhead than Reno or Vegas. However, the difference is not as dramatic as in the case in which the foreground traffic was a trace following TCP suggesting that Nice may be less well-suited to environments in which the traffic is unpredictable.


[0159] Experiment 5b: In this experiment the capacity of the network was fixed at S=2. The bottleneck link bandwidth, L, was set at four times the bandwidth needed by demand flows. The number of background flows was varied. FIG. 12 is a plot of the latency of foreground packets versus the number of background flows. Though Nice outperformed Reno and Vegas, it did not match router prioritization as closely. However, Nice continued to show graceful degradation with the number of background flows because of its ability to decrease its window size below one. FIG. 13 is a plot of the number of bytes the background flows managed to get across. A single Nice flow obtained about 70% of the spare bandwidth available under router prioritization. This background throughput improved with increasing number of background flows, but remained below router prioritization. Thus, Nice may reap a significant fraction of the spare capacity even when the foreground traffic is unpredictable.


[0160] Controlled experiments were also performed in which a Nice implementation was tested over a variety of Internet links. The experiments focused on answering three questions. First, in a less controlled environment than ns simulations, does Nice still avoid interference? Second, are there enough reasonably long periods of spare capacity on real links for Nice to reap reasonable throughput? Third, are any such periods of spare capacity spread throughout the day, or is the usefulness of background transfers restricted to nights and weekends?


[0161] The experimental results suggest that Nice works for a range of networks including, but not limited to, a modem, a cable modem, a transatlantic link, and a fast WAN. In particular, it appears that Nice avoids interfering with other flows and that it may achieve throughputs that are significant fractions of the throughputs that would be achieved by Reno throughout the day.


[0162] A measurement client program connected to a measurement server program at exponentially distributed random intervals. At each connection time, the client chose one of six actions: Reno/NULL, Nice/NULL, Reno/Reno, Reno/Nice, Reno/Reno8, or Reno/Nice8. Each action consisted of a “primary transfer (denoted by the term left of the /) and zero or more “secondary transfers” (denoted by the term right of the /). Reno terms indicate flows using standard TCP-Reno congestion control. Nice terms indicate flows using Nice congestion control. For secondary transfers, NULL indicates actions that initiate no secondary transfers to compete with the primary transfer. An 8 at the end of the right term indicates actions that initiate eight (rather than the default one) secondary transfers. The transfers are of large files with sizes chosen to require approximately 10 seconds for a single Reno flow to compete on the network under study. In addition, during these actions and during periods of inactivity, clients pinged the server to measure latency for individual packet transfers.


[0163] A server that supported Nice was positioned at the University of Texas at Austin, in Austin, Tex. Clients were positioned as follows: (1) in Austin connected to the internet via a 56.6 K dial in modem bank (modem), (2) in Austin connected via a commercial ISP cable modem (cable modem), (3) in a commercial hosting center in London, England connected to multiple backbones including an OC12 and an OC3 to New York (London), and (4) at the University of Delaware, which connects to the University of Texas via an Abilene OC3 (Delaware). All of the computers ran Linux. The server was a 450 MHz Pentium II with 256 MB of memory. The clients ranged from 450-1000 MHz and all had at least 256 MB of memory. Approximately 50 probes per client/workload pair were gathered.


[0164]
FIGS. 14A, 14B, 14C and 14D summarize the results of the large-transfer experiments. In FIGS. 14A, 14B, 14C and 14D, each bar represents average transfer time observed for the specified combination of primary and secondary transfers. The narrow vertical lines represent the minimum and maximum values observed during multiple runs of each combination. On each of the networks, the throughput of Nice flows was a significant fraction of the total throughput, suggesting that periods of spare capacity are often long enough for Nice to detect and make use of them. During Reno/Nice and Reno/Nice8 actions, the primary (Reno) flow achieved similar throughput to the throughput seen during the control Reno/NULL sessions. In particular, on a modem network, when Reno flows competed with a single Nice flow, the Reno flows received on average 97% of the average bandwidth received when there was no competing Nice flow. On a cable modem network, when Reno flows competed with eight Nice flows, the Reno flows received 97% of the bandwidth received when there where no competing flows. Conversely, Reno/Reno and Reno/Reno8 showed the expected fair sharing of bandwidth among Reno flows, which reduced the bandwidth achieved by the primary flow.


[0165]
FIGS. 15A, 15B, 15C, 15D show the hourly average bandwidth achieved by the primary flow for the different combinations listed above. The data indicate that Nice may achieve useful amounts of throughput throughout the day.


[0166] Many studies have published promising results that suggest that prefetching (also known as “pushing” data) content could significantly improve web cache hit rates by reducing compulsory and consistency misses. However, few such systems have been deployed.


[0167] Typically, prefetching algorithms are tuned with a threshold parameter to balance the potential benefits of prefetching data against the bandwidth costs of fetching the data and the storage costs of keeping the data until the data is used. In an embodiment, an object is prefetched if the estimated probability that the object will be referenced before it is modified exceeds a threshold. One study calculates reasonable thresholds given network costs, disk costs, and human waiting time values and concludes that most algorithms in the literature have been far too conservative in setting their thresholds. Furthermore, the estimated 80-100% per year improvements in network and disk capacity/cost mean that a value that is correct today may be off by an order of magnitude in 3-4 years.


[0168] In an embodiment, a system may include one or more servers which send demand data and prefetch data to one or more clients. In such an embodiment, demand data may be sent using a first congestion control protocol such as TCP Reno and prefetch data may be sent using a second congestion control protocol such as TCP Nice.


[0169] In an embodiment, a list of objects to be prefetched is generated and stored at the server. In such an embodiment, servers may piggyback lists of suggested objects in a new HTTP reply header when serving requests. In this embodiment, a list is generated using a prediction algorithm such as hand-generation by a user, Markov prediction, prediction by partial matching, or by another algorithm. Clients receiving a prediction list may discard old predictions and then issue prefetch requests for objects from the new list. This division of labor allows servers to use global information and application-specific knowledge to predict access patterns. The division of labor may also allow clients to filter requests through their caches to avoid repeatedly fetching an object. In some embodiments, servers generate prefetch lists and send the listed objects to the client without first sending the list to the client. In certain embodiments, clients generate a list of objects to prefetch and request those objects from the server. In some embodiments, a machine separate from the client and the server generates a prefetch list and sends this list to the client or the server.


[0170] In an embodiment, after a server stores a prefetch list, it transmits one or more elements from the list to the client using the prefetch congestion control algorithm (e.g., TCP-Nice). In one embodiment, elements are sent in order, with objects of higher benefit (e.g., higher likelihood of being referenced) sent before objects of lower benefit. In some embodiments, elements are sent in order with objects of high benefit/cost (e.g., high likelihood of being accessed and/or small size) sent before objects with low benefit/cost. In one embodiment, prefetch and demand data are transmitted on separate logical channels (e.g., separate TCP connections, with Reno congestion control for the demand connections and Nice congestion control for the prefetch connection). In certain embodiments, the same connection is used for both demand and prefetch traffic. In such embodiments, the congestion control algorithm may be set to Reno when demand packets are transmitted. The congestion control algorithm may be set to Nice when prefetch data packets are transmitted.


[0171] To evaluate prefetching performance, a standalone client may be used that reads a trace of HTTP requests, simulates a local cache, and issues demand and prefetch requests. For example, a client written in Java may pipeline requests across HTTP/1.1 persistent connections. To ensure that demand and prefetch requests use separate TCP connections, a server may direct prefetch requests to a different port than demand requests. A disadvantage of this approach is that it does not fit with the standard HTTP caching model. In an embodiment, a modified client may recognize that URLs with two different ports on the same server are the same. In another embodiment, an HTTP wrapper object may be fetched from a demand server where the wrapper object contains a reference to the corresponding URL on the prefetch server port so that when the demand object is selected for display, the prefetched object is displayed instead. In another embodiment, a Nice implementation may be modified to allow a server to switch a single connection between Reno and Nice congestion control. Several methods of deploying a perfecting system are described in more detail below.


[0172] An experiment was conducted in which predictions were generated at clients (using knowledge from the trace to simulate server knowledge) rather than sending predictions across the network. This simplification allowed the use of an unmodified Apache server. The modification slightly reduced network traffic for prefetching, but the impact on overall performance was believed to be small. If servers have large prediction lists to send to clients, they may send small numbers of predictions in the headers of demand replies and “chain” the rest of the predictions in headers of prefetch replies.


[0173] A Squid proxy trace from 9 regional proxies was collected during January 2001. Each trace record included the URL, the anonymized client IP address, and the time of the request. The network interference near the server was studied by examining subsets of the trace corresponding to popular groups of related servers. For example, a series of cnn servers (e.g., cnn.com, www.cnn.com, cnnfn.com, etc.) was used.


[0174] The network interference study compared relative performance for different resource management methods for a given set of prefetching methods. The study did not try to identify an optimal prefetching method. Several suitable prefetching algorithms are known to those familiar with the art (e.g., Markov, prediction by partial matching or hand-generation). Nor did the study attempt to precisely quantify the absolute improvements available from prefetching. A simple prediction by partial matching (PPM) algorithm, PPM-n/w, that uses a client's n most recent requests to the server group for non-image data to predict cacheable (e.g., non-dynamically generated) URLs that will appear during a subsequent window that ends after the wth non-image request to the server group was used. This algorithm is limited because it uses neither link topology information nor server specific semantic knowledge. For simplicity, it was assumed that all non-dynamically generated data (e.g., data not including a suffix indicating that a program was executed) were cacheable and unchanging for the 1-hour duration of the experiments. Also, to allow variation in demand, the trace was broken into per-client, per-hour sections. Each section was treated as coming from a different client during the same simulated hour. Since prefetching methods and server workloads are likely to vary widely, these assumptions may yield a simple system that falls within the range of prediction effectiveness that a simple service might experience.


[0175] A conservative variation of the PPM-n/w algorithm was used with parameters similar to those found in the literature for HTTP prefetching. The algorithm used n=2, w=5 and set the prefetch threshold to 0.25. To prevent prefetch requests from interfering with demand requests, requests are issued at least 1 second after a demand reply is received. In addition, an aggressive variation of the PPM-n/w algorithm was used with parameters set at n=2, w=10. This variation truncates prefetch proposal lists with a threshold probability of 0.00001. Prefetch requests are issued immediately after receipt.


[0176] Two client machines were connected to a server machine via a cable modem. Eight virtual clients were run on each client machine. Each client had a separate cache and separate HTTP/1.1 demand and prefetch connections to the server. For the demand traffic to consume about 10% of the cable modem bandwidth, the six busiest hours from the trace were selected and divided among trace clients each hour randomly across four of the virtual clients. In each of the seven trials, all the 16 virtual clients ran the same prefetching method (i.e., none, conservative-Reno, aggressive-Reno, conservative-Nice, or aggressive-Nice).


[0177]
FIG. 16 shows the average cumulative demand transfer times perceived by the clients for all the files fetched on demand from the CNN server. In FIG. 16, when clients did conservative prefetching using either protocol (Nice or Reno) the latency reductions were comparable. When aggressive prefetching using Reno was initiated, however, the latency increased by an order of magnitude. Clients using aggressive Nice prefetching continued to see further latency reductions. FIG. 16 shows that Nice may effectively utilize spare bandwidth for prefetching without affecting demand requests.


[0178]
FIG. 17 represents the effect of prefetching over a modem. The setup was the same as previously described with reference to FIG. 16 with the cable modem replaced by a modem (i.e., less spare bandwidth was available). FIG. 17 shows that while the Reno and Nice protocols were comparable in benefits during conservative prefetching, aggressive prefetching using Reno hurt the clients significantly by increasing the latencies three-fold. The latency was not increased with Nice.


[0179] A model of the Tivoli Data Exchange system was studied for replicating data across large numbers of hosts. This system distributes data and programs across thousands of client machines using a hierarchy of replication servers. Both non-interference and good throughput are believed to be important metrics for such a system. In particular, data transfers should not interfere with interactive use of target machines. Transfers may be large, and time may be critical. Additionally, transfers may go to a large number of clients using a modest number of simultaneous connections. Thus, each data transfer should be completed as quickly as possible. For example, after Congress makes last minute changes to tax laws, the IRS must rapidly distribute new documentation to auditors. The system must cope with complex topologies including thousands of clients, LAN/WAN/modem links, and mobile clients whose bandwidths may change drastically over time. The system typically uses two parameters at each replication server to tune the balance between non-interference and throughput. One parameter throttles the maximum rate that the server will send data to a single client. The other parameter throttles the maximum total rate (across all clients) that data is sent.


[0180] Choosing rate limiting parameters may require some knowledge of network topology. In selecting rate limiting parameter values, a trade-off may be required between overwhelming slow clients and slowing fast clients (e.g., distributing a 300 MB Office application suite would take nearly a day if throttled to use less than half a 56.6 Kb/s modem). A more complex system may allow a maximum bandwidth to be specified on a per-client basis, but such a system may be prohibitively complex to configure and maintain.


[0181] Nice may provide an attractive self-tuning abstraction. Using Nice, a sender may send at the maximum speed allowed by the connection. Results below are for a standalone server and client.


[0182] The servers and clients were the same were used in the Internet measurements previously described. The servers and clients ran simple programs that transferred data in patterns to model data transfer in the Tivoli system. Large transfers were initiated from the server. During each transfer, the ping round trip time between the client and the server was measured. When running Reno, the client throttle parameter was varied. The total server bandwidth limit was set to an effectively infinite value. When running Nice, both the client and server bandwidth limits were set to effectively infinite values.


[0183]
FIG. 18 shows a plot of ping latencies (representative of interference) as a function of the completion time of transfers to clients over different networks. With Reno, completion times decreased with increasing throttle rates, but ping latencies increased. In contrast, Nice picked good sending rates without the need for any manual tuning, and ping latencies were low.


[0184] In some embodiments, variations of Nice may be deployed which allow different background flows to be more or less aggressive compared to one another while remaining timid with respect to competing foreground flows.


[0185] Prioritizing packet flows may be easier with router support. Certain router prioritization queues, such as those proposed for DiffServe service differentiation architectures, are capable of completely isolating foreground flows from background flows while allowing background flows to consume nearly the entire available spare bandwidth. Unfortunately, these solutions are of limited use for someone trying to deploy a background replication service today because few applications are deployed solely in environments where router prioritization is installed or activated. Embodiments presented herein demonstrate that an end-to-end strategy need not rely on router support to make use of available network bandwidth without interfering with foreground flows.


[0186] Router support may also be used to relay network congestion information to end-points. Examples of this approach include random early detection (RED), explicit congestion notification (ECN) and Packeteer's rate controlling scheme based on acknowledgement streaming. These systems raise issues in the context of Nice. For example, by supplying better congestion information, routers may improve the performance of protocols like Nice.


[0187] Applications may limit the network interference they cause in various ways. For example:


[0188] Coarse-grain scheduling (e.g., diurnal patterns): Background transfers may be scheduled during hours where there is little foreground traffic. For example, network backup is commonly scheduled for early mornings. Studies have observed appreciable savings in latency by performing updates of prefetched data during the nighttime alone. Other studies have discussed bandwidth smoothing techniques by selectively distributing traffic across the course of a day.


[0189] Rate limiting: Senders can pace the rate at which bytes are sent with simple logic, and receivers can limit senders by limiting their maximum advertised TCP receive window. For example, some have proposed window-based rate controlling approaches for prefetching data. Overall latency may be improved using this approach, and the traffic shaping may lead to less bursty traffic and smaller queue lengths. The rate-controlling approach spreads prefetched data in the time interval between the end of one request and the beginning of the next request. For example, the Tivoli Data Exchange system limits per-destination and total bandwidth consumption by each distribution server.


[0190] Application tuning: Applications may limit the amount of data sent by varying application-level parameters. For example, many prefetching algorithms estimate a probability of an object being referenced and only prefetch the object if the probability exceeds a threshold.


[0191] Self-tuning support for background replication may have a number of advantages over existing application-level approaches (e.g., Nice may operate over fine time scales). Thus, self-tuning support for background replication may provide reduced interference (by reacting to spikes in load) as well as higher average throughput (by using a large fraction of spare bandwidth) than static hand-tuned parameters. This property may reduce the risk and increase the benefits available to background replication while simplifying design. Additionally, Nice may provide useful bandwidth throughout the day in many environments.


[0192] In an embodiment, a non-intrusive web prefetching system may avoid interference between prefetch and demand requests at the server as well as in the network by utilizing only spare resources. Additionally, in certain embodiments, such a system may be deployable without any modifications to the browsers, the HTTP protocol and/or the network.


[0193] Despite the potential benefits, prefetching systems have not been widely deployed because of at least two concerns: interference and deployability. First, if a prefetching system is too aggressive, it may interfere with demand requests to the same service (self-interference) or to other services (cross-interference) and hurt overall system performance. Second, if a system requires modifications to the existing HTTP protocol, it may be impractical to deploy. For example, the large number of deployed clients makes it difficult to change clients, and the increasing complexity of servers makes it difficult to change servers.


[0194] Embodiments disclosed herein provide a prefetching system that: (1) causes little or no interference with demand flows by effectively utilizing only spare resources on the servers and the network; and (2) is deployable with no modifications to the HTTP protocol and/or the existing infrastructure. To avoid interference, the system may monitor the server load externally and tune the prefetch aggressiveness of the clients accordingly. Such a system may utilize TCP-Nice. Additionally, in certain embodiments, the system may utilize a set of heuristics to control the resource usage on the clients. To work with existing infrastructure, the system may be implemented by modifying html pages to include JavaScript code that issues prefetch requests and by augmenting the server infrastructure with several simple modules that require no knowledge of or modifications to the existing servers.


[0195] Additionally, certain embodiments include a self-tuning architecture for prefetching that eliminates the traditional “threshold” magic number that is often used to limit the interference of prefetching on demand requests. In such embodiments, the architecture separates prefetching into two different tasks: (i) prediction and (ii) resource management. The predictor may propose prioritized lists of high-value documents to prefetch. The resource manager may decide how many of those documents can be prefetched and schedule the prefetch requests to avoid interference with demand requests and other applications. Separating prefetching into prediction and resource management may have a number of advantages. First, it may simplify deployment and operation of prefetching systems by eliminating the need to select an appropriate threshold for an environment and update the threshold as conditions change. Second, it may reduce the interference caused by prefetching by throttling aggressiveness during periods of high demand load. Third, it may increase the benefits of prefetching by prefetching more aggressively than would otherwise be safe during periods of low and moderate load.


[0196] In certain embodiments, a prefetching system may be deployed that substantially ignores the problem of interference. Such embodiments may be augmented relatively easily to avoid server interference. Extending such a system to also avoid network interference may be more involved. However, doing so appears feasible even under the constraint of not modifying current infrastructure. At the client, additional interference may be taken to include prefetch data displacing more valuable data (e.g., demand data). This issue may be mitigated using several methods discussed herein.


[0197] It may be desirable for services that prefetch to balance the benefits they get against the risk of interference. Interference may include, but is not limited to: self-interference, in which a prefetching service hurts its own performance by interfering with its demand requests; cross-interference, in which the service hurts the performance of other applications on the prefetching client, other clients; or both.


[0198] Interference may occur at one or more resources in the system. For example:


[0199] Server: Prefetching may consume extra resources on the server such as CPU time, memory space and disk I/Os.


[0200] Network: Prefetching may cause extra data packets to be transmitted over the Internet and hence may consume network bandwidth, potentially increasing router queue delays and network congestion.


[0201] Client: Prefetching may lead to extra resource requirements even at the client. CPU, memory, and disk usage on clients may increase depending on how aggressively the client prefetches. A client browser's memory and disk caches may be polluted by aggressive prefetching.


[0202] A common way of achieving balance between the benefits and costs of prefetching is to select a threshold probability and fetch objects whose estimated probability of use before the object is modified or evicted from the cache exceeds that threshold. There are at least two concerns with such “magic-number” based approaches. First, it may be difficult for even an expert to set thresholds to optimum values to balance costs and benefits. Although the thresholds may relate closely to the benefits of prefetching, they have little obvious relationship to the costs of prefetching. Second, appropriate thresholds to balance costs and benefits may vary over time as client, network and server load conditions change over seconds. For example, the costs and/or benefits of prefetching may change over a matter of seconds (e.g., due to changing workloads or network congestion), hours (e.g., due to diurnal patterns), and/or months (e.g., due to technology trends).


[0203] In an embodiment, a self-tuning resource management layer that inhibits 25 prefetching from interfering with demand requests may be desirable to solve or mitigate the concerns described above. Such an embodiment may simplify the design of prefetching systems by separating the tasks of prediction and resource management. In such an embodiment, at any given time, prediction algorithms may specify arbitrarily long lists of the most beneficial objects to prefetch. The resource management layer may issue requests for these objects in a manner that inhibits interference with demand requests or other system activities. In addition to simplifying system design, such an embodiment may have performance advantages over static prefetch thresholds. First, such a system may reduce interference by reducing prefetching aggressiveness when resources are scarce. Second, such a system may increase the benefits of prefetching when resources are plentiful by allowing more aggressive prefetching than would otherwise be possible.


[0204] Some proposed prefetching mechanisms suggest modifying the HTTP/1.1 protocol to create a new request type for prefetching. An advantage of extending the protocol may be that clients, proxies, and servers could then distinguish prefetch requests from demand requests and potentially schedule them separately to prevent prefetch requests from interfering with demand requests. However, such mechanisms may not be easily deployable because modifying the protocol may require modifying the widely deployed infrastructure that supports the current protocol. Furthermore, as web servers evolve and increase in their complexity by spanning multiple machines, content delivery networks (CDNs), database servers, dynamic content generation subsystems, etc., modifying CPU, memory, and disk scheduling to separate prefetch requests may become increasingly complex.


[0205] In an embodiment, a client browser may match requests to documents in the browsers' caches based on (among other parameters) the server name and the file name of the object on the server. Thus, files of the same name served by two different server names may be considered different. Additionally, browsers may multiplex multiple client requests to a given server on one or more persistent connections.


[0206] In certain embodiments, as depicted in FIGS. 19A and 19B, clients may receive a list of documents to prefetch from a Hint Server. As used herein, a list of documents recommended for prefetching may be referred to as a “hint list.” Clients may send their access histories to the hint server. The hint server may use either online or offline prediction algorithms to compute hint lists consisting of probable documents that clients may request in the future. Note that in some embodiments the hint server is logically separate from the content server, demand server, or prefetch server but is physically located on the same machine. In other embodiments, the hint server executes on a separate machine.


[0207]
FIG. 19A depicts an embodiment of a one-connection system architecture. In a one-connection architecture, client 1900 may fetch both demand and prefetch requests from the same content server 1902. Files to prefetch may be identified by hint server 1904. Since browsers may multiplex requests over established connections to the servers, and since current browsers typically do not differentiate between demand and prefetch requests, each TCP connection may have interleaved prefetch and demand requests and responses. In some embodiments, browsers may distinguish between demand and prefetch requests and send prefetch requests and demand requests on different network connections between the content server and the client.


[0208] Sharing connections may allow prefetch requests to interfere with demand requests for network and server resources. If interference can be avoided, this system architecture may be easily deployable. In particular, objects fetched from the same server share the domain name of the server. Therefore, unmodified client browsers may be able use cached prefetched objects to service demand requests.


[0209]
FIG. 19B depicts an embodiment of a two-connection system architecture. In the two-connection architecture, client 1900 fetches demand and prefetch requests from different servers (e.g., content server 1906 and prefetch server 1908). This architecture thus segregates demand and prefetch requests on separate network connections. The two-connection architecture may allow the demand and prefetch servers to be hosted either on different machines or on the same one. For example, two application servers listening on different TCP ports may be hosted on a single machine.


[0210] Although, the two-connection architecture may provide additional options for reducing interference, the two-connection architecture appears to be more complicated to deploy than the one-connection architecture. For example, objects with the same names fetched from the different servers may be considered different by the browsers. Therefore, some browsers may not correctly use the prefetched objects to service demand requests. In one embodiment, this challenge may be addressed by modifying the client to allow an object in the cache that was fetched from a prefetch server to satisfy demand requests for the same object fetched from a demand server. In another embodiment, this challenge may be addressed by providing a “wrapper” object from the demand server that refers to an object from the prefetch server such that when the wrapper object is selected for display, the prefetched object is displayed.


[0211] Either a one-connection or a two-connection architecture may be more desirable depending on the circumstances. For example, if server load is a primary concern and network load is known not to be a major issue, then the one-connection architecture may be simpler to implement than the two-connection architecture. For example, if the browser can be modified to separate prefetch and demand requests on different connections, then the one connection architecture may be simple and effective. For example, if the HTTP protocol is modified to allow out-of order delivery of requested objects then a single connection could be used for both demand and prefetch requests with demand requests not waiting behind prefetch requests and with Nice congestion control used when prefetch requests are being served on the connection. The two-connection architecture, however, may manage both network and server interference without modifying current browsers or servers.


[0212] It is believed that an ideal system for avoiding server interference would cause no delay to demand requests in the system and would utilize significant amounts of any spare resources on servers for prefetching. The system would cope with and take advantage of changing workload patterns over various timescales. HTTP request traffic arriving at a server is often bursty. The burstiness may be observable at several scales of observation. Peak rates may exceed the average rate by factors of 8 to 10. For example, FIGS. 20A and 20B show the request load on an IBM server hosting a major sporting event during 1998 averaged over 1-second and 1-minute intervals, respectively. Although such burstiness favors prefetching when the servers are not loaded (e.g., to make use of the spare resources), the prefetching system should gracefully back off when the demand load on the servers increases. As used herein, the prefetch aggressiveness of a prefetching scheme may be referred to as the “pfrate.” The pfrate represents the number of files prefetched for each demand file served.


[0213] In various embodiments, several methods may be used to inhibit prefetching from interfering with demand requests at servers. For example, such methods may include, but are not limited to, local scheduling, a separate prefetch infrastructure, and end-to-end monitoring.


[0214] Local server scheduling may help in the use of the spare capacity of existing infrastructures for prefetching. In principle, existing schedulers for CPUs, memories, etc. may prevent low-priority prefetch requests from interfering with high-priority demand requests. Since these schedulers are intimately tied to the operating system, they may be efficient in utilizing spare capacity for prefetch requests even over fine time scales. Local scheduling may be applicable to either one-connection or two-connection architecture.


[0215] For certain services, server scheduling may not be easily deployable for at least two reasons. First, although several available operating systems support CPU schedulers that can provide strict priority scheduling, few provide memory/cache or disk schedulers that isolate prefetch requests from demand requests. Second, even if an operating system provides the needed support, existing servers may require modification to associate prefetch and demand requests with scheduling priorities as they are serviced.


[0216] A method of avoiding server interference may include using separate servers to serve prefetch and demand requests to achieve complete isolation of prefetch and demand flows. In an embodiment, such a system may be used as a third-party “prefetch distribution network” to supply geographically distributed prefetch servers in a manner analogous to existing content distribution networks.


[0217] End-to-end monitoring periodically measures the response time of servers and adjusts the pfrate accordingly. For example, the pfrate may be increased when measured response time is low (indicating that the serves have spare capacity). Pfrate may be decreased when the measured response time is high (indicating that the servers are heavily loaded). In certain embodiments, end-to-end monitoring may be implemented without making changes to existing servers. End-to-end monitoring may be used in either one-connection or two-connection architecture. End-to-end monitoring may provide less precise scheduling than local schedulers that have access to the internal state of servers and operating systems. A particular concern is whether such an approach can be configured to react to changing loads at fine timescales. An embodiment of an end-to-end monitoring system is disclosed herein. The efficacy of the end-to-end monitoring system is evaluated in comparison to server scheduling.


[0218]
FIG. 21 illustrates an embodiment of a monitor controlled prefetching system. In this embodiment, monitor 1910 controls the size of the hint lists given out by the hint server 1904 based on the server load. In an embodiment, monitor 1910 sends probe packets to server 1902 at random times and measures the response times perceived by the probe packets. In an embodiment, the probe packets are regular HTTP requests to representative objects on server 1902. One concern with using probe packets may be determining an appropriate rate at which probing is done. High rates may make the monitor more reactive to server load, but also add extra load on server 1902. On the other hand, low probe rates may make the monitor slow in reacting, and thus affect demand requests. In an embodiment, the probe rate is selected to balance these concerns.


[0219] In an embodiment, if a probe packet indicates response times exceeding a first threshold, the pfrate is reduced. Similarly, if the response times are under a second threshold, the pfrate is increased. To implement such an embodiment, appropriate thresholds should be selected. Different thresholds may be used for different probe objects so that different paths can be probed through server 1902. Additionally, increment/decrement rates (e.g., how much the pfrate is changed for various response times) should balance the risk of causing interference against the risk of not using available spare capacity. In an embodiment, multiplicative decrease (e.g., reducing the pfrate by ½ when congestion is detected) and additive increase (e.g., increasing the prefetch rate by one unit when congestion is not detected) is used. For stability, the system may limit the rate at which pfrate is adjusted so that the effects of previous adjustments are observed before new adjustments are made. In an embodiment, the pfrate is adjusted at most once per average round trip request time.


[0220] In an embodiment, a monitoring system may be configured to collect five response-time samples spaced randomly between about 100 and 120 milliseconds. In such an embodiment, if all the five samples lie below a threshold, the hint list size may be incremented. If any sample exceeds the threshold, the hint list size may be reduced by one. Additionally, the sample count may be reset so that a new set of five samples is collected.


[0221] A challenge in studying web services may be that prefetch demands, prefetching strategy and/or prefetching effectiveness of the web services may vary widely. As a result, it may not be practical to simulate application-specific prefetching and adaptation. To enable evaluation of a prefetching system, prefetch prediction policies may be ignored. Rather, prefetch systems may be evaluated while prefetching sets of dummy data from arbitrary URLs at the server. The goal of such experiments may be to compare the effectiveness of different resource management alternatives in avoiding server interference with the ideal case (e.g., when no prefetching is done). Resource management alternatives may be compared with respect to metrics including, but not limited to: (i) cost (e.g., the amount of interference in terms of demand response times), and (ii) benefit (e.g., the amount of bandwidth utilized for prefetching).


[0222] A number of different systems were considered in the experiments described herein. The systems included: an ideal case, no-avoidance cases, a prefetching with monitor control case, and a local scheduling case. The ideal case refers to a system wherein no prefetching is done or a separate infrastructure is used for prefetching. The no-avoidance cases refer to prefetching with no interference avoidance. In the studied no-avoidance cases, the pfrate was assigned a constant value of either 1 or 5. Prefetching with monitor control refers to a case in which the pfrate was allowed to vary from zero to a high maximum value (e.g., 100). The pfrate was varied based on monitored response times. Local scheduling refers to using a simple server scheduling policy. For example, in the experiments, the unix nice utility was used as the scheduling utility. Two different http servers on one machine were used. One server ran at a lower priority (+19) to handle prefetch requests. The other server ran at a normal priority to handle demand requests. This implementation of server scheduling was intended as a comparison for monitoring schemes. It is believed that more sophisticated local schedulers may closely approximate the ideal case.


[0223] For experimentally evaluating the first three systems (i.e., the ideal case, the no-avoidance cases, and the prefetching with monitor control case), one server was set up to serve both demand and prefetch requests. However, it is noted that these systems may be used in either one-connection or two-connection architecture. To evaluate the last system (i.e., the local scheduling case), two different servers were configured to serve demand and prefetch requests, respectively. However, it is noted that in certain embodiments, the general approach of local scheduling could be applied to one-connection architecture as well.


[0224] Two different workloads were used in the experiments. The first workload generated demand requests to the server at a constant rate. The second workload was a one hour subset of the IBM sporting event server trace discussed with reference to FIGS. 20A and 20B. The trace was scaled up in time by a factor of two. Thus, requests were generated at twice the rate of the original trace.


[0225] The experimental setup included the Apache HTTP server running on a machine including a 450 MHz Pentium II processor and 128 MB of memory. The client load was generated using httperf running on four different Pentium III 930 MHz machines. Each of the machines used the Linux operating system.


[0226]
FIG. 22 shows the demand response times with varying request arrival rates. As shown in FIG. 22, both the monitor case and the Nice cases closely approximated the behavior of the ideal case in not affecting the demand response times. However, the no-avoidance cases with fixed pfrate values significantly damaged both the demand response times and the maximum demand throughput.


[0227]
FIGS. 23 and 24 show the bandwidth achieved by prefetch requests and their effect on the demand bandwidth with varying demand request rate. For different values of pfrate, the no-avoidance case may adversely affect the demand bandwidth. However, both the Nice and monitor schemes reap significant bandwidth without large decreases in the demand bandwidth. Further, at higher request rates, monitor outperforms Nice by conservatively setting the pfrate to very low values (almost zero). In the experimental setup, Nice could not meet expected performance because the Linux scheduler only prioritizes processes on a coarse granularity. Even with the lowest possible priority values for prefetch requests, the CPU time allotted for demand requests can not be more than forty times the CPU time allotted for prefetch requests (with Nice values of −20 and +19 for demand and prefetch processes, respectively). Difficulties encountered as a result of course granularity may be avoided by using more sophisticated CPU schedulers.


[0228] Results of experiments utilizing the IBM sporting event server workload are shown in FIG. 25. In FIG. 25, the bars for pfrate 1, 2, 5 and 10 correspond to results for the no-avoidance case with the pfrate set according to 1, 2, 5 and 10, respectively. For the monitor case, the performance results are shown for various threshold values (e.g., 2 ms, 8 ms and 15 ms). For the Nice case, the performance results are shown for pfrate settings of 1 and 10.


[0229]
FIG. 25 shows that the no-avoidance scheme may be sensitive to the fixed value of pfrate. At lower values of pfrate, the no-avoidance scheme may prefetch too little. As the pfrate increases, the no-avoidance scheme may achieve more prefetch bandwidth but may also start interfering with demand requests. If pfrate is fixed at a high value, then the demand response time interference may rise sharply. The monitor scheme appears to be somewhat sensitive to the threshold value. However, the monitor scheme seems to have a range of acceptable threshold values. Compared to the no-avoidance scheme, the monitoring scheme achieved more prefetch bandwidth for a given response time cost. The Nice scheme also outperformed the no-avoidance method.


[0230]
FIGS. 26A and 26B illustrate the capability of the monitor to adapt in a timely manner to changes in server load. A selected run of the monitor on the trace is displayed. The monitor has a threshold setting of 8 ms. FIG. 26A depicts one second averages of the pfrate settings by the monitor against the changes in the demand load pattern for the first three minutes of the workload. FIG. 26B depicts one minute averages of the pfrate settings by the monitor against the changes in the demand load pattern for the entire workload. FIGS. 26A and 26B illustrate the ability of the monitor in controlling the pfrate. For example, note that even though the average pfrate setting established by the monitor in this case is 4.79, the monitor outperforms the no-avoidance scheme with a fixed pfrate value of 5 in both response time and prefetch bandwidth (as shown in FIG. 25).


[0231] Mechanisms to avoid network interference may be deployed on clients, intermediate routers and/or servers. For example, clients may reduce the rate at which they receive data from the servers using TCP control mechanisms. How to set the parameters of such TCP control mechanisms or how to deploy them given existing infrastructure is not clear. Router prioritization may avoid interference effectively, since routers have more information of the state of the network. Router prioritization, however, may not be easily deployable in the foreseeable future. In an embodiment, server based network interference avoidance methods may be used. For example, TCP-Nice may be used. As previously described, experimental evidence under a range of conditions and workloads indicates that Nice may cause little or no network interference related to prefetch. Additionally, Nice may utilize a large fraction of the spare capacity in the network.


[0232] Nice may be deployed in two-connection architecture without modifying the internals of servers by configuring systems to use Nice for all connections made to/from the prefetch server. A prototype of Nice currently runs on Linux and porting Nice to other operating systems may be straightforward. In other embodiments, Nice may be used in non-Linux environments by putting a Linux machine running Nice in front of the prefetch server and configuring the Linux machine to serve as a reverse proxy or a gateway. In other embodiments, Nice may be used in a non-Linux environment by porting Nice to the other operating system. In other embodiments, Nice may be used in a non-Linux environment by implementing Nice at user level.


[0233] In an embodiment, Nice may also be deployed in one-connection architecture. For example, the Nice implementation may allow a connection's congestion control algorithm to switch between standard TCP (e.g., Reno) (when serving demand requests) and Nice (when serving prefetch requests). In providing such an implementation, care may be taken to ensure that switching modes does not cause packets already queued in the TCP socket buffer to inherit the new mode. For example, ensuring that packets are sent out in the appropriate modes may require an extension to Nice and coordination between the application and the Nice implementation. Additionally, care may be taken to ensure that demand requests do not become queued behind prefetch requests, thereby causing demand requests to perceive increased latencies. Demand request queuing may result from the standard HTTP/1.1 pipelining procedure which causes replies to be sent in the order requests were received. One way to avoid interference may be to quash all the prefetch requests queued in front of the demand request. For example, an error message (e.g., with HTTP response code 204 indicating no content) with a short lifetime may be sent as a response to the quashed prefetch requests. Additionally, servers may be modified to tell the TCP layer when to use standard TCP and when to use Nice. There have also been proposals in the literature to extend the HTTP protocol to allow replies to be sent in an order different than requests.


[0234] Prefetching may interfere with client performance in at least two ways. First, processing prefetch requests may consume CPU cycles and, for instance, delay rendering of demand pages. Second, prefetched data may displace demand data from the client cache and thus hurt demand hit rates for the prefetching service or other services.


[0235] As with the server interference issues discussed above, in certain embodiments, client CPU interference may be mitigated by modifying the client browser (and, perhaps, the client operating system) to use a local CPU scheduler to ensure that prefetch processing never interferes with demand processing. In some embodiments, client CPU interference may be mitigated by ensuring that prefetch processing does not begin until after the loading and rendering of the demand pages. Although this approach may not reduce cross-interference with other applications at the client, it may avoid a potentially common cause of self-interference of the prefetches triggered by a page delaying the rendering of that page.


[0236] Similarly, in certain embodiments, a storage scheduling algorithm may be used to balance caching prefetched data against caching demand data. Storage scheduling algorithms may typically require modifications to the cache replacement algorithm. For example, Patterson's Transparent Informed Prefetching algorithm, Cao's integrated prefetching and caching algorithm, and Chandra et.al's cache replacement algorithm published at the 2001 World Wide Web Conference describe approaches for scheduling prefetching and demand data that coexist in a cache.


[0237] In some embodiments, a system may place a limit on the ratio of prefetched bytes to demand bytes sent to a client. In other embodiments, a system may set the Expires HTTP header to a value in the near future (e.g., one day in the future) to encourage some clients to evict prefetched documents earlier than they may otherwise. Certain embodiments may include both limiting the ratio of prefetch bytes to demand bytes sent to a client, and causing clients to evict prefetched documents early. Although these methods may utilize tuned thresholds, there is reason to expect that performance will not be too sensitive to these parameters. For example, magnetic disk memory media tend to have a large capacity. This capacity is growing at about 100% per year. Additionally, modest-sized memory media may be effectively infinite for many client web cache workloads. Thus, it is believed that available caches may have room to absorb relatively large amounts of prefetch data with little interference. In another example, hit rates tend to fall relatively slowly as available memory shrinks. This may suggest that relatively large amounts of unused prefetch data will have a relatively small effect on demand hit rate.


[0238]
FIG. 27 illustrates the extent to which limiting the ratio of prefetched bytes to demand bytes sent to a client and setting the Expires HTTP header to a value in the near future may limit the interference of prefetching on hit rates. The experiment used to generate FIG. 27 utilized a 28-day trace of 8000 unique clients from 1996 at the University of California at Berkley. The experiment simulated the hit rates of 1 MB, 10 MB and 30 MB per-client caches. Note that these cache sizes are relatively small given, for example, Internet Explorer's default behavior of using 3% of a disk's capacity (e.g., 300 MB of a 10 GB hard drive) for web caching. The x-axis shows the number of bytes of dummy prefetch data per byte of demand data that are fetched after each demand request. For the experiment, 20% of services used prefetching at the specified aggressiveness and 80% did not prefetch. The demand hit rate of the non-prefetching services was plotted. Ideally, the demand hit rates should be unaffected by prefetching. As FIG. 27 shows, the hit rates tended to fall gradually as prefetching increased. The decrease in hit rates became smaller as larger cache sizes were used. If, for example, a client cache had 30 MB and 20% of services prefetched aggressively enough so that each service prefetched ten times as much prefetch data as the client referenced demand data, demand hit rates fell from 29.9% to 28.7%.


[0239]
FIGS. 28A and 28B depict alternative embodiments of a prefetching mechanism for one-connection and two-connection architectures, respectively. In an embodiment, the one-connection system may include an unmodified browser and server 1902 that acts as both the demand server and the prefetch server. The monitor may control the size of hint lists given out by hint server 1904. In an embodiment, the two-connection system may include an unmodified browser and two or more servers. In such an embodiment, one server may act as prefetch server 1908 and a second server may act as demand server 1906. In an embodiment, prefetch server 1908 may be a copy of demand server 1906. Prefetch server 1908 may run either on a separate machine or on the same machine, but on different ports than the demand server 1906. Front-end 2802 in front of demand server 1906 may be used to intercept certain requests and return appropriate redirection objects as described below. Such an embodiment may eliminate the need to make any modifications to the original demand server. In certain embodiments, the front-end may be integrated with the demand server.


[0240] In an embodiment of a one-connection prefetching system, one or more HTML documents may be augmented with supplemental program code. For example, supplemental program code may include JavaScript code. Alternatively, a zero-pixel frame that loads the prefetched objects may be used instead of JavaScript. Alternatively, the refresh header in HTTP/1.1 could also be exploited to iteratively prefetch a list of objects by setting the refresh time to a very small value. For example, FIG. 29 depicts exemplary JavaScript code. One or more Java applets could have been used instead of the JavaScript in FIG. 29.


[0241] An embodiment of a prefetch method deployable on one-connection architecture is illustrated in FIG. 28A. The method may include a client requesting one or more demand documents. One or more of the demand documents may be augmented with code as described above. When a demand document is received and finishes loading in the browser, a pageOnLoad function may be called. This function may call getPfList( ). The getPfList( ) function may be defined in pfalways.html code (shown in FIG. 30). The pfalways.html code may request the file pflist.html (shown in FIG. 31) from the hint server using the name of the enclosing document, the name of the previous document in history (the enclosing document's referrer) and TURN=1 as arguments. The prediction module in the hint server may generate a list of documents to be prefetched in pflist.html. When pflist.html loads with TURN==i, the preload( ) function in the body of pflist.html may request the current list of documents to be prefetched from the server.


[0242] After the current list of prefetch documents has been loaded, the myOnLoad( ) function may call the getMore( ) function to replace pflist.html by fetching a new version with TURN=i+1. Thus, a long list of prefetch suggestions may be “chained” as a series of short lists. When the hint server has sent everything it wants to, it may return a pflist.html that does not include a call to the getMore( ) function.


[0243] In the exemplary code in FIG. 29, the window's onload function is replaced with a function that first executes the window's original onload function (if any) and then executes a function pageOnLoad which begins prefetching. Those familiar with the art will be aware that in JavaScript, a window's onload function is executed after the window has been loaded and rendered to the screen. The pageOnLoad function calls a function getPFlist embedded in a HTML Frame object called myiframe. This function is called with an argument document.referrer, which in JavaScript refers to the URL of the current document (e.g., the document represented in FIG. 29). In this embodiment, the function getPFlist is stored in a file pfalways.html, an embodiment of which is illustrated in FIG. 30.


[0244] In the exemplary code illustrated in FIG. 30, the JavaScript getPFList function replaces the current frame's contents (e.g., pfalways.html) with a new document. In this embodiment, the new document is: “http://<hint-server>/pflist.html+PCOOKIE=<document-referrer>+<prevref>+TURN=1” where <hint-server> is the identity of the hint server (e.g., a server DNS name or IP address and port), <document-referrer>is the name of the current document (e.g., the URL of pfalways.html), and <prevref>is the argument passed in to getPFList (e.g., the URL of the document depicted in FIG. 29). Thus, the hint server receives a request that includes the name of the enclosing demand document, which may be used to construct histories of demand document reference patterns by prefetch prediction algorithms. Finally, the TURN=1 argument in the new document.location is used to segment hint lists into pieces; TURN=1 means that the first piece of the relevant hint list should be sent.


[0245] In the exemplary code illustrated in FIG. 31, the JavaScript code includes a preload function. This function thus calls preload on a list of URLs to be prefetched. The preload function loads each of these objects into the cache. Note that in JavaScript, this is accomplished by creating an Image object for each URL to be fetched regardless of the URLs actual type. Once all specified objects have been prefetched, preload returns. At this point, JavaScript has completed loading the body of the document, so it calls the document's onload function which in this case is called myOnLoad. The preload( ) call in the myOnLoad function in FIG. 31 is only utilized for the two-connection case and is discussed below. MyOnLoad calls getMore. GetMore replaces the current frame with a new document in a manner similar to what is done in pfalways in FIG. 30. Note that the effect of this procedure is to repeatedly load code similar to that in FIG. 31, but each time (a) different URLs are designated for prefetching, and (b) each time TURN is incremented. Thus, a series of iterations may each fetch a different small piece of a larger hint list. This iteration may end when a new demand document FIG. 29 is loaded or when the hint server runs out of things to prefetch and returns an empty pflist.html file rather than a file like that in FIG. 31.


[0246] In the case of a demand request for a document previously prefetched, the client may retrieve the document from the cache just as with any other cache hit.


[0247] In an embodiment, a prefetching method deployable in a two-connection architecture may include the same basic mechanisms for prefetching described above. Because browsers may cache documents using the server name and document name, however, additional steps may be required to ensure that demand requests for previously prefetched objects (e.g., objects that are now cached) can be serviced by the prefetched objects.


[0248] For example, to use a prefetched document in the cache when a demand request arrives for it, a redirection object may be retrieved from the demand server. After receiving a prefetched document from the prefetch server, a request for the same object may be sent to the demand server. The demand server may respond with a redirection object (also called a “wrapper”) that points to the corresponding document on the prefetch server. In this way, when a demand request arrives later for the prefetched document, the corresponding wrapper stored in the cache may redirect the request to the prefetched document, which is also found in the cache.


[0249] In an embodiment, a copy of content on the demand server may be made for the prefetch server. Relative links in the prefetch server may be changed to absolute links to the demand server. Absolute links to inline objects may be changed to be absolute links to the prefetch server. In an embodiment, no change is made to the content of the demand server (except that in some embodiments supplemental code may be added to one or more files on the server). In an embodiment, the new call to preload in the code depicted in FIG. 31 may be intercepted by the front end that returns the corresponding wrapper.


[0250] In an additional embodiment, a predictor module on the hint server may be modified such that inline objects are sent before the HTML files that refer to them. Such an embodiment may prevent demand requests from being incorrectly sent to the prefetch server in case of partial transfer of prefetch documents.


[0251] In certain embodiments, after getting prefetched documents from the prefetch server, the myOnLoad( ) code depicted in FIG. 31 may also send a request for the corresponding HTML file to the demand server to obtain a suitable redirection object. The HTTP/1.1 “referrer” field for this request may be set to the current file pflist.html, thus distinguishing it from regular demand requests.


[0252] In certain embodiments, the front-end may allow regular demand requests to pass through to the demand server. However, when a request for a wrapper is received, the front-end may return an appropriate redirection object. As previously mentioned, the front-end may detect a request for a wrapper by observing the referrer field. A redirection object may include a short JavaScript file that sets its document.location property to the prefetched object's URL.


[0253] In an embodiment in which a previously prefetched document is requested as a demand document, a client implementing methods as described above may check cache to determine if the document is already present in cache. The client may identify the redirection object in the cache. The redirection object may replace itself with the prefetched document from the cache. Inline objects in the prefetched document may point to objects from the prefetch server which are also found in the cache. Links in the prefetched document may point to objects in the demand server.


[0254] In such embodiments, it is feasible that a prefetched object might be evicted from the cache before a wrapper that refers to the evicted object. Such a chain of events may cause the client to send a demand request for the evicted object to the prefetch server. However, the likelihood of such incidents may be reduced by setting the expiration time of the wrapper to a value smaller than the prefetched object.


[0255] In an embodiment, for each prefetched document, a wrapper may be fetched from the demand server to enable redirection. Since wrappers are small in size (e.g., about 200 bytes), overhead of serving wrappers may be minimal. In an embodiment, a wrapper is sent only for a complete document (including inline objects), not for every prefetched object. As an alternative to using wrapper objects, the client may maintain state to store information about whether a document has already been prefetched. Server content could be augmented with a code to execute on a link's onClick event that checks a database before requesting a document from the demand server or prefetch server. Methods of maintaining state information on the client are known in the art.


[0256] In an embodiment, the hint server may use any prediction algorithm. Since each client may fetch a pflist.html for each HTML document, the hint server may see a trace of all HTML documents requested by each client. The hint server may therefore maintain a detailed history of client behavior and use a standard algorithm proposed in the literature or an algorithm using more service specific information.


[0257] In an embodiment, a hint server may “chain” prediction lists to avoid overwhelming a client with a long hint list. Hint servers may send a small number of predictions to clients and wait for the clients to request more predictions. In a perfectly non-interfering environment, the length of the hint lists may only be limited by sizes beyond which no useful predictions can be generated. To limit client cache pollution, however, the length of hint lists may be otherwise limited. The ordering of predictions in the list generated by servers may be such that inline objects are requested before the referring page itself. This may reduce the possibility of a concurrent demand request for the same document being incorrectly sent to the prefetch server.


[0258] Experiments were conducted using a prefetching system configured in two-connection architecture as shown in FIG. 28B. The system included a computer system using Apache's HTTP server software running on two different ports on the same machine. One port was used to serve demand requests and one port was used to serve prefetch requests. The front-end was implemented as a module combined with the server (i.e., the Apache process). The hint server was implemented in Java. The hint server ran on a separate machine from the prefetch and demand servers. The hint server used offline created prediction lists generated using the PPM algorithm. The monitor ran as a separate thread on same machine as the hint server. The content munger was also implemented in Java. All of the content was munged offline.


[0259] An experiment was conducted to evaluate the overhead incurred by requiring the demand server to serve redirection wrapper objects as described with reference to one embodiment of the two-connection architecture. Four different cases were tested, including: 1) no modifications to the server; 2) server modifications, but no prefetching; 3) prefetching files; and 4) prefetching wrappers. The experiment measured the sustained throughput (in connections/second) by the server for each case. Results for each case are depicted in FIGS. 32 and 33.


[0260] The difference between plots for case 1 and case 2 in FIGS. 32 and 33 illustrates the overhead of executing the front-end logic added before the server to check the referrer field and send wrappers accordingly. For both case 1 and case 2 plots, httperf fetches one 10 KB file per connection in FIG. 14 and one 50 KB file per connection in FIG. 15. The case 3 plot shows the throughput of the demand server when serving actual files for different values of pfrate. The case 4 plot shows the throughput of the demand server when serving wrappers corresponding to requested files for different values of pfrate. As the pfrate is varied, the throughput falls in both case 3 and case 4. The case 4 plot falls less steeply, however, because the wrapper size is much smaller than the actual file. Comparing FIGS. 32 and 33 shows that the overhead is less burdensome for larger file sizes. It is believed that the experiment is pessimistic since wrappers need only be sent with .html documents and not with all fetched objects. Thus, the number of wrappers served in an actual system may be considerably smaller than the number of wrappers served in the tested system. It is also noted that embodiments presented herein which include end-to-end monitoring may detect the additional load of serving the wrappers and throttle the prefetching as needed.


[0261] Additional experiments were conducted to compare three system configurations at a fixed pfrate. The system configurations included a prefetch case including a monitor and TCP-Nice, a no-prefetch case system with no prefetching, and a no-avoidance prefetch case with prefetching but interference avoidance scheme. For these experiments, the client was a Sony Laptop with an AMD Athlon 1 GHz processor and 256 MB of memory. The client was connected to the Internet through a cable modem link. The HTTP server was the same machine as for the previous experiments. The Hint Server ran on a Pentium III 930 MHz machine with 256 MB of RAM loaded with the Red Hat Linux 7.1 package. On an unloaded network, the round trip time from client to server was about 10 ms and the bandwidth was about 1 Mbps. The workload consisted of demand accesses made by 41 clients in a one-hour subset of the IBM sporting event server trace. This workload contains 1590 unique files, and the network demand bandwidth is about 77 kbps.


[0262] The average demand response times observed using the different system configurations are shown in FIG. 34. Both the prefetch case and the no-avoidance prefetch case achieved hit rates of 88.3% (compared to 49.7% for the no-prefetch case). The prefetch case caused less interference, however, resulting in significantly better miss times, and leading to a 25% reduction in end-to-end response times.


[0263] In this experiment, the loads on the network and server were light enough to result in performance improvements due to prefetching even without a monitor or interference avoidance scheme. Aggressive prefetching without a monitor, however, may cause response times to increase by a factor of 4.


[0264] Embodiments presented herein include end-to-end congestion control methods optimized to support background transfers. The end-to-end methods may nearly approximate the ideal router-prioritization strategy by (a) inhibiting interference with demand flows and (b) utilizing significant fractions of available spare network bandwidth. The methods are designed to support massive replication of data and services, where hardware (e.g., bandwidth, disk space, and processor cycles) is consumed to help humans be more productive. Massive replication systems may be designed as if bandwidth were essentially free. Nice provides a reasonable approximation of such an abstraction.


[0265] While the present invention has been described with reference to particular embodiments, it will be understood that the embodiments are illustrated and that the invention scope is not so limited. Any variations, modifications, additions and improvements to the embodiments described are possible. These variations, modifications, additions and improvements may fall within the scope of the invention as detailed within the following claims.


Claims
  • 1. A method, comprising: providing a first set of prefetch data, wherein providing the first set of prefetch data is inhibited from interfering with demand requests on a network; and providing a second set of prefetch data, wherein the second set of prefetch data is inhibited from interfering with demand requests at a server.
  • 2. The method of claim 1, further comprising providing a third set of prefetch data, wherein the third set of prefetch data is inhibited from interfering with demand requests at a client.
  • 3. The method of claim 2, wherein determining the third set of prefetch data comprises delaying initiation of prefetching until demand requests have been met.
  • 4. The method of claim 2, wherein determining the third set of prefetch data comprises prioritizing demand requests ahead of prefetch requests in cache replacement.
  • 5. The method of claim 1, further comprising sending the second set of prefetch data to one or more clients via the network.
  • 6. The method of claim 5, wherein a rate at which the second set of prefetch data is sent to one or more clients depends on the load on the server at about the time the second set of prefetch data is sent.
  • 7. The method of claim 1, wherein the second set of prefetch data is provided using server prioritization.
  • 8. The method of claim 1, wherein the second set of prefetch data is provided using a response time monitor to determine an amount of data to provide in the second set of prefetch data.
  • 9. The method of claim 8, wherein the response time monitor measures response time of one or more demand requests.
  • 10. The method of claim 8, wherein the response time monitor initiates one or more measurement requests and measures the response time of the one or more measurement requests.
  • 11. The method of claim 8, wherein the amount of data provided in the second set of prefetch data is reduced if one or more response times measured by the response time monitor exceed one or more threshold values.
  • 12. The method of claim 8, wherein the amount of data provided in the second set of prefetch data is increased if one or more response times measured by the response time monitor are below one or more threshold values.
  • 13. The method of claim 1, wherein the second set of prefetch data is provided using a response time monitor to determine a rate of providing the second set of prefetch data.
  • 14. The method of claim 13, wherein the response time monitor measures the response time of one or more demand requests.
  • 15. The method of claim 13, wherein the response time monitor initiates one or more measurement requests and measures the response time of the one or more measurement requests.
  • 16. The method of claim 13, wherein the rate of providing prefetch data is reduced if one or more response times measured by the response time monitor exceed one or more threshold values.
  • 17. The method of claim 13, wherein the rate of providing prefetch data is increased if one or more response times measured by the response time monitor are below one or more threshold values.
  • 18. The method of claim 1, wherein the first set of prefetch data is provided using router prioritization.
  • 19. The method of claim 1, wherein the first set of prefetch data is provided using a network congestion control protocol that inhibits interference with demand requests.
  • 20. The method of claim 1, wherein the first set of prefetch data is provided using a network congestion control protocol, wherein the network congestion control protocol measures the time between sending at least one amount of data and receiving acknowledgement of receipt of at least one amount of data, and wherein the network congestion control protocol reduces network sending rate by at least a multiplicative factor if a threshold fraction of times between sending at least one amount of data and receiving acknowledgement of receipt of at least one amount of data exceed a threshold round trip time.
  • 21. The method of claim 1, wherein providing the first set of prefetch data comprises assessing whether significant network congestion exists on the network and sizing the first set of prefetch data such that the first set of prefetch data does not significantly increase the network congestion.
  • 22. A method, comprising: receiving a request for one or more data packets; sending one or more data packets; determining a time that a first data packet was sent; receiving an acknowledgement of receipt of at least the first data packet; determining a time that the acknowledgement of receipt of the first data packet was received; determining an estimate of network congestion based at least in part on the time the first data packet was sent and the time the acknowledgement of receipt of the first data packet was received; determining if the estimate of network congestion indicates the existence of significant network congestion; and if the estimate of network congestion indicates that significant network congestion exists, then reducing the size of a congestion window.
  • 23. The method of claim 22, wherein significant congestion is determined to exist if the estimate of network congestion exceeds a determined fraction of the estimated bottleneck queue size.
  • 24. The method of claim 22, wherein reducing the size of the congestion window comprises reducing the size of the congestion window by at least a multiplicative factor.
  • 25. The method of claim 22, wherein reducing the size of the congestion window comprises reducing the size of the congestion window to one half of its previous size.
  • 26. The method of claim 22, wherein reducing the size of the congestion window comprises decreasing the size of the congestion window to less than one data packet.
  • 27. The method of claim 22, wherein the congestion window determines the amount of prefetch data desired to be in transit at any one time.
  • 28. The method of claim 22, wherein sending one or more data packets comprises sending one or more pointers to one or more requested data packets.
  • 29. The method of claim 22, wherein sending one or more data packets comprises sending one or more requested data packets.
  • 30. The method of claim 22, wherein determining the estimate of network congestion comprises determining a number of round trip times received during an interval that exceed a determined threshold round trip time, wherein a round trip time comprises an elapsed time between the time that a data packet is sent and the time that an acknowledgement of receipt of the data packet is received.
  • 31. The method of claim 22, wherein determining the estimate of network congestion comprises determining a number of round trip times received during an interval that exceed a threshold round trip time, wherein a round trip time comprises an elapsed time between the time that a data packet is sent and the time that an acknowledgement of receipt of the data packet is received; and wherein significant network congestion is determined to exist if the number of round trip times that exceed the threshold round trip time during the interval exceeds a threshold number.
  • 32. The method of claim 22, wherein determining the estimate of network congestion comprises determining a number of round trip times received during an interval that exceed a threshold round trip time, wherein a round trip time comprises an elapsed time between the time that a data packet is sent and the time that an acknowledgement of receipt of the data packet is received; and wherein significant network congestion is determined to exist if the number of round trip times that exceed the threshold round trip time during the interval exceeds a threshold fraction of the number of round trip times measured.
  • 33. The method of claim 22, wherein determining the estimate of network congestion comprises determining a number of round trip times received during an interval that exceed a threshold round trip time, wherein a round trip time comprises an elapsed time between the time that a data packet is sent and the time that an acknowledgement of receipt of the data packet is received; and wherein significant network congestion is determined to exist if at least a first fraction of measured round trip times during an interval exceed a threshold; and wherein a threshold is the uncongested round trip time plus a second fraction of the difference between an estimated congested round trip time and an estimated uncongested round trip time.
  • 34. The method of claim 33, wherein the estimated uncongested round trip time comprises a minimum determined round trip time for a data packet.
  • 35. The method of claim 33, wherein the estimated uncongested round trip time comprises a minimum determined round trip time for a data packet over a defined period of time.
  • 36. The method of claim 33, wherein the estimated uncongested round trip time comprises a decaying running average of minimum determined round trip times.
  • 37. The method of claim 33, wherein the estimated uncongested round trip time comprises a minimum determined round trip time within a determined percentile of round trip times for data packets sent.
  • 38. The method of claim 33, wherein the estimated congested round trip time comprises a maximum determined round trip time for a data packet.
  • 39. The method of claim 33, wherein the estimated congested round trip time comprises a maximum determined round trip time for a data packet over a defined period of time.
  • 40. The method of claim 33, wherein the estimated congested round trip time comprises a decaying running average of maximum determined round trip times.
  • 41. The method of claim 33, wherein the estimate of the congested round trip time comprises a maximum determined round trip time within a determined percentile of round trip times for data packets sent.
  • 42. The method of claim 22, further comprising increasing the size of a congestion window if the estimate of network congestion is not greater than a determined fraction of the congestion window.
  • 43. The method of claim 22, further comprising linearly increasing the size of a congestion window if the estimate of network congestion is not greater than a determined fraction of the congestion window.
  • 44. The method of claim 22, further comprising increasing the size of a congestion window by a determined number of data packets per determined number of round trip times if the estimate of network congestion is not greater than a determined fraction of the congestion window.
  • 45. The method of claim 22, further comprising increasing the size of a congestion window by a determined number of data packets and by a determined multiplicative factor per determined number of round trip times if the estimate of network congestion is not greater than a determined fraction of the congestion window
  • 46. The method of claim 22, further comprising determining a rate at which to send one or more data packets.
  • 47. The method of claim 22, further comprising sending a second data packet, wherein a time period between sending of the first data packet and sending of the second data packet is determined based on the size of the congestion window.
  • 48. The method of claim 22, wherein sending one or more data packets comprises sending at least a second data packet, wherein the method further comprises determining if an acknowledgement of receipt of the second data packet is received within a determined time period; and resending the second data packet if the acknowledgment of receipt of the second data packet is not received within the determined time period.
  • 49. The method of claim 48, further comprising reducing the size of the congestion window if the second data packet is resent.
  • 50. The method of claim 22, wherein sending one or more data packets comprises sending at least a second data packet, wherein the method further comprises determining if a determined time period has expired since sending the second data packet without receiving an acknowledgement of receipt of the second data packet; and resending the second data packet if the determined time period has expired since sending the second data packet without receiving an acknowledgement of receipt of the second data packet.
  • 51. The method of claim 50, further comprising reducing the size of the congestion window if the second data packet is resent.
  • 52. The method of claim 22, wherein determining the estimate of network congestion comprises providing an estimate of an uncongested throughput; providing an estimate of a congested throughput; determining a round trip time of the first data packet; and determining the estimate of network congestion based on estimated uncongested throughput, the congested throughput and the round trip time of the first data packet.
  • 53. A carrier medium comprising program instructions, wherein the program instructions are executable to implement a method of: receiving a request for one or more data packets; sending one or more data packets; determining a time that a first data packet was sent; receiving an acknowledgement of receipt of at least the first data packet; determining a time that the acknowledgement of receipt of the first data packet was received; determining an estimate of network congestion based at least in part on the time the first data packet was sent and the time the acknowledgement of receipt of the first data packet was received; determining if the estimate of network congestion indicates the existence of significant network congestion; and reducing the size of a congestion window if the estimate of network congestion indicates that significant network congestion exists.
  • 54. A method, comprising: determining end-to-end network performance; determining an estimate of network congestion based at least in part on the end-to-end network performance; and reducing the size of a congestion window if significant network congestion is determined to exist.
  • 55. The method of claim 54, wherein reducing the size of the congestion window comprises reducing the size of the congestion window by at least a multiplicative factor.
  • 56. The method of claim 54, wherein reducing the size of the congestion window comprises reducing the size of the congestion window to one half of its previous size.
  • 57. The method of claim 54, wherein reducing the size of the congestion window comprises decreasing the size of the congestion window to less than one data packet.
  • 58. The method of claim 54, wherein determining the estimate of network congestion comprises determining a round trip time of a first data packet and determining the estimate of network congestion based on the round trip time and the size of the congestion window.
  • 59. The method of claim 54, wherein determining end-to-end network performance comprises determining a round trip time for one or more data packets sent via the congestion window.
  • 60. The method of claim 54, wherein determining end-to-end network performance comprises determining a round trip time for one or more data packets sent via the congestion window, and wherein determining the estimate of network congestion comprises determining a number of round trip times during an interval that exceed a determined threshold round trip time.
  • 61. The method of claim 54, wherein determining end-to-end network performance comprises determining a round trip time for one or more data packets sent via the congestion window, wherein determining the estimate of network congestion comprises determining a number of round trip times during an interval that exceed a determined threshold round trip time, and wherein significant network congestion is determined to exist if the number of round trip times that exceed the threshold round trip time during the interval exceeds a threshold number.
  • 62. The method of claim 54, wherein determining end-to-end network performance comprises determining a round trip time for one or more data packets sent via the congestion window, wherein determining the estimate of network congestion comprises determining a number of round trip times during an interval that exceed a determined threshold round trip time, and wherein significant network congestion is determined to exist if the number of round trip times that exceed the threshold round trip time during the interval exceeds a fraction of the difference between an estimated congested round trip and an estimated uncongested round trip time.
  • 63. The method of claim 62, wherein the estimated uncongested round trip time comprises a minimum determined round trip time for a data packet.
  • 64. The method of claim 62, wherein the estimated uncongested round trip time comprises a minimum determined round trip time for a data packet over a defined period of time.
  • 65. The method of claim 62, wherein the estimated uncongested round trip time comprises a decaying running average of minimum determined round trip times.
  • 66. The method of claim 62, wherein the estimated uncongested round trip time comprises a minimum determined round trip time within a determined percentile of round trip times for data packets sent.
  • 67. The method of claim 62, wherein the estimated congested round trip time comprises a maximum determined round trip time for a data packet.
  • 68. The method of claim 62, wherein the estimated congested round trip time comprises a maximum determined round trip time for a data packet over a defined period of time.
  • 69. The method of claim 62, wherein the estimated congested round trip time comprises a decaying running average of maximum determined round trip times.
  • 70. The method of claim 62, wherein the estimated congested round trip time comprises a maximum determined round trip time within a determined percentile of round trip times for data packets sent.
  • 71. The method of claim 54, wherein determining end-to-end network performance comprises determining a round trip time for one or more data packets sent via the congestion window, wherein determining the estimate of network congestion comprises providing an estimate of an uncongested round trip time for a data packet; providing an estimate of a congested round trip time of a data packet; determining a round trip time of the first data packet; and determining the estimate of network congestion based on the estimated uncongested round trip time, the estimated congested round trip time and the round trip time of the first data packet.
  • 72. The method of claim 71, wherein providing the estimate of the uncongested round trip time for a data packet comprises determining a minimum round trip time for a data packet.
  • 73. The method of claim 71, wherein providing the estimate of the uncongested round trip time for a data packet comprises determining a minimum round trip time for a data packet over a defined period of time.
  • 74. The method of claim 71, wherein providing the estimate of the uncongested round trip time for a data packet comprises determining a decaying running average of minimum round trip times for data packets.
  • 75. The method of claim 71, wherein providing the estimate of the uncongested round trip time for a data packet comprises determining a minimum round trip time for a data packet within a determined percentile of round trip times for data packets sent.
  • 76. The method of claim 71, wherein providing the estimate of the congested round trip time for a data packet comprises determining a maximum round trip time for a data packet.
  • 77. The method of claim 71, wherein providing the estimate of the congested round trip time for a data packet comprises determining a maximum round trip time for a data packet over a defined period of time.
  • 78. The method of claim 71, wherein providing the estimate of the congested round trip time for a data packet comprises determining a decaying running average of maximum round trip times for data packets.
  • 79. The method of claim 71, wherein providing the estimate of the congested round trip time for a data packet comprises determining a maximum round trip time for a data packet within a determined percentile of round trip times for data packets sent.
  • 80. The method of claim 54, further comprising increasing the size of the congestion window if the estimate of network congestion is not greater than a determined fraction of the congestion window.
  • 81. The method of claim 54, further comprising linearly increasing the size of the congestion window if the estimate of network congestion is not greater than a determined fraction of the congestion window.
  • 82. The method of claim 54, further comprising increasing the size of the congestion window by one data packet if the estimate of network congestion is not greater than a determined fraction of the congestion window.
  • 83. The method of claim 54, further comprising determining a rate at which to send one or more data packets.
  • 84. The method of claim 54, wherein determining end-to-end network performance comprises determining an estimate of throughput at a particular time.
  • 85. The method of claim 54, wherein determining end-to-end network performance comprises determining an estimate of throughput at a particular time, and wherein determining an estimate of network congestion comprises providing an estimate of an uncongested throughput; providing an estimate of a congested throughput; and determining the estimate of network congestion based on the throughput at the particular time, the estimate of uncongested throughput and the estimate of congested throughput.
  • 86. A method of sending a plurality of data packets via a network, the method comprising: sending a first plurality of data packets over a network using a first protocol, wherein the first plurality of data packets comprises one or more demand data packets, wherein a demand data packet comprises a data packet requested by a user; sending a second plurality of data packets over the network using a second protocol, wherein the second plurality of data packets comprises one or more prefetch data packets, wherein a prefetch data packet comprises a data packet not explicitly requested by the user; and wherein the second protocol is configured so that the sending of the second plurality of data packets is inhibited from interfering with the sending of the first plurality of data packets.
  • 87. The method of claim 86, wherein the second protocol is configured to reduce the size of a congestion window associated with the second plurality of data packets to inhibit sending of the second plurality of data packets from interfering with the sending of the first plurality of data packets.
  • 88. The method of claim 87, wherein reducing the size of the congestion window comprises reducing the size of the congestion window to one half of its previous size.
  • 89. The method of claim 87, wherein reducing the size of the congestion window comprises decreasing the size of the congestion window to less than one data packet.
  • 90. The method of claim 87, wherein the congestion window determines the amount of prefetch data desired to be in transit at any one time.
  • 91. The method of claim 86, further comprising sending one or more pointers to one or more data packets.
  • 92. The method of claim 86, wherein sending the second plurality of data packets is inhibited from interfering with the sending the first plurality of data packets by determining an estimate of network congestion and adjusting the size of a congestion window associated with the second plurality of data packets to inhibit interference with sending of the first plurality of data packets.
  • 93. The method of claim 92, wherein determining the estimate of network congestion comprises determining a round trip time of a particular data packet and determining the estimate of network congestion based on the round trip time and the size of a congestion window.
  • 94. The method of claim 92, wherein determining the estimate of network congestion comprises providing an estimate of an uncongested round trip time for a data packet; providing an estimate of a congested round trip time of a data packet; determining a round trip time of a particular data packet; and determining the estimate of network congestion based on the estimated uncongested round trip time, the estimated congested round trip time and the round trip time of the particular data packet.
  • 95. The method of claim 94, wherein providing the estimate of the uncongested round trip time for a data packet comprises determining a minimum round trip time for a data packet.
  • 96. The method of claim 94, wherein providing the estimate of the uncongested round trip time for a data packet comprises determining a minimum round trip time for a data packet over a defined period of time.
  • 97. The method of claim 94, wherein providing the estimate of the uncongested round trip time for a data packet comprises determining a decaying running average of minimum round trip times for data packets.
  • 98. The method of claim 94, wherein providing the estimate of the uncongested round trip time for a data packet comprises determining a minimum round trip time for a data packet within a determined percentile of round trip times for data packets sent.
  • 99. The method of claim 94, wherein providing the estimate of the congested round trip time for a data packet comprises determining a maximum round trip time for a data packet.
  • 100. The method of claim 94, wherein providing the estimate of the congested round trip time for a data packet comprises determining a maximum round trip time for a data packet over a defined period of time.
  • 101. The method of claim 94, wherein providing the estimate of the congested round trip time for a data packet comprises determining a decaying running average of maximum round trip times for data packets.
  • 102. The method of claim 94, wherein providing the estimate of the congested round trip time for a data packet comprises determining a maximum round trip time for a data packet within a determined percentile of round trip times for data packets sent.
  • 103. The method of claim 86, further comprising increasing the size of a congestion window associated with the second plurality of data packets if potential interference with sending of the first plurality of data packets is not detected.
  • 104. The method of claim 86, wherein the second plurality of data packets is inhibited from interfering with the sending of the first plurality of data packet by adjusting the size of a congestion window.
  • 105. The method of claim 86, wherein the second plurality of data packets is inhibited from interfering with the sending of the first plurality of data packet by adjusting the size of a congestion window; and wherein if an estimate of network congestion is not greater than a determined fraction of the congestion window, then increasing the size of the congestion window.
  • 106. The method of claim 86, further comprising determining a rate at which to send one or more prefetch packets.
  • 107. The method of claim 86, wherein the length of a time period between sending of a first prefetch data packet and sending of a second prefetch data packet is determined based on the size of a congestion window.
  • 108. The method of claim 86, wherein sending the second plurality of data packets comprises sending at least a first prefetch data packet; determining if an acknowledgement of receipt of the first prefetch data packet is received within a determined time period; and resending the first prefetch data packet if the acknowledgment of receipt of the first prefetch data packet is not received within the determined time period.
  • 109. The method of claim 108, further comprising reducing the size of a congestion window associated with the second plurality of data packets if the first prefetch data packet is resent.
  • 110. The method of claim 86, wherein sending the second plurality of data packets comprises sending at least a first prefetch data packet; determining if a determined time period has expired without receiving an acknowledgement of receipt of the first prefetch data packet; and resending the first prefetch data packet if the determined time period has expired without receiving an acknowledgement of receipt of the first prefetch data packet.
  • 111. The method of claim 110, further comprising reducing the size of a congestion window associated with the second plurality of data packets if the first prefetch data packet is resent.
  • 112. The method of claim 86, wherein inhibiting the second plurality of data packets from interfering with the sending of the first plurality of data packet comprises providing an estimate of an uncongested throughput; providing an estimate of a congested throughput; determining a round trip time of a particular data packet; and determining an estimate of network congestion based on the estimated uncongested throughput, the estimated congested throughput and the round trip time of particular data packet.
  • 113. A system, comprising: at least one server coupled to a network, wherein at least one server is configured to send demand data packets via the network using a first protocol during use; wherein at least one server is configured to send prefetch data packets via the network using a second protocol during use; and wherein the second protocol is configured to inhibit prefetch data packets from interfering with the sending of demand data packets.
  • 114. The system of claim 113, further comprising a hint server coupled to the network, wherein the hint server is configured to send hint lists via the network during use.
  • 115. The system of claim 113, further comprising a hint server coupled to the network, wherein the hint server is configured to estimate congestion on at least one server and to send hint lists via the network during use, wherein hint lists sent by the hint server are sized to inhibit prefetching of hint list objects from causing congestion on at least one server.
  • 116. The system of claim 113, further comprising a hint server coupled to the network, wherein the hint server is configured to estimate congestion on at least one server by measuring server response time and to send hint lists via the network during use, wherein hint lists sent by the hint server are sized to inhibit prefetching of hint list objects from causing congestion on at least one server.
  • 117. The system of claim 113, further comprising a hint server coupled to the network, wherein the hint server is configured estimate congestion on at least one server by measuring server response time and detecting congestion when measured server response time exceeds a value and to send hint lists via the network during use, wherein hint lists sent by the hint server are sized to inhibit prefetching of hint list objects from causing congestion on at least one server.
  • 118. The system of claim 113, further comprising a hint server coupled to the network, wherein the hint server is configured to estimate congestion on at least one server by measuring server response time and to send hint lists via the network during use, wherein hint lists sent by the hint server are sized to inhibit prefetching of hint list objects from causing congestion on at least one server by increasing total hint list size across all clients during an interval when no server congestion is detected and reducing total hint list size across all clients during an interval when server congestion is detected.
  • 119. The system of claim 113, further comprising a hint server coupled to the network, wherein the hint server is configured estimate congestion on at least one server and to send hint lists via the network during use, wherein hint lists sent by the hint server are sized to utilize a significant portion of available server capacity for prefetching of hint list objects.
  • 120. The system of claim 113, further comprising a hint server coupled to the network, wherein the hint server is configured to determine an estimate of probability of one or more data objects on at least one server being requested as a demand request during use.
  • 121. The system of claim 113, wherein at least one server is configured to prioritize the service of demand requests over the service of prefetch requests.
  • 122. The system of claim 113, further comprising a front-end application between the network and at least one server, wherein the front-end application is configured to determine whether a received request is a prefetch request or a demand request during use.
  • 123. The system of claim 113, further comprising a front-end application between the network and at least one server, wherein the front-end application is configured to determine whether a received request is a prefetch request or a demand request; and to route the request to a demand server during use if the received request is a demand request.
  • 124. The system of claim 113, further comprising a front-end application between the network and at least one server, wherein the front-end application is configured to determine whether a received request is a prefetch request or a demand request; and to provide a redirection data object in response to the request during use if the received request is a prefetch request.
  • 125. The system of claim 113, wherein at least one server comprises a demand server.
  • 126. The system of claim 113, wherein at least one server comprises a prefetch server.
  • 127. The system of claim 113, wherein at least one server comprises a demand server and a prefetch server.
  • 128. The system of claim 113, wherein at least one server comprises a demand server, wherein a demand server comprises one or more data objects associated via one or more relative references; and wherein at least one server comprises a prefetch server; wherein a prefetch server comprises one or more duplicate data objects associated via one or more absolute references, wherein a duplicate data object comprises a data object that is substantially a duplicate of a data object of a demand server.
  • 129. The system of claim 113, wherein at least one server is configured to respond to requests using the first protocol or the second protocol depending on whether a received request is a prefetch request or a demand request.
  • 130. The system of claim 113, wherein at least one server is configured to respond to requests using the first protocol or the second protocol on a connection by connection basis.
  • 131. The system of claim 113, further comprising a monitor coupled to the network, wherein the monitor is configured to determine an estimate of server congestion during use.
  • 132. The system of claim 113, wherein the second protocol comprises a TCP-NICE protocol.
  • 133. A method, comprising: providing a transmission path for transmission of data packets between two or more computer systems, wherein the transmission path comprises at least one router buffer; determining an estimate of congestion along the transmission path at a time when at least one router buffer is not full; and reducing a size of a congestion window by at least a multiplicative factor if significant congestion is determined to exist according to the estimate of congestion.
  • 134. The method of claim 133, wherein determining the estimate of congestion comprises determining an estimated uncongested round trip time for transmission of a data packet; determining an estimated congested round trip time for transmission of a data packet; determining an actual round trip time for transmission of a particular data packet; and comparing the estimated uncongested round trip time, the estimated congested round trip time, and the actual round trip time to determine an estimate of congestion along the transmission path.
  • 135. The method of claim 134, wherein determining the estimated uncongested round trip time comprises determining a minimum round trip time experienced by a data packet transmitted along the transmission path.
  • 136. The method of claim 134, wherein determining the estimated uncongested round trip time comprises determining a minimum round trip time experienced by a data packet transmitted along the transmission path within a predetermined time period.
  • 137. The method of claim 134, wherein determining the estimated uncongested round trip time comprises determining a decaying average minimum round trip time experienced by a data packet transmitted along the transmission path.
  • 138. The method of claim 134, wherein determining the estimated uncongested round trip time comprises determining a significant minimum round trip time, wherein the significant minimum round trip time comprises a minimum round experienced by a data packet transmitted along the transmission path excluding one or more round trip times.
  • 139. The method of claim 138, wherein one or more excluded round trip times comprise statistically insignificant round trip times.
  • 140. The method of claim 138, wherein one or more excluded round trip times comprise round trip times beyond a selected percentile of round trip times.
  • 141. The method of claim 134, wherein determining the estimated congested round trip time comprises determining a maximum round trip time experienced by a data packet transmitted along the transmission path.
  • 142. The method of claim 134, wherein determining the estimated congested round trip time comprises determining a maximum round trip time experienced by a data packet transmitted along the transmission path within a predetermined time period.
  • 143. The method of claim 134, wherein determining the estimated congested round trip time comprises determining a decaying average maximum round trip time experienced by a data packet transmitted along the transmission path.
  • 144. The method of claim 134, wherein determining the estimated congested round trip time comprises determining a significant maximum round trip time, wherein the significant maximum round trip time comprises a maximum round trip time experienced by a data packet transmitted along the transmission path excluding one or more round trip times.
  • 145. The method of claim 144, wherein one or more excluded round trip times comprise statistically insignificant round trip times.
  • 146. The method of claim 144, wherein one or more excluded round trip times comprise round trip times beyond a selected percentile of round trip times.
  • 147. The method of claim 134, wherein determining the actual round trip time comprises determining a time that the particular data packet was sent and determining a time that an acknowledgement of receipt of the particular data packet was received.
  • 148. The method of claim 133, wherein determining the estimate of congestion along the transmission path at a time when at least one router buffer is not full comprises determining an estimate of a queue size of at least one router buffer.
  • 149. The method of claim 133, wherein determining the estimate of congestion along the transmission path at a time when at least one router buffer is not full comprises determining an estimate of a queue size of at least one router buffer and determining if the queue size exceeds a specified fraction of a capacity of at least one router buffer.
  • 150. The method of claim 133, wherein determining the estimate of congestion along the transmission path at a time when at least one router buffer is not full comprises determining an estimate of a capacity of at least one router buffer based at least in part on an uncongested round trip time and a congested round trip time; determining an estimate of a queue size of at least one router buffer based on a particular round trip time; and determining if the queue size exceeds a specified fraction of the capacity of at least one router buffer.
  • 151. The method of claim 133, wherein the congestion window comprises a congestion window associated with one or more prefetch data packets.
  • 152. The method of claim 133, wherein reducing the size of the congestion window by at least a multiplicative factor comprises halving the size of the congestion window.
  • 153. The method of claim 133, wherein reducing the size of the congestion window by at least a multiplicative factor comprises reducing the size of the congestion window to less than one data packet.
  • 154. The method of claim 133, wherein at least one router buffer comprises a transmission rate limiting router buffer.
  • 155. A method, comprising: determining an estimate of congestion along a transmission path of one or more data packets; and reducing the size of a congestion window to a non-integer value if significant congestion exists based on the estimate of congestion.
  • 156. The method of claim 155, wherein the size of the congestion window corresponds to an amount of bandwidth available for transmission of one or more data packets.
  • 157. The method of claim 155, wherein the size of the congestion window corresponds to a rate of transmission of one or more data packets.
  • 158. The method of claim 155, wherein the non-integer value is less than 1.
  • 159. A system comprising: a CPU in communication with a network; a memory coupled to the CPU, wherein the memory comprises program instructions executable by the CPU to: determine an estimate of congestion along a transmission path of one or more data packets through the network; and reduce the size of a congestion window to a non-integer value if significant congestion exists based on the estimate of congestion, wherein the size of the congestion window corresponds to the amount of bandwidth available for transmission of one or more data packets.
  • 160. The system of claim 159, wherein the size of the congestion window corresponds to an amount of bandwidth available for transmission of one or more data packets.
  • 161. The system of claim 159, wherein the size of the congestion window corresponds to a rate of transmission of one or more data packets.
  • 162. The system of claim 159, wherein the non-integer value is less than 1.
  • 163. A carrier medium comprising program instructions, wherein the program instructions are computer-executable to implement a method comprising: determining an estimate of congestion along a transmission path of one or more data packets; and reducing the size of a congestion window to a non-integer value if significant congestion exists based on the estimate of congestion, wherein the size of the congestion window corresponds to the amount of bandwidth available for transmission one or more data packets.
  • 164. The carrier medium of claim 163, wherein the size of the congestion window corresponds to an amount of bandwidth available for transmission of one or more data packets.
  • 165. The carrier medium of claim 163, wherein the size of the congestion window corresponds to a rate of transmission one or more data packets.
  • 166. The carrier medium of claim 163, wherein the non-integer value is less than 1.
  • 167. A method, comprising: sending a request for one or more data packets; receiving one or more requested data packets and one or more data packet prefetch hints, wherein a data packet prefetch hint comprises a suggestion to prefetch one or more data packets; determining if one or more data packet prefetch hints refer to one or more data packets available in a local memory; and determining one or more data packets to prefetch.
  • 168. The method of claim 167, further comprising receiving input requesting one or more data packets before sending the request for one or more data packets.
  • 169. The method of claim 167, wherein determining one or more data packets to prefetch comprises determining one or more data packets that do not exist in the local memory that are referred to by one or more data packet prefetch hints.
  • 170. The method of claim 167, further comprising sending a request for one or more prefetch data packets.
  • 171. The method of claim 167, further comprising sending a request for one or more prefetch data packets; and receiving one or more prefetch data packets.
  • 172. The method of claim 167, further comprising sending a request for one or more prefetch data packets; receiving one or more prefetch data packets; and storing one or more prefetch data packets in the local memory.
  • 173. The method of claim 167, further comprising sending a request for one or more prefetch data packets; receiving one or more pointers to one or more requested data packets; and requesting one or more data packets referred to by one or more pointers.
  • 174. The method of claim 167, further comprising, receiving input requesting one or more data packets; and determining if one or more requested data packets exist in the local memory, before sending the request for one or more data packets.
  • 175. The method of claim 167, further comprising, receiving one or more data packets; and sending an acknowledgement of receipt of one or more data packets.
  • 176. The method of claim 167, further comprising, receiving one or more data packets; and displaying one or more received data packets.
  • 177. The method of claim 167, further comprising, receiving one or more data packets; and storing one or more received data packets in the local memory.
  • 178. The method of claim 167, further comprising, receiving one or more prefetch data packets; receiving a request to access one or more data packets while receiving one or more prefetch data packets; and ceasing to receive one or more prefetch data packets in response to the request to access one or more data packets.
  • 179. A system comprising: a CPU in communication with a network; a memory coupled to the CPU, wherein the memory comprises program instructions executable to: send a request for one or more data packets via the network; receive one or more requested data packets and one or more data packet prefetch hints, wherein a data packet prefetch hint comprises a suggestion to prefetch one or more data packets; determine if one or more data packet prefetch hints refer to one or more data packets available in a local memory; and determine one or more data packets to prefetch.
  • 180. The system of claim 179, wherein the program instructions are further executable to receive input requesting one or more data packets before sending the request for one or more data packets.
  • 181. The system of claim 179, wherein determining one or more data packets to prefetch comprises determining one or more data packets that do not exist in the local memory that are referred to by one or more data packet prefetch hints.
  • 182. The system of claim 179, wherein the program instructions are further executable to send a request for one or more prefetch data packets.
  • 183. The system of claim 179, wherein the program instructions are further executable to send a request for one or more prefetch data packets, and to receive one or more prefetch data packets.
  • 184. The system of claim 179, wherein the program instructions are further executable to send a request for one or more prefetch data packets, receive one or more prefetch data packets, and store one or more prefetch data packets in the local memory.
  • 185. The system of claim 179, wherein the program instructions are further executable to send a request for one or more prefetch data packets, to receive one or more pointers to one or more requested data packets, and to request one or more data packets referred to by one or more pointers.
  • 186. The system of claim 179, wherein the program instructions are further executable to receive input requesting one or more data packets, and to determine if one or more requested data packets exist in a local memory before sending the request for one or more data packets.
  • 187. The system of claim 179, wherein the program instructions are further executable to receive one or more data packets, and to send an acknowledgement of receipt of one or more data packets.
  • 188. The system of claim 179, wherein the program instructions are further executable to receive one or more data packets, and to display one or more received data packets.
  • 189. The system of claim 179, wherein the program instructions are further executable to receive one or more data packets, and to store one or more received data packets in the local memory.
  • 190. The system of claim 179, wherein the program instructions are further executable to receive one or more prefetch data packets, to receive a request to access one or more data packets while receiving one or more prefetch data packets, and to cease to receive one or more prefetch data packets in response to the request to access one or more data packets.
  • 191. A carrier medium comprising program instructions, wherein the program instructions are computer-executable to implement a method comprising: sending a request for one or more data packets; receiving one or more requested data packets and one or more data packet prefetch hints, wherein a data packet prefetch hint comprises a suggestion to prefetch one or more data packets; determining if one or more data packet prefetch hints refer to one or more data packets available in a local memory; and determining one or more data packets to prefetch.
  • 192. The carrier medium of claim 191, wherein the method further comprises receiving input requesting one or more data packets before sending the request for one or more data packets.
  • 193. The carrier medium of claim 191, wherein determining one or more data packets to prefetch comprises determining one or more data packets that do not exist in the local memory that are referred to by one or more data packet prefetch hints.
  • 194. The carrier medium of claim 191, wherein the method further comprises sending a request for one or more prefetch data packets.
  • 195. The carrier medium of claim 191, wherein the method further comprises sending a request for one or more prefetch data packets, and receiving one or more prefetch data packets.
  • 196. The carrier medium of claim 191, wherein the method further comprises sending a request for one or more prefetch data packets, receiving one or more prefetch data packets, and storing one or more prefetch data packets in the local memory.
  • 197. The carrier medium of claim 191, wherein the method further comprises sending a request for one or more prefetch data packets, receiving one or more pointers to one or more requested data packets, and requesting one or more data packets referred to by one or more pointers.
  • 198. The carrier medium of claim 191, wherein the method further comprises, receiving input requesting one or more data packets, and determining if one or more requested data packets exist in a local memory before sending the request for one or more data packets.
  • 199. The carrier medium of claim 191, wherein the method further comprises receiving one or more data packets; and sending an acknowledgement of receipt of one or more data packets.
  • 200. The carrier medium of claim 191, wherein the method further comprises receiving one or more data packets; and displaying one or more received data packets.
  • 201. The carrier medium of claim 191, wherein the method further comprises receiving one or more data packets; and storing one or more received data packets in the local memory.
  • 202. The carrier medium of claim 191, wherein the method further comprises receiving one or more prefetch data packets, receiving a request to access one or more data packets while receiving one or more prefetch data packets, and ceasing to receive one or more prefetch data packets in response to the request to access one or more data packets.
  • 203. A method, comprising: receiving an indication of server congestion; receiving a reference list; and determining a hint list based at least in part on the reference list, wherein the hint list comprises one or more data objects recommended for prefetching, and determining a hint list size based at least in part on the indication of server congestion.
  • 204. The method of claim 203, wherein determining the hint list based at least in part on the reference list comprises determining one or more data objects with a probability of a demand request greater than a threshold probability based at least in part on the reference list.
  • 205. The method of claim 203, wherein the reference list comprises information regarding files previously requested by a client from which the reference list was received.
  • 206. The method of claim 203, wherein determining the hint list based at least in part on the reference list comprises determining a probability of receiving a request for one or more data objects, and selecting one or more data objects having a relatively high probability of being requested for inclusion in the hint list.
  • 207. The method of claim 203, further comprising sending the hint list to a client.
  • 208. The method of claim 207, wherein the client is the client that sent the reference list.
  • 209. The method of claim 207, wherein the client is a client other than the client that sent the reference list.
  • 210. The method of claim 203 further comprising sending one or more portions of the hint list to a client in one or more separate transmissions.
  • 211. The method of claim 203, further comprising sending the hint list to a client that sent the reference list in an order that causes an inline object to be prefetched before a data object that refers to the inline object.
  • 212. The method of claim 203, wherein receiving the indication of server congestion comprises receiving a recommended prefetch rate.
  • 213. The method of claim 203, wherein receiving the indication of server congestion comprises receiving an estimate of network congestion based on round trip time of one or more requests to a server.
  • 214. The method of claim 203, wherein receiving the indication of server congestion comprises receiving a recommended hint list size.
  • 215. The method of claim 203, wherein the hint list size comprises a number of data objects recommended for prefetching.
  • 216. The method of claim 203, wherein the hint list size is further based at least in part on the size of one or more data objects identified on the hint list.
  • 217. The method of claim 203, further comprising sending the hint list size to a client, wherein during a particular interval the client prefetches at most the number of objects allowed in the hint list size.
  • 218. The method of claim 217, wherein the hint list size sent to a first client during an interval is different from the hint list size sent to a second client during the particular interval.
  • 219. The method of claim 217, wherein the hint list size sent to at least one client during the particular interval is zero.
  • 220. The method of claim 217, wherein the hint list size sent to a first client during the particular interval is zero, and wherein the hint list size sent to a second client during the particular interval is nonzero.
  • 221. A system comprising: a CPU in communication with a network; a memory coupled to the CPU, wherein the memory comprises program instructions executable to: receive an indication of server congestion; receive a reference list; determine a hint list based at least in part on the reference list, wherein the hint list comprises one or more data objects recommended for prefetching, and determine a hint list size based at least in part on the indication of server congestion.
  • 222. The system of claim 221, wherein determining the hint list based at least in part on the reference list comprises determining one or more data objects with a probability of a demand request greater than a threshold probability based at least in part on the reference list.
  • 223. The system of claim 221, wherein the reference list comprises information regarding files previously requested by a client from which the reference list was received.
  • 224. The system of claim 221, wherein determining the hint list based at least in part on the reference list comprises determining a probability of receiving a request for one or more data objects, and selecting one or more data objects having a relatively high probability of being requested for inclusion in the hint list.
  • 225. The system of claim 221, wherein the program instructions are further executable to send the hint list to a client in communication with the network.
  • 226. The system of claim 225, wherein the client to which the hint list is sent comprises a client that sent the reference list.
  • 227. The system of claim 225, wherein the client to which the hint list is sent comprises a client other than a client that sent the reference list.
  • 228. The system of claim 221, wherein the program instructions are further executable to send at least a first portion of the hint list to a client in communication with the network, and send at least a second portion of the hint list to the client if the first portion did not include the entire hint list.
  • 229. The system of claim 221, wherein the program instructions are further executable to send the hint list size to a client in communication with the network, and wherein during a particular interval the client prefetches at most the number of objects allowed in the hint list size.
  • 230. The system of claim 229, wherein the program instructions are further executable to send a hint list size to at least two client in communication with the network, and wherein the hint list size sent to a first client during a particular interval is different from the hint list size sent to a second client during the particular interval.
  • 231. The system of claim 230, wherein the hint list size sent to at least one client during the particular interval is zero.
  • 232. The system of claim 230, wherein the hint list size sent to a first client during the particular interval is zero, and wherein the hint list size sent to a second client during the particular interval is nonzero.
  • 233. The system of claim 221, wherein the program instructions are further executable to send the hint list to a client that sent the reference list in an order that causes the client to request an inline object before a data object that refers to the inline object.
  • 234. The system of claim 221, wherein receiving the indication of server congestion comprises receiving a recommended prefetch rate.
  • 235. The system of claim 221, wherein receiving the indication of server congestion comprises receiving an estimate of server congestion based on round trip time of one or more demand requests.
  • 236. The system of claim 221, wherein receiving the indication of server congestion comprises receiving a recommended hint list size.
  • 237. The system of claim 221, wherein the hint list size comprises a number of data objects recommended for prefetching.
  • 238. The system of claim 221, wherein the size of the hint list is further based at least in part on the size of one or more data objects identified on the hint list.
  • 239. A carrier medium comprising program instructions, wherein the program instructions are computer-executable to implement a method comprising: receiving an indication of network congestion; receiving a reference list; and determining a hint list based at least in part on the reference list, wherein the hint list comprises one or more data objects recommended for prefetching, and determining a hint list size based at least in part on the indication of network congestion.
  • 240. The carrier medium of claim 239, wherein determining the hint list based at least in part on the reference list comprises determining one or more data objects with a probability of a demand request greater than a threshold probability based at least in part on the reference list.
  • 241. The carrier medium of claim 239, wherein the reference list comprises information regarding files previously requested by a client from which the reference list was received.
  • 242. The carrier medium of claim 239, wherein determining the hint list based at least in part on the reference list comprises determining a probability of receiving a request for one or more data objects, and selecting one or more data objects having a relatively high probability of being requested for inclusion in the hint list.
  • 243. The carrier medium of claim 239, wherein the method further comprises sending the hint list to a client.
  • 244. The carrier medium of claim 243, wherein the client to which the hint list is sent comprises a client that sent the reference list.
  • 245. The carrier medium of claim 243, wherein the client to which the hint list is sent comprises a client other than a client that sent the reference list.
  • 246. The carrier medium of claim 239, wherein the method further comprises sending at least a first portion of the hint list to a client in communication with the network, and sending at least a second portion of the hint list to the client if the first portion did not include the entire hint list.
  • 247. The carrier medium of claim 239, wherein the method further comprises sending the hint list size to a client in communication with the network, wherein during a particular interval the client prefetches at most the number of objects allowed in the hint list size.
  • 248. The carrier medium of claim 247, wherein the method further comprises sending a hint list size to at least two client in communication with the network, wherein the hint list size sent to a first client during a particular interval is different from the hint list size sent to a second client during the particular interval.
  • 249. The carrier medium of claim 247, wherein the hint list size sent to at least one client during the particular interval is zero.
  • 250. The carrier medium of claim 247, wherein the hint list size sent to a first client during the particular interval is zero, and wherein the hint list size sent to a second client during the particular interval is nonzero.
  • 251. The carrier medium of claim 239, wherein the method further comprises sending the hint list to a client that sent the reference list in an order that causes an inline object to be prefetched before a data object that refers to the inline object.
  • 252. The carrier medium of claim 239, wherein receiving the indication of network congestion comprises receiving a recommended prefetch rate.
  • 253. The carrier medium of claim 239, wherein receiving the indication of network congestion comprises receiving an estimate of network congestion based on round trip time of one or more data packets.
  • 254. The carrier medium of claim 239, wherein receiving the indication of network congestion comprises receiving a recommended hint list size.
  • 255. The carrier medium of claim 239, wherein the size of the hint list comprises a number of data objects recommended for prefetching.
  • 256. The carrier medium of claim 239, wherein the size of the hint list is further based at least in part on the size of one or more data objects identified on the hint list.
  • 257. A method, comprising: sending one or more requests for one or more data objects; receiving at least one data packet associated with one or more requested data objects; determining an estimate of server congestion based at least in part on a round trip time of at least one received data packet; and determining a prefetch rate appropriate for the estimated server congestion.
  • 258. The method of claim 257, wherein sending one or more requests for one or more data objects comprises pinging a server.
  • 259. The method of claim 257, wherein sending one or more requests for one or more data objects comprises sending two or more requests for one or more data objects, wherein the requests are sent within a specified period of time.
  • 260. The method of claim 259, wherein the requests are distributed randomly within the specified period of time.
  • 261. The method of claim 257, wherein determining the estimate of server congestion comprises providing an estimate of an uncongested service time for a request; and determining the estimate of server congestion based on the estimated uncongested service time and service time of the request.
  • 262. The method of claim 261, wherein providing the estimate of the uncongested service time for a request comprises determining a minimum round trip time for a request.
  • 263. The method of claim 261, wherein providing the estimate of the uncongested service time for a request comprises determining a minimum service time for a request over a defined period of time.
  • 264. The method of claim 261, wherein providing the estimate of the uncongested service time for a request comprises determining a decaying running average of minimum service times for requests.
  • 265. The method of claim 261, wherein providing the estimate of the uncongested service time for a request comprises determining a minimum service time for a request within a determined percentile of service times for requests sent.
  • 266. The method of claim 257, wherein determining the estimate of server congestion comprises providing an estimate of an uncongested service time for a request; providing an estimate of a congested service time for a request; and determining the estimate of server congestion based on the estimated uncongested service time, congested service time, and service time of the request.
  • 267. The method of claim 266, wherein providing the estimate of the congested service time for a request comprises determining a maximum service time for a request.
  • 268. The method of claim 266, wherein providing the estimate of the congested service time for a request comprises determining a maximum service time for a request over a defined period of time.
  • 269. The method of claim 266, wherein providing the estimate of the congested service time for a request comprises determining a decaying running average of maximum service times for requests.
  • 270. The method of claim 266, wherein providing the estimate of the congested service time for a request comprises determining a maximum service time for a request within a determined percentile of service times for requests sent.
  • 271. The method of claim 257, wherein determining the prefetch rate appropriate for the estimated server congestion comprises determining whether more than a threshold number of requests received experienced significant server delays; and decreasing the prefetch rate if more than the threshold number of requests received experienced significant server delays.
  • 272. The method of claim 257, wherein determining the prefetch rate appropriate for the estimated server congestion comprises determining whether fewer than a threshold number of requests received experienced significant server delays; and increasing the prefetch rate if fewer than the threshold number of requests received experienced significant server delays.
  • 273. The method of claim 257, wherein determining the prefetch rate appropriate for the estimated server congestion comprises determining whether a previous change in the prefetch rate has had sufficient time to affect server congestion.
  • 274. The method of claim 257, further comprising sending a signal comprising the determined prefetch rate.
  • 275. A system comprising: a CPU in communication with a network; a memory coupled to the CPU, wherein the memory comprises program instructions executable to: send one or more requests for one or more data objects; receive at least one data packet associated with one or more requested data objects; determine an estimate of server congestion based at least in part on a round trip time of at least one received data packet; and determine a prefetch rate appropriate for the estimated server congestion.
  • 276. The system of claim 275, further comprising a server coupled to the network, wherein sending one or more requests for one or more data objects comprises pinging the server.
  • 277. The system of claim 275, wherein sending one or more requests for one or more data objects comprises sending two or more requests for one or more data objects, and wherein the program instructions are executable to send the requests within a specified period of time.
  • 278. The system of claim 277, wherein the program instructions are further executable to distribute the requests randomly within the specified period of time.
  • 279. The system of claim 275, wherein determining the estimate of server congestion comprises providing an estimate of an uncongested service time for a request; and determining the estimate of server congestion based on the estimated uncongested service time and service time of the request.
  • 280. The system of claim 279, wherein providing the estimate of the uncongested service time for a request comprises determining a minimum round trip time for a request.
  • 281. The system of claim 279, wherein providing the estimate of the uncongested service time for a request comprises determining a minimum service time for a request over a defined period of time.
  • 282. The system of claim 279, wherein providing the estimate of the uncongested service time for a request comprises determining a decaying running average of minimum service times for requests.
  • 283. The system of claim 279, wherein providing the estimate of the uncongested service time for a request comprises determining a minimum service time for a request within a determined percentile of service times for requests sent.
  • 284. The system of claim 275, wherein determining the estimate of server congestion comprises providing an estimate of an uncongested service time for a request; providing an estimate of a congested service time for a request; and determining the estimate of server congestion based on the estimated uncongested service time, congested service time, and service time of the request.
  • 285. The system of claim 284, wherein providing the estimate of the congested service time for a request comprises determining a maximum service time for a request.
  • 286. The system of claim 284, wherein providing the estimate of the congested service time for a request comprises determining a maximum service time for a request over a defined period of time.
  • 287. The system of claim 284, wherein providing the estimate of the congested service time for a request comprises determining a decaying running average of maximum service times for requests.
  • 288. The system of claim 284, wherein providing the estimate of the congested service time for a request comprises determining a maximum service time for a request within a determined percentile of service times for requests sent.
  • 289. The system of claim 275, wherein determining the prefetch rate appropriate for the estimated server congestion comprises determining whether more than a threshold number of requests received experienced significant server delays; and decreasing the prefetch rate if more than the threshold number of requests received experienced significant server delays.
  • 290. The system of claim 275, wherein determining the prefetch rate appropriate for the estimated server congestion comprises determining whether fewer than a threshold number of requests received experienced significant server delays; and increasing the prefetch rate if fewer than the threshold number of requests received experienced significant server delays.
  • 291. The system of claim 275, wherein determining the prefetch rate appropriate for the estimated server congestion comprises determining whether a previous change in the prefetch rate has had sufficient time to affect server congestion.
  • 292. The system of claim 275, wherein the program instructions are further executable to send a signal comprising the determined prefetch rate.
  • 293. A carrier medium comprising program instructions, wherein the program instructions are computer-executable to implement a method comprising: sending one or more requests for one or more data objects; receiving at least one data packet associated with one or more requested data objects; determining an estimate of server congestion based at least in part on a round trip time of at least one received data packet; and determining a prefetch rate appropriate for the estimated server congestion.
  • 294. The carrier medium of claim 293, wherein sending one or more requests for one or more data objects comprises pinging a server.
  • 295. The carrier medium of claim 293, wherein sending one or more requests for one or more data objects comprises sending two or more requests for one or more data objects, and wherein the program instructions are further executable to send the requests within a specified period of time.
  • 296. The carrier medium of claim 295, wherein the program instructions are further executable to distribute the requests randomly within the specified period of time.
  • 297. The carrier medium of claim 293, wherein determining an estimate of server congestion comprises providing an estimate of an uncongested service time for a request; and determining the estimate of server congestion based on the estimated uncongested service time and service time of the request.
  • 298. The carrier medium of claim 297, wherein providing the estimate of the uncongested service time for a request comprises determining a minimum round trip time for a request.
  • 299. The carrier medium of claim 297, wherein providing the estimate of the uncongested service time for a request comprises determining a minimum service time for a request over a defined period of time.
  • 300. The carrier medium of claim 297, wherein providing the estimate of the uncongested service time for a request comprises determining a decaying running average of minimum service times for requests.
  • 301. The carrier medium of claim 297, wherein providing the estimate of the uncongested service time for a request comprises determining a minimum service time for a request within a determined percentile of service times for requests sent.
  • 302. The carrier medium of claim 293, wherein determining the estimate of server congestion comprises providing an estimate of an uncongested service time for a request; providing an estimate of a congested service time for a request; and determining the estimate of server congestion based on the estimated uncongested service time, congested service time, and service time of the request.
  • 303. The carrier medium of claim 302, wherein providing the estimate of the congested service time for a request comprises determining a maximum service time for a request.
  • 304. The carrier medium of claim 302, wherein providing the estimate of the congested service time for a request comprises determining a maximum service time for a request over a defined period of time.
  • 305. The carrier medium of claim 302, wherein providing the estimate of the congested service time for a request comprises determining a decaying running average of maximum service times for requests.
  • 306. The carrier medium of claim 302, wherein providing the estimate of the congested service time for a request comprises determining a maximum service time for a request within a determined percentile of service times for requests sent.
  • 307. The carrier medium of claim 293, wherein determining the prefetch rate appropriate for the estimated server congestion comprises determining whether more than a threshold number of requests received experienced significant server delays; and decreasing the prefetch rate if more than the threshold number of requests received experienced significant server delays.
  • 308. The carrier medium of claim 293, wherein determining the prefetch rate appropriate for the estimated server congestion comprises determining whether fewer than a threshold number of requests received experienced significant server delays; and increasing the prefetch rate if fewer than the threshold number of requests received experienced significant server delays.
  • 309. The carrier medium of claim 293, wherein determining the prefetch rate appropriate for the estimated server congestion comprises determining whether a previous change in the prefetch rate has had sufficient time to affect server congestion.
  • 310. The carrier medium of claim 293, wherein the program instructions are further executable to send a signal comprising the determined prefetch rate.
  • 311. A method, comprising: receiving a request for one or more data objects; determining whether the request comprises a demand request or a prefetch request; and returning a redirection data object corresponding to one or more requested data objects if the request comprises a prefetch request.
  • 312. The method of claim 311, further comprising routing the request to a demand server if the request comprises a demand request.
  • 313. The method of claim 311, wherein the redirection data object causes a request to be sent to a prefetch server.
  • 314. A system, comprising: a CPU in communication with a network; a memory coupled to the CPU, wherein the memory comprises program instructions executable to: receive a request for one or more data objects; determine whether the request comprises a demand request or a prefetch request; and returning a redirection data object corresponding to one or more requested data objects if the request comprises a prefetch request.
  • 315. The system of claim 314, wherein the program instructions are further executable to route the request to a demand server if the request comprises a demand request.
  • 316. The system of claim 314, wherein the redirection data object causes a request to be sent to a prefetch server.
  • 317. A carrier medium comprising program instructions, wherein the program instructions are computer-executable to implement a method comprising: receiving a request for one or more data objects; determining whether the request comprises a demand request or a prefetch request; and returning a redirection data object corresponding to one or more requested data objects if the request comprises a prefetch request.
  • 318. The carrier medium of claim 317, wherein the program instructions are further computer-executable to implement routing the request to a demand server if the request comprises a demand request.
  • 319. The carrier medium of claim 317, wherein the redirection data object causes a request to be sent to a prefetch server.
PRIORITY CLAIM

[0001] This application claims the benefit of the U.S. Provisional Patent Application serial No. 60/398,488 entitled “METHOD AND SYSTEM FOR BACKGROUND REPLICATION OF DATA OBJECTS,” to Michael D. Dahlin, Arunkumar Venkataramani and Ravindranath Kokku and filed Jul. 25, 2002.

Provisional Applications (1)
Number Date Country
60398488 Jul 2002 US