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