LS1043A Software PTP test

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1043A Software PTP test

Jump to solution
3,100 Views
Gyosun
Contributor III

Hello,

I am using an LS1043A custom board.

When you set CONFIG_PTP_1588_CLOCK_DPAA as below, /dev/ptp0 was created.

root@ls1043ardb:~# zcat /proc/config.gz > config
root@ls1043ardb:~# cat config | grep PTP
CONFIG_NET_PTP_CLASSIFY=y
# PTP clock support
CONFIG_PTP_1588_CLOCK=y
CONFIG_PTP_1588_CLOCK_DPAA=y
# CONFIG_PTP_1588_CLOCK_DPAA2 is not set

ethtool을 이용하여 상태를 확인하였더니 아래와 같이 나옵니다.

root@ls1043ardb:~# ethtool -T fm1-mac3
Time stamping parameters for fm1-mac3:
Capabilities:
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

 

When I run the ptpd2 daemon, it doesn't seem to work properly.

root@ls1043ardb:~# ptpd2 -s -i fm1-mac3 -d 0 -o /dev/ptp0 -f ptpd2.status -D -V
Runtime debug not enabled. Please compile with RUNTIME_DEBUG
1970-01-01 02:08:39.615259 ptpd2[1715].startup (info) (___) Configuration OK
1970-01-01 02:08:39.615960 ptpd2[1715].startup (info) (___) Successfully acquired lock on /var/run/ptpd2.lock
1970-01-01 02:08:39.616308 ptpd2[1715].startup (notice) (___) PTPDv2 started successfully on fm1-mac3 using "slaveonly" preset (PID 1715)
1970-01-01 02:08:39.616524 ptpd2[1715].startup (info) (___) TimingService.PTP0: PTP service init
# Timestamp, State, Clock ID, One Way Delay, Offset From Master, Slave to Master, Master to Slave, Observed Drift, Last packet Received, One Way Delay Mean, One Way Delay Std Dev, Offset From Master Mean, Offset From Master Std Dev, Observed Drift Mean, Observed Drift Std Dev, raw delayMS, raw delaySM
1970-01-01 02:08:39.616811, init,
1970-01-01 02:08:39.617563 ptpd2[1715].fm1-mac3 (info) (init) Observed_drift loaded from kernel: 0 ppb
1970-01-01 02:08:39.717900 ptpd2[1715].fm1-mac3 (notice) (lstn_init) Now in state: PTP_LISTENING
1970-01-01 02:08:39.718105, lstn_init, 1
1970-01-01 02:08:49.616773 ptpd2[1715].fm1-mac3 (notice) (lstn_init) TimingService.PTP0: elected best TimingService
1970-01-01 02:08:49.616847 ptpd2[1715].fm1-mac3 (info) (lstn_init) TimingService.PTP0: acquired clock control
1970-01-01 02:08:51.823118, lstn_init, 1
^C1970-01-01 02:08:59.947932 ptpd2[1715].fm1-mac3 (info) (lstn_init) TimingService: Timing domain shutting down
1970-01-01 02:08:59.947999 ptpd2[1715].fm1-mac3 (info) (lstn_init) TimingService.PTP0: PTP service shutdown
1970-01-01 02:08:59.948028, dsbl,
1970-01-01 02:08:59.948249 ptpd2[1715].fm1-mac3 (notice) (___) Shutdown on close signal

 

I don't have PTP-related hardware configuration, so I want to process it in a software way.

I would like to ask for advice on how to do it.

I also tried ptp4l, but it doesn't seem to work.

root@ls1043ardb:~# ptp4l -i fm1-mac3 -S
interface 'fm1-mac3' does not support requested timestamping mode.

Thank you!

Best Regards,

Gyousn.

0 Kudos
1 Solution
3,002 Views
chithanhhoang
Contributor II

The intermediate "igmp hub" for sure is filtering the ptp multicast message, one thing you could do is to disable igmp snooping on your switch so all the multicast will go on all ports, with igmp if the membership is not established, the switch will not forward multicast packet with that specific multicast mac.  The drawback is multicast will go to every port even if the remote end don't care about that specific mcast.

