Patent ID: 8638822

Claim:
A method for transmitting a clock packet through a tunnel, wherein the clock packet comprises a processing time correction field of the clock packet, the method comprising: encapsulating a tunnel ingress clock packet received at an ingress of the tunnel, in an encapsulation mode corresponding to the tunnel comprising: setting an initial value of an outermost processing time correction field of the clock packet, generating a new clock packet, appending the received clock packet to the new clock packet, and encapsulating the new clock packet and the original clock packet in the encapsulation mode corresponding to the tunnel; performing clock correction for the encapsulated clock packet; sending the corrected clock packet to an egress of the tunnel; and decapsulating the clock packet at the egress of the tunnel, wherein decapsulating the clock packet at the egress of the tunnel comprises: decapsulating the clock packet, stripping off the new clock packet, subtracting the initial value of the outermost processing time correction field from a value of the outermost processing time correction field of the non-decapsulated clock packet, and adding a result of the subtraction to the processing time correction field of the decapsulated clock packet.