Analyzing and Optimizing the Linux Networking Stack
It is well known that the Linux Operating System provides a complete and effective support to networking functionalities, to be widely used in many advanced fields, like software routers and Grid architectures, among others. Notwithstanding the rising popularity and the continuous development of the Linux Operating System, there is no clear indication about the maximum networking performance level that it can achieve and no information about the computational weight required by packet processing operations. Our main aim in this work is to analyze and to optimize the Linux networking stack performance, trying to evaluate the impact of networking functionalities on the whole system. To this purpose, to better characterize the performance bottlenecks, we have performed both external and internal measurements, benchmarking both a standard Linux kernel and an optimized version.
KeywordsPacket Size Hardware Architecture Packet Processing Network Interface Card Computational Weight
Unable to display preview. Download preview PDF.
- A. Barczyk, A. Carbone, J.P. Dufey, D. Galli, B. Jost, U. Marconi, N. Neufeld, G. Peco, V. Vagnoni, “Reliability of datagram transmission on Gigabit Ethernet at full link load”, LHCb Technical Note, LHCB 2004-030 DAQ, Mar. 2004.Google Scholar
- A. Bianco, R. Birke, D. Bolognesi, J. M. Finochietto, G. Galante, M. Mellia, M.L.N.P.P. Prashant, F. Neri, “Click vs. Linux: two efficient open-source IP network stacks for software routers”, HPSR 2005 (IEEE Workshop on High Performance Switching and Routing), Hong Kong, May 12–14, 2005Google Scholar
- R. Bolla, R. Bruschi, “A high-end Linux based open router for IP QoS networks: tuning and performance analysis with internal (profiling) and external measurement tools of the packet forwarding capabilities”, Proc. of the 3rd International Workshop on Internet Performance, Simulation, Monitoring and Measurements (IPS MoMe 2005), Warsaw, Poland, Mar. 2005, pp.203–214.Google Scholar
- R. Bolla, R. Bruschi, “IP forwarding performance analysis in presence of control plane functionalities in a PC-based open router”, Proc. of the 2005 Tyrrhenian International Workshop on Digital Communications (TIWDC 2005), Sorrento, Italy, Jun. 2005; in F. Davoli, S. Palazzo, S. Zappatore, Eds., “Distributed Cooperative Laboratories: Networking, Instrumentation, and Measurements”, Springer, New York, NY, 2006, pp.143–158.Google Scholar
- R. Bolla, R. Bruschi, “RFC 2544 performance evaluation and internal measurements for a Linux based open router”, Proc. of IEEE 2006 Workshop on High Performance Switching and Routing (HPSR 2006), Poznan, Poland, Jun. 2006, pp.9–14.Google Scholar
- Building Open Router Architectures based on Router Aggregation (BORA BORA) project, website at http://www.telematica.polito.it/projects/borabora/
- P. Gray, A. Betz, “Performance evaluation of copper-based Gigabit Ethernet interfaces”, 27th Annual IEEE Conference on Local Computer Networks (LCN’02), Tampa, FL, Nov. 2002, pp.679–690.Google Scholar
- Oprofile, website at http://oprofile.sourceforge.net/news/
- J. H. Salim, R. Olsson, A. Kuznetsov, “Beyond Softnet”, Proc. of the 5th annual Linux Showcase & Conference, Oakland, CA, USA, Nov. 2001.Google Scholar
- The Agilent N2X Router Tester, http://advanced.comms.agilent.com/n2x/products/ index.htm
- Skb recycling patch, ftp://robur.slu.se/pub/Linux/net-development/skb_recycling/Google Scholar
- K. Wehrle, F. Pählke, H. Ritter, D. Möller, M. Bechler, “The Linux Networking Architecture: Design and Implementation of Network Protocols in the Linux Kernel”, Pearson Prentice Hall, Upper Saddle River, NJ , USA, 2004.Google Scholar