2
\$\begingroup\$

I currently working on a new design that should support Ethernet IEEE1588 PTP. I was looking for Ethernet 1GBit PHYs with IEEE1588 support when I saw this on TI website: http://www.ti.com/interface/ethernet/phy/products.html#p1323=10/100;10/100/1000;100&p2192=IEEE%201588%20PTP;IEEE%201588%20SOF

It appears that there is a difference between IEEE1588 PTP and IEEE1588 SOF but I can't see what the difference is (if there is any).

Do you have any idea about what the difference could be ?

\$\endgroup\$

1 Answer 1

4
\$\begingroup\$

This question isn't framed (hah, pun) quite right. Start of frame detection isn't an alternative to PTP, but rather an augmentation of it. In a PTP implementation, you must choose how you actually timestamp the ingressing/egressing packets. A trivial method to do this is software timestamping, wherein your PTP implementation fetches current system time and applies it as the timestamp, possibly with some rudimentary compensation for hardware delays and such. Any 'ol Ethernet transceiver can do this, but it will be quite imprecise compared to other methods.

A better method is "start of frame" detection (hence "SOF"), wherein the packet is timestamped by the MAC by detecting the start of a IEEE 1588 frame, allowing greater precision. In order to achieve this, the MAC must support PTP SOF detection -- for instance, TI's DP83822.

An even better method is hardware timestamping, which relies on building the timestamping support into the PHY itself. This is the best method, and is commonly seen on PTP master, grandmaster, and transparent clocks, as well as slave clocks that require it. TI's DP83640 supports this method.

Sources: This TI blogpost covers it, and I used to work on network clocks.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Thanks for this nice answer esilk ! You said that the MAC must support SOF detection, but most of the MPU I've seen show a vague "IEEE1588 PTP support". Does it mean that PTP is supported but not SOF detection ? \$\endgroup\$
    – RWIN
    Commented May 14, 2018 at 14:32
  • \$\begingroup\$ I can't know what the manufacturer might mean -- I don't work for TI! I would suggest reaching out to them via email or on their forums for any product specific inquiries. They're usually fairly responsive, especially if this is something more than a hobbyist project. Were I to take a guess, however, I would imagine PTP support without an explicit "SOF" declaration would imply PHY time stamping. Don't quote me on it though! Unrelated but I love for the profile pic ;) \$\endgroup\$
    – esilk
    Commented May 14, 2018 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.