LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-13-2003, 12:35 PM   #1
hugohindemith
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
NTP listening on UDP+TCP(!)/123


Hi all,
How can I make the ntpd daemon listening on TCP(!)/123 ? Listening just on UDP/123 seems to be the default configuration.

Thanks for any comment,
Hugo
 
Old 12-13-2003, 02:37 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
NTP is a UDP-based protocol. I'm not aware of any implementations of NTP over TCP. The reason is that NTP submits one query and gets one response. That is very quick with UDP, but if you were to do that with TCP it would have to setup a whole connection just to send two packets, not very effecient...
 
Old 12-13-2003, 03:14 PM   #3
hugohindemith
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,
"netstat -an" on my NT-box displays listeners both on UPD/123 and TCP/123. The same command list only UPD/123 on my Linux-box.

"cat /etc/services | grep ntp" on my linux-box lists:
ntp 123/tcp
ntp 123/upd

I don't regard this definitions being humbug. There should be a way to enable this. I need this to enable DTSS under VMS to synchronize to my linux-box.

Best Regards
Hugo
 
Old 12-13-2003, 03:52 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
From /usr/local/share/doc/ntp/debug.html:26:
Quote:
Note that NTP does not use TCP in any form.
From /usr/local/share/doc/ntp/debug.html:158:
Quote:
NTP is specifically designed to use UDP and does not respond to TCP.
Just because /etc/services has reserved both UDP and TCP does not mean they're both actually used. Many services reserve the same port on both protocols, but only use one of them (they're both reserved to avoid confusion). For instance Windows runs NetBIOS over UDP and NetBIOS over TCP, but they used different port numbers. Even though they used different port numbers, each of them reserves both UDP and TCP, although only one is used in practice.

Even though your Windows box is bound to both ports, I seriously doubt TCP is used. Run Ethereal on the Windows box while you syncronize time and you'll see this is true.
 
Old 12-15-2003, 11:11 AM   #5
ncorreia
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 37

Rep: Reputation: 15
Hi,

Having NTP on TCP makes no sense from my point of view (and by all means, someone correct me if I'm wrong!!!). TCP provides error correction whilst UDP doesn't... imagine some packets are lost along the way... why would you want to have a time information resent??? It would have no use anyway...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMaViS not listening on tcp port nutcake Linux - Software 1 09-13-2005 09:44 AM
tcp/udp and c++ Kroenecker Programming 1 05-10-2005 12:56 PM
UDP server with socket listening on all IP addresses XTF Programming 0 06-04-2004 04:19 PM
TCP vs. UDP mikeshn Linux - Networking 5 05-17-2003 05:14 PM
MySQL on Debian 3.0: TCP listening Hko Linux - Software 3 09-04-2002 03:28 PM


All times are GMT -5. The time now is 05:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration