From owner-freebsd-net@FreeBSD.ORG Sat Apr 18 08:23:39 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 82CECACC for ; Sat, 18 Apr 2015 08:23:39 +0000 (UTC) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 15CC8CC5 for ; Sat, 18 Apr 2015 08:23:39 +0000 (UTC) Received: by wizk4 with SMTP id k4so45607380wiz.1 for ; Sat, 18 Apr 2015 01:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:hackerspace:user-agent; bh=5lrhJaRw8cDQRqSVmQxxRdLh/EEkBIX8wdg+uBmd1NQ=; b=j6OL3buKatiLN9fvi+wsw6ueQOeKi5GlQQ8o16hkoFN4Oo0snmrEWZ5ZFzlZg2LzCh g8CxNvzrHuwm0fxVGtFSk5Sabp3cOP0Epih3f2KrHjHwBTUTh4MPh9Y+re93WgRAU3Rb weCN42vKuoO7WLY8/C+DrGI4BioI+GHIUqdhM92yQtIBlReau9qemtyLskQeyTEKCLgZ 30qfjKZhxJCPUy2QW5t3BrwLiILIIzHsG27DQxS/vJZTsXjdOGCc8K3FsLJbl5/pPO2f 6i8CeHRkMm4YtDVR7YIqUPIftwSFjQk6x0b52A9+SJRnGW9ryZDZlGmr4v1GH9ZQWHoV mJNA== X-Received: by 10.194.248.132 with SMTP id ym4mr13268818wjc.74.1429345417590; Sat, 18 Apr 2015 01:23:37 -0700 (PDT) Received: from gmail.com (host86-135-140-250.range86-135.btcentralplus.com. [86.135.140.250]) by mx.google.com with ESMTPSA id l10sm17951160wje.15.2015.04.18.01.23.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Apr 2015 01:23:36 -0700 (PDT) Sender: Tom Jones Date: Sat, 18 Apr 2015 09:23:33 +0100 From: Tom Jones To: freebsd-net@freebsd.org Subject: Re: Congestion Control Modification Message-ID: <20150418082332.GA98351@gmail.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: Hackerspace: 57North Hacklab User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Apr 2015 08:23:39 -0000 --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--