资源描述
IP城域网汇聚层及接入层SRRP+EthOAM热备组网测试方案
广州移动
3月
版本变更统计
日期
版本
说明
作者
.3
1.0
创建修改文档
林建明
目 录
1. 序言 3
2. 测试网络物理拓扑 3
3. 测试准备 4
3.1 设备选型 4
3.2 测试人员 5
4. 测试方法 5
4.1 “小V”专线业务热备测试 5
4.1.1 设备配置 5
4.1.2 测试结果 5
4.2 “大V”专线业务热备测试 6
4.2.1 设备配置 6
4.2.2 测试结果 6
5. 测试总结 8
1. 序言
2. 测试网络物理拓扑
测试采取网络拓扑和现网设备是亲密相关。既考虑到网络现实状况,也要
考虑未来网络结构演进和改变,此次测试设计到两个类型拓扑图。
“小v”型结构以下图, OLT到SW上联链路进行捆绑(快速LACP),7750和SW直接使用EFM功效预防单通,SR之间采取SRRP实现专线业务热备,。
“小v”型网络拓扑结构
“大v”型结构以下图,OLT直接上联到两台SW。SW和SR互连,开启EFM功效,SR之间采取SRRP实现专线业务热备
“大v”型网络拓扑结构
非共享网关结构以下图,结构采取小V型,不过每个用户拥有独立网段,使用不一样网关IP:
非共享网关网络拓扑结构
3. 测试准备
3.1 设备选型
此次测试SR/BRAS选择上海贝尔 7750,使用9.0 R7软件版本。交换机采取华为9312产品,OLT分别采取华为和阿朗设备。(阿朗OLT不含有测试条件,配置方法能够参考佛山企业测试结果)
SR/BRAS:XY-BRAS01,XH-BRAS01,XH-SR01
SW:先烈东、东风中
OLT:先烈东OLT(华为)
大V型:
链路类型
本端设备
本端端口
对端设备
对端端口
SW-SR
XLD-SW
ETH-TRUNK 6
GE10/0/5
XY-BRAS01
G1/2/4 LAG4
SW-SR
DFZ-SW
ETH-TRUNK 4
GE12/0/2
XH-BRAS01
G2/2/4 LAG23
SW-OLT
XLD-SW
ETH-TRUNK 4
(G10/0/4,G12/0/4)
XLD-OLT
G11/0,12/0
SW-OLT
DFZ-SW
G12/0/7 D101-1-D3/D4
XLD-OLT
待调通
小V型/非共享网关
链路类型
本端设备
本端端口
对端设备
对端端口
SW-SR
XLD-SW
ETH-TRUNK 6
GE10/0/5
XY-BRAS01
G1/2/4 LAG4
SW-SR
XLD-SW
ETH-TRUNK 2
GE10/0/0
GE12/0/2
XH-SR01
G1/2/14,G 10/2/9 LAG5
SW-OLT
XLD-SW
ETH-TRUNK 4
(G10/0/4,G12/0/4)
XLD-OLT
G11/0,12/0
3.2 测试人员
SR/BRAS
SW
OLT
广州移动
林建明
林建明
文溯
上海贝尔
刘育平
刘育平
4. 测试方法
4.1 “小V”专线业务热备测试
4.1.1 设备配置
热备配置方法:
小V型组网采取SRRP+LACP方法,SR和SW之间启用LACP检测传输链路状态,2台SR之前启用SRRP同时信息
路由公布配置:
因为SRRP协议主备用端口全部是UP,主备SR同时公布路由,所以对于用户下行流量,会同时下发到主备用SR,流量抵达备用SR后,经过redundant-interface送回到主用SR,以下图所表示:
这么会造成备用侧上下行反复流量,无形中造成可用带宽变小,所以,必需抑制备用侧公布路由,因为7750 启用SRRP后,会产生srrp-master和srrp-non-master两种类型路由,备用侧只要抑制srrp-non-master类型路由就能够了。
4.1.2 设备配置
4.1.2.1 GDGZ-MS-IPMAN-XY-BRAS01-7750 下行链路起LACP
configrue lag 4
description "To-[GDGZ-MA-IPMAN-XLD-SW01-S9312]-lag-6"
mode access
encap-type qinq
port 1/2/4
lacp active administrative-key 32769
hold-time down 50
no shutdown
exit
4.1.2.2 IES 10000888配置group-interface和启用SRRP
configure service
sdp 1033 mpls create
description "TO-[GDGZ-MS-IPMAN-XH-SR01-7750]-LOOPBACK0"
far-end 120.196.27.33
ldp
keep-alive
shutdown
exit
no shutdown
exit
configure service ies 1000888 customer 1000 create
redundant-interface “SRRP-XYBRAS01/XHSR01" create
description " SRRP-Test"
address 192.168.254.5/30 remote-ip 192.168.254.6
spoke-sdp 1033:10000888 create
no shutdown
exit
exit
subscriber-interface "OAM-SRRP-Test" create
address 183.239.184.194/27 gw-ip-address 183.239.184.193
group-interface "XLD-SW01-SDHandPTN" create
srrp-enabled-routing
redundant-interface “SRRP-XYBRAS01/XHSR01"
sap lag-4:1706.0 create
exit
sap lag-4:1706.100 create
anti-spoof ip
static-host ip 183.239.184.196 create
no shutdown
exit
exit
srrp create
keep-alive-interval 50
message-path lag-4:1706.0
priority 120
no shutdown
exit
exit
exit
4.1.2.3 GDGZ-MS-IPMAN-XY-BRAS01-7750路由公布配置
configure router policy-options
policy-statement "Export_Submgmt_Route"
entry 5
from
prefix-list "Direct_Route"
state srrp-non-master-SRRP备用侧公布路由
exit
to
protocol bgp
exit
action reject ---抑制该路由公布
exit
entry 10
from
protocol sub-mgmt
prefix-list "Direct_Route"
exit
to
protocol bgp
exit
action accept
exit
exit
exit
4.1.2.4 GDGZ-MS-IPMAN-XH-SR01-7750下行链路起LACP
configrue lag 5
description "To-[GDGZ-MA-IPMAN-DFZ-SW01-S9312]-ETH-4"
mode access
encap-type qinq
port 1/2/14
port 10/2/9
lacp active administrative-key 32789
hold-time down 50
no shutdown
exit
4.1.2.5 IES 10000888配置group-interface和启用SRRP
configure service
sdp 1239 mpls create
description "TO-[GDGZ-MS-IPMAN-XY-BRAS01-7750]-LOOPBACK0"
far-end 120.196.27.239
ldp
keep-alive
shutdown
exit
no shutdown
exit
configure service ies 10000888 customer 1000 create
redundant-interface “SRRP-XYBRAS01/XHSR01" create
description "OAM-SRRP-Test"
address 192.168.254.6/30 remote-ip 192.168.254.5
spoke-sdp 1239:10000888 create
no shutdown
exit
exit
subscriber-interface "OAM-SRRP-Test" create
address 183.239.184.195/27 gw-ip-address 183.239.184.193
group-interface "XLD-SW01-SDHandPTN-BF" create
redundant-interface “SRRP-XYBRAS01/XHSR01"
sap lag-5:1706.0 create
exit
sap lag-5:1706.100 create
anti-spoof ip
static-host ip 183.239.184.196 create
no shutdown
exit
exit
srrp create
keep-alive-interval 50
message-path lag-5:1706.0
priority 100
no shutdown
exit
exit
4.1.2.6 GDGZ-MS-IPMAN-XH-SR01-7750路由公布配置
configure router policy-options
policy-statement "Export_Submgmt_Route"
entry 5
from
prefix-list "Direct_Route"
state srrp-non-master-SRRP备用侧公布路由
exit
to
protocol bgp
exit
action reject ---抑制该路由公布
exit
entry 10
from
protocol sub-mgmt
prefix-list "Direct_Route"
exit
to
protocol bgp
exit
action accept
exit
exit
exit
4.1.3 测试结果
测试编号
4.1
测试项目
小“v”型专线业务热备测试
测试目标
验证专线业务备份功效,在链路中止时,业务得到保护情况
测试环境
测试步骤
1、在SW接终端分别ping网关和外网(baidu)
2、中止链路1,观察业务情况。
3、恢复链路1,观察业务情况
预期结果
主用链路1出现故障,业务能够正常切换到备用侧
测试结果
ping网关
pingbaidu
切换
还原
切换
还原
第1次
3
0
4
0
第2次
3
0
6
0
第3次
2
1
4
0
ping外网因为包含到主备SR用户路由公布切换,因为中止时间会稍长
备注
主用侧路由:
B:GDGZ-MS-IPMAN-BRAS01-XY-AL# show router route-table 183.239.184.196
===========================================================
Route Table (Router: Base)
===========================================================
Dest Prefix[Flags] Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
183.239.184.196/32 Remote Sub Mgmt 21h18m09s 0
[XLD-SW01-SDHandPTN] 0
-------------------------------------------------------------------------------
No. of Routes: 1
Flags: L = LFA nexthop available B = BGP backup route available
n = Number of times nexthop is repeated
备用侧路由:
A:GDGZ-MS-IPMAN-SR01-XH-AL# show router route-table 183.239.184.196
===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix[Flags] Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
183.239.184.196/32 Remote Sub Mgmt 01d17h21m 0
[SRRP-XYBRAS01/XHSR01] ---备用SR用户路由指向redundant-interface 0
-------------------------------------------------------------------------------
No. of Routes: 1
Flags: L = LFA nexthop available B = BGP backup route available
n = Number of times nexthop is repeated
切换前srrp状态:
B:GDGZ-MS-IPMAN-BRAS01-XY-AL>config>service>ies# show srrp
===========================================================
SRRP Instance
===========================================================Description : (Not Specified)
Admin State : Up Oper State : master
Oper Flags : subnetMismatch
Preempt : yes One GARP per SAP : no
Monitor Oper Group : None
System IP : 120.196.27.239
Service ID : IES 10000888
Group If : XLD-SW01-SDHandPTN MAC Address : 0c:a4:02:b0:71:45
Grp If Description : N/A
Grp If Admin State : Up Grp If Oper State: Up
Subscriber If : OAM-SRRP-Test
Sub If Admin State : Up Sub If Oper State: Up
Address : 183.239.184.130/26 Gateway IP : 183.239.184.129
Address : 183.239.184.194/27 Gateway IP : 183.239.184.193
Redundant If : OAM-SRRP
Red If Admin State : Up Red If Oper State: Up
Address : 192.168.254.1/30
Red Spoke-sdp : 1243:10000888
Msg Path SAP : lag-4:1706.0
Admin Gateway MAC : Oper Gateway MAC : 00:00:5e:00:01:e1
Config Priority : 120 In-use Priority : 120
Master Priority : 120
Keep-alive Interval : 50 deci-seconds Master Since : 04/15/ 16:32:01
Fib Population Mode : all
VRRP Policy 1 : None VRRP Policy 2 : None
B:GDGZ-MS-IPMAN-BRAS01-XY-AL>config>service>ies# show router bgp neighbor 120.196.27.1 advertised-routes | match 183.239.184.196/32
? 183.239.184.196/32 主用公布用户路由 100 0
A:GDGZ-MS-IPMAN-BRAS01-XH-AL# show srrp
===========================================================
SRRP Instance
===========================================================
Description : (Not Specified)
Admin State : Up Oper State : backupShunt
Oper Flags : subnetMismatch
Preempt : yes One GARP per SAP : no
Monitor Oper Group : None
System IP : 120.196.27.243
Service ID : IES 10000888
Group If : XLD-OLT001 MAC Address : 8c:90:d3:71:00:68
Grp If Description : N/A
Grp If Admin State : Up Grp If Oper State: Up
Subscriber If : OAM-SRRP-Test
Sub If Admin State : Up Sub If Oper State: Up
Address : 183.239.184.131/26 Gateway IP : 183.239.184.129
Redundant If : OAM-SRRP
Red If Admin State : Up Red If Oper State: Up
Address : 192.168.254.2/30
Red Spoke-sdp : 1239:10000888
Msg Path SAP : lag-23:1705.0
Admin Gateway MAC : Oper Gateway MAC : 00:00:5e:00:01:e3
Config Priority : 100 In-use Priority : 100
Master Priority : 120
Keep-alive Interval : 50 deci-seconds Master Since : 04/15/ 19:40:08
Master Down Interval: 15.000 sec (Expires in 14.050 sec)
Fib Population Mode : all
VRRP Policy 1 : None VRRP Policy 2 : None
A:GDGZ-MS-IPMAN-BRAS01-XH-AL# show router bgp neighbor 120.196.27.1 advertised-routes | match 183.239.184.196/32
---没有向外公布用户路由
切换后SRRP状态:
B:GDGZ-MS-IPMAN-BRAS01-XY-AL# show srrp
===========================================================
SRRP Instance
===========================================================
Description : (Not Specified)
Admin State : Up Oper State : initialize
Oper Flags : subnetMismatch
Preempt : yes One GARP per SAP : no
Monitor Oper Group : None
System IP : 120.196.27.239
Service ID : IES 10000888
Group If : XLD-SW01-SDHandPTN MAC Address : 0c:a4:02:b0:71:45
Grp If Description : N/A
Grp If Admin State : Up Grp If Oper State: Down
Subscriber If : OAM-SRRP-Test
Sub If Admin State : Up Sub If Oper State: Down
Address : 183.239.184.130/26 Gateway IP : 183.239.184.129
Address : 183.239.184.194/27 Gateway IP : 183.239.184.193
Redundant If : OAM-SRRP
Red If Admin State : Up Red If Oper State: Up
Address : 192.168.254.1/30
Red Spoke-sdp : 1243:10000888
Msg Path SAP : lag-4:1706.0
Admin Gateway MAC : Oper Gateway MAC : 00:00:5e:00:01:e1
Config Priority : 120 In-use Priority : 120
Master Priority : 120
Keep-alive Interval : 50 deci-seconds Master Since : 04/15/ 16:32:01
Master Down Interval: 0.000 sec (Expires in 0.000 sec)
Fib Population Mode : all
VRRP Policy 1 : None VRRP Policy 2 : None
A:GDGZ-MS-IPMAN-BRAS01-XY-AL# show router bgp neighbor 120.196.27.1 advertised-routes | match 183.239.184.196/32
---没有向外公布用户路由
A:GDGZ-MS-IPMAN-SR01-XH-AL# show srrp
===========================================================
SRRP Instance
===========================================================
Description : (Not Specified)
Admin State : Up Oper State : master
Oper Flags : subnetMismatch
Preempt : yes One GARP per SAP : no
Monitor Oper Group : None
System IP
展开阅读全文