The present invention provides a method for realizing a one-step mode and a two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC. The method comprises the following steps: S1, receiving the packet of PTP event information; S2, obtaining the timestamp of the ...