User Datagram Protocol - Service Ports

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:

    You had to face your ends when young
    ‘Twas wine or women, or some curse
    But never made a poorer song
    That you might have a heavier purse,
    Nor gave loud service to a cause
    That you might have a troop of friends.
    William Butler Yeats (1865–1939)

    All places that the eye of heaven visits
    Are to a wise man ports and happy havens.
    William Shakespeare (1564–1616)