This application discloses a
clock synchronization method, apparatus, board, and computer-readable storage medium, relating to the field of
network time synchronization technology. The service card encapsulates a device sending
timestamp in a first NTP request message sent by the main
control card based on the first current
service system time to obtain a second NTP request message, which is then sent to the NTP
server. Based on the second current
service system time, the service card encapsulates a device receiving
timestamp in a second NTP response message sent by the NTP
server to obtain a first NTP response message. The first NTP response message is then sent to the main
control card, allowing the main
control card to calculate the
network clock deviation between itself and the NTP
server based on the first NTP response message, and adjust the main
control system time accordingly. This method avoids the problem of large errors between the device sending
timestamp and the device receiving timestamp, thus ensuring that the
network clock deviation calculated by the main control card will not have significant errors.