Giter Site home page Giter Site logo

trillaura's Projects

hugepages-afpacket icon hugepages-afpacket

MASTER THESIS - Advisor: Marco Cesati Co-advisors: Emiliano Betti, Pierpaolo Santucci The target we want to achieve with this experimental work is to change the management of the kernel side allocation of the socket buffer for reception of a high rate of incoming packets. We were inspired from existing frameworks for high-performance packet capture, finding in the huge page table mechanism a possible improvement for the operations on the memory resources. The Linux kernel supports huge pages as optimization of the memory access, reducing the overhead caused by the TLB miss events. We studied two solutions to extends the features of the AF PACKET domain module of the Linux OS, working on the kernel version 4.20. Changing this subsystem impacts on the most common applications used for traffic analysis, as Wireshark, Snort or tcpdump. Indeed, it is important to work for integration with those softwares to avoid the isolation of the solution. These softwares uses the pcap library that implements higher level APIs for the packet sockets. Hence, this library is the means by which it is possible to complete the integration. But since adapting a stable, widespread code, requires cascaded updates, this has a not negligible cost. Therefore, we move towards an alternative way, resorting to the LD PRELOAD trick. It allows to execute a preloaded implementation of a no-static function before the original one. In order to prepare a realistic environment to evaluate the solutions, we considered a synthetic network traffic using the Linux module pktgen properly configured. We produced a pcap trace file with tcpdump to repeat the test with the same kind of incoming packets. Furthermore, in the user application that implements the capture process, we introduced a delay factor every a defined number of packets. The delay allows to simulate the processing time spent on the packets of interest and to study the behavior of the buffer when it accumulates packets.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.