Solved

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

Posted on 2008-10-15
4
8,663 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Backup & Restore 3 55
reset ubuntu password for root and admin after clearing it. 7 44
LINUX backups with VEEAM 8 82
Linux mount of Windows Shared Now Fails 8 39
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

773 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