Abstract

Many networking applications require timely access to recent network measurements, which can be captured using a sliding window model. Maintaining such measurements is a challenging task due to the fast line speed and scarcity of fast memory in routers. In this work, we study the impact of allowing slack in the window size on the asymptotic requirements of sliding window problems. That is, the algorithm can dynamically adjust the window size between W and W(1+τ) where τ is a small positive parameter. We demonstrate this model's attractiveness by showing that it enables efficient algorithms to problems such as Maximum and General-Summing that require Ω(W) bits even for constant factor approximations in the exact sliding window model. Additionally, for problems that admit sub-linear approximation algorithms such as Basic-Summing and Count-Distinct, the slack model enables a further asymptotic improvement.The main focus of the paper is on the widely studied Basic-Summing problem of computing the sum of the last W integers from {0,1…,R} in a stream. While it is known that Ω(Wlog⁡R) bits are needed in the exact window model, we show that approximate windows allow an exponential space reduction for constant τ.Specifically, for τ=Θ(1), we present a space lower bound of Ω(log⁡(RW)) bits. Additionally, we show an Ω(log⁡(W/ϵ)) lower bound for RWϵ additive approximations and a Ω(log⁡(W/ϵ)+log⁡log⁡R) bits lower bound for (1+ϵ) multiplicative approximations. Our work is the first to study this problem in the exact and additive approximation settings. For all settings, we provide memory optimal algorithms that operate in worst case constant time. This strictly improves on the work of [17] for (1+ϵ)-multiplicative approximation that requires O(ϵ−1log⁡(RW)log⁡log⁡(RW)) space and performs updates in O(log⁡(RW)) worst case time. Finally, we show asymptotic improvements for the Count-Distinct, General-Summing, and Maximum problems.

Highlights

  • Network algorithms in diverse areas such as traffic engineering, load balancing and quality of service [2, 9, 21, 24, 31] rely on timely link measurements

  • While it is known that Ω(W log R) bits are needed in the exact window model, we show that approximate windows allow an exponential space reduction for constant τ

  • This paper studies the space and time complexity reductions that can be attained by allowing slack – an error in the window size

Read more

Summary

Introduction

Network algorithms in diverse areas such as traffic engineering, load balancing and quality of service [2, 9, 21, 24, 31] rely on timely link measurements. For τ -slack windows they provide a (1 + )-multiplicative approximation using O( −1 log(RW )(log log(RW ) + log τ −1)) bits. This paper studies the space and time complexity reductions that can be attained by allowing slack – an error in the window size. We introduce algorithms for the Slack Summing problem, which asymptotically reduce the required memory compared to the sliding window model. In the multiplicative error setting, we provide an O τ −1 log −1 + log log (RW τ ) + log(RW ) space algorithm This is asymptotically optimal when τ = Ω(log−1 W ) and R = poly(W ). If we are willing to withstand an error of = 2−20 (i.e., about 16KBps), the work of [3] provides an additive approximation over the sliding window and requires about 120KB. In the count distinct problem, a constant slack yields an asymptotic space reduction over [11, 19]

Preliminaries
Lower Bounds
Upper Bounds
The Mean of a Slack Window
Other Measurements over Slack Windows
Findings
Discussion
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call