Re: [RFC] support for IEEE 1588

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Octavian Purdila <opurdila@...>
Cc: <netdev@...>
Date: Monday, July 7, 2008 - 8:34 am

On Sat, 2008-07-05 at 03:21 +0300, Octavian Purdila wrote:
[cookie for TX time stamp]

I think it is relevant also for PTPd: without such a cookie the next
SYNC cannot be sent unless the previous time stamp was obtained
successfully. If the packet is lost without triggering the hardware time
stamping (which I have seen happen in practice under load), then the
PTPd would get stuck. With a cookie it can send SYNCs at the normal
intervals and be sure not to mix up time stamps.

This is more of a theoretical problem, though: if there is no time stamp
after two seconds, the corresponding packet most likely got lost and it
is fairly safe to send a new SYNC and to assume that the next time stamp
will be for that SYNC.


I was just using IP_MULTICAST_LOOP+SO_TIMESTAMP as an example of how a
similar mechanism could work for hardware time stamping.


Right. Perhaps that could be solved with an additional control message
which specifies where the bounced packet is to be sent to, but that is
not much (not at all?) easier than the cookie approach.

I'm confident that adapting PTPd to the cookie approach wouldn't be
difficult, so if you want to implement it, then go for it.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.

The email footer below is automatically added to comply with company
policy; this particular email is not confidental and does not have a
limited set of recipients. Therefore it can be redistributed and
discussed without restrictions.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] support for IEEE 1588, Octavian Purdila, (Thu Jul 3, 6:47 pm)
Re: [RFC] support for IEEE 1588, Lennart Sorensen, (Wed Jul 9, 11:31 am)
Re: [RFC] support for IEEE 1588, Patrick Ohly, (Fri Jul 4, 9:37 am)
Re: [RFC] support for IEEE 1588, Octavian Purdila, (Fri Jul 4, 8:21 pm)
Re: [RFC] support for IEEE 1588, Patrick Ohly, (Mon Jul 7, 8:34 am)
Re: [RFC] support for IEEE 1588, Stephen Hemminger, (Thu Jul 3, 7:24 pm)
Re: [RFC] support for IEEE 1588, Octavian Purdila, (Thu Jul 3, 7:40 pm)
Re: [RFC] support for IEEE 1588, Rick Jones, (Thu Jul 3, 8:15 pm)
Re: [RFC] support for IEEE 1588, Andi Kleen, (Fri Jul 4, 7:24 am)
Re: [RFC] support for IEEE 1588, Octavian Purdila, (Thu Jul 3, 8:42 pm)