I am using ptp-sim for my University dissertation, and am in the process of building and testing the networks I'm going to be simulating as part of my research. Whilst I've managed to build the networks and get them running successfully, I need to be able to assess each device's PTP port states to check whether my priority1/priority2 settings are achieving my desired BMCA hierarchy. How can I check devices' port states (either whilst running test simulations in Qtenv, or after finishing the run via .anf files), to assess whether the network has settled into my desired BMCA hierarchy?
I forgot the details, but I think you should be able to see the port states at least via 2 different ways:
*) While running simulations in Qtenv, the port states are shown when hovering with the mouse *) Port states are signal that can be traced with OMNeT++, so you will have the details of all individual port state changes together with timestamps etc. in the result files. OMNeT++ needs to be configured which signals are traced, and with which granularity. Have a look at the OMNeT++ user manual for details.