Best practise for time sync

ermac

Getting the hang of it
Joined
Jun 21, 2018
Messages
105
Reaction score
44
Location
London and South Africa
I am sure this topic has been discussed a few times here, but would like to know what most think the best practise is for syncing Dahua IP cameras' time with a Dahua NVR/XVR's time?

Should the NVR/XVR be set to sync with an NTP and each IP camera also set to sync with an NTP in the camera's own settings?

I find if the NVR/XVR is set to sync with an NTP and a camera is not it can randomly go out of sync with the NVR/XVR's time, and I need to login to the camera and select "sync PC" to correct it's time, so I would imagine syncing with an NTP should solve it permanently.
 

guykuo

Getting comfortable
Joined
Jul 7, 2018
Messages
576
Reaction score
1,431
Location
Sammamish, WA
I have all mine syncing to the same NTP server. A special NTP WAN access was granted in my otherwise closed security camera LAN.
Among the same brand cameras, time remains within 1-2 seconds sync. Across different brands, you will notice the times differ despite same NTP server.
 

ermac

Getting the hang of it
Joined
Jun 21, 2018
Messages
105
Reaction score
44
Location
London and South Africa
Thanks, yeah I noticed the 1 sec difference despite same NTP server! That does irritate me a bit, but good to know it's pretty normal.
 

redfive

Pulling my weight
Joined
Apr 13, 2016
Messages
509
Reaction score
205
Usually, my routers act as NTP server for the devices connected to, so, no need to allow unwanted outbound connections
 

SouthernYankee

IPCT Contributor
Joined
Feb 15, 2018
Messages
5,170
Reaction score
5,320
Location
Houston Tx
Using NTP uses UDP on port 123. Some routers can act as NTP servers for your network. There is some risk have port 123 open, but the risk is low. Most systems and networks use UDP port 123, so if there were major problems then we would hear about it.
 

iseeker

Getting the hang of it
Joined
Nov 16, 2018
Messages
229
Reaction score
90
Location
TEXAS
Thanks for the info. I point my cameras to my router as well.
 

redfive

Pulling my weight
Joined
Apr 13, 2016
Messages
509
Reaction score
205
Well, I could allow outbound connections from the NVR/cameras to a couple of NTP servers ip addresses, on UDP 123, but why, since the router itself can act as NTP server ? I mean, I only allow the NVR to contact/initiate connections to some google CIDR's, on tcp 587, for mails, then the NVR/cams VLAN can be contacted only by the trusted VLAN, or via VPN, and nothing more
 

teemu81

Getting the hang of it
Joined
Dec 5, 2016
Messages
57
Reaction score
38
On my Dahua devices I activate the ntp on the NVR only, then I check the sync to IPC option on the NVR (activated by default) so the own NVR will syncronize the time with the cameras each X hours. You'll still need to set the cameras on the same GMT than the NVR and activate the DST settings to match the NVR.
 

DICKNLA

n3wb
Joined
Jan 23, 2018
Messages
8
Reaction score
4
I am sure this topic has been discussed a few times here, but would like to know what most think the best practise is for syncing Dahua IP cameras' time with a Dahua NVR/XVR's time?

Should the NVR/XVR be set to sync with an NTP and each IP camera also set to sync with an NTP in the camera's own settings?

I find if the NVR/XVR is set to sync with an NTP and a camera is not it can randomly go out of sync with the NVR/XVR's time, and I need to login to the camera and select "sync PC" to correct it's time, so I would imagine syncing with an NTP should solve it permanently.
hello everybody.

does anyone have a good new time server to sync with since clock.isc.org has been canceled. i have tired a few also time.google.com and i am not having any luck. i haven't changed the default port on any camera though.
 

SpacemanSpiff

Known around here
Joined
Apr 15, 2021
Messages
1,467
Reaction score
2,470
Location
USA
hello everybody.

does anyone have a good new time server to sync with since clock.isc.org has been canceled. i have tired a few also time.google.com and i am not having any luck. i haven't changed the default port on any camera though.
Google "ntp time servers" followed by your country name

i.e. ntp time servers us
 
Top