Giter VIP home page Giter VIP logo

Comments (2)

akshayknarayan avatar akshayknarayan commented on August 20, 2024

You are correct that you cannot run multiple instances of ccp_kernel. ccp_kernel is a kernel module that provides (from the kernel's perspective) a congestion control implementation.

There is, however, RunBuilder. Using additional_alg() (https://docs.rs/portus/0.6.1/portus/struct.RunBuilder.html#method.additional_alg), it is possible to register other cc implementations and run them according to the "alg" parameter in the create message: https://github.com/ccp-project/portus/blob/master/src/run.rs#L602.

For ccp-kernel specifically, this field is hard-coded: https://github.com/ccp-project/ccp-kernel/blob/master/tcp_ccp.c#L329. If you have a specific way to assign congestion control algorithms to flows already, then you have two options:

  1. You could modify ccp-kernel to pass the name of a congestion control algorithm to ccp, and register those algorithms with the above additional_alg() method.
  2. You could write a CCA implementation that calls into other algorithms' implementations from the new_flow() method: https://docs.rs/portus/0.6.1/portus/trait.CongAlg.html#tymethod.new_flow. This method gets the following information about the flow: https://docs.rs/portus/0.6.1/portus/struct.DatapathInfo.html which you could use to instantiate a CCA's flow type accordingly.

from portus.

BobAnkh avatar BobAnkh commented on August 20, 2024

Ok, many thanks for your kind help and detailed guidance @akshayknarayan . I will try to see if I can do this later.

from portus.

Related Issues (20)

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.