A clock synchronization method, comprising: determining (S101, S202), by a first node device in a network, a first master clock according to a first clock data set of the first node device and a first clock data set of a second node device in the network, and synchronizing to the first master clock, wherein the first clock data set of the first node device comprises a first clock domain selection parameter of the first node device and the first clock data set of the second node device comprises a first clock domain selection parameter of the second node device; and determining (S102, S205), by the first node device, a second master clock according to a second clock data set of the first node device and a second clock data set of the second node device that belongs to a same first node clock domain as the first node device does, and synchronizing to the second master clock in a second clock domain, wherein the second clock data set of the first node device comprises a second clock domain selection parameter of the first node device and the second clock data set of the second node device comprises a second clock domain selection parameter of the second node device; wherein the second clock domain selection parameter of the first node device is a clock domain selection parameter obtained after precision improvement processing is performed on the first clock domain selection parameter, and the second clock domain selection parameter of the second node device is a clock domain selection parameter obtained after precision improvement processing is performed on the first clock domain selection parameter. determining (S101, S202), by a first node device in a network, a first master clock according to a first clock data set of the first node device and a first clock data set of a second node device in the network, and synchronizing to the first master clock, wherein the first clock data set of the first node device comprises a first clock domain selection parameter of the first node device and the first clock data set of the second node device comprises a first clock domain selection parameter of the second node device; and determining (S102, S205), by the first node device, a second master clock according to a second clock data set of the first node device and a second clock data set of the second node device that belongs to a same first node clock domain as the first node device does, and synchronizing to the second master clock in a second clock domain, wherein the second clock data set of the first node device comprises a second clock domain selection parameter of the first node device and the second clock data set of the second node device comprises a second clock domain selection parameter of the second node device; wherein the second clock domain selection parameter of the first node device is a clock domain selection parameter obtained after precision improvement processing is performed on the first clock domain selection parameter, and the second clock domain selection parameter of the second node device is a clock domain selection parameter obtained after precision improvement processing is performed on the first clock domain selection parameter. <EOS>