skip to main content
10.1145/2018436.2018500acmconferencesArticle/Chapter ViewAbstractPublication PagescommConference Proceedingsconference-collections
poster
Free Access

netmap: memory mapped access to network devices

Published:15 August 2011Publication History

ABSTRACT

Recent papers have shown that wire-speed packet processing is feasible in software even at 10~Gbit/s, but the result has been achieved taking direct control of the network controllers to cut down OS and device driver overheads.

In this paper we show how to achieve similar performance in safer conditions on standard operating systems. As in some other proposals, our framework, called netmap, maps packet buffers into the process' memory space; but unlike other proposals, any operation that may affect the state of the hardware is filtered by the OS. This protects the system from crashes induced by misbehaving programs, and simplifies the use of the API.

Our tests show that netmap takes as little as 90 clock cycles to move one packet between the wire and the application, almost one order of magnitude less than using the standard OS path. A single core at 1.33~GHz can send or receive packets at wire speed on 10~Gbit/s links (14.8~Mpps), with very good scalability in the number of cores and clock speed.

At least three factors contribute to this performance: i) no overhead for encapsulation and metadata management; ii) no per-packet system calls and data copying (ioctl()s are still required, but involve no copying and their cost is amortized over a batch of packets); iii) much simpler device driver operation, because buffers have a plain and simple format that requires

References

  1. E. Kohler, R. Morris, B. Chen, J. Jannotti, M.F. Kaashoek, The Click modular router, ACM TOCS, vol.18 n.3, pp. 263--297, ACM, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. M. Dobrescu, N. Egi, K. Argyraki, B.G. Chun, K. Fall, G. Iannaccone, A. Knies, M. Manesh, S. Ratnasamy, RouteBricks: Exploiting parallelism to scale software routers, ACM SOSP, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. S. Han, K. Jang, K. Park, S. Moon, PacketShader: a GPU-accelerated software router, Proc. of ACM SIGCOMM 2010, New Delhi, India Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. L. Rizzo, netmap: fast and safe access to network adapters for user programs, Tech. Report, Univ. di Pisa, June 2011,http://info.iet.unipi.it/~luigi/netmap/Google ScholarGoogle Scholar

Index Terms

  1. netmap: memory mapped access to network devices

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        SIGCOMM '11: Proceedings of the ACM SIGCOMM 2011 conference
        August 2011
        502 pages
        ISBN:9781450307970
        DOI:10.1145/2018436
        • cover image ACM SIGCOMM Computer Communication Review
          ACM SIGCOMM Computer Communication Review  Volume 41, Issue 4
          SIGCOMM '11
          August 2011
          480 pages
          ISSN:0146-4833
          DOI:10.1145/2043164
          Issue’s Table of Contents

        Copyright © 2011 Copyright is held by the owner/author(s)

        Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the Owner/Author.

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 15 August 2011

        Check for updates

        Qualifiers

        • poster

        Acceptance Rates

        SIGCOMM '11 Paper Acceptance Rate32of223submissions,14%Overall Acceptance Rate554of3,547submissions,16%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader