美文网首页
学习笔记: What Makes a Master the Be

学习笔记: What Makes a Master the Be

作者: LeeNan | 来源:发表于2019-01-08 05:31 被阅读0次

BMCA: Best Master Clock Algorithm

image.png

Announce: to each clock use announce to decide if itself can be a better master.

it is critical that the Announce Time Out Interval be set longer than the Announce Interval in your network.
就是说domain内等待announce的间隔时间要比发送announce的间隔时间要长. 否则的话, 等待的时间到了, 还没接收到announce报文, 那么domain内所有的clock都会觉得自己可以成为master了.

UCT: Universal Coordinated Time

那么在有announce的domain内, 如何通过每个clock发送的announce来判定谁是best master呢?

  1. Priority 1 Field: 用户自定义, 最高优先级. 数小优先级高, default: master 128, slave 255
  2. Clock Class: 自己的clock类型. 比如是跟GPS矫正过的, 还是free running的
  3. Clock Accuracy: 表示自己跟UCT的误差. 比如25-100ns
  4. Clock Variance: jitter and wander of the clocks oscillator over a Sync message interval
  5. Priority 2 Field: 用户自定义.
  6. Source Port ID: 如果上面都决定不了, 就用这个, 通常port id可以设置成Ethernet MAC address, 但基本就是随机的了.
  7. 另外还有一个, 如果两个clock跟同一个GM同步, 但其中一个跟GM的距离短(中间的BC少), 那么这个clock的优先级高.

相关文章

网友评论

      本文标题:学习笔记: What Makes a Master the Be

      本文链接:https://www.haomeiwen.com/subject/jgdzcqtx.html