1、IP城域网汇聚层及接入层SRRP+EthOAM热备组网测试方案广州移动3月版本变更统计日期版本说明作者.31.0创建修改文档林建明目 录1. 序言32. 测试网络物理拓扑33. 测试准备43.1 设备选型43.2 测试人员54. 测试方法54.1 “小V”专线业务热备测试54.1.1 设备配置54.1.2 测试结果54.2 “大V”专线业务热备测试64.2.1 设备配置64.2.2 测试结果65. 测试总结81. 序言 2. 测试网络物理拓扑测试采取网络拓扑和现网设备是亲密相关。既考虑到网络现实状况,也要考虑未来网络结构演进和改变,此次测试设计到两个类型拓扑图。“小v”型结构以下图, OLT到
2、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不含有测试条件,配置方法能够参考佛山企业
3、测试结果)SR/BRAS:XY-BRAS01,XH-BRAS01,XH-SR01SW:先烈东、东风中OLT:先烈东OLT(华为)大V型:链路类型本端设备本端端口对端设备对端端口SW-SRXLD-SWETH-TRUNK 6GE10/0/5XY-BRAS01G1/2/4 LAG4SW-SRDFZ-SWETH-TRUNK 4GE12/0/2XH-BRAS01G2/2/4 LAG23SW-OLTXLD-SWETH-TRUNK 4(G10/0/4,G12/0/4)XLD-OLTG11/0,12/0SW-OLTDFZ-SWG12/0/7 D101-1-D3/D4XLD-OLT待调通小V型/非共享网关链路类
4、型本端设备本端端口对端设备对端端口SW-SRXLD-SWETH-TRUNK 6GE10/0/5XY-BRAS01G1/2/4 LAG4SW-SRXLD-SWETH-TRUNK 2GE10/0/0GE12/0/2XH-SR01G1/2/14,G 10/2/9 LAG5SW-OLTXLD-SWETH-TRUNK 4(G10/0/4,G12/0/4)XLD-OLTG11/0,12/03.2 测试人员SR/BRASSWOLT广州移动林建明林建明文溯上海贝尔刘育平刘育平4. 测试方法4.1 “小V”专线业务热备测试4.1.1 设备配置热备配置方法:小V型组网采取SRRP+LACP方法,SR和SW之间启用
5、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-BRA
6、S01-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 exit4.1.2.2 IES 10000888配置group-interface和启用SRRP configure servicesdp 1033 mpls create description TO-GDGZ-MS
7、-IPMAN-XH-SR01-7750-LOOPBACK0 far-end 120.196.27.33 ldp keep-alive shutdown exit no shutdown exitconfigure service ies 1000888 customer 1000 create redundant-interface “SRRP-XYBRAS01/XHSR01 create description SRRP-Testaddress 192.168.254.5/30 remote-ip 192.168.254.6 spoke-sdp 1033:10000888 create no
8、 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 createsrrp-enabled-routing redundant-interface “SRRP-XYBRAS01/XHSR01sap lag-4:1706.0 createexit sap lag-4:1706.100 create anti-spoof ip static-hos
9、t 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 exit4.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
10、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 exit4.1.2.4 GDGZ-MS-IPMAN-XH-SR01-7750下行链路起LACP configrue lag 5 description To-GDGZ-MA-IPMAN-DFZ-SW01-S93
11、12-ETH-4 mode access encap-type qinq port 1/2/14port 10/2/9 lacp active administrative-key 32789 hold-time down 50 no shutdownexit4.1.2.5 IES 10000888配置group-interface和启用SRRPconfigure service sdp 1239 mpls create description TO-GDGZ-MS-IPMAN-XY-BRAS01-7750-LOOPBACK0 far-end 120.196.27.239 ldp keep-a
12、live shutdown exit no shutdown exitconfigure 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 c
13、reate 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-aliv
14、e-interval 50 message-path lag-5:1706.0 priority 100 no shutdown exit exit4.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 -抑制该
15、路由公布 exit entry 10 from protocol sub-mgmt prefix-list Direct_Route exit to protocol bgp exit action accept exit exit exit4.1.3 测试结果测试编号4.1测试项目小“v”型专线业务热备测试测试目标验证专线业务备份功效,在链路中止时,业务得到保护情况测试环境测试步骤1、在SW接终端分别ping网关和外网(baidu)2、中止链路1,观察业务情况。3、恢复链路1,观察业务情况预期结果主用链路1出现故障,业务能够正常切换到备用侧测试结果ping网关pingbaidu切换还原切换还
16、原第1次3040第2次3060第3次2140ping外网因为包含到主备SR用户路由公布切换,因为中止时间会稍长备注主用侧路由:B:GDGZ-MS-IPMAN-BRAS01-XY-AL# show router route-table 183.239.184.196 =Route Table (Router: Base)=Dest PrefixFlags Type Proto Age Pref Next HopInterface Name Metric -183.239.184.196/32 Remote Sub Mgmt 21h18m09s 0 XLD-SW01-SDHandPTN 0-No.
17、 of Routes: 1Flags: 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 PrefixFlags Type Proto Age Pref Next HopInterface Name Metric -183.239.184.19
18、6/32 Remote Sub Mgmt 01d17h21m 0 SRRP-XYBRAS01/XHSR01 -备用SR用户路由指向redundant-interface 0-No. of Routes: 1Flags: L = LFA nexthop available B = BGP backup route available n = Number of times nexthop is repeated切换前srrp状态:B:GDGZ-MS-IPMAN-BRAS01-XY-ALconfigserviceies# show srrp =SRRP Instance =Description
19、: (Not Specified)Admin State : Up Oper State : masterOper Flags : subnetMismatch Preempt : yes One GARP per SAP : noMonitor 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:45Grp If Description : N/AGrp If Admin State :
20、 Up Grp If Oper State: UpSubscriber If : OAM-SRRP-Test Sub If Admin State : Up Sub If Oper State: UpAddress : 183.239.184.130/26 Gateway IP : 183.239.184.129Address : 183.239.184.194/27 Gateway IP : 183.239.184.193Redundant If : OAM-SRRP Red If Admin State : Up Red If Oper State: UpAddress : 192.168
21、.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:e1Config Priority : 120 In-use Priority : 120Master Priority : 120 Keep-alive Interval : 50 deci-seconds Master Since : 04/15/ 16:32:01Fib Population Mode : all VRRP Policy 1 : N
22、one VRRP Policy 2 : NoneB:GDGZ-MS-IPMAN-BRAS01-XY-ALconfigserviceies# show router bgp neighbor 120.196.27.1 advertised-routes | match 183.239.184.196/32 ? 183.239.184.196/32 主用公布用户路由 100 0A:GDGZ-MS-IPMAN-BRAS01-XH-AL# show srrp =SRRP Instance =Description : (Not Specified)Admin State : Up Oper State
23、 : backupShuntOper Flags : subnetMismatch Preempt : yes One GARP per SAP : noMonitor Oper Group : None System IP : 120.196.27.243 Service ID : IES 10000888 Group If : XLD-OLT001 MAC Address : 8c:90:d3:71:00:68Grp If Description : N/AGrp If Admin State : Up Grp If Oper State: UpSubscriber If : OAM-SR
24、RP-Test Sub If Admin State : Up Sub If Oper State: UpAddress : 183.239.184.131/26 Gateway IP : 183.239.184.129Redundant If : OAM-SRRP Red If Admin State : Up Red If Oper State: UpAddress : 192.168.254.2/30 Red Spoke-sdp : 1239:10000888 Msg Path SAP : lag-23:1705.0 Admin Gateway MAC : Oper Gateway MA
25、C : 00:00:5e:00:01:e3Config Priority : 100 In-use Priority : 100Master Priority : 120 Keep-alive Interval : 50 deci-seconds Master Since : 04/15/ 19:40:08Master Down Interval: 15.000 sec (Expires in 14.050 sec)Fib Population Mode : all VRRP Policy 1 : None VRRP Policy 2 : NoneA:GDGZ-MS-IPMAN-BRAS01-
26、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 : initializeOper Flags : subnetMismatch Preempt : yes One GARP per SAP : noMo
27、nitor 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:45Grp If Description : N/AGrp If Admin State : Up Grp If Oper State: DownSubscriber If : OAM-SRRP-Test Sub If Admin State : Up Sub If Oper State: DownAddress : 183.
28、239.184.130/26 Gateway IP : 183.239.184.129Address : 183.239.184.194/27 Gateway IP : 183.239.184.193Redundant If : OAM-SRRP Red If Admin State : Up Red If Oper State: UpAddress : 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:5
29、e:00:01:e1Config Priority : 120 In-use Priority : 120Master Priority : 120 Keep-alive Interval : 50 deci-seconds Master Since : 04/15/ 16:32:01Master Down Interval: 0.000 sec (Expires in 0.000 sec)Fib Population Mode : all VRRP Policy 1 : None VRRP Policy 2 : NoneA:GDGZ-MS-IPMAN-BRAS01-XY-AL# show r
30、outer 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 : masterOper Flags : subnetMismatch Preempt : yes One GARP per SAP : noMonitor Oper Group : None System IP