LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 11:35 AM   #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, 01: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: 76
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, 02: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, 02: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: 76
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, 10: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



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 08:44 AM
tcp/udp and c++ Kroenecker Programming 1 05-10-2005 11:56 AM
UDP server with socket listening on all IP addresses XTF Programming 0 06-04-2004 03:19 PM
TCP vs. UDP mikeshn Linux - Networking 5 05-17-2003 04:14 PM
MySQL on Debian 3.0: TCP listening Hko Linux - Software 3 09-04-2002 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration