华为NE40E交换机调测1588v2
前提条件
- 硬件调测
- 链路调测
图1 调测1588v2典型组网
操作步骤
- 查看GrandMaster设备(即RouterA)的频率和时间信号是否与BITS设备同步。
- 在RouterA上执行命令display clock source,查看BITS设备的频率信号是否成功输入到RouterA。
- system-view[HUAWEI] sysnameRouterA [RouterA] display clock source Master clock source: Source Description Priority Sa-bit Input SSM Forcessm Sourcestate * 1 BITS0 19 sa4 unknown on normal 2 BITS1 1 sa4 unknown on abnormal 4 LPU2 19 -- unknown on normal 5 LPU3 19 -- unknown on normal 6 LPU4 19 -- unknown on normal 8 LPU6 19 -- unknown on abnormal 11 PTP 19 -- unknown on abnormal
- 在RouterA上执行命令display clock config,查看RouterA的频率是否锁定。
- [RouterA]display clock configCurrent source: 1 Workmode: manual SSM control: off Primary source: 1 Output SSM Level:bits0:unknown bits1:unknown bits2:-- bits3:-- Current source step into pull-in range Clock is in lock mode
- 在RouterA上执行命令display ptp all,查看1588v2模块的时间源是否跟踪到BITS。
- [RouterA]display ptp allDevice config info ------------------------------------------------------------------ PTP state :enabled Domain value :200 Slave only :no Device type :BC Set port state :no Local clock ID :000112fffe345678 Acl :no BMC run info ------------------------------------------------------------------ Source port :bits2 Leap :None UTC Offset :0 UTC Offset Valid :True Port info Name State Delay-mech Ann-timeout Type Domain ------------------------------------------------------------------------ GigabitEthernet3/0/8 master delay 9 BC 200 Clock source info Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status ------------------------------------------------------------------------ local 128 128 0x31 187 0xa0 - - - - bits0 128 128 0x20 6 0x20 none on -/- abnormal bits1 128 128 0x20 6 0x20 dcls on in/out abnormal bits2 0 128 0x20 6 0x20 1pps on in/- normal
- 在RouterA、RouterB和RouterC上分别执行display ptp all命令,查看RouterA、RouterB和RouterC的1588v2协议运行状态和1588v2端口的主备状态。
- RouterA跟踪BITS输出的时钟,1588v2端口处于master状态。
- RouterB跟踪RouterA输出的PTP时钟。RouterB与RouterA连接的1588v2端口处于slave状态,与RouterC连接的1588v2端口处于master状态。
- RouterC跟踪RouterB输出的PTP时钟。RouterC与RouterB连接的1588v2端口处于slave状态。
- [RouterA]display ptp allDevice config info ------------------------------------------------------------------ PTP state :enabled Domain value :200 Slave only :no Device type :BC Set port state :no Local clock ID :000112fffe345678 Acl :no BMC run info ------------------------------------------------------------------ Source port :bits2 Leap :None UTC Offset :0 UTC Offset Valid :True Port info Name State Delay-mech Ann-timeout Type Domain ------------------------------------------------------------------------ GigabitEthernet3/0/8 master delay 9 BC 200 Clock source info Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status ------------------------------------------------------------------------ local 128 128 0x31 187 0xa0 - - - - bits0 128 128 0x20 6 0x20 none on -/- abnormal bits1 128 128 0x20 6 0x20 dcls on in/out abnormal bits2 0 128 0x20 6 0x20 1pps on in/- normal
- system-view[HUAWEI]sysnameRouterB[RouterB]display ptp allDevice config info ------------------------------------------------------------------ PTP state :enabled Domain value :200 Slave only :no Device type :BC Set port state :no Local clock ID :00ffaafffeffbbff Acl :no BMC run info ------------------------------------------------------------------ Grand clock ID :000112fffe345678 Receive number :GigabitEthernet4/1/7 Parent clock ID : 000112fffe345678 Parent portnumber :8455 Priority1 :0 Priority2 :128 Step removed :2 Clock accuracy :32 Clock class :6 Time Source :32 UTC Offset :0 UTC Offset Valid :True Time Scale :PTP Time Traceable :True Leap :None Frequence Traceable:False Port info Name State Delay-mech Ann-timeout Type Domain ------------------------------------------------------------------------ GigabitEthernet4/1/7 slave delay 9 BC 200 GigabitEthernet4/1/0 master pdelay 9 BC 200 Time Performance Statistics(ns): Slot 4 Card 1 Port 7 ------------------------------------------------------------------------ Realtime(T2-T1) :63 Pathdelay :0 Max(T2-T1) :86 Min(T2-T1) :48 Clock source info Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status ------------------------------------------------------------------------ local 128 128 0x31 187 0xa0 - - - - bits0 128 128 0x20 6 0x20 none off -/- abnormal bits1 128 128 0x20 6 0x20 none off -/- abnormal bits2 128 128 0x20 6 0x20 1pps off -/out abnormal
- system-view[HUAWEI]sysnameRouterC[RouterC]display ptp allDevice config info ------------------------------------------------------------------ PTP state :enabled Domain value :200 Slave only :no Device type :BC Set port state :no Local clock ID :001882fffe53a56c Acl :no BMC run info ------------------------------------------------------------------ Grand clock ID :000112fffe345678 Receive number :GigabitEthernet8/0/0 Parent clock ID :00ffaafffeffbbff Parent portnumber :4352 Priority1 :0 Priority2 :128 Step removed :2 Clock accuracy :32 Clock class :6 Time Source :32 UTC Offset :0 UTC Offset Valid :True Time Scale :PTP Time Traceable :True Leap :None Frequence Traceable:False Port info Name State Delay-mech Ann-timeout Type Domain ------------------------------------------------------------------------ GigabitEthernet8/0/0 slave pdelay 9 BC 200 Time Performance Statistics(ns): Slot 8 Card 0 Port 0 ------------------------------------------------------------------------ Realtime(T2-T1) :125 Pathdelay :2 Max(T2-T1) :420 Min(T2-T1) :63 Clock source info Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status ------------------------------------------------------------------------ local 129 128 0x31 187 0xa0 - - - - bits0 128 128 0x20 6 0x20 none off -/- abnormal bits1 128 128 0x20 6 0x20 dcls on in/out abnormal bits2 128 128 0x20 6 0x20 1pps on -/out abnormal
- RouterB,RouterC的时间都与各自的Master设备同步。
- [RouterA]display ptp utcUTC Time:2012-01-01 14:53:26[RouterB]display ptp utcUTC Time:2012-01-01 14:53:26[RouterC]display ptp utcUTC Time:2012-01-01 14:53:26
- RouterB,RouterC均使用1588v2方式恢复频率。
- [RouterB]display clock sourceMaster clock source: Source Description Priority Sa-bit Input SSM Forcessm Sourcestate 1 BITS0 19 sa4 unknown on abnormal 2 BITS1 19 sa4 unknown on abnormal 6 LPU4 19 -- unknown on normal 8 LPU6 19 -- unknown on normal * 19 PTP 19 -- unknown on normal
- [RouterC]display clock sourceMaster clock source: Source Description Priority Sa-bit Input SSM Forcessm Sourcestate 1 BITS0 19 sa4 unknown on abnormal 2 BITS1 19 sa4 unknown on abnormal 5 LPU3 19 -- unknown on normal 10 LPU8 19 -- unknown on normal * 11 PTP 19 -- unknown on normal
用户可以根据网络规划选择配置时钟同步协议,本节介绍了1588v2的调测方法。
-
从下面加粗部分的显示信息可以看到:
RouterA显示:
-
RouterB显示:
-
RouterC显示:
-
在RouterA,RouterB,RouterC上分别运行display ptp utc命令,查看UTC时间都相同。这说明三台设备的时间已经达到了秒级的同步。
-
在RouterB上以几秒钟为间隔连续执行display ptp all命令三到五次,观察Realtime(T2-T1)字段的显示数值能否稳定在某一个值,如果稳定,就说明RouterB的时间已经与RouterA设备同步了。
在RouterC上重复上述操作,可以判断RouterC的时间是否与RouterB同步。
1588 slave设备在时间同步状态下,Realtime(T2-T1)字段的稳定值根据1588v2端口所在的子卡的类型不同而不同,一般在几十到几百纳秒。
1588 slave设备上的display ptp all命令回显中的Max(T2-T1)和Min(T2-T1)字段记录了设备记录的最大和最小时间差,运行reset ptp statistics all命令可以清零这两个字段的值。
-
RouterB显示:
-
RouterC显示:
- 上一篇:华为NE40E交换机调测OSPF路由 2018-5-30
- 下一篇:华为NE40E交换机调测静态路由 2018-5-30