The invention discloses a real-time communication and
clock synchronization method of a
chain network, comprising the following steps that: A, a primary device enumerates and configures each slave device, starts a forwarding function of each slave device and forms an
Ethernet chain network structure; B, the primary device and the slave device or the slave devices mutually exchange a
delay request message and a
delay response message to obtain related time stamps, and then, calculate a
path delay between the current device and the next slave device and store the
path delay in the current device; C, the primary device sends an initial deviation correcting
signal message, each slave device orderly finishes initial deviation correction on a local
clock after receiving the initial deviation correcting
signal message; D, the primary device periodically communicates with each slave device in real time in a manner of collecting total frames, wherein a
clock synchronization process is embedded in the real-time communication process. The method provided by the invention solves the real-time communication scheduling problem caused by combination of the real-time communication and the
clock synchronization.