Patent ID: 8914662

Claim:
A device for implementing a transparent clock, positioned at each port of a switching node, the device comprising: a clock module, a data identification module and a data correction module; wherein the clock module is connected with the data identification module and the data correction module respectively, and provides clock information to the data identification module and the data correction module; the data identification module is receiving data and acquiring current time information from the clock module; and the data correction module is connected with the data identification module, and accumulates a positive or negative value of the current time information to time information included in the data according to an outputting direction of the data and outputting the accumulated time information together with the data, wherein when the outputting direction of the data is outputting from the device to the switching node, the data correction module accumulates the negative value of the current time information to the time information included in the data; and when the outputting direction of the data is outputting from the device to a next switching node of the switching node, the data correction module accumulates the positive value of the current time information to the time information included in the data; and wherein the device further comprises: a caching module that caches the data and the current time information received by the data identification module; a checksum calculation module that determines an intermediate checksum according to the data acquired by the data identification module except for the time information included therein, sending the intermediate checksum to the data identification module, determining a checksum according to the accumulation result and the intermediate checksum in response to a calling by the data correction module and feeding the checksum back to the data correction module; and the data correction module further corrects the data according to the checksum.