Or you have to make sure to run igmp on linux and make sure the wanted multicast is being add to the membership so the switch will know it can forward your ptp mcast to that particular port.

If you cannot turn of igmp snooping, you can use ptp unicast instead of ptp multicast so the switch will not filter your ptp frame, both ptpd and ptp4l support such mode i.e. ptp unicast.

View solution in original post

8 Replies
3,097 Views
yipingwang
NXP TechSupport
NXP TechSupport

On the Master side :

./ptpd2 -MV -i fm1-mac3

On the slave side

./ptpd2 -sV -i fm1-mac3 --servo:kp=0.32 --servo:ki=0.05

 

On the slave side, the time offset from master will decrease to +/-150ns.

 

Please check whether the following option is on.

root@localhost:~# ethtool -T fm1-mac3 | grep -i HWTSTAMP_TX_ON
	on                    (HWTSTAMP_TX_ON)

In addition, which version SDK/LSDK are you using now?

0 Kudos
3,090 Views
Gyosun
Contributor III

Hi yipingwang,

I tested it and it doesn't work.

SDK is QorIQ-SDK-1703.

Should H/W be configured?

Is there any way to process it with S/W?

 

root@ls1043ardb:~# cat config | grep 1588
CONFIG_FSL_DPAA_1588=y
CONFIG_PTP_1588_CLOCK=y
CONFIG_PTP_1588_CLOCK_DPAA=y
# CONFIG_PTP_1588_CLOCK_DPAA2 is not set
root@ls1043ardb:~# ethtool -T fm1-mac3 | grep -i HWTSTAMP_TX_ON
root@ls1043ardb:~# ethtool -T fm1-mac3
Time stamping parameters for fm1-mac3:
Capabilities:
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none
root@ls1043ardb:~# uname -a
Linux ls1043ardb 4.1.35-rt41 #11 SMP Wed Nov 11 14:33:00 KST 2020 aarch64 GNU/Linux
root@ls1043ardb:~#

 

root@ls1043ardb:~# ptpd2 -sV -i fm1-mac3 --servo:kp=0.32 --servo:ki=0.05
1970-01-01 01:44:12.963143 ptpd2[6192].startup (info)      (___) Configuration OK
1970-01-01 01:44:12.963650 ptpd2[6192].startup (info)      (___) Successfully acquired lock on /var/run/ptpd2.lock
1970-01-01 01:44:12.963810 ptpd2[6192].startup (notice)    (___) PTPDv2 started successfully on fm1-mac3 using "slaveonly" preset (PID 6192)
1970-01-01 01:44:12.963840 ptpd2[6192].startup (info)      (___) TimingService.PTP0: PTP service init
# Timestamp, State, Clock ID, One Way Delay, Offset From Master, Slave to Master, Master to Slave, Observed Drift, Last packet Received, One Way Delay Mean, One Way Delay Std Dev, Offset From Master Mean, Offset From Master Std Dev, Observed Drift Mean, Observed Drift Std Dev, raw delayMS, raw delaySM
1970-01-01 01:44:12.963892, init,
1970-01-01 01:44:12.964559 ptpd2[6192].fm1-mac3 (info)      (init) Observed_drift loaded from kernel: 0 ppb
1970-01-01 01:44:13.064701 ptpd2[6192].fm1-mac3 (notice)    (lstn_init) Now in state: PTP_LISTENING
1970-01-01 01:44:13.064733, lstn_init,  1
1970-01-01 01:44:22.963887 ptpd2[6192].fm1-mac3 (notice)    (lstn_init) TimingService.PTP0: elected best TimingService
1970-01-01 01:44:22.963966 ptpd2[6192].fm1-mac3 (info)      (lstn_init) TimingService.PTP0: acquired clock control
1970-01-01 01:44:25.164825, lstn_init,  1
1970-01-01 01:44:37.264953, lstn_init,  1
1970-01-01 01:44:49.365074, lstn_init,  1
1970-01-01 01:45:01.465195, lstn_init,  1
1970-01-01 01:45:13.465215 ptpd2[6192].fm1-mac3 (warning)   (lstn_init) Still in LISTENING after 5 restarts - restarting transports
1970-01-01 01:45:13.465296, flt,
1970-01-01 01:45:13.465316, flt,
1970-01-01 01:45:13.465333, init,
1970-01-01 01:45:13.566171 ptpd2[6192].fm1-mac3 (notice)    (lstn_reset) Now in state: PTP_LISTENING
1970-01-01 01:45:13.566204, lstn_reset,  2
1970-01-01 01:45:25.666292, lstn_reset,  2
1970-01-01 01:45:37.766422, lstn_reset,  2
1970-01-01 01:45:49.866560, lstn_reset,  2
1970-01-01 01:46:01.963904, lstn_reset,  2

 

