Service Ports
UDP applications use datagram sockets to establish host-to-host communications. An application binds a socket to its endpoint of data transmission, which is a combination of an IP address and a service port. A port is a software structure that is identified by the port number, a 16 bit integer value, allowing for port numbers between 0 and 65535. Port 0 is reserved, but is a permissible source port value if the sending process does not expect messages in response.
The Internet Assigned Numbers Authority has divided port numbers into three ranges. Port numbers 0 through 1023 are used for common, well-known services. On Unix-like operating systems, using one of these ports requires superuser operating permission. Port numbers 1024 through 49151 are the registered ports used for IANA-registered services. Ports 49152 through 65535 are dynamic ports that are not officially designated for any specific service, and can be used for any purpose. They are also used as ephemeral ports, from which software running on the host may randomly choose a port in order to define itself. In effect, they are used as temporary ports primarily by clients when communicating with servers.
Read more about this topic: User Datagram Protocol
Famous quotes containing the words service and/or ports:
“Old books that have ceased to be of service should no more be abandoned than should old friends who have ceased to give pleasure.”
—Peregrine, Sir Worsthorne (b. 1923)
“O polished perturbation! golden care!
That keepst the ports of slumber open wide
To many a watchful night.”
—William Shakespeare (15641616)