PTP
文章平均质量分 75
paopaotiantianquan
一点一点,慢慢来
展开
-
【PTP单播协商部分】
LiunxPTP协议栈学习第三章流程图:初始化struct port *port_open(const char *phc_device, int phc_index, enum timestamp_type timestamping, int number, struct interface *interface, struct clock *clock)``````c if (number &&原创 2022-08-31 14:17:00 · 809 阅读 · 0 评论 -
LIUNXPTP代码学习(时钟同步分析)
这部分主要讲解时钟如何利用偏移量和延时进行时钟同步。1)时钟同步的计算在slave接受sync后,会进行时钟同步的计算(这里会用到函数proxess_sync->port_synchronize->clock_synchronize)。2)时钟同步分为两个步骤,第一个频率同步,第二个相位同步(又称时间同步)注:对于计算offset函数,如果一开始slave处理sync函数时由于t3或者delay_flilter_vaild=0,则不会计算出offset,因此这时候不会进行时钟同步,需要计算出de原创 2022-06-06 22:06:37 · 1767 阅读 · 2 评论 -
【liunxptp协议栈详解第一部分】
liunxptp 代码学习PTP协议栈详解场景一延迟机制的基本原理协议栈的过程场景一当我们配置时钟A为OC且一个端口为master,一个时钟B为BC,一个端口为slave,且延迟机制为E2E。延迟机制的基本原理延迟机制的算法方式协议栈的过程一、step 1: master->slave(sync报文的发送和sync的follow_up报文的发送)int clock_poll(struct clock *c){ int cnt, i; enum fsm_event event;原创 2022-04-11 21:25:33 · 2024 阅读 · 2 评论