How to eliminate the delay in NTP synchronization?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
Currently, I am doing a NTP time synchronization between two ubuntu pcs connected by a LAN cable. After I finish the setup, I find that the delay is around 0.170s (170ms), which is not acceptable since I expect a delay less than 30ms. What could be the reasons causing the delay? And how could I solve it?
ntp
add a comment |Â
up vote
2
down vote
favorite
Currently, I am doing a NTP time synchronization between two ubuntu pcs connected by a LAN cable. After I finish the setup, I find that the delay is around 0.170s (170ms), which is not acceptable since I expect a delay less than 30ms. What could be the reasons causing the delay? And how could I solve it?
ntp
how do you measure this delay?
â pim
Apr 24 at 9:17
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Currently, I am doing a NTP time synchronization between two ubuntu pcs connected by a LAN cable. After I finish the setup, I find that the delay is around 0.170s (170ms), which is not acceptable since I expect a delay less than 30ms. What could be the reasons causing the delay? And how could I solve it?
ntp
Currently, I am doing a NTP time synchronization between two ubuntu pcs connected by a LAN cable. After I finish the setup, I find that the delay is around 0.170s (170ms), which is not acceptable since I expect a delay less than 30ms. What could be the reasons causing the delay? And how could I solve it?
ntp
asked Apr 24 at 8:11
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
Teddy_NTU
132
132
how do you measure this delay?
â pim
Apr 24 at 9:17
add a comment |Â
how do you measure this delay?
â pim
Apr 24 at 9:17
how do you measure this delay?
â pim
Apr 24 at 9:17
how do you measure this delay?
â pim
Apr 24 at 9:17
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
I assume you use ntpq
, which gives delay in milliseconds. 0.170 in the delay column of ntpq -p
means a delay of 0.170ms, not 0.170 seconds.
0.170ms is a reasonable delay over a switched ethernet. 170ms does not make a lot of sense.
Explanation of the output is given in the ntpq documentation:
peers
Obtains a current list peers of the server, along with a summary of each peer's state. Summary information includes the address of the remote peer, the reference ID (0.0.0.0 if this is unknown), the stratum of the remote peer, the type of the peer (local, unicast, multicast or broadcast), when the last packet was received, the polling interval, in seconds, the reachability register, in octal, and the current estimated delay, offset and dispersion of the peer, all in milliseconds. The character at the left margin of each line shows the synchronization status of the association and is a valuable diagnostic tool. The encoding and meaning of this character, called the tally code, is given later in this page.
My formatting.
1
Oh my god. I think you are correct. I thought the unit of delay in ntpq -p is in seconds. Thank you very much.
â Teddy_NTU
Apr 25 at 5:57
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
I assume you use ntpq
, which gives delay in milliseconds. 0.170 in the delay column of ntpq -p
means a delay of 0.170ms, not 0.170 seconds.
0.170ms is a reasonable delay over a switched ethernet. 170ms does not make a lot of sense.
Explanation of the output is given in the ntpq documentation:
peers
Obtains a current list peers of the server, along with a summary of each peer's state. Summary information includes the address of the remote peer, the reference ID (0.0.0.0 if this is unknown), the stratum of the remote peer, the type of the peer (local, unicast, multicast or broadcast), when the last packet was received, the polling interval, in seconds, the reachability register, in octal, and the current estimated delay, offset and dispersion of the peer, all in milliseconds. The character at the left margin of each line shows the synchronization status of the association and is a valuable diagnostic tool. The encoding and meaning of this character, called the tally code, is given later in this page.
My formatting.
1
Oh my god. I think you are correct. I thought the unit of delay in ntpq -p is in seconds. Thank you very much.
â Teddy_NTU
Apr 25 at 5:57
add a comment |Â
up vote
0
down vote
accepted
I assume you use ntpq
, which gives delay in milliseconds. 0.170 in the delay column of ntpq -p
means a delay of 0.170ms, not 0.170 seconds.
0.170ms is a reasonable delay over a switched ethernet. 170ms does not make a lot of sense.
Explanation of the output is given in the ntpq documentation:
peers
Obtains a current list peers of the server, along with a summary of each peer's state. Summary information includes the address of the remote peer, the reference ID (0.0.0.0 if this is unknown), the stratum of the remote peer, the type of the peer (local, unicast, multicast or broadcast), when the last packet was received, the polling interval, in seconds, the reachability register, in octal, and the current estimated delay, offset and dispersion of the peer, all in milliseconds. The character at the left margin of each line shows the synchronization status of the association and is a valuable diagnostic tool. The encoding and meaning of this character, called the tally code, is given later in this page.
My formatting.
1
Oh my god. I think you are correct. I thought the unit of delay in ntpq -p is in seconds. Thank you very much.
â Teddy_NTU
Apr 25 at 5:57
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
I assume you use ntpq
, which gives delay in milliseconds. 0.170 in the delay column of ntpq -p
means a delay of 0.170ms, not 0.170 seconds.
0.170ms is a reasonable delay over a switched ethernet. 170ms does not make a lot of sense.
Explanation of the output is given in the ntpq documentation:
peers
Obtains a current list peers of the server, along with a summary of each peer's state. Summary information includes the address of the remote peer, the reference ID (0.0.0.0 if this is unknown), the stratum of the remote peer, the type of the peer (local, unicast, multicast or broadcast), when the last packet was received, the polling interval, in seconds, the reachability register, in octal, and the current estimated delay, offset and dispersion of the peer, all in milliseconds. The character at the left margin of each line shows the synchronization status of the association and is a valuable diagnostic tool. The encoding and meaning of this character, called the tally code, is given later in this page.
My formatting.
I assume you use ntpq
, which gives delay in milliseconds. 0.170 in the delay column of ntpq -p
means a delay of 0.170ms, not 0.170 seconds.
0.170ms is a reasonable delay over a switched ethernet. 170ms does not make a lot of sense.
Explanation of the output is given in the ntpq documentation:
peers
Obtains a current list peers of the server, along with a summary of each peer's state. Summary information includes the address of the remote peer, the reference ID (0.0.0.0 if this is unknown), the stratum of the remote peer, the type of the peer (local, unicast, multicast or broadcast), when the last packet was received, the polling interval, in seconds, the reachability register, in octal, and the current estimated delay, offset and dispersion of the peer, all in milliseconds. The character at the left margin of each line shows the synchronization status of the association and is a valuable diagnostic tool. The encoding and meaning of this character, called the tally code, is given later in this page.
My formatting.
answered Apr 24 at 10:16
![](https://i.stack.imgur.com/AKwUL.png?s=32&g=1)
![](https://i.stack.imgur.com/AKwUL.png?s=32&g=1)
vidarlo
7,12342140
7,12342140
1
Oh my god. I think you are correct. I thought the unit of delay in ntpq -p is in seconds. Thank you very much.
â Teddy_NTU
Apr 25 at 5:57
add a comment |Â
1
Oh my god. I think you are correct. I thought the unit of delay in ntpq -p is in seconds. Thank you very much.
â Teddy_NTU
Apr 25 at 5:57
1
1
Oh my god. I think you are correct. I thought the unit of delay in ntpq -p is in seconds. Thank you very much.
â Teddy_NTU
Apr 25 at 5:57
Oh my god. I think you are correct. I thought the unit of delay in ntpq -p is in seconds. Thank you very much.
â Teddy_NTU
Apr 25 at 5:57
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027712%2fhow-to-eliminate-the-delay-in-ntp-synchronization%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
how do you measure this delay?
â pim
Apr 24 at 9:17