From owner-freebsd-net@FreeBSD.ORG Sat Nov 9 21:58:26 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 71BB763B; Sat, 9 Nov 2013 21:58:26 +0000 (UTC) (envelope-from mom040267@gmail.com) Received: from mail-pa0-x232.google.com (mail-pa0-x232.google.com [IPv6:2607:f8b0:400e:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3D0FC2528; Sat, 9 Nov 2013 21:58:26 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id hz1so257894pad.37 for ; Sat, 09 Nov 2013 13:58:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QFS9WTL4cvHuXLr9ovez0R07jTIaIq/fjIfwd44lvpQ=; b=cnIYYwGplBRjNG0gyjm8xBHTvrYEMmZlmXlb7ly+mXQb/QfqwN2Yma7F+ntQNGPRsV VylhA44vPdE9aY6wqzm+to0rleaHE0lqKXoJitOilFoWQuVHxY4PXAnKz6vgIM9TeqP5 +UYa5GJfo7WBF/oMVHsz8UMyPrTf4ysvldC5ZjQ17K8t6jxu2C2a/FWaLmffrdR6n6rF ie+WUX5MYNxpUCPkyR4KIehhVPZezDbIvStsKigpj3LPJ8P1BPY0T3Yvs/Um7zTLQFCk aGiJbRtJ1RIVDW0T+t5uUTp4azXJvB+9ETlU0ooEoJ7LAiCY2e46zAVQJ92vJKroR+Bx 7czw== MIME-Version: 1.0 X-Received: by 10.66.142.107 with SMTP id rv11mr23239594pab.17.1384034305844; Sat, 09 Nov 2013 13:58:25 -0800 (PST) Received: by 10.68.147.131 with HTTP; Sat, 9 Nov 2013 13:58:25 -0800 (PST) In-Reply-To: References: Date: Sat, 9 Nov 2013 13:58:25 -0800 Message-ID: Subject: Re: Question about network stack advancements to be on the same level as Linux kernel 3.9+ From: Oleg Moskalenko To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Net 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 21:58:26 -0000 Those kind of advancements make much more sense for UDP than for TCP. Of course TCP would benefit from them, too, but they are really critical for UDP. TCP stack is already relatively advanced, and the improvements will help in only some really extreme high-load use cases - when the TCP listener is the bottleneck. On the other hand, UDP would benefit from the improvements even in usual ordinary use cases. If I may suggest the priority, it would make much more sense to start improving the stack with the UDP. Thanks Oleg On Sat, Nov 9, 2013 at 12:57 PM, Adrian Chadd wrote: > This was talked about at bsdcan. Gleb indicated interest in doing it > for at least TCP. > > Gleb - any other comments? > > > > -adrian > > > > On 9 November 2013 11:46, Oleg Moskalenko wrote: > > 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/ > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >