RRPP實驗(一)
node
目的:掌握RRPP的工做原理及配置;觀察RRPP的報文;dom
工具:LITO華三模擬器、GNS3模擬器、Wireshark、Ethereal、VM;ide
說明:由於RRPP的協議報文是二層幀,所以要將華三模擬器LITO橋接到本地VMware的VMnet1,同時在本機(win7)上開啓Wireshark選擇VMnet1抓包。工具
注:華三模擬器LITO沒法直接將交換機的接口橋接到本地VMware的VMnet1上,需借用GNS3中的交換機與主機來實現。url
步驟二:打開LITO的安裝路徑(C:\Program Files (x86)\LITO 模擬器\vpcs\lito.liu),表示本地端口19051與遠程端口19014之間UDP鏈接(SW2的E0/4/1與PC3鏈接);本地端口19064與遠程端口19053之間UDP鏈接(SW5的E0/4/1與PC4鏈接)。debug
這裏選擇的是VMnet1 rest
按照步驟二中的端口鏈接進行添加blog
步驟四:SW1 RRPP Master配置,Sw2 RRPP transit配置
[SW1]vlan 10
[SW1]vlan 20
[SW1]interface Ethernet 0/4/0
[SW1-Ethernet0/4/0]undo stp
[SW1-Ethernet0/4/0]port link-type trunk
[SW1-Ethernet0/4/0]undo port trunk permitvlan 1
[SW1-Ethernet0/4/0]port trunk permit vlan10 20 4000 4001
[SW1]interface Ethernet 0/4/1
[SW1-Ethernet0/4/1]undo stp
[SW1-Ethernet0/4/1]port link-type trunk
[SW1-Ethernet0/4/1]undo port trunk permitvlan 1
[SW1-Ethernet0/4/1]port trunk permit vlan10 20 4000 4001
[SW1]stp region-configuration
[SW1-mst-region]instance 1 vlan 10 20
[SW1-mst-region]active region-configuration
[SW1]rrpp domain 1
Info: Create a new domain.
[SW1-rrpp-domain1]control-vlan 4000
[SW1-rrpp-domain1]protected-vlanreference-instance 1
[SW1-rrpp-domain1]ring 1 node-mode masterprimary-port Ethernet 0/4/0 secondary-port Ethernet 0/4/1 level 0
[SW1-rrpp-domain1]ring 1 enable
[SW1]rrpp enable
[SW2]vlan 10
[SW2]vlan 20
[SW2]interface Ethernet 0/4/0
[SW2-Ethernet0/4/0]undo stp
[SW2-Ethernet0/4/0]port link-type trunk
[SW2-Ethernet0/4/0]undo port trunk permitvlan 1
[SW2-Ethernet0/4/0]port trunk permit vlan10 20 4000 4001
[SW2]interface Ethernet 0/4/1
[SW2-Ethernet0/4/1]undo stp
[SW2-Ethernet0/4/1]port link-type trunk
[SW2-Ethernet0/4/1]undo port trunk permitvlan 1
[SW2-Ethernet0/4/1]port trunk permit vlan10 20 4000 4001
[SW2]stp region-configuration
[SW2-mst-region]instance 1 vlan 10 20
[SW2-mst-region]active region-configuration
[SW2]rrpp domain 1
Info: Create a new domain.
[SW2-rrpp-domain1]control-vlan 4000
[SW2-rrpp-domain1]protected-vlanreference-instance 1
[SW2-rrpp-domain1]ring 1 node-mode transitprimary-port Ethernet 0/4/0 secondary-port Ethernet 0/4/1 level 0
[SW2-rrpp-domain1]ring 1 enable
[SW2]rrpp enable
注意:主節點的主端口用來發送探測環路的報文,副端口用來接收該報文。當RRPP環處於健康狀態時,主節點的副端口在邏輯上阻塞數據VLAN,只容許控制VLAN的報文經過;當RRPP環處於斷裂狀態時,主節點的副端口將解除數據VLAN的阻塞狀態,轉發數據VLAN報文;
傳輸節點的主端口和副端口在功能上沒有區別,都用於RRPP環上協議報文和數據報文的傳輸。
步驟五:查看RRPP運行狀態
關閉Sw1的E0/4/0
查看RRPP環的切換
再將SW1的E0/4/0接口開啓
查看RRPP環的恢復
附:在交換機上開啓debug顯示的RRPP Packet信息
*Jan 28 23:55:35:627 2014 SW2RRPP/7/RRPPPKT:
Port Ethernet0/4/0 Rcvd packet of domain 1ring 1.(Length: 64, Type: Health)
99 0b 40 00 01 05 01 00 01 00 00 00 00 0fe2 00
01 00 01 00 03 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
*Jan 28 23:55:36:391 2014 SW2RRPP/7/RRPPPKT:
Port Ethernet0/4/0 Rcvd packet of domain 1ring 1.(Length: 64, Type: Health)
99 0b 40 00 01 05 01 00 01 00 00 00 00 0f e200
01 00 01 00 03 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
%Jan 28 23:55:36:454 2014 SW2IFNET/3/LINK_UPDOWN: Ethernet0/4/0 link status is DOWN.
*Jan 28 23:55:36:454 2014 SW2RRPP/7/RRPPPKT:
Port Ethernet0/4/1 Send packet of domain 1ring 1.(Length: 64, Type: Link-Down)
99 0b 00 40 01 08 00 01 00 01 00 00 00 0fe2 00
02 00 00 01 00 03 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
*Jan 28 23:55:36:454 2014 SW2RRPP/7/RRPPFSM:
Domain 1 ring 1 Transit Node FSM. Previousstate is Link-up. Current state is Link-Down. Transition event is own linkdown.
*Jan 28 23:55:36:469 2014 SW2RRPP/7/RRPPPKT:
Port Ethernet0/4/1 Rcvd packet of domain 1ring 1.(Length: 64, Type: Common-Flush-FDB)
99 0b 40 00 01 07 01 00 01 00 00 00 00 0fe2 00
01 00 01 00 03 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
*Jan 28 23:55:36:469 2014 SW2RRPP/7/RRPPFSM:
Domain 1 ring 1 Transit Node FSM. Previousstate is Link-Down. Current state is Link-Down. Transition event is ReceivingCommon-Flush-FDB packet.
%Jan 28 23:55:49:370 2014 SW2IFNET/3/LINK_UPDOWN: Ethernet0/4/0 link status is UP.
*Jan 28 23:55:49:370 2014 SW2RRPP/7/RRPPFSM:
Domain 1 ring 1 Transit Node FSM. Previousstate is Link-Down. Current state is Preforwarding. Transition event is own linkrestoring.
*Jan 28 23:55:49:792 2014 SW2RRPP/7/RRPPPKT:
Port Ethernet0/4/0 Rcvd packet of domain 1ring 1.(Length: 64, Type: Complete-Flush-FDB)
99 0b 40 00 01 06 01 00 01 00 00 00 00 0fe2 00
01 00 01 00 03 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
*Jan 28 23:55:49:792 2014 SW2RRPP/7/RRPPFSM:
Domain 1 ring 1 Transit Node FSM. Previousstate is Preforwarding. Current state is Link-Up. Transition event is ReceivingComplete-Flush-FDB packet.
*Jan 28 23:55:50:494 2014 SW2RRPP/7/RRPPPKT:
Port Ethernet0/4/0 Rcvd packet of domain 1ring 1.(Length: 64, Type: Health)
99 0b 40 00 01 05 01 00 01 00 00 00 00 0fe2 00
01 00 01 00 03 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
*Jan 28 23:55:51:227 2014 SW2RRPP/7/RRPPPKT:
Port Ethernet0/4/0 Rcvd packet of domain 1ring 1.(Length: 64, Type: Health)
99 0b 40 00 01 05 01 00 01 00 00 00 00 0fe2 00
01 00 01 00 03 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00
下圖是在本機(win7)開啓Wireshark抓包,但沒法顯示RRPP的明細報文種類,應該是wireshark對數據幀的顯示問題。
RRPP有如下幾種報文:
Health
Link-Down
Common-Flush-FDB
Complete-Flush-FDB
Edge-Hello
Major-Fault