Thank you!

Best Regards,

Gyosun.

0 Kudos
3,085 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please disable CONFIG_FSL_DPAA_1588, and only enable following Kernel config options.

CONFIG_PTP_1588_CLOCK_DPAA=y

CONFIG_FSL_SDK_DPAA_ETH=y

Please check whether you could get the following  message during Linux system boot:

...
pps pps0: new PPS source ptp0
...

On master side:

# ifconfig fm1-mac3 up
# ifconfig fm1-mac3 192.168.1.100
# ptpd -i fm1-mac3 -MV

On the slave side :
# ifconfig fm1-mac3 up
# ifconfig fm1-mac3 192.168.1.200
# ptpd -i fm1-mac3 -sV --servo:kp=0.32 --servo:ki=0.05

 

Note: please make sure the slave target can ping the master successfully.

In addition, please use ptpd provided in QorIQ SDK 2.0 1703, there is Freescale patch to add DPAA and eTSEC support in ptpd source code.

You could add ptpd in sources/meta-freescale/recipes-fsl/images/fsl-image-core.bb as the following, then rebuild rootfs filesystem.

IMAGE_INSTALL_append = " \
packagegroup-fsl-tools-core \
packagegroup-fsl-benchmark-core \
packagegroup-fsl-networking-core \
glibc-locale \
glibc-utils \
util-linux-agetty \
mesa \
ptpd \
"

3,078 Views
Gyosun
Contributor III

Hi yipingwang,

The kernel config option has been reset.

Add ptpd to the fsl-image-core.b file and run bitbake fsl-image-core to create fsl-image-core-ls1043ardb.tar.gz, but no ptpd was created in the contents.

root@ls1043ardb:~# zcat /proc/config.gz > config
root@ls1043ardb:~# cat config | grep CONFIG_FSL_DPAA_1588
# CONFIG_FSL_DPAA_1588 is not set
root@ls1043ardb:~# cat config | grep CONFIG_PTP_1588_CLOCK_DPAA
CONFIG_PTP_1588_CLOCK_DPAA=y
# CONFIG_PTP_1588_CLOCK_DPAA2 is not set
root@ls1043ardb:~# cat config | grep CONFIG_FSL_SDK_DPAA_ETH
CONFIG_FSL_SDK_DPAA_ETH=y
root@ls1043ardb:~# dmesg | grep ptp
[ 1.234924] pps pps0: new PPS source ptp0
root@ls1043ardb:~#


I ran it using ptpd included in the existing rootfs, but an option error occurred, so I ran as follows.

root@ls1043ardb:~# which ptpd
/usr/sbin/ptpd
root@ls1043ardb:~# ls -al /usr/sbin/ptpd
-rwxr-xr-x 1 root root 39112 Oct 30 02:27 /usr/sbin/ptpd
root@ls1043ardb:~#

root@ls1043ardb:~# ptpd -i fm1-mac3 -sV --servo:kp=0.32 --servo:ki=0.05
ptpd: invalid option -- '-'

Usage: ptpd [OPTION]

-? show this page

-c run in command line (non-daemon) mode
-f FILE send stats to FILE
-S send output to syslog
-T set multicast time to live
-d display stats
-D display stats in .csv format
-R record data about sync packets in a file

-x do not reset the clock if off by more than one second
-O do not reset the clock if offset is more than NUMBER nanoseconds
-M do not accept delay values of more than NUMBER nanoseconds
-t do not adjust the system clock
-a NUMBER,NUMBER specify clock servo P and I attenuations
-w NUMBER specify one way delay filter stiffness

