Abstract Cohen et al. [5] recently initiated the theoretical study of connection caching in the world-wide web. They extensively studied uniform connection caching, where the establishment cost is uniform for all connections [5], [6]. They showed that ordinary paging algorithms can be used to derive algorithms for uniform connection caching and analyzed various algorithms such as Belady's rule, LRU and Marking strategies. In particular, in [5] Cohen et al. showed that LRU yields a (2k-1) -competitive algorithm, where k is the size of the largest cache in the network. In [6] they investigated Marking algorithms with different types of communication among nodes and presented deterministic k -competitive algorithms. In this paper we study generalized connection caching , also introduced in [5], where connections can incur varying establishment costs. This model is reasonable because the cost of establishing a connection depends, for instance, on the distance of the nodes to be connected and on the congestion in the network. Algorithms for ordinary weighted caching can be used to derive algorithms for generalized connection caching. We present tight or nearly tight analyses on the performance achieved by the currently known weighted caching algorithms when applied in generalized connection caching. In particular we give online algorithms that achieve an optimal competitive ratio of k . Our deterministic algorithm uses extra communication while maintaining open connections. We develop a generalized algorithm that trades communication for performance and achieves a competitive ratio of (1+ε)k , for any 0<ε≤ 1 , using at most ⌉1/ε⌈ 1 bits of communication on each open link. Additionally we consider two extensions of generalized connection caching where (1) connections have time-out values, or (2) the establishment cost of connections is asymmetric. We show that the performance ratio of our algorithms can be preserved in scenario (1). In the case of (2) we derive nearly tight upper and lower bounds on the best possible competitiveness.
[1]
Neal E. Young,et al.
On-line caching as cache size varies
,
1991,
SODA '91.
[2]
Lyle A. McGeoch,et al.
Competitive Algorithms for Server Problems
,
1990,
J. Algorithms.
[3]
Nisheeth K. Vishnoi,et al.
Caching with expiration times
,
2002,
SODA '02.
[4]
Laszlo A. Belady,et al.
A Study of Replacement Algorithms for Virtual-Storage Computer
,
1966,
IBM Syst. J..
[5]
Edith Cohen,et al.
Connection caching
,
1999,
STOC '99.
[6]
Sandy Irani,et al.
Randomized Weighted Caching with Two Page Weights
,
2002,
Algorithmica.
[7]
Robert E. Tarjan,et al.
Amortized efficiency of list update and paging rules
,
1985,
CACM.
[8]
Edith Cohen,et al.
Connection caching under various models of communication
,
2000,
SPAA '00.
[9]
Sandy Irani,et al.
Page replacement with multi-size pages and applications to Web caching
,
1997,
STOC '97.
[10]
Sandy Irani,et al.
Cost-Aware WWW Proxy Caching Algorithms
,
1997,
USENIX Symposium on Internet Technologies and Systems.
[11]
Prabhakar Raghavan,et al.
Memory versus randomization in on-line algorithms
,
1994,
IBM J. Res. Dev..
[12]
Tim Berners-Lee,et al.
Hypertext transfer protocol--http/i
,
1993
.
[13]
Roy T. Fielding,et al.
Hypertext Transfer Protocol - HTTP/1.1
,
1997,
RFC.