Kevin Dorrell Tue, 05/20/2008 - 00:34
User Badges:
  • Green, 3000 points or more

The port ranges of UDP and TCP actually the same; that is, they are independent of each other in priciple. So each has a range of ports from 1 to 64K. You distinguish them by the protocol field in the IP header: 6 for TCP, or 17 for UDP.

Very often, however, there are protocols that can run equally over TCP or UDP, and in these cases they usually use the same port number for UDP as they do for TCP. For example, DNS runs over UDP/53 or TCP/53.

Kevin Dorrell



This Discussion