-b NAME bind PTP to network interface NAME
-u ADDRESS also send uni-cast to ADDRESS
-l NUMBER,NUMBER specify inbound, outbound latency in nsec

-o NUMBER specify current UTC offset
-e NUMBER specify epoch NUMBER
-h specify half epoch

-y NUMBER specify sync interval in 2^NUMBER sec
-m NUMBER specify max number of foreign master records

-g run as slave only
-p make this a preferred clock
-s NUMBER specify system clock stratum
-i NAME specify system clock identifier
-v NUMBER specify system clock allen variance

-n NAME specify PTP subdomain name (not related to IP or DNS)

-k NUMBER,NUMBER send a management message of key, record, then exit

root@ls1043ardb:~#

root@ls1043ardb:~# ptpd -i fm1-mac3 -sV -servo:kp=0.32 -servo:ki=0.05
root@ls1043ardb:~# ps -ef | grep ptpd

root 2214 1 0 08:18 ? 00:00:00 ptpd -i fm1-mac3 -sV -servo:kp=0.32 -servo:ki=0.05
root 10419 2151 0 08:50 pts/0 00:00:00 grep ptpd
root@ls1043ardb:~#

 

However, the time is not updated.

An external PC was used for the ptp server, and the ptp packet was checked with wireshark.

Can you share your ptpd files?


Thank you!

Best Regards,

Gyosun.

0 Kudos
3,075 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached log.

Server:

root@ls1046ardb:~# ptpd2 -C -MV -i fm1-mac3
1970-01-01 00:01:12.062608 ptpd2[3254].startup (info) (___) Configuration OK
1970-01-01 00:01:12.063044 ptpd2[3254].startup (info) (___) Successfully acquired lock on /var/run/ptpd2.lock
1970-01-01 00:01:12.063164 ptpd2[3254].startup (notice) (___) PTPDv2 started successfully on fm1-mac3 using "masteronly" preset (PID 3254)
1970-01-01 00:01:12.063181 ptpd2[3254].startup (info) (___) TimingService.PTP0: PTP service init
# Timestamp, State, Clock ID, One Way Delay, Offset From Master, Slave to Master, Master to Slave, Observed Drift, Last packet Received, One Way Delay Mean, One Way Delay Std Dev, Offset From Master Mean, Offset From Master Std Dev, Observed Drift Mean, Observed Drift Std Dev, raw delayMS, raw delaySM
1970-01-01 00:01:12.063212, init,
1970-01-01 00:01:12.163959 ptpd2[3254].fm1-mac3 (notice) (lstn_init) Now in state: PTP_LISTENING
1970-01-01 00:01:12.163981, lstn_init, 1
1970-01-01 00:01:22.063221 ptpd2[3254].fm1-mac3 (notice) (lstn_init) TimingService.PTP0: elected best TimingService
1970-01-01 00:01:22.063248 ptpd2[3254].fm1-mac3 (info) (lstn_init) TimingService.PTP0: acquired clock control
1970-01-01 00:01:24.164176 ptpd2[3254].fm1-mac3 (notice) (mst) Now in state: PTP_MASTER, Best master: 00e00cfffe008e00(unknown)/1 (self)
1970-01-01 00:01:24.164199, mst, 00e00cfffe008e00(unknown)/1
[ 96.218413] random: nonblocking pool is initialized
^C1970-01-01 00:04:04.432944 ptpd2[3254].fm1-mac3 (info) (mst) TimingService: Timing domain shutting down
1970-01-01 00:04:04.432968 ptpd2[3254].fm1-mac3 (info) (mst) TimingService.PTP0: PTP service shutdown
1970-01-01 00:04:04.432984, dsbl,
1970-01-01 00:04:04.433128 ptpd2[3254].fm1-mac3 (notice) (___) Shutdown on close signal

 

Client:

