PHYSICAL CLOCK
In a distributed system, a physical clock refers to a real-time clock mechanism that provides the current time based on the system's hardware or an external time source.Physical clocks refer to actual hardware clocks on each node. Despite their inherent differences and drift, they can be synchronized to some extent using protocols such as:
Network Time Protocol (NTP): NTP is widely used to synchronize the clocks of computers over a network. It uses a hierarchical system of time sources, with stratum levels indicating the distance from the reference clock.
Precision Time Protocol (PTP): PTP provides higher precision than NTP and is used in systems requiring sub-microsecond synchronization. It relies on hardware timestamping and a master-slave hierarchy.
Clock Synchronization Algorithms: Algorithms such as Cristian's algorithm, Berkeley algorithm, and others are used to synchronize clocks across distributed nodes, compensating for clock drift and network delays.