華三RRPP實驗(一)


RRPP實驗(一)
node

目的:掌握RRPP的工做原理及配置;觀察RRPP的報文;dom

工具:LITO華三模擬器、GNS3模擬器、WiresharkEtherealVMide


說明:由於RRPP的協議報文是二層幀,所以要將華三模擬器LITO橋接到本地VMwareVMnet1,同時在本機(win7)上開啓Wireshark選擇VMnet1抓包。工具

注:華三模擬器LITO沒法直接將交換機的接口橋接到本地VMwareVMnet1上,需借用GNS3中的交換機與主機來實現。url


步驟一:採用LITO搭建拓樸以下wKiom1LpGPqgiDTBAAE-BGgLvHA750.jpgspa

步驟二:打開LITO的安裝路徑(C:\Program Files (x86)\LITO 模擬器\vpcs\lito.liu),表示本地端口19051與遠程端口19014之間UDP鏈接(SW2E0/4/1PC3鏈接);本地端口19064與遠程端口19053之間UDP鏈接(SW5E0/4/1PC4鏈接)。debug

spacer.gif

步驟三:運行GNS3,創建以下拓樸,C1配置詳見下圖wKiom1LpGYrhiBHfAABxp9x95XE201.jpg
3d

wKiom1LpH5XjMKkLAAFdm2QCahI725.jpg

這裏選擇的是VMnet1    rest

wKioL1LpH4qB77BBAAGq6ZGvP6I076.jpg

按照步驟二中的端口鏈接進行添加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運行狀態

wKiom1LpH7zgsgMkAAIpu1dxSuQ804.jpg


關閉Sw1E0/4/0

wKioL1LpH6TSIzlTAAESy4jyOyU252.jpg


查看RRPP環的切換

wKiom1LpH9LRqBhRAAJEW9u3LAo308.jpg


再將SW1E0/4/0接口開啓

wKioL1LpH7vjnZ0bAADxNtqScxM357.jpg


查看RRPP環的恢復

wKiom1LpH-3Tm6gcAAIsDxsuMZQ513.jpg









附:在交換機上開啓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對數據幀的顯示問題。

wKioL1LpH9uTlInfAAXU0jCqSzg141.jpg


RRPP有如下幾種報文:

Health

Link-Down

Common-Flush-FDB

Complete-Flush-FDB

Edge-Hello

Major-Fault

相關文章
相關標籤/搜索