PTP with L2 Forwarding switch (LS1028ARDB)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PTP with L2 Forwarding switch (LS1028ARDB)

跳至解决方案
1,991 次查看
ceroone
Contributor II

Hello,

I have two boards (i.MX8M Plus) connected to each other via a switch (LS1028ARDB).

I run the following script to configure the switch in L2 forwarding mode:

#!/bin/bash
INTERFACES = "swp0 swp1 swp2 swp3"
ip link set eno2 up
ip link add name br0 type bridge
for if in $INTERFACES;
do
    ip link set $if up
    ip link set dev $if master br0
done
ip link set br0 up

I then run ptp4l on both i.MX8M Plus boards. I emphasize that I don't run ptp4l on the LS1028ARDB because I would like to test to what extent adding a "classic" switch between two PTP clocks affects performance.

However, the synchronization doesn't work. I have the following display (on both i.MX8M Plus boards):

# ptp4l -i eth0 -m
ptp4l[xxxx.xxx]: selected /dev/ptp1 as PTP clock
ptp4l[xxxx.xxx]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[xxxx.xxx]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[xxxx.xxx]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[xxxx.xxx]: selected local clock yyyyyy.yyyy.yyyyyy as best master
ptp4l[xxxx.xxx]: assuming the grand master role

Could you explain me why it doesn't work please?

PS1: I tried to perform this operation with a LS1021ATSN switch and it worked perfectly...
PS2: Ping also works fine

标签 (1)
标记 (4)
0 项奖励
回复
1 解答
1,965 次查看
yipingwang
NXP TechSupport
NXP TechSupport

ls1028 is working in the L2 bridge mode.  "ptp4l -i eth0" command is sending the ptp4l as UDP packages for synchronizing.

ls1021 traps the L2 ptp package to CPU port for ptp sync. But not for the L4 level package to CPU port. UDP package will forward directly.

ls1028 would trap both L2 ptp package and L4 ptp package to CPU port not forward to other ports. We suppose user to run the ptp4l in ls1028 as default since it own the capability of ptp syncing.

We suggest customer to run the ptp4l in the L2 mode with -2 parameter.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,966 次查看
yipingwang
NXP TechSupport
NXP TechSupport

ls1028 is working in the L2 bridge mode.  "ptp4l -i eth0" command is sending the ptp4l as UDP packages for synchronizing.

ls1021 traps the L2 ptp package to CPU port for ptp sync. But not for the L4 level package to CPU port. UDP package will forward directly.

ls1028 would trap both L2 ptp package and L4 ptp package to CPU port not forward to other ports. We suppose user to run the ptp4l in ls1028 as default since it own the capability of ptp syncing.

We suggest customer to run the ptp4l in the L2 mode with -2 parameter.

0 项奖励
回复