Giter VIP home page Giter VIP logo

vpp_flow_table's Introduction

VPP_flow_table

  • VPP (Vector Packet Processor) is a high-speed packet processing engine which runs in user-space and implements kernel bypass techniques to achieve high-speed packet processing.
  • This is a modification within VPP src for flow classification,determining active flows and fair-dropping.
  • Fair-drop is implemented at the input side of VPP forwarding graph. It is implemented in dpdk-input node of VPP which is the first node for all the traffic coming from devices binded to dpdk.
  • The intension behind implementation at input of VPP is to save the precisous clock cycles wasted for a packet which may be dropped at the output after processing.
  • RSS-hash result from hardware which is stored in mbufs as hash.rss is used to classify flows.
  • Currently the RSS key used, is the default intel 82599 rss hash key provided in the datasheet. This key is also available by default in dpdk package.

How to use this repository

  • $VPP_ROOT = /your/vpp/directory/ ;
  1. Copy flow_table.h, flow_table_var.h, node.c to $VPP_ROOT/src/plugins/dpdk/device/
  2. Header files to be added in node.c :
    1. #include <dpdk/device/flow_table.h>
    2. #include <dpdk/device/flow_table_var.h>
  3. Find the function " dpdk_device_input" in node.c
  4. Modify the function
    1. Please check the function in this repository for changes that are to be made.
    2. look for the comments "start of extra code; end of extra code" to find the changes to be made.

Major changes from previous branches

1. Use of hardware hash result instead of calculating during runtime.
2. Implementation at input instead of output to save cpu cycles for packets being dropped.

TODO

  1. Choose a good hash function for this application and update; Use of hardware hash result solved this issue.
  2. Add an option to enable or disable the fair-drop scheduling.
  3. Also add option to enable or disable only on a specific interface.
  4. Extend this to multi-threading scenario with multiple tx-queues.
  5. Perform diff for node.c and default node.c and create a patch file. Modifying the code and building VPP will be easier with patch file.
  6. Update README.md :P

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.