From owner-freebsd-questions@FreeBSD.ORG Fri Mar 9 11:22:30 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4490116A401 for ; Fri, 9 Mar 2007 11:22:30 +0000 (UTC) (envelope-from niklaus@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 098BD13C49D for ; Fri, 9 Mar 2007 11:22:28 +0000 (UTC) (envelope-from niklaus@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so1216208ugh for ; Fri, 09 Mar 2007 03:22:28 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=H9jfWT+7iwXewmpYn36dQsXyLW1i4df3iwC2rK7Lzi2++VM6l41Akv1HeHO/zNaJExwXfGmhWZTb2elXRT16RHWNKPyMoqdUmhCOPI0icPwd+9yrJXOY4dobLchrGK59gTsjSHRYwKXWXx5QdNEUU7fCb5KCl7xICAF4ZOLcvSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=FzMkw5qCkGPM9UfqKhZmy05Xt3BvBArcs453+22wp83Blk0BcQGgoKmAXywkAx2n8HTzZiLmomY5hJsxfphSKEPawHHs/fJJo53OMfhhG6JesRDk7xIgQOqv9Ic+2n8ha8vpJSCyUBElcT4tTDtXcK03UWbVVZ/o42wanz+kq2c= Received: by 10.114.151.13 with SMTP id y13mr507609wad.1173437594963; Fri, 09 Mar 2007 02:53:14 -0800 (PST) Received: by 10.114.203.7 with HTTP; Fri, 9 Mar 2007 02:53:14 -0800 (PST) Message-ID: <85e0e3140703090253y262681aoca14fb522d18a076@mail.gmail.com> Date: Fri, 9 Mar 2007 16:23:14 +0530 From: Niklaus To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: debian-user@lists.debian.org Subject: 65535 outbound connections X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 11:22:30 -0000 Hi I could be wrong in the below description or might have misunderstood many of the concepts , please correct appropriately. 65535 ports can allowed . So on a machine namely C you can have max 65535 outbound connections What i was thinking was to send to another machines A and B from the same port [X] and then when we get data from it to [X] we can the send it to the correct application using stateful mapping or storing some information . The machines A and B are unaware of this mapping from the C machine. Can we increase it by anymeans in the kernel. Does we have patches for the above i read on the web that terry lambert has got 1.6 million simultaneous connection ? how is the way it is done. http://kerneltrap.org/node/277 yes now lets take 2 dest machines , source ip is fixed , source port (2^16 - 1) destip is fixed (a.a.a.a and b.b.b.b) ,dest port(2^16 -1) each , for a connection we have one port used , say connection 1 is source ip,port 1 , a.a.a.a port 1 source ip,port 2 , a.a.a.a port 2 . . . source ip,port 65535 , a.a.a.a port 65535 so total of 65535 connections (assume traffic is still going on, a movie on a slow line dialup or 1kbps ) now if i try to open another connection (assume lots of file descriptors are present) to a.a.a.a what happens to b.b.b.b what happens i think both will not get established as the OS doesn't have any free source ports or am i wrong