[Linuxptp-users] Getting started with gptp

2023-10-03 Thread Jithin T Raj via Linuxptp-users
Hi Team,

As I am trying to getting started with ptp, as a first step, I was checking if 
there is any helping hand for setting up gptp client on linux machine
and if there is any hands own project kind of thing (c/c++) through which we 
can familiarize the apis and working flow of gptp.

Basically how to use gptp within a PL like c/c++.
Thanks..!

Bye
Jithin

Disclaimer: This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are 
addressed. If you are not the intended recipient of this message , or if this 
message has been addressed to you in error, please immediately alert the sender 
by reply email and then delete this message and any attachments. If you are not 
the intended recipient, you are hereby notified that any use, dissemination, 
copying, or storage of this message or its attachments is strictly prohibited. 
Email transmission cannot be guaranteed to be secure or error-free, as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. The sender, therefore, does not accept 
liability for any errors, omissions or contaminations in the contents of this 
message which might have occurred as a result of email transmission. If 
verification is required, please request for a hard-copy version.

___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users


Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Nils Fuerste
Ah yeah, I didnt read well. That really improved the sync quality - 
thanks a lot for your advice!


On 3/10/23 14:38, Miroslav Lichvar wrote:

On Tue, Oct 03, 2023 at 02:33:32PM +0200, Nils Fuerste wrote:

Thanks for your help! Unfortunately, setting those values doesn't work for
me. I get the following errors:

sudo ptp4l -2 -i enp1s0f1 -f ./default-new-master.cfg -m
-1.0 is an out of range value for option pi_proportional_const at line 73
failed to parse configuration file ./default-new-master.cfg

It should be pi_proportional_exponent, not pi_proportional_const.


$ sudo ptp4l -2 -i enp1s0f1 -f ./default-new-master.cfg -m
P is a malformed value for option pi_proportional_scale at line 75
failed to parse configuration file ./default-new-master.cfg

P and I should be replaced with the values from the table.




___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users


Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Miroslav Lichvar
On Tue, Oct 03, 2023 at 02:33:32PM +0200, Nils Fuerste wrote:
> Thanks for your help! Unfortunately, setting those values doesn't work for
> me. I get the following errors:
> 
> sudo ptp4l -2 -i enp1s0f1 -f ./default-new-master.cfg -m
> -1.0 is an out of range value for option pi_proportional_const at line 73
> failed to parse configuration file ./default-new-master.cfg

It should be pi_proportional_exponent, not pi_proportional_const.

> $ sudo ptp4l -2 -i enp1s0f1 -f ./default-new-master.cfg -m
> P is a malformed value for option pi_proportional_scale at line 75
> failed to parse configuration file ./default-new-master.cfg

P and I should be replaced with the values from the table.

-- 
Miroslav Lichvar



___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users


Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Nils Fuerste
Thanks for your help! Unfortunately, setting those values doesn't work 
for me. I get the following errors:


sudo ptp4l -2 -i enp1s0f1 -f ./default-new-master.cfg -m
-1.0 is an out of range value for option pi_proportional_const at line 73
failed to parse configuration file ./default-new-master.cfg

or

$ sudo ptp4l -2 -i enp1s0f1 -f ./default-new-master.cfg -m
P is a malformed value for option pi_proportional_scale at line 75
failed to parse configuration file ./default-new-master.cfg

I am on tag v4.1. Any ideas why this is not working?

On 3/10/23 12:28, Miroslav Lichvar wrote:

On Tue, Oct 03, 2023 at 11:45:49AM +0200, Nils Fuerste wrote:

I have a 82599ES from Intel [1]. I found the paramters you were referring to
but I am not sure how to adjust them. Can you give me some guidance for this
if you get a chance?

Try this:
pi_proportional_exponent -1
pi_integral_exponent -1
pi_proportional_scale P
pi_integral_scale I

where P and I are from one line of this table:

0.316 0.01562
0.158 0.00391
0.079 0.00098
0.040 0.00024
0.020 0.6

This is the NTPv4 (RFC 5905) PLL at five different gains. If the sync
interval is -4 (16 sync messages per second), try the middle pair
first.
___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users


Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Miroslav Lichvar
On Tue, Oct 03, 2023 at 11:45:49AM +0200, Nils Fuerste wrote:
> I have a 82599ES from Intel [1]. I found the paramters you were referring to
> but I am not sure how to adjust them. Can you give me some guidance for this
> if you get a chance?

Try this:
pi_proportional_exponent -1 
   
pi_integral_exponent -1
pi_proportional_scale P
pi_integral_scale I

where P and I are from one line of this table:

0.316 0.01562
0.158 0.00391
0.079 0.00098
0.040 0.00024
0.020 0.6

This is the NTPv4 (RFC 5905) PLL at five different gains. If the sync
interval is -4 (16 sync messages per second), try the middle pair
first.

-- 
Miroslav Lichvar



___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users


Re: [Linuxptp-users] Configuration for boundary clock with on two-port NIC

2023-10-03 Thread Nils Fuerste

Thanks for the quick answer!

I have a 82599ES from Intel [1]. I found the paramters you were 
referring to but I am not sure how to adjust them. Can you give me some 
guidance for this if you get a chance?


These are my current settings, basically the default.cfg:

pi_proportional_const   0.0
pi_integral_const   0.0
pi_proportional_scale   0.0
pi_proportional_exponent    -0.3
pi_proportional_norm_max    0.7
pi_integral_scale   0.0
pi_integral_exponent    0.4
pi_integral_norm_max    0.3

Thanks for the help!

Best regards

Nils


[1] 
https://www.intel.la/content/www/xl/es/products/sku/41282/intel-82599es-10-gigabit-ethernet-controller/specifications.html 



On 2/10/23 11:12, Miroslav Lichvar wrote:

On Mon, Oct 02, 2023 at 09:44:19AM +0200, Nils Fuerste wrote:

Unfortunately, the sync on the server receiving the sync from the BC looks
like this:

ptp4l[3297.441]: master offset 42 s2 freq   +9338 path delay
319
ptp4l[3298.441]: master offset    -10 s2 freq   +9298 path delay
319
ptp4l[3299.441]: master offset 19 s2 freq   +9324 path delay
319

That doesn't look too bad.


Is there a way to improve the configuration? I found the boundary_clock_jbod
parameter but setting it to 1 didn't improve the sync.

jbod is only needed when the ports don't share the same clock. It
degrades the sync quality.


Can someone provide a
configuration for a simple BC setup with one two-port NIC? What is the sync
quality I can expect? Any help is appreciated! Thanks in advance!

It depends on the hardware. What NIC do you have?

One thing you can try is to shorten the sync interval and decrease the
PI constants, also on the client's port of the server to minimize the
frequency noise transferred to the client.
___
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users