root@ls1046ardb:~# ptpd2 -C -sV --servo:kp=0.32 --servo:ki=0.05 -i fm1-mac3
1970-01-01 00:04:33.412628 ptpd2[3324].startup (info) (___) Configuration OK
1970-01-01 00:04:33.413026 ptpd2[3324].startup (warning) (___) Interface fm1-mac3 seems to be down. PTPd will not operate correctly until it's up.
1970-01-01 00:04:33.413082 ptpd2[3324].startup (info) (___) Successfully acquired lock on /var/run/ptpd2.lock
1970-01-01 00:04:33.413202 ptpd2[3324].startup (notice) (___) PTPDv2 started successfully on fm1-mac3 using "slaveonly" preset (PID 3324)
1970-01-01 00:04:33.413218 ptpd2[3324].startup (info) (___) TimingService.PTP0: PTP service init
# Timestamp, State, Clock ID, One Way Delay, Offset From Master, Slave to Master, Master to Slave, Observed Drift, Last packet Received, One Way Delay Mean, One Way Delay Std Dev, Offset From Master Mean, Offset From Master Std Dev, Observed Drift Mean, Observed Drift Std Dev, raw delayMS, raw delaySM
1970-01-01 00:04:33.413250, init,
1970-01-01 00:04:33.413566 ptpd2[3324].fm1-mac3 (warning) (init) Interface fm1-mac3 seems to be down. PTPd will not operate correctly until it's up.
1970-01-01 00:04:33.413904 ptpd2[3324].fm1-mac3 (info) (init) Observed_drift loaded from kernel: 0 ppb
1970-01-01 00:04:33.514054 ptpd2[3324].fm1-mac3 (notice) (lstn_init) Now in state: PTP_LISTENING
1970-01-01 00:04:33.514072, lstn_init, 1
1970-01-01 00:04:43.413258 ptpd2[3324].fm1-mac3 (notice) (lstn_init) TimingService.PTP0: elected best TimingService
1970-01-01 00:04:43.413287 ptpd2[3324].fm1-mac3 (info) (lstn_init) TimingService.PTP0: acquired clock control
1970-01-01 00:04:45.614180, lstn_init, 1
1970-01-01 00:04:47.313228 ptpd2[3324].fm1-mac3 (info) (lstn_init) New best master selected: 00e00cfffe008e00(unknown)/1
1970-01-01 00:04:47.313269 ptpd2[3324].fm1-mac3 (notice) (slv) Now in state: PTP_SLAVE, Best master: 00e00cfffe008e00(unknown)/1 (IPv4:10.10.9.2)
1970-01-01 00:04:47.313284, slv, 00e00cfffe008e00(unknown)/1, 0.000000000, 0.000000000, 0.000000000, 0.000000000, 0.000000000, I, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000000000, 0.000000000
1970-01-01 00:04:47.313320 ptpd2[3324].fm1-mac3 (notice) (slv) Received first Sync from Master
1970-01-01 00:04:47.313339, slv, 00e00cfffe008e00(unknown)/1, 0.000000000, 201.148893784, 0.000000000, 201.148893784, 0.000000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 201.148893784, 0.000000000
1970-01-01 00:04:47.313360 ptpd2[3324].fm1-mac3 (critical) (slv) Offset above 1 second. Clock will step.
1970-01-01 00:01:26.164482 ptpd2[3324].fm1-mac3 (warning) (slv) Stepped the system clock to: 01/01/70 00:01:26.164479472
1970-01-01 00:01:26.164500, flt,
1970-01-01 00:01:26.164507, init,
1970-01-01 00:01:26.264375 ptpd2[3324].fm1-mac3 (notice) (lstn_reset) Now in state: PTP_LISTENING
1970-01-01 00:01:26.264396, lstn_reset, 2
1970-01-01 00:01:28.164143 ptpd2[3324].fm1-mac3 (info) (lstn_reset) New best master selected: 00e00cfffe008e00(unknown)/1
1970-01-01 00:01:28.164179 ptpd2[3324].fm1-mac3 (notice) (slv) Now in state: PTP_SLAVE, Best master: 00e00cfffe008e00(unknown)/1 (IPv4:10.10.9.2)
1970-01-01 00:01:28.164194, slv, 00e00cfffe008e00(unknown)/1, 0.000000000, 0.000000000, 0.000000000, 0.000000000, 0.000000000, I, 0.000000000, 0, 0.000000000, 0, 0, 0, 201.148893784, 0.000000000
1970-01-01 00:01:28.164229 ptpd2[3324].fm1-mac3 (notice) (slv) Received first Sync from Master
1970-01-01 00:01:28.164315, slv, 00e00cfffe008e00(unknown)/1, 0.000000000, -0.000000348, 0.000000000, -0.000000696, 0.000000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, -0.000000696, 0.000000000
1970-01-01 00:01:29.164458, slv, 00e00cfffe008e00(unknown)/1, 0.000000000, 0.000000598, 0.000000000, 0.000001892, -17.400000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000001892, 0.000000000
1970-01-01 00:01:29.164540, slv, 00e00cfffe008e00(unknown)/1, 0.000000904, 0.000000598, 0.000001724, 0.000001892, 12.500000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000001892, 0.000001724
1970-01-01 00:01:29.164567 ptpd2[3324].fm1-mac3 (notice) (slv) Received first Delay Response from Master
1970-01-01 00:01:29.187268, slv, 00e00cfffe008e00(unknown)/1, 0.000001351, 0.000000598, 0.000001680, 0.000001892, 12.500000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000001892, 0.000001680
1970-01-01 00:01:30.164319, slv, 00e00cfffe008e00(unknown)/1, 0.000001351, 0.000002308, 0.000001680, 0.000004076, 12.500000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000004076, 0.000001680
1970-01-01 00:01:30.632916, slv, 00e00cfffe008e00(unknown)/1, 0.000001440, 0.000002308, -0.000001180, 0.000004076, 127.900000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000004076, -0.000001180
1970-01-01 00:01:30.934250, slv, 00e00cfffe008e00(unknown)/1, 0.000001414, 0.000002308, -0.000001624, 0.000004076, 127.900000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000004076, -0.000001624
1970-01-01 00:01:31.164309, slv, 00e00cfffe008e00(unknown)/1, 0.000001414, 0.000003449, -0.000001624, 0.000005588, 127.900000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000005588, -0.000001624
1970-01-01 00:01:32.156493, slv, 00e00cfffe008e00(unknown)/1, 0.000001385, 0.000003449, -0.000002960, 0.000005588, 300.350000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000005588, -0.000002960
1970-01-01 00:01:32.164320, slv, 00e00cfffe008e00(unknown)/1, 0.000001385, 0.000004690, -0.000002960, 0.000006592, 300.350000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006592, -0.000002960
1970-01-01 00:01:32.502808, slv, 00e00cfffe008e00(unknown)/1, 0.000001409, 0.000004690, -0.000003108, 0.000006592, 534.850000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006592, -0.000003108
1970-01-01 00:01:32.721323, slv, 00e00cfffe008e00(unknown)/1, 0.000001453, 0.000004690, -0.000003212, 0.000006592, 534.850000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006592, -0.000003212
1970-01-01 00:01:33.164309, slv, 00e00cfffe008e00(unknown)/1, 0.000001453, 0.000005380, -0.000003212, 0.000007008, 534.850000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000007008, -0.000003212
1970-01-01 00:01:34.164321, slv, 00e00cfffe008e00(unknown)/1, 0.000001453, 0.000005514, -0.000003212, 0.000006928, 803.850000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006928, -0.000003212
1970-01-01 00:01:34.471528, slv, 00e00cfffe008e00(unknown)/1, 0.000001493, 0.000005514, -0.000003204, 0.000006928, 1079.550000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006928, -0.000003204
1970-01-01 00:01:34.608915, slv, 00e00cfffe008e00(unknown)/1, 0.000001535, 0.000005514, -0.000003164, 0.000006928, 1079.550000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006928, -0.000003164
1970-01-01 00:01:34.694528, slv, 00e00cfffe008e00(unknown)/1, 0.000001571, 0.000005514, -0.000003124, 0.000006928, 1079.550000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006928, -0.000003124
1970-01-01 00:01:35.164307, slv, 00e00cfffe008e00(unknown)/1, 0.000001571, 0.000005249, -0.000003124, 0.000006596, 1079.550000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006596, -0.000003124
1970-01-01 00:01:36.169253, slv, 00e00cfffe008e00(unknown)/1, 0.000001571, 0.000004740, -0.000003124, 0.000006028, 1342.000000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006028, -0.000003124
1970-01-01 00:01:36.503757, slv, 00e00cfffe008e00(unknown)/1, 0.000001602, 0.000004740, -0.000002200, 0.000006028, 1579.000000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000006028, -0.000002200
1970-01-01 00:01:37.164308, slv, 00e00cfffe008e00(unknown)/1, 0.000001602, 0.000004143, -0.000002200, 0.000005432, 1579.000000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000005432, -0.000002200
1970-01-01 00:01:38.103079, slv, 00e00cfffe008e00(unknown)/1, 0.000001636, 0.000004143, -0.000001224, 0.000005432, 1786.150000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000005432, -0.000001224
1970-01-01 00:01:38.164319, slv, 00e00cfffe008e00(unknown)/1, 0.000001636, 0.000003495, -0.000001224, 0.000004796, 1786.150000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000004796, -0.000001224
1970-01-01 00:01:38.684634, slv, 00e00cfffe008e00(unknown)/1, 0.000001667, 0.000003495, -0.000000868, 0.000004796, 1960.900000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000004796, -0.000000868
1970-01-01 00:01:39.164305, slv, 00e00cfffe008e00(unknown)/1, 0.000001667, 0.000002836, -0.000000868, 0.000004180, 1960.900000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000004180, -0.000000868
1970-01-01 00:01:39.773673, slv, 00e00cfffe008e00(unknown)/1, 0.000001688, 0.000002836, -0.000000244, 0.000004180, 2102.700000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000004180, -0.000000244
1970-01-01 00:01:40.164317, slv, 00e00cfffe008e00(unknown)/1, 0.000001688, 0.000002246, -0.000000244, 0.000003668, 2102.700000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000003668, -0.000000244
1970-01-01 00:01:41.164305, slv, 00e00cfffe008e00(unknown)/1, 0.000001688, 0.000001704, -0.000000244, 0.000003116, 2215.000000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000003116, -0.000000244
1970-01-01 00:01:41.291098, slv, 00e00cfffe008e00(unknown)/1, 0.000001702, 0.000001704, 0.000000536, 0.000003116, 2300.200000000, D, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000003116, 0.000000536
1970-01-01 00:01:42.164316, slv, 00e00cfffe008e00(unknown)/1, 0.000001702, 0.000001221, 0.000000536, 0.000002716, 2300.200000000, S, 0.000000000, 0, 0.000000000, 0, 0, 0, 0.000002716, 0.000000536
1970-01-01 00:01:42.837622, slv, 00e00cfffe008e00(unknown)/1, 0.000001714, 0.000001221, 0.000001188, 0.000002716, 2361.250000000, D, 0.000000000, 0, 0.0

