Post by lucasricardo on Apr 1, 2022 4:56:36 GMT
Hello All,
I'm Lucas, a Brazilian student that is about to graduate in Computer Engineering.
Currently I'm writing my bachelor thesis regarding PTP x gPTP performance comparison under omnet++.
One of the tasks that I planned is to insert libPLN in the implementation of gPTP for omnet++.
You can check more details about the implementation in the links below:
gitLab - gptp implementation
Simulation Model of IEEE 802.1AS gPTP for Clock Synchronization in OMNeT++
I have the necessary requirements to start coding, but I'm struggling to understand how I can perform this integration.
If you look closely on presentation slide 16, you'll see that the current gPTP implementation has a clock drift implementation that uses a constant drift and change this is a mentioned "future work".
Of course that a code section is not enough to understand the big picture, but you can see that "drift" is receiving the "clockDrift" value, which is a previously set constant, times something to adjust it. This is how they are simulating the clock drift inside their PTP entities.
After all this introduction, basically what I intend to do is change this code section to something that involves libPLN. However, I didn't manage to find any tutorial or example that perform something like it.
Do you have any idea on how can I start this implementation? Or any other way possible to pursue? Or any thoughts on this?
I'm open to any suggestions.
Thanks in advance!
I'm Lucas, a Brazilian student that is about to graduate in Computer Engineering.
Currently I'm writing my bachelor thesis regarding PTP x gPTP performance comparison under omnet++.
One of the tasks that I planned is to insert libPLN in the implementation of gPTP for omnet++.
You can check more details about the implementation in the links below:
gitLab - gptp implementation
Simulation Model of IEEE 802.1AS gPTP for Clock Synchronization in OMNeT++
I have the necessary requirements to start coding, but I'm struggling to understand how I can perform this integration.
If you look closely on presentation slide 16, you'll see that the current gPTP implementation has a clock drift implementation that uses a constant drift and change this is a mentioned "future work".
Of course that a code section is not enough to understand the big picture, but you can see that "drift" is receiving the "clockDrift" value, which is a previously set constant, times something to adjust it. This is how they are simulating the clock drift inside their PTP entities.
/* Return drift for only the given value */
SimTime Clock::getCalculatedDrift(SimTime value)
{
SimTime drift = clockDrift*value.dbl()/1000000;
return drift;
}
After all this introduction, basically what I intend to do is change this code section to something that involves libPLN. However, I didn't manage to find any tutorial or example that perform something like it.
Do you have any idea on how can I start this implementation? Or any other way possible to pursue? Or any thoughts on this?
I'm open to any suggestions.
Thanks in advance!