• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 12073
  • Last Modified:

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

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
tballah
Asked:
tballah
  • 3
1 Solution
 
Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
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
 
Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
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
 
tballahAuthor Commented:
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
 
Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now