0 Kudos
3,046 Views
Gyosun
Contributor III

Hi yipingwang,

As a result, the normal operation of the PTP was confirmed.

The cause was a problem when passing the IGMP hub in the middle.

 

ptp server -- igmp hub -- ls1043a board (fail)

                                   \-- other cpu board (pass)

ptp server -- ls1043a board (pass)

 

As a result of checking with tcpdump, ptp packet could not be received when the igmp hub was connected.

How do I connect an igmp hub and enable PTP reception?

 

Thansk you, 

Best Regards,

Gyosun.

 

0 Kudos
3,003 Views
chithanhhoang
Contributor II

The intermediate "igmp hub" for sure is filtering the ptp multicast message, one thing you could do is to disable igmp snooping on your switch so all the multicast will go on all ports, with igmp if the membership is not established, the switch will not forward multicast packet with that specific multicast mac.  The drawback is multicast will go to every port even if the remote end don't care about that specific mcast.

Or you have to make sure to run igmp on linux and make sure the wanted multicast is being add to the membership so the switch will know it can forward your ptp mcast to that particular port.

If you cannot turn of igmp snooping, you can use ptp unicast instead of ptp multicast so the switch will not filter your ptp frame, both ptpd and ptp4l support such mode i.e. ptp unicast.

2,990 Views
Gyosun
Contributor III

Hi chithanhhoang,

Thanks for the advice.

After requesting IGMP snooping, it was confirmed that PTP packets were normally received.

In QorIQ-SDK-1703, the date time was not updated, so I tried it with LSDK1803 and checked the operation normally.

Thank you all.

Best Regards,

Gyosun.