配置Atom GPS授时功能示例
组网需求
如图14-5所示,IP RAN网络中,NodeB之间需要进行时钟同步和时间同步。这时可以部署如下Atom GPS授时方案:在接入汇聚节点ASG上插入Atom GPS模块,此模块相当于一台轻量级的BITS为承载网提供GPS接入,Atom GPS模块可接收到GPS的时钟和时间信号,并将此时钟信号转换输出同步以太信号到ASG,将时间信号转换输出1588v2信号到ASG,ASG往下游设备传递时钟/时间信号,下游设备将时钟信号传递给NodeB,从而实现全网的时钟同步和时间同步。
操作步骤
- 配置ASG1和ASG2的同步以太功能
ASG1和ASG2的配置类似,此处以ASG1为例,配置如下:
配置Atom GPS模块的同步以太功能
说明:
Atom GPS模块的同步以太功能已内部使能,无需人工配置。配置Atom GPS模块所在设备ASG1的同步以太功能
# 配置SSM级别参与自动选源
<ASG1> system-view [~ASG1] clock ssm-control on [*ASG1] commit
# 使能接口同步以太功能,并配置接口优先级
[~ASG1] interface gigabitethernet 0/1/0 [~ASG1-GigabitEthernet0/1/0] clock synchronization enable [*ASG1-GigabitEthernet0/1/0] clock priority 1 [*ASG1-GigabitEthernet0/1/0] commit [~ASG1-GigabitEthernet0/1/0] quit
- 配置ASG1和ASG2的时间同步功能
ASG1和ASG2的配置类似,此处以ASG1为例,配置如下:
配置Atom GPS模块的时间同步功能
[~ASG1] interface gigabitethernet 0/1/0 [~ASG1-GigabitEthernet0/1/0] smart-clock ptp domain 255 [*ASG1-GigabitEthernet0/1/0] commit [~ASG1-GigabitEthernet0/1/0] quit
配置Atom GPS模块所在设备ASG1的时间同步功能
# 配置全局的1588v2功能
[*ASG1] ptp enable [*ASG1] ptp device-type bc [*ASG1] ptp domain 255 [*ASG1] commit
# 配置接口的1588v2功能
[~ASG1] interface gigabitethernet 0/1/0 [*ASG1-GigabitEthernet0/1/0] ptp enable [~ASG1-GigabitEthernet0/1/0] ptp delay-mechanism delay [*ASG1-GigabitEthernet0/1/0] commit [~ASG1-GigabitEthernet0/1/0] quit
- 检查配置效果
执行命令display clock source,查看系统当前跟踪的时钟参考源以及所有时钟参考源的状态信息。
<HUAWEI> display clock source System trace source State: lock mode into pull-in range Current system trace source: bits0 Current 2M-1 trace source: system PLL Frequency lock success: yes Master board Source Pri(sys/2m-1) In-SSM Out-SSM State Ref -------------------------------------------------------------------------- bits0/ 1/--- sec dnu normal yes GE0/1/0 2/--- sec sec normal yes GE0/2/0 3/--- sec sec normal yes
执行命令display ptp all,查看BITS时间信息是否已经成功输入。<HUAWEI> display ptp all Device config info ------------------------------------------------------------------------------ PTP state :enabled Domain value :0 Slave only :no Device type :BC Set port state :no Local clock ID :0aa1c6fffe699700 Acl :no Virtual clock ID :no Acr :no Time lock success :no Asymmetry measure :disable Passive measure :disable BMC run info ------------------------------------------------------------------------------ Grand clock ID :0a05d7fffe341500 Receive number :GigabitEthernet0/1/0 Parent clock ID :0a05d7fffe341500 Parent portnumber :35585 Priority1 :128 Priority2 :128 Step removed :0 Clock accuracy :0x31 Clock class :187 Time Source :0xa0 UTC Offset :35 UTC Offset Valid :False Timescale :PTP Time traceable :False Leap :None Frequency traceable :False Offset scaled :0xffff Sync uncertain :False Port info Name State Delay-mech Ann-timeout Type Domain ------------------------------------------------------------------------------ GigabitEthernet0/1/0 slave delay 3 BC 0 Time Performance Statistics(ns): Slot 0 Card 1 Port 5 ------------------------------------------------------------------------------ Realtime(T2-T1) :20942575 Pathdelay :0 Max(T2-T1) :95695479 Min(T2-T1) :20942575 Clock source info Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status ------------------------------------------------------------------------------ local 128 128 0x31 187 0xa0 - - - - bits1/11 128 128 0x20 6 0x20 1pps off in/- normal bits1/12 128 128 0x20 6 0x20 1pps off in/- normal
配置文件
ASG1的配置文件。
# sysname ASG1 # clock ssm-control on # ptp enable ptp device-type bc ptp domain 255 # interface gigabitEthernet 0/1/0 clock synchronization enable clock priority 1 smart-clock ptp domain 255 ptp enable ptp delay-mechanism delay # # return
ASG2的配置文件。
# sysname ASG2 # clock ssm-control on # ptp enable ptp device-type bc ptp domain 255 # interface gigabitEthernet 0/1/0 clock synchronization enable clock priority 1 smart-clock ptp domain 255 ptp enable ptp delay-mechanism delay # # return