通过1588v2/同步以太/WAN组合方式进行网络频率同步示例
目前支持1588v2特性的设备接口类型是GE接口,所以现网中并不是所有链路都支持1588v2特性。当网络包含10GE WAN和不支持1588v2的以太链路时,可以将1588v2与以太时钟同步、WAN时钟等同步技术相结合,灵活运用,达到整体网络时钟同步的目的。
组网需求
某移动运营商有一张拓扑如图9-13所示的移动承载网络,网络中链路支持情况比较复杂,既有10GE WAN链路又有以太链路。为了满足无线承载业务对频率同步的要求,承载网中每台设备和基站上都必须外接BITS服务器,安装和维护费用很高。
该运营商购入支持1588v2的新型设备后对时钟同步网进行升级,使得承载网只需保留一台BITS服务器即可满足无线承载业务对频率同步的要求。
结合网络链路支持情况,可对时钟同步网络进行如下部署:时钟信号从BITS时钟源注入DeviceB,向右依次通过WAN时钟、1588v2、WAN时钟到达末端节点NodeB2;向左通过同步以太和1588v2方式到达末端节点NodeB1。1588v2报文通过UDP封装到达目的节点。
本例的配置在DeviceA、DeviceB、DeviceC、DeviceD设备上进行,HUAWEI NE20E-S2可以做为DeviceA、DeviceB、DeviceC、DeviceD设备。
本例中的interface1、interface2分别代表GE 0/1/0和GE0/2/0
设备名称 |
接口编号 |
接口IP地址 |
接口MAC地址 |
---|---|---|---|
DeviceA |
GE0/2/0 |
10.0.0.2/24 |
- |
DeviceA |
GE0/1/0 |
172.16.0.1/24 |
- |
DeviceB |
GE0/1/0 |
10.0.0.1/24 |
- |
DeviceB |
GE0/2/0 |
192.168.0.1/24 |
- |
DeviceC |
GE0/2/0 |
192.168.0.2/24 |
- |
DeviceC |
GE0/1/0 |
10.10.0.1/24 |
0000-1111-cccc |
DeviceD |
GE0/1/0 |
10.10.0.2/24 |
0000-1111-dddd |
NodeB-1 |
- | - | 0000-1111-b1b1 |
配置思路
采用如下的思路配置网络频率同步:
配置各接口的IP地址和OSPF路由(略)
配置DeviceB引入外部BITS时钟源
配置DeviceA通过同步以太方式同步DeviceB的时钟信号
配置DeviceC通过WAN时钟方式同步DeviceB的时钟信号
配置DeviceA为BC,以UDP方式封装1588v2报文,将时钟信号传递给NodeB-1
配置DeviceC为BC,以UDP方式封装1588v2报文,将时钟信号传递给DeviceD
配置DeviceD为OC,同步DeviceC的时钟信号
配置DeviceD通过WAN时钟方式,将时钟信号递给NodeB-2
操作步骤
- 配置链路层协议和各接口的IP地址(略)
- 配置OSPF路由互通(略)
- 配置DeviceB引入外部BITS时钟源BITS0
[*DeviceB] clock bits-type bits0 2mhz [*DeviceB] clock source bits0 synchronization enable [*DeviceB] clock source bits0 priority 1 [*DeviceB] commit
- 配置DeviceA通过同步以太方式同步DeviceB的时钟信号
- 配置DeviceC通过WAN时钟方式同步DeviceB的时钟信号
- 配置DeviceA为1588v2的BC类型设备,以UDP方式封装1588v2报文,将时钟信号传递给NodeB-1
[*DeviceA] ptp enable [*DeviceA] ptp device-type bc [*DeviceA] ptp domain 1 [*DeviceA] ptp clock-source local priority1 0 [*DeviceA] commit [~DeviceA] interface gigabitethernet 0/1/0 [~DeviceA-GigabitEthernet0/1/0] ptp delay-mechanism delay [*DeviceA-GigabitEthernet0/1/0] ptp enable [*DeviceA-GigabitEthernet0/1/0] ptp udp-egress source-ip 172.16.0.1 destination-ip 172.16.0.2 [*DeviceA-GigabitEthernet0/1/0] ptp udp-egress destination-mac 0000–1111–b1b1 [*DeviceA-GigabitEthernet0/1/0] commit [~DeviceA-GigabitEthernet0/1/0] quit
- 配置NodeB-1接收DeviceA的1588v2报文(略)
- 配置DeviceC为1588v2的BC类型设备,以UDP方式封装1588v2报文,将时钟信号传递给DeviceD
[*DeviceC] ptp enable [*DeviceC] ptp device-type bc [*DeviceC] ptp domain 2 [*DeviceC] ptp clock-source local priority1 0 [*DeviceC] commit [~DeviceC] interface gigabitethernet 0/1/0 [~DeviceC-GigabitEthernet0/1/0] ptp delay-mechanism delay [*DeviceC-GigabitEthernet0/1/0] ptp enable [*DeviceC-GigabitEthernet0/1/0] ptp udp-egress source-ip 10.10.0.1 destination-ip 10.10.0.2 [*DeviceC-GigabitEthernet0/1/0] ptp udp-egress destination-mac 0000–1111–dddd [*DeviceC-GigabitEthernet0/1/0] commit [~DeviceC-GigabitEthernet0/1/0] quit
- 配置DeviceD为1588v2的OC类型设备,接收DeviceC的1588v2报文,并同步DeviceC的时钟
[*DeviceD] ptp enable [*DeviceD] ptp device-type oc [*DeviceD] ptp domain 2 [*DeviceD] ptp clock-source local priority1 128 [*DeviceD] clock manual source ptp [*DeviceD] commit [~DeviceD] interface gigabitethernet 0/1/0 [~DeviceD-GigabitEthernet0/1/0] ptp delay-mechanism delay [*DeviceD-GigabitEthernet0/1/0] ptp enable [*DeviceD-GigabitEthernet0/1/0] ptp udp-egress source-ip 10.10.0.2 destination-ip 10.10.0.1 [*DeviceD-GigabitEthernet0/1/0] ptp udp-egress destination-mac 0000–1111–cccc [*DeviceD-GigabitEthernet0/1/0] commit [~DeviceD-GigabitEthernet0/1/0] quit
- 配置DeviceD通过WAN时钟方式,将时钟信号递给NodeB-2
配置文件
DeviceA的配置文件
# sysname DeviceA # ptp enable ptp device-type bc ptp domain 1 ptp clock-source local priority1 0 interface gigabitethernet 0/1/0 undo shutdown ip address 172.16.0.2 255.255.255.0 clock synchronization enable ptp delay-mechanism delay ptp enable ptp udp-egress source-ip 172.16.0.1 destination-ip 172.16.0.2 ptp udp-egress destination-mac 0000–1111–b1b1 interface gigabitethernet 0/2/0 undo shutdown ip address 10.0.0.2 255.255.255.0 clock synchronization enable clock priority 1 # clock manual source interface gigabitethernet 0/2/0 # ospf 1 area 0.0.0.0 network 10.0.0.0 0.0.0.255 network 172.16.0.0 0.0.0.255 #
DeviceB的配置文件
# sysname DeviceB # clock bits-type bits0 2mhz clock source bits0 synchronization enable clock source bits0 priority 1 interface GigabitEthernet 0/1/0 undo shutdown ip address 10.0.0.1 255.255.255.0 clock synchronization enable interface GigabitEthernet 0/2/0 undo shutdown ip address 192.168.0.1 255.255.255.0 clock synchronization enable # ospf 1 area 0.0.0.0 network 10.0.0.0 0.0.0.255 network 192.168.0.0 0.0.0.255 #
DeviceC的配置文件
# sysname DeviceC # ptp enable ptp device-type bc ptp domain 2 ptp clock-source local priority1 0 interface GigabitEthernet 0/1/0 undo shutdown ip address 10.10.0.1 255.255.255.0 ptp delay-mechanism delay ptp enable ptp udp-egress source-ip 10.10.0.1 destination-ip 10.10.0.2 ptp udp-egress destination-mac 0000–1111–dddd # interface GigabitEthernet 0/2/0 undo shutdown ip address 192.168.0.2 255.255.255.0 clock synchronization enable # ospf 1 area 0.0.0.0 network 10.10.0.0 0.0.0.255 network 192.168.0.0 0.0.0.255 #
DeviceD的配置文件
# sysname DeviceD # ptp enable ptp device-type oc ptp domain 2 ptp clock-source local priority1 128 clock manual source ptp interface gigabitethernet 0/1/0 undo shutdown ip address 10.10.0.2 255.255.255.0 ptp delay-mechanism delay ptp enable ptp udp-egress source-ip 10.10.0.2 destination-ip 10.10.0.1 ptp udp-egress destination-mac 0000–1111–cccc controller e1 0/2/0 clock master # ospf 1 area 0.0.0.0 network 10.10.0.0 0.0.0.255 #