Menu

#69 Incorrect Announce logMessageInterval

v2.3.1.1
closed
None
5
2015-10-15
2015-08-28
No

When in "hybrid" mode, ptpd v2.3.1 sets the logMessageInterval of (multicast) Announce
messages to the value 0x7F.

Instead, the value should be portDS.logAnnounceInterval.

Discussion

  • Wojciech Owczarek

    Hey RICHARD,

    Well that's an embarrassing one! Thanks for reporting this.

    Luckily the 2.4 modular transport code has a method to check if a transport address is multicast or unicast, and a callback for that, which lets the protocol code to perform some action on the payload depending if it's destined fo mcast or ucast.

    Regards,
    Wojciech

     
    • Richard Cochran

      Richard Cochran - 2015-08-28

      You are welcome.
      (The 0x7F triggered an integer overflow bug in ptp4l ;)

       
      • Wojciech Owczarek

        Well, it should still be able to survive the 0x7F anywhere, as a special case. I brought this up with the 1588 WG multiple times though - I see no benefit in the 0x7F value in table 24. For example it's always set to logAnnounceInterval for Announce messages, but has transport-dependent values for sync/fup and delayresp. What's the benefit? I can't see any, it's a burden if anything. If you're running G8265.1 for example, then you should use your granted intervals - but surely they would match what's in logMessageInterval.

        I also wanted to push this at least in the Enterprise profile ("hybrid") but to no avail either. If you ask me, the field should always be logMinDelayReqInterval for DelayResp. What's the point of it being 0x7F in Hybrid DelayResp? <facepalm></facepalm>

         
        • Richard Cochran

          Richard Cochran - 2015-08-28

          Here is another (related?) ptpd bug:

          Running ptpd in hybrid master mode, if the slave sends a multicast delay request,
          ptpd sends a multicast delay response, but with logMessageInterval=0x7F.

           
          • Wojciech Owczarek

            Yep. Fixed in the last commit, thanks. Right now it will react based on the PTP_UNICAST flag in the delay request that came in.

             
  • Wojciech Owczarek

    • status: open --> accepted
    • assigned_to: Wojciech Owczarek
    • Group: v2.3.1 --> 2.3.1.1
     
  • Wojciech Owczarek

    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB