Comments (2)
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:
- 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. - 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.
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)
- Trouble running pyportus or making it HOT 7
- How to correctly estimate 'rate' in each report? HOT 3
- Can CCP change packet format and parse information in the packet header? HOT 1
- libccp integration test: add multiple flow case
- find performance bottlenecks HOT 2
- channel IPC sometimes segfaults when running integration tests HOT 1
- weird bug in integration test with channels
- Log Levels
- Potential bug of stuck HOT 7
- portus should not return scope to user
- portus and libccp api version numbers
- Unable to install pyportus from source HOT 1
- register multiple algortihms
- the question about the Learning-based algorithm HOT 4
- the question of the performance of ccp-bbr in Pantheon HOT 2
- the question about the aimd demo HOT 3
- the question about the aimd demo
- Where i can find the correct example that can run with mtcp HOT 2
- on_report() is always triggered per ACK HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portus.