Sam Gleske on 3 May 2014 18:22:50 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] udp ports |
I agree that you're limited by the combination of ports on the client
and server, but that means 64k^2 "connections" PER IP, or a total of
64k^2*2^32 connections if you have the maximum number of "connections"
open with every single host on the internet.
The term "connection" is a bit inaccurate though, as there is no
actual connection. An application can bind to a port and accept udp
packets, and an application can send packets from a port (though as
far as I'm aware, doing so does not in any way reserve the port if it
is transmit-only - so 14 different applications could all send packets
from a particular UDP port). When packets are received they contain
the source IP and port, so an application can keep track of up to 64k
different streams of packets from any particular IP.
Now, I'm not sure if the linux implementation of UDP falls short of
this ideal, or if I'm missing something subtle. However, it is just
fine for 75 different computers to all send packets to your DNS server
at the same time, and this only consumes one port on your DNS server.
Even with TCP you can have 75 incoming connections to port 80 on your
webserver from different hosts at the same time. What you can't have
is 75 different TCP connections from the same source port on one host
to the same destination port on your local host. For UDP that
limitation doesn't necessarily exist, since it is stateless.
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug