From owner-freebsd-net@FreeBSD.ORG Sat Nov 9 19:46:21 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AD14286F for ; Sat, 9 Nov 2013 19:46:21 +0000 (UTC) (envelope-from mom040267@gmail.com) Received: from mail-pd0-x234.google.com (mail-pd0-x234.google.com [IPv6:2607:f8b0:400e:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 88C572F5B for ; Sat, 9 Nov 2013 19:46:21 +0000 (UTC) Received: by mail-pd0-f180.google.com with SMTP id p10so3526577pdj.11 for ; Sat, 09 Nov 2013 11:46:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VEbmfFHwrcYHvKMXI+OQQAtdQWmIvC+UBQhw+vzpIMc=; b=eDallW5znxXl+R1kepE3yWSP0Lve/e0KChN4DDIxxDeFRb3FUqEmkJDGfHBRcqRLRO WHe/xNXhEadh8B5Zaq6L9nd/90PgcIzq00F9SYLW4VL6myuKjCffPpdDt4qanDdMBh4G r7s8U7597Ww42IWTdmLncjAHGqNqVWX9883ohOGq3QnqWqbC7mUB4Y/H9e4RYgZtDYYo 82stbuTRl5vpjYpoJ0CIFwmOohqzwkO3CFELmBYVRx7y/KD+/P1fQ6n327/EIB+lglBE 9tsqipRmC7u2B9eLtFC6WYhKCg8k9hMiYYoTlIANE5EN8EmJNb2T7PAp3CfHptAR6XXi +lNA== MIME-Version: 1.0 X-Received: by 10.66.250.163 with SMTP id zd3mr22278650pac.109.1384026380783; Sat, 09 Nov 2013 11:46:20 -0800 (PST) Received: by 10.68.147.131 with HTTP; Sat, 9 Nov 2013 11:46:20 -0800 (PST) Date: Sat, 9 Nov 2013 11:46:20 -0800 Message-ID: Subject: Question about network stack advancements to be on the same level as Linux kernel 3.9+ From: Oleg Moskalenko To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 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, 09 Nov 2013 19:46:21 -0000 Hi I am a developer of rfc5766-turn-server project. I am using FreeBSD as the main dev platform but I am porting it to everywhere else. I noticed that Linux kernel 3.9+ has some tremendous network stack improvements which can actually help us to achieve the performance goal - the efficient symmetric UDP multithreading server. I tested the kernel 3.11 and indeed it works perfectly: 1) It allows multiple UDP sockets to be bound to the same local address and port; 2) It distributes the incoming traffic "fairly" among the UDP sockets; 3) It preserves the source-destination communication path (persistent path) so that the same socket will always receive the data from the same source. This is an article about the change: https://lwn.net/Articles/542629/ Those features allow very efficient UDP servers to be created. That was not possible with older Linuxes and with current FreeBSD (I use version 9.1). Are there any plans in FreeBSD to adopt the same kind of changes ? With growing media-over-internet use cases, making UDP servers more efficient is getting a high priority task status. Thanks Oleg https://code.google.com/p/rfc5766-turn-server/