Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  64K tcp/ip port constrain

Guest
Posted: Tue Feb 13, 2007 10:24 am Reply with quote
Guest
Can anyone tell me how can Yaws have almost 80,000 concurrent
connections, and some "home-made" erlang servers over 110K concurrent
connections if there are only 64,000 tcp/ip ports?

BR
Patrick

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Tue Feb 13, 2007 12:10 pm Reply with quote
Guest
Hello Patrick,

I don't know anything about the 80,000 claim,
but,

A) a single webserver can certainly serve requests on multiple IP addresses
at once, thus isn't limited to 64K listening ports in total.

B) as a server it only needs one IP address and 1 port anyway.. no matter
how many requests!

Each client isn't assigned a unique port at the server end - and nor does it
even need to be unique at the client end
4 pieces of information identify each tcp/ip flow. SourceIP, SourcePort,
DestIP, DestPort.

It's only that combined flow identifier that needs to be unique.

Julian

----- Original Message -----
From: "Pat e" <patrickerj@gmail.com>
To: <erlyaws-list@lists.sourceforge.net>
Sent: Tuesday, February 13, 2007 10:24 AM
Subject: [Erlyaws-list] 64K tcp/ip port constrain


> Can anyone tell me how can Yaws have almost 80,000 concurrent
> connections, and some "home-made" erlang servers over 110K concurrent
> connections if there are only 64,000 tcp/ip ports?
>
> BR
> Patrick
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Tue Feb 13, 2007 4:06 pm Reply with quote
Guest
Pat e wrote:
> Can anyone tell me how can Yaws have almost 80,000 concurrent
> connections, and some "home-made" erlang servers over 110K concurrent
> connections if there are only 64,000 tcp/ip ports?

A TCP/IP connection is identified on each host by a
(local port, local IP, remote port, remote IP) tuple.

Therefore, there can be more than 2^16 connections to a server (even if
the server is listening on a fixed port) provided that they are from more
than one client.

In theory it's also possible to have more than 2^16 connections between a
specific pair of hosts provided that they use all of the available port
combinations. However, TCP/IP stacks generally do not support reusing
local port numbers (when the port is not specified by the client software)
by default, so the practical restriction in this case may still be 2^16.

--
David Hopwood <david.nospam.hopwood@blueyonder.co.uk>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum