From: Matti Aarnio <matti.aarnio@zmailer.org>
To: Niklaus <niklaus@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: more than 65535 outbound connections
Date: Fri, 9 Mar 2007 13:11:20 +0200 [thread overview]
Message-ID: <20070309111120.GE3883@mea-ext.zmailer.org> (raw)
In-Reply-To: <85e0e3140703090243n36fd467dwc83aff0d7b6fb004@mail.gmail.com>
On Fri, Mar 09, 2007 at 04:13:00PM +0530, Niklaus wrote:
> 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
You do have some sort of fixation of having same port numbers at both ends.
In some rare applications that is done (e.g. with NTP server-server connections
using UDP), but it is very rare and never done with TCP.
Now if you have 65535 server ports at a.a.a.a, you can have very nearly
4000 million TCP streams in between them.
> 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
you are wrong.
> >David Lang
/Matti Aarnio
next prev parent reply other threads:[~2007-03-09 11:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <85e0e3140703090016h609ecc5t504121a99bcd3e44@mail.gmail.com>
2007-03-09 8:19 ` Niklaus
2007-03-09 8:36 ` Florian Weimer
2007-03-09 8:31 ` David Lang
2007-03-09 10:43 ` Niklaus
2007-03-09 11:11 ` Matti Aarnio [this message]
2007-03-09 11:04 ` Matti Aarnio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070309111120.GE3883@mea-ext.zmailer.org \
--to=matti.aarnio@zmailer.org \
--cc=linux-kernel@vger.kernel.org \
--cc=niklaus@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®