S9300, S9300X V200R019C10 配置指南-设备管理
本文档介绍了设备管理的配置,具体包括查看设备状态、硬件管理、集群配置、SVF配置、PoE配置、OPS配置、OIDS配置、节能管理、信息中心配置、故障管理配置、NTP配置、以太时钟同步配置、PTP配置。
Pdelay延迟机制下单播UDP封装PTP报文使全网时钟同步示例
组网需求
如图15-18所示,承载网是个三层网络环境,承载了NodeB之间的无线业务,且承载网全部节点都支持PTP协议,PE1和PE2分别从两个不同的BITS服务器授时,互相作为备份,当其中一个BITS服务器出现故障时不影响时钟同步。NodeB2不支持PTP,但是支持以同步以太方式同步频率。NodeB1和NodeB3都支持PTP。
在三层承载网中运行PTP协议,实现无线基站和承载网设备达到频率同步,支持PTP的基站和承载网设备之间达到时间同步状态。
设备名称 |
接口 |
对应的VLANIF |
IP地址 |
接口MAC地址 |
PE1 |
GigabitEthernet1/0/0 |
VLANIF10 | 10.0.0.1/24 |
0000-1111-1111 |
PE1 |
GigabitEthernet1/0/1 |
VLANIF11 | 10.1.0.1/24 |
0000-1111-1111 |
PE2 |
GigabitEthernet1/0/0 |
VLANIF10 | 10.0.0.2/24 |
0000-1111-2222 |
PE2 |
GigabitEthernet1/0/1 |
VLANIF12 | 10.2.0.1/24 |
0000-1111-2222 |
CE1 |
GigabitEthernet1/0/0 |
VLANIF11 | 10.1.0.2/24 |
2222-2222-1111 |
CE1 |
GigabitEthernet1/0/1 |
VLANIF13 | 10.3.0.1/24 |
2222-2222-1111 |
CE2 |
GigabitEthernet1/0/0 |
VLANIF12 | 10.2.0.2/24 |
2222-2222-3333 |
CE2 |
GigabitEthernet1/0/1 |
VLANIF15 | 10.5.0.1/24 |
2222-2222-3333 |
NodeB1 |
- |
VLANIF13 | 10.3.0.2/24 |
2222-3333-1111 |
NodeB3 |
- |
VLANIF15 | 10.5.0.2/24 |
2222-3333-2222 |
配置思路
采用如下的思路进行配置:
配置路由协议使各设备间路由互通。
- 配置PE1和PE2分别通过各自的时钟接口,引入BITS时钟信号。
- 由于承载网中所有设备都支持PTP,配置网络中的设备类型为BC,对于不支持PTP的NodeB2,采用同步以太传递频率信息。
PE1和PE2作为系统主时钟,连接BITS时钟。PE1和PE2间相互备份。
清楚每个接口的IP地址,采取单播UDP封装方式传递PTP报文,并配置延迟测量机制为Pdelay方式。
操作步骤
- 配置各接口的IP地址,实现路由互通。
- 配置PE1和PE2分别通过各自的时钟接口,引入BITS时钟信号。
具体配置过程请参见配置PTP的主时钟源为BITS示例。
- 开启PE1全局PTP功能,并配置PE1的设备类型为BC。
<Quidway> system-view [Quidway] sysname PE1 [PE1] ptp enable [PE1] ptp device-type bc
- 使能PE1的PTP频率同步功能。
[PE1] clock source ptp synchronization enable
- 配置PE1的PTP接口GigabitEthernet1/0/1和GigabitEthernet1/0/0的PTP功能。
[PE1] interface gigabitethernet 1/0/1 [PE1-GigabitEthernet1/0/1] ptp delay-mechanism pdelay [PE1-GigabitEthernet1/0/1] ptp udp-egress source-ip 10.1.0.1 destination-ip 10.1.0.2 [PE1-GigabitEthernet1/0/1] ptp udp-egress destination-mac 2222-2222-1111 [PE1-GigabitEthernet1/0/1] ptp enable [PE1-GigabitEthernet1/0/1] quit [PE1] interface gigabitethernet 1/0/0 [PE1-GigabitEthernet1/0/0] ptp delay-mechanism pdelay [PE1-GigabitEthernet1/0/0] ptp udp-egress source-ip 10.0.0.1 destination-ip 10.0.0.2 [PE1-GigabitEthernet1/0/0] ptp udp-egress destination-mac 0000-1111-2222 [PE1-GigabitEthernet1/0/0] ptp enable [PE1-GigabitEthernet1/0/0] quit [PE1] quit
- 参照PE1的配置方法,根据各接口的IP地址和MAC地址,配置PE2、CE1和CE2。
- 验证配置结果
# 执行命令display ptp all,可以看到设备当前PTP协议的运行状态信息,包括PTP接口状态、时钟源ID。
<CE1> display ptp all Device config info ------------------------------------------------------------------ PTP state :enabled Domain value :0 Slave only :no Device type :BC Static BMC :no Local clock ID :001882fffe1b1235 PTP freq-sync :yes Time lock success :yes PTP acl :no BMC run info ------------------------------------------------------------------ Grand clock ID :001882fffe77c2cf Receive number :GigabitEthernet1/0/0 Parent clock ID :001882fffe1b1bf4 Parent portnumber :1024 Priority1 :128 Priority2 :128 Step removed :1 Clock accuracy :32 Clock class :6 Time Source :32 UTC Offset :0 UTC Offset Valid :False Time Scale :PTP Time Traceable :True Leap :None Frequence Traceable:True Port info Name State Delay-mech Ann-timeout Type Domain ------------------------------------------------------------------------ GigabitEthernet1/0/0 slave pdelay 9 BC 0 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
配置文件
CE1的配置文件
# sysname CE1 # ptp enable ptp device-type bc clock source ptp synchronization enable # interface GigabitEthernet1/0/0 ptp delay-mechanism pdelay ptp udp-egress source-ip 10.1.0.2 destination-ip 10.1.0.1 ptp udp-egress destination-mac 0000-1111-1111 ptp enable # interface GigabitEthernet1/0/1 ptp delay-mechanism pdelay ptp udp-egress source-ip 10.3.0.1 destination-ip 10.3.0.2 ptp udp-egress destination-mac 2222-3333-1111 ptp enable # return
CE2的配置文件
# sysname CE2 # ptp enable ptp device-type bc clock source ptp synchronization enable # interface GigabitEthernet1/0/0 ptp delay-mechanism pdelay ptp udp-egress source-ip 10.2.0.2 destination-ip 10.2.0.1 ptp udp-egress destination-mac 0000-1111-2222 ptp enable # interface GigabitEthernet1/0/1 ptp delay-mechanism pdelay ptp udp-egress source-ip 10.5.0.1 destination-ip 10.5.0.2 ptp udp-egress destination-mac 2222-3333-2222 ptp enable # return
PE1的配置文件
# sysname PE1 # clock bits-type 1pps-tod in bits0 # ptp enable ptp device-type bc clock source ptp synchronization enable ptp clock-source bits0 on # interface GigabitEthernet1/0/0 ptp delay-mechanism pdelay ptp udp-egress source-ip 10.0.0.1 destination-ip 10.0.0.2 ptp udp-egress destination-mac 0000-1111-2222 ptp enable # interface GigabitEthernet1/0/1 ptp delay-mechanism pdelay ptp udp-egress source-ip 10.1.0.1 destination-ip 10.1.0.2 ptp udp-egress destination-mac 2222-2222-1111 ptp enable # return
PE2的配置文件
# sysname PE2 # clock bits-type 1pps-tod in bits0 # ptp enable ptp device-type bc clock source ptp synchronization enable ptp clock-source bits0 on # interface GigabitEthernet1/0/0 ptp delay-mechanism pdelay ptp udp-egress source-ip 10.0.0.2 destination-ip 10.0.0.1 ptp udp-egress destination-mac 0000-1111-1111 ptp enable # interface GigabitEthernet1/0/1 ptp delay-mechanism pdelay ptp udp-egress source-ip 10.2.0.1 destination-ip 10.2.0.2 ptp udp-egress destination-mac 2222-2222-3333 ptp enable # return