Giter VIP home page Giter VIP logo

Comments (4)

akshayknarayan avatar akshayknarayan commented on August 20, 2024

Hi, thanks for this report. Can you try the following steps:

  1. ccp_kernel_unload (as root)
  2. run this const algorithm: python3 <..>/portus/python/example/const.py
  3. ccp_kernel_load ipc=0 (as root)
  4. now start e.g. iperf sender and receiver with something like iperf -s -p 5001 and mm-delay 25 mm-link --uplink-queue-args="packets=200" --uplink-queue="droptail" <..>/bw24.mahi <..>/bw24.mahi -- sh -c "iperf -c \$MAHIMAHI_BASE -p 4242 -Z ccp -t 30 -i 1"

If those steps do not work, it would be helpful if you provided the outputs in /var/log/syslog between steps 2 and 4.

from portus.

JoeyYoung avatar JoeyYoung commented on August 20, 2024

Everything works fine after reloading the ccp kernel! Thanks for your help @akshayknarayan!
I would be really appreciated if you could give some hints about why it works :)

from portus.

akshayknarayan avatar akshayknarayan commented on August 20, 2024

My guess is that when running this modified const after various other tweaked versions, the datapath program table ran out of space (https://github.com/ccp-project/libccp/blob/master/ccp.c#L319). In ccp-kernel we set the size of this datapath program array to be 10 (https://github.com/ccp-project/ccp-kernel/blob/master/tcp_ccp.h#L11). Because the report struct is the same size as the previous program, it's harder to notice this (without looking for the log in /var/log/syslog), since the previous datapath program will run (in your case, the one that reported per-ack) and send the same report. Unloading and re-loading the kernel module of course frees and reallocates this array.

This is a bug - ideally we would have some mechanism for removing old datapath program entries once there is no more space. I will try to fix it when I have time.

from portus.

JoeyYoung avatar JoeyYoung commented on August 20, 2024

That makes sense, thanks for your detailed explaination!

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.