I am doing a research project on Vehicular Ad hoc networks.. I am using C programming language for socket programming, with four laptops installed with Ubuntu 12.04 and 14.04 versions. All the laptops are connected to an ad hoc network which I created. And each of these laptops is constantly broadcasting on a broadcast IP address of the ad hoc network. and at the same time, receiving broadcasts from the other three laptops(beaconing or hello packets). I am going to be doing field tests using these 4 laptops in 4 cars each. and I need to do a performance evaluation based on end-to-end delay of the UDP packets under different traffic scenarios.
Now, the problem in finding delay is that all of my four laptops are having different system times. So, I need to synchronize their times, by making one of my 4 laptops as the TIME SERVER..
I have thought of using NTP time sync method. But I realized that NTP works in a client-server fashion, whereas I am using an ad hoc network configuration.. Can anyone tell me whether I can use ntp on ad hoc network? and ,,if that's possible,,,how to configure on each device?
Secondly,, I will not be having Internet connection on any of these 4 laptops while doing the field tests on the road..
Thank You