Thread: [Linuxptp-users] logAnnounceInterval Vs announceReceiptTimeout
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Chandra M. <sma...@al...> - 2015-03-17 16:05:08
|
Hi Friends, While running the ptp4l, I observe the errors due to Announce message timeouts. Could you clarify the following? * My understanding is that logAnnounceInterval (default 1 in every two seconds) is to be set up at the master and announceReceiptTimeout (default 3 messages before the last message reception) to be at the slave. Am I right? * I see more of these erros when I increase the packet frequency for Sync and DelayReq (say 512 packets per second). Are there any optimal values for the above for such high packet frequencies? * Message_interval option also seems to play a role in addition to the increased packet frequency. If I reduce the message_interval to a very less value such as -9 (i.,e., increase the message frequency), the errors due to announce message timeouts seem to increase. Is it expected? Are the optimal values for 'logAnnounceInterval & announceReceiptTimeout' helpful in this case? Please share your experience with these options. Thanking you in anticipation, Regards, Chandra (c) : 0175508142 (O): 701.6412 "Knowledge speaks, Wisdom listens" ________________________________ Confidentiality Notice. This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you. |
From: Richard C. <ric...@gm...> - 2015-03-17 16:27:21
|
On Tue, Mar 17, 2015 at 04:04:45PM +0000, Chandra Mallela wrote: > * My understanding is that logAnnounceInterval (default 1 in every two seconds) is to be set up at the master and announceReceiptTimeout (default 3 messages before the last message reception) to be at the slave. Am I right? This is defined by the profile. What profile are you using? > * I see more of these erros when I increase the packet frequency for Sync and DelayReq (say 512 packets per second). Are there any optimal values for the above for such high packet frequencies? > > * Message_interval option also seems to play a role in addition to the increased packet frequency. If I reduce the message_interval to a very less value such as -9 (i.,e., increase the message frequency), the errors due to announce message timeouts seem to increase. Is it expected? Are the optimal values for 'logAnnounceInterval & announceReceiptTimeout' helpful in this case? There is no "Message_interval" option. > Please share your experience with these options. You are running an extremely short Sync period. You can expect packet loss and related problems. There is no silver bullet to help you here. If I were going to attempt 512 Syncs per second, then I would: - use one step (special HW required) - reduce the DelayReq to something reasonable (like 1 Hz) - make sure my kernel has SO_SELECT_ERR_QUEUE HTH, Richard |
From: Chandra M. <sma...@al...> - 2015-03-17 17:22:05
|
Hi Richard, Please find my answers/questions in line. Thanking you in anticipation, Regards, Chandra (c) : 0175508142 (O): 701.6412 "Knowledge speaks, Wisdom listens" -----Original Message----- From: Richard Cochran [mailto:ric...@gm...] Sent: Wednesday, March 18, 2015 12:27 AM To: Chandra Mallela Cc: lin...@li... Subject: Re: [Linuxptp-users] logAnnounceInterval Vs announceReceiptTimeout On Tue, Mar 17, 2015 at 04:04:45PM +0000, Chandra Mallela wrote: > * My understanding is that logAnnounceInterval (default 1 in every two seconds) is to be set up at the master and announceReceiptTimeout (default 3 messages before the last message reception) to be at the slave. Am I right? This is defined by the profile. What profile are you using? ***Ours is typical telecom-networking profile. Could you point me to any info link that defines the parameters for different profiles? > * I see more of these erros when I increase the packet frequency for Sync and DelayReq (say 512 packets per second). Are there any optimal values for the above for such high packet frequencies? > > * Message_interval option also seems to play a role in addition to the increased packet frequency. If I reduce the message_interval to a very less value such as -9 (i.,e., increase the message frequency), the errors due to announce message timeouts seem to increase. Is it expected? Are the optimal values for 'logAnnounceInterval & announceReceiptTimeout' helpful in this case? There is no "Message_interval" option. ***Sorry. I have used summary_interval option at -8 or -9 to understand the time between path delay calculations. I have seen sync faults at these high summary rates. > Please share your experience with these options. You are running an extremely short Sync period. You can expect packet loss and related problems. There is no silver bullet to help you here. If I were going to attempt 512 Syncs per second, then I would: - use one step (special HW required) - reduce the DelayReq to something reasonable (like 1 Hz) - make sure my kernel has SO_SELECT_ERR_QUEUE ***I understand the 1-step part. However, reducing DelayReq might not make sense. Average path delay should be at least half the rate of Sync packets to statistically arrive at better values of path delay. 1Hz seems quite low especially for telecom applications. I will google about SO_SELECT_ERR_QUEUE. However, if you have any good link, please let me know. BTW 512 sync is not that high rate at all unless it is coming from the stack as a limitation. HTH, Richard ________________________________ Confidentiality Notice. This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you. |
From: Richard C. <ric...@gm...> - 2015-03-17 17:56:56
|
On Tue, Mar 17, 2015 at 05:21:47PM +0000, Chandra Mallela wrote: > ***Ours is typical telecom-networking profile. Could you point me to any info link that defines the parameters for different profiles? First of all, the telecom profile is unicast only. We do not support unicast. Secondly, from the telecom profile: A.3.4 REQUEST_UNICAST_TRANSMISSION TLV For requesting unicast Sync messages: The configurable range shall be one message every 16 seconds to 128 messages per second. No default rate is specified. For requesting unicast Delay_Resp messages: The configurable range shall be one message every 16 seconds to 128 messages per second. No default rate is specified. ITU-T G.8265.1 page 20 So, your 512 figure is *way* out of spec. > ***I understand the 1-step part. However, reducing DelayReq might not make sense. Average path delay should be at least half the rate of Sync packets to statistically arrive at better values of path delay. 1Hz seems quite low especially for telecom applications. If the path is not changing, then it does not make sense to measure it so often. I would expect a telecom network to be engineered to have fixed delays. > I will google about SO_SELECT_ERR_QUEUE. However, if you have any good link, please let me know. This means using Linux kernel version 3.10 or newer. Thanks, Richard |
From: Chandra M. <sma...@al...> - 2015-03-18 12:12:16
|
Hi Richard, I think the following fell through cracks. My main intention is to understand the usage of the options ' logAnnounceInterval' & 'announceReceiptTimeout'. Could you throw some light on them? Do you have any link that elucidates the relation between their usage and the PTP profiles? My understanding is that logAnnounceInterval (default 1 in every two seconds) is to be set up at the master and announceReceiptTimeout (default 3 messages before the last message reception) to be at the slave. Am I right? Thanking you in anticipation, Regards, Chandra (c) : 0175508142 (O): 701.6412 "Knowledge speaks, Wisdom listens" -----Original Message----- From: Richard Cochran [mailto:ric...@gm...] Sent: Wednesday, March 18, 2015 1:57 AM To: Chandra Mallela Cc: lin...@li... Subject: Re: [Linuxptp-users] logAnnounceInterval Vs announceReceiptTimeout On Tue, Mar 17, 2015 at 05:21:47PM +0000, Chandra Mallela wrote: > ***Ours is typical telecom-networking profile. Could you point me to any info link that defines the parameters for different profiles? First of all, the telecom profile is unicast only. We do not support unicast. Secondly, from the telecom profile: A.3.4 REQUEST_UNICAST_TRANSMISSION TLV For requesting unicast Sync messages: The configurable range shall be one message every 16 seconds to 128 messages per second. No default rate is specified. For requesting unicast Delay_Resp messages: The configurable range shall be one message every 16 seconds to 128 messages per second. No default rate is specified. ITU-T G.8265.1 page 20 So, your 512 figure is *way* out of spec. > ***I understand the 1-step part. However, reducing DelayReq might not make sense. Average path delay should be at least half the rate of Sync packets to statistically arrive at better values of path delay. 1Hz seems quite low especially for telecom applications. If the path is not changing, then it does not make sense to measure it so often. I would expect a telecom network to be engineered to have fixed delays. > I will google about SO_SELECT_ERR_QUEUE. However, if you have any good link, please let me know. This means using Linux kernel version 3.10 or newer. Thanks, Richard ________________________________ Confidentiality Notice. This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you. |
From: Richard C. <ric...@gm...> - 2015-03-18 12:29:03
|
On Wed, Mar 18, 2015 at 12:11:57PM +0000, Chandra Mallela wrote: > My understanding is that logAnnounceInterval (default 1 in every two seconds) is to be set up at the master and announceReceiptTimeout (default 3 messages before the last message reception) to be at the slave. Am I right? Yes and no. The range of choices for these two parameters is determined by the profile. For any PTP network, all of the nodes must use the profile and the same particular values in order to ensure the correct operation of BMC algorithm. The 'master' and 'slave' roles are not static on a given port, but rather they can change depending on the outcome of the BMC election. Refering to IEEE 1588 might help clarify these and other points for you. Also, take a look at the telecom profile. HTH, Richard |