Code Monkey home page Code Monkey logo

tcp_bw's Introduction

README

This repository contains the new slow start algorithm that: 1) uses ack-pairs to estimate the bandwidth, and 2) correspondingly sets the ssthresh based on the bandwidth estimate and the round-trip time.

Dependency

To build the Linux kernel source installed.

Ubuntu:

  1. sudo apt-get install linux-source

Raspberry Pi:

1a. Run rpi-update (https://github.com/Hexxeh/rpi-update)

1b. Install and run rpi-source (https://github.com/RPi-Distro/rpi-source)

The kernel needs to be recompiled with a larger ICSK_CA_PRIV_SIZE. Edit:

include/net/inet_connection_sock.h

and for these lines:

  u64                       icsk_ca_priv[104 / sizeof(u64)];
  
  #define ICSK_CA_PRIV_SIZE      (13 * sizeof(u64))

change the number 104 to 2800 and 13 to 350. Then rebuild and reboot the kernel normally.

Build

  1. Test modules work via the Hello World kernel module (https://github.com/RPi-Distro/rpi-source#hello-world-example).

  2. Then, type 'make'

Helpful Commands

Check available congestion control algs:

sysctl net.ipv4.tcp_available_congestion_control

Check current congestion control alg:

cat /proc/sys/net/ipv4/tcp_congestion_control

Set current congestion control alg:

sudo sh -c "echo 'cubic_bw' > /proc/sys/net/ipv4/tcp_congestion_control"

Load a module:

sudo insmod tcp_cubic_bw.ko

Load a module (here, setting the debug parameter):

sudo insmod tcp_cubic_bw.ko debug=1

Unload a module:

sudo rmmod tcp_cubic_bw

Disable hystart:

sudo sh -c "echo 0 > /sys/module/tcp_cubic/parameters/hystart"

See also bin/ directory for utilities.


tcp_bw's People

Contributors

maryam-ataei avatar

Stargazers

Amber Cronin avatar

Watchers

 avatar

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.