Re: more than 65535 outbound connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2007-03-09 at 13:46 +0530, Niklaus wrote:
[...]
> 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

Yup.

> 65535 outbound connections

No, in the TCP world a connection is essentially identified by
	src-ip, src-port, dst-ip, dst-port
(and I left out e.g. "protocol" since it is always "TCP" in the TCP
world).
As long as that 4-tuple is unique it works (at least in theory).
However you very probably have to set SO_REUSE_ADDR on the local sockets
via an ioctl(2).

Given an http server listening on one port on one IP address you may
have 2^16-1 connection from *every* other IP address (at least in theory
- you must be root to get/request an port below - usually - 1024).

[...]
	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux