Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

Get The TCP/IP Guide for your own computer.
The TCP/IP Guide

Custom Search







Table Of Contents  The TCP/IP Guide
 9  TCP/IP Lower-Layer (Interface, Internet and Transport) Protocols (OSI Layers 2, 3 and 4)
      9  TCP/IP Transport Layer Protocols
           9  Transmission Control Protocol (TCP) and User Datagram Protocol (UDP)
                9  TCP/IP User Datagram Protocol (UDP)

Previous Topic/Section
UDP Message Format
Previous Page
Pages in Current Topic/Section
12
3
Next Page
TCP/IP Transmission Control Protocol (TCP)
Next Topic/Section

UDP Common Applications and Server Port Assignments
(Page 3 of 3)

Common UDP Applications and Server Port Use

Table 148 shows some of the more interesting protocols that use UDP and the well-known and registered port numbers used for each one's server processes. It also provides a very brief description of why these protocols use UDP instead of TCP. See the sections or topics devoted to each application for more details:


Table 148: Common UDP Applications and Server Port Assignments

Port #

Keyword

Protocol

Comments

53

domain

Domain Name Server (DNS)

Uses a simple request/reply messaging system for most exchanges (but also uses TCP for longer ones).

67 and 68

bootps / bootpc

Bootstrap Protocol (BOOTP) and Dynamic Host Configuration Protocol (DHCP)

Host configuration protocols that consist of short request and reply exchanges.

69

tftp

Trivial File Transfer Protocol (TFTP)

TFTP is a great example of a protocol that was specifically designed for UDP, especially when it is compared to regular FTP. The latter protocol uses TCP to establish a session between two devices, and then makes use of its own large command set and TCP's features to ensure reliable transfer of possibly very large files. In contrast, TFTP is designed for the quick and easy transfer of small files. It includes simple versions of some of TCP's features, such as acknowledgments, to avoid file corruption.

161 and 162

snmp

Simple Network Management Protocol

An administrative protocol that uses relatively short messages.

520 and 521

router / ripng

Routing Information Protocol (RIP-1, RIP-2, RIPng)

Unlike more complex routing protocols like BGP, RIP uses a simple request/reply messaging system, doesn't require connections, and does require multicasts/broadcasts. This makes it a natural choice for UDP. If a routing update is sent due to a request and is lost, it can be replaced by sending a new request. Routine (unsolicited) updates that are lost are replaced in the next cycle.

2049

nfs

Network File System

NFS is an interesting case. Since it is a file sharing protocol, one would think that it would use TCP instead of UDP, but it was originally designed to use UDP for performance reasons. There were many people who felt this was not the best design decision, and later versions moved to the use of TCP. The latest version of NFS uses only TCP.


Applications That Use Both UDP and TCP

There are some protocols that actually use both UDP and TCP. This is often the case either for utility protocols that are designed to accept connection using both transport layer protocols, or for applications that need the benefits of TCP in some cases, but not others.

The classic example of the latter is DNS, which normally uses UDP port 53 for simple requests and replies, which are usually short. Larger messages requiring reliable delivery, such as zone transfers, use TCP port 53 instead. Note that in the table above I have omitted some of the less-significant protocols, such as the ones used for diagnostic purposes (Echo, Discard, CharGen, etc.) For a full list of all common applications, see the topic on common TCP/IP applications and port numbers.

 


Previous Topic/Section
UDP Message Format
Previous Page
Pages in Current Topic/Section
12
3
Next Page
TCP/IP Transmission Control Protocol (TCP)
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.