Topo:
IXIA-------------(MOD80)ASR9K---------------IXIA
BNG配置:
-----------------PPPoE------------------- pool vrf default ipv4 PPP address-range 50.50.0.1 50.50.255.255 dynamic-template type ppp PPPoE ppp ipcp peer-address pool PPP ipv4 unnumbered Loopback50 ! interface Bundle-Ether70 interface Bundle-Ether70.50 service-policy type control subscriber POL_PPP pppoe enable encapsulation dot1q 50 class-map type control subscriber match-any PPP match protocol ppp end-class-map ! ! policy-map type control subscriber POL_PPP event session-start match-first class type control subscriber PPP do-until-failure 10 activate dynamic-template PPPoE ! ! end-policy-map ! -----------------IPoE------------------ pool vrf default ipv4 IPSUB network 70.70.0.0/16 exclude 70.70.70.70 0.0.0.0 ! dhcp ipv4 profile IPSUB server pool IPSUB default-router 70.70.70.70 ! interface Bundle-Ether70.70 server profile IPSUB dynamic-template type ipsubscriber IPSUB ipv4 unnumbered Loopback70 ipv4 access-group IPSUB ingress ipv4 access-group IPSUB egress ! ipv4 access-list IPSUB 5 permit ipv4 any any interface Bundle-Ether70.70 ipv4 point-to-point ipv4 unnumbered Loopback70 service-policy type control subscriber POL_IPSUB encapsulation dot1q 70 ipsubscriber ipv4 l2-connected initiator dhcp class-map type control subscriber match-any CLASS_IPSUB match protocol dhcpv4 end-class-map ! policy-map type control subscriber POL_IPSUB event session-start match-first class type control subscriber CLASS_IPSUB do-until-failure 1 activate dynamic-template IPSUB ! ! end-policy-map !
IXIA配置:
一、 逻辑如下:
1. 将PC的时间调为0点了,GetTime获取的value 为0,do while(time<=22)会测试23个小时。
2. 第三步为将所有的PPPoE session全部断掉,如下图在设置这一步时候将Blocking step设置为8分钟,ixia会在8分钟内一直执行这个操作,如果在8分钟内的某个时间点session被全部stop了,会提前终止这一步,继续进行。
3. Sleep设置为3分钟
4. 第五步,start PPPoE session,类似的blocking step参数也设置为8分钟.
二、 (PPPoE)测试结果如下:
1. RSP base的session,在23个小时内上下线了207次,9K的日志未见报警信息。
平均32k的session起来的时间为1分50s
2. LC base的session,在23个小时内上下线了184次,9K的日志未见报警信息。
平均32k的session起来需要的时间为2分30s.
参考文档:
如何配置DHCPv4客户端和DHCPv4服务器:
http://ixnetwork.blogspot.hk/2013/06/ixnetwork-dhcp-how-to-configure-dhcpv4.html
IXIA Guide:
http://www.zhaocs.info/ixia-guide.html
原文地址:http://blog.51cto.com/superxing/2088685
时间: 2024-10-14 04:36:15