Git Product home page Git Product logo

tcp_china's Introduction

TCP CHINA

TCP-CHINA Congestion control algorithm, based on very few modifications to TCP-AFRICA.

Modifications are simple: Always keep using fast mode of TCP_AFRICA.

This is yet another demostration of how easily we can increase TCP sending speed from the server side if you ignore fairness and friendliness.

WARNING: DO NOT USE THIS MODULE!

tcp_china's People

Contributors

creling avatar madeye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tcp_china's Issues

make error

hi @madeye ,
i am trying to install this module, but i am getting the following error:
"no rule to make target modules stop"
i am using debian 10 buster Linux 4.19.0-9-amd64

edit : i think i figured out the above error but still i am getting :
home/debian/tcp_china/tcp_china.c:254:16: error: initialization of ‘void (*)(struct sock *, const struct ack_sample )’ from incompatible pointer type ‘void ()(struct sock , u32, s32)’ {aka ‘void ()(struct sock *, unsigned int, int)’} [-Werror=incompatible-pointer-types]
.pkts_acked = tcp_china_rtt_calc,
^~~~~~~~~~~~~~~~~~
/home/debian/tcp_china/tcp_china.c:254:16: note: (near initialization for ‘tcp_china.pkts_acked’)

如何编译?

我对编译陌生些,如何在ubuntu 19.10 最新核心下编译?

~/tcp_china-master# make
make -C /lib/modules/5.4.8-050408-lowlatency/build M=/root/tcp_china-master modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.8-050408-lowlatency'
CC [M] /root/tcp_china-master/tcp_china.o
/root/tcp_china-master/tcp_china.c:254:16: error: initialization of ‘void (*)(struct sock *, const struct ack_sample )’ from incompatible pointer type ‘void ()(struct sock , u32, s32)’ {aka ‘void ()(struct sock *, unsigned int, int)’} [-Werror=incompatible-pointer-types]
254 | .pkts_acked = tcp_china_rtt_calc,
| ^~~~~~~~~~~~~~~~~~
/root/tcp_china-master/tcp_china.c:254:16: note: (near initialization for ‘tcp_china.pkts_acked’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:266: /root/tcp_china-master/tcp_china.o] Error 1
make[1]: *** [Makefile:1652: /root/tcp_china-master] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.8-050408-lowlatency'
make: *** [Makefile:4: all] Error 2

"No such file or directory" when setting "net.ipv4.tcp_available_congestion_control"

Hello:
I get "No such file or directory" while setting "net.ipv4.tcp_available_congestion_control".
net.ipv4.tcp_congestion_control = "china"
图片

I am sure the modules has been loaded:
图片

then I run sysctl net.ipv4.tcp_available_congestion_control and get:
图片

it seems that tcp_china fail to register in the system?

  • OS: centos7 x64
  • kernel: 4.11.8-1.el7.elrepo.x86_64

hello, about compile

i met some matter like this:

root@debian:/home/ha# make
make -C /lib/modules/`uname -r`/build M=`pwd` modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.2-041002-lowlatency'
CC [M]  /home/ha/tcp_china.o
/home/ha/tcp_china.c:249:2: warning: initialization from incompatible pointer type
.pkts_acked = tcp_china_rtt_calc,
/home/ha/tcp_china.c:249:2: warning: (near initialization for ‘tcp_china.pkts_acked’)
Building modules, stage 2.
MODPOST 1 modules
CC /home/ha/tcp_china.mod.o
LD [M]  /home/ha/tcp_china.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.10.2-041002-lowlatency'

system is debian 8
like in this section, i tried several times and changed my linux server, it doesn't make sense
there is always warning:
warning: initialization from incompatible pointer type .pkts_acked = tcp_china_rtt_calc
and
warning: (near initialization for ‘tcp_china.pkts_acked’)
i knew nothing about congestion control, so could you solve me, thank you

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.