On the performance of greedy algorithms in packet buffering

被引:37
作者
Albers, S [1 ]
Schmidt, M [1 ]
机构
[1] Univ Freiburg, Inst Informat, D-79110 Freiburg, Germany
关键词
buffer; competitive; greedy; network switch; online; packet; throughput;
D O I
10.1137/S0097539704446268
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We study a basic buffer management problem that arises in network switches. Consider m input ports, each of which is equipped with a buffer ( queue) of limited capacity. Data packets arrive online and can be stored in the buffers if space permits; otherwise packet loss occurs. In each time step the switch can transmit one packet from one of the buffers to the output port. The goal is to maximize the number of transmitted packets. Simple arguments show that any work-conserving algorithm, which serves any nonempty buffer, is 2-competitive. Azar and Richter recently presented a randomized online algorithm and gave lower bounds for deterministic and randomized strategies. In practice, greedy algorithms are very important because they are fast, use little extra memory, and reduce packet loss by always serving a longest queue. In this paper we first settle the competitive performance of the entire family of greedy strategies. We prove that greedy algorithms are not better than 2-competitive no matter how ties are broken. Our lower bound proof uses a new recursive construction for building adversarial buffer configurations that may be of independent interest. We also give improved lower bounds for deterministic and randomized online algorithms. In this paper we present the first deterministic online algorithm that is better than 2-competitive. We develop a modified greedy algorithm, called semigreedy, and prove that it achieves a competitive ratio of 17/9 approximate to 1.89. The new algorithm is simple, fast, and uses little extra memory. Only when the risk of packet loss is low does it not serve the longest queue. Additionally we study scenarios when an online algorithm is granted additional resources. We consider resource augmentation with respect to memory and speed; i.e., an online algorithm may be given larger buffers or higher transmission rates. We analyze greedy and other online strategies.
引用
收藏
页码:278 / 304
页数:27
相关论文
共 17 条
[1]   Competitive queue policies for differentiated services [J].
Aiello, WA ;
Mansour, Y ;
Rajagopolan, S ;
Rosén, A .
JOURNAL OF ALGORITHMS-COGNITION INFORMATICS AND LOGIC, 2005, 55 (02) :113-141
[2]  
Andelman N, 2003, SIAM PROC S, P761
[3]  
[Anonymous], 2003, Proceedings of the fifteenth annual ACM symposium on Parallel algorithms and architectures
[4]  
Azar Y, 2004, LECT NOTES COMPUT SC, V3221, P53
[5]  
Azar Y, 2004, LECT NOTES COMPUT SC, V3221, P65
[6]  
Azar Y., 2004, P 36 ANN ACM S THEOR, P64
[7]  
AZAR Y., 2003, P 35 ACM S THEOR COM, P82
[8]  
Bansal N, 2004, LECT NOTES COMPUT SC, V3142, P196
[9]   Competitive on-line switching policies [J].
Bar-Noy, A ;
Freund, A ;
Landa, S ;
Naor, J .
ALGORITHMICA, 2003, 36 (03) :225-247
[10]   Balanced scheduling toward loss-free packet queuing and delay fairness [J].
Fleischer, R ;
Koga, H .
ALGORITHMICA, 2004, 38 (02) :363-376