cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
272
Views
0
Helpful
2
Replies

Nagging Question About TCP & UDP Ports

mrashby
Level 1
Level 1

All,

I have always had a question about the transport layer protocols TCP and UDP. How is it that a port number can use both transport protocols? For instance DNS is on port 53 but it uses UDP/TCP how is this possible? This question has nagged me forever. I don't understand what determines if a program will use UDP or TCP especially when the service can use either or? I know this is an easy question but I am reading about transport layer protocols and the questions popped in my head again, can someone shed some light on this?

1 Accepted Solution

Accepted Solutions

ajagadee
Cisco Employee
Cisco Employee

DNS primarily uses UDP on port 53 to serve requests. Almost all DNS queries consist of a single UDP request from the client followed by a single UDP reply from the server. TCP comes into play only when the response data size exceeds 512 bytes, or for such tasks as zone transfer.

So, does that mean you can block TCP and allow only UDP. Not Really. Blocking TCP 53 and allowing UDP 53 will eventually cause some DNS

resolution problems.

Regards,

Arul

** Please rate if it helps **

View solution in original post

2 Replies 2

ajagadee
Cisco Employee
Cisco Employee

DNS primarily uses UDP on port 53 to serve requests. Almost all DNS queries consist of a single UDP request from the client followed by a single UDP reply from the server. TCP comes into play only when the response data size exceeds 512 bytes, or for such tasks as zone transfer.

So, does that mean you can block TCP and allow only UDP. Not Really. Blocking TCP 53 and allowing UDP 53 will eventually cause some DNS

resolution problems.

Regards,

Arul

** Please rate if it helps **

Yes this does help, thanks.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card