Solved

When UDP is used for NTP service and when TCP is used for NTP service?

Posted on 2008-10-15
4
8,366 Views
Last Modified: 2013-12-16
I check from /etc/services and I find that there are 2 lines for ntp services:
ntp             123/tcp
ntp             123/udp

I got an answer from EE expert that I cannot telnet to NTP server using port 123 as it is UDP. I wonder when TCP is used for NTP service.
0
Comment
Question by:tballah
  • 3
4 Comments
 
LVL 10

Expert Comment

by:PeturIngiEgilsson
ID: 22720880
ntp/tcp is listed as a reserved port for ntp.
Does not mean anything is listening on it.

It would confuse people if you would have different reserved ports for both the TCP and UDP protocols.
0
 
LVL 10

Expert Comment

by:PeturIngiEgilsson
ID: 22720898
example:
port 80 TCP is reserved for HTTPd
It would be confusing if you had port 80 TCP for HTTPd and port 80 UDP running something completely diffrent.
0
 
LVL 1

Author Comment

by:tballah
ID: 22732931
I know a bit from DNS service that it uses port 53/UDP for query and 53/TCP for zone transfer between primary and secondary DNS server. I was thinking the same way for NTP service as defined in /etc/services. By the way who could I know the nature of the service whether it is pure UDP or TCP?
0
 
LVL 10

Accepted Solution

by:
PeturIngiEgilsson earned 250 total points
ID: 22732961
use `netstat -na|grep LISTEN` to see if anything is listening on the 123/TCP

As i stated.. 123/TCP is only listed in /etc/services as a reservation...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now