Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Apr 2015 09:23:33 +0100
From:      Tom Jones <jones@sdf.org>
To:        freebsd-net@freebsd.org
Subject:   Re: Congestion Control Modification
Message-ID:  <20150418082332.GA98351@gmail.com>
In-Reply-To: <CAF4H_7mSGp_GZGaDBx8xq47FY1j85xLHq%2BZY1jMzprbzp%2Bg9zw@mail.gmail.com>
References:  <CAF4H_7mSGp_GZGaDBx8xq47FY1j85xLHq%2BZY1jMzprbzp%2Bg9zw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Apr 18, 2015 at 09:59:01AM +0300, Karlis Laivins wrote:
> Hello,
>=20
> I have read an interesting publication about a proposed modification of T=
CP
> Congestion Control algorithm that would allow to improve it (the CC) by
> dynamic bandwidth estimation. The idea seems so interesting that I would
> like to try to implement it by modifying the NewReno code.

What are you trying to implement? There might already be an out of tree
implementation.

> Do I understand correctly that to do the above stated, I would create a
> copy of source file (in my case - cc_newreno.c) located in /usr/src/sys/
> and rename it to, for example, cc_newreno_test.c and make changes to it?
> How would I then compile it, and how would I create a newreno_test.ko file
> that can be loaded into Kernel and tested?

There is quite a bit of documentation for the modular congestion control
framework[0][1] in the man pages. I think you can actually build the cc as a
kernel module and use kldload, this is how we did our initial implementatio=
n of
NewCWV on Linux at $work.

You can build and work on kernel modules out of tree, this tutorial[2] is a
reasonable introduction.

[0]: https://www.freebsd.org/cgi/man.cgi?query=3Dmod_cc
[1]: https://www.freebsd.org/cgi/man.cgi?query=3Dmod_cc&sektion=3D9&apropos=
=3D0&manpath=3DFreeBSD+10.1-RELEASE
[2]: http://www.freesoftwaremagazine.com/articles/writing_a_kernel_module_f=
or_freebsd

--=20
Tom
@adventureloop
adventurist.me

'You realize night time makes up half of all time?'
:wq

--oyUTqETQ0mS9luUI
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - https://gpgtools.org

iQIcBAABCgAGBQJVMhSDAAoJEDetXgJOHpB8aUoP+wWR07orGxCxBtXR+JHYE0Kx
wTLwUBSyoY/VogBYDH7FyfWHfXmP/F+7b5eM4w5h2oUntVvpFQaQv7h42Qz7IJ3n
zDcnzWRioY0iVWr1mfnn3aHm9uLM5cCesl+bhr/4vnuBa5lP4OMLv6skY9wC6zuQ
ut8NPj/wJO0HjHgJPsS+xqAUJ6NKBp3q7svyDg3cF8rNiqxn26RZhhcbTHklIKPv
wFQ92bW03JxDBZfzig6aHAE8NlotjyPybVJcRCM3O8EIPFlgNeYfzspNBgaUCqVb
+CCSFYP2mZTVw9GnIc05kL5eum+QdgKTrmxo0pqv2x4F0IpSivJ4j1H9/2Pqo3ZU
2gw9M/pdVIQizVOqeET5McJzBNhUG8yLfXUPrX6Qp/zd8oew+9BzD6QJUCgK+c5f
2hVHnMUjuD3G5jkBEnXBLmBxYPHGlBSjQ8hp022OZrXdtJFmKerSbXavOdS0Izzf
kdqT5b+Tv9BNPWk//a1hqE2Ovkf+NdzAxMu1aq+X8dWakC+twWUcpXoVQ5GLeVM3
wyY+2GugTKvcXvIjsA3lfT4rPsKFCg6x4pY8lp371DdUBHkkdmYTUY7uhnJt+Wp8
LGoF2xHAJK2482wNzQ/SnC7Jpd6jd9Hg0Rk9CNrpEA1HHsEpgKtserXRWu6w0+cN
Xhkj5JTE75R+f7X7W124
=xmTi
-----END PGP SIGNATURE-----

--oyUTqETQ0mS9luUI--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150418082332.GA98351>