nxp-archive / openil_linuxptp

PTP IEEE 1588 stack for Linux
GNU General Public License v2.0
136 stars 60 forks source link

Error when using multiple slaves #18

Open florinmitris opened 3 years ago

florinmitris commented 3 years ago

I tried to use this simulator as a master for 2 slaves but I get the following error when both of the slaves send peer delay requests to the master and it crashes: "port 1: received pdelay_req msg with unexpected peer port id 00044b.f658.0f0000-0 port 1: rogue peer delay response port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) waiting 2^{1} seconds to clear fault on port 1 clearing fault on port 1". If I stop one of them I can see this message : "port 1: peer port id set to 8a23fe.fffe.000005-0" and no error is further received but as long I turn on both of them the error start coming and the module crashes again.

Is the module compatible with multiple slaves?

renezurbruegg commented 2 years ago

Any updates on that? I try to have one PTP master with two slaves and have the same problem.

florinmitris commented 2 years ago

If you use a switch between the master and the slaves you can enable the switch to behave as Boundary Clock, the switch port connected to master will behave as a slave and the ports connected to slaves will behave as a master. In this situation the master will receive peer delay requests only from the switch. Most probably now you use a transparent clock. image

renezurbruegg commented 2 years ago

Thanks a lot for the fast answer and illustration!