华三RRPP实验(一)


RRPP实验(一)

目的:掌握RRPP的工作原理及配置;观察RRPP的报文;

工具:LITO华三模拟器、GNS3模拟器、WiresharkEtherealVM


说明:因为RRPP的协议报文是二层帧,因此要将华三模拟器LITO桥接到本地VMwareVMnet1,同时在本机(win7)上开启Wireshark选择VMnet1抓包。

注:华三模拟器LITO无法直接将交换机的接口桥接到本地VMwareVMnet1上,需借用GNS3中的交换机与主机来实现。


步骤一:采用LITO搭建拓朴如下华三RRPP实验(一)

步骤二:打开LITO的安装路径(C:\Program Files (x86)\LITO 模拟器\vpcs\lito.liu),表示本地端口19051与远程端口19014之间UDP连接(SW2E0/4/1PC3连接);本地端口19064与远程端口19053之间UDP连接(SW5E0/4/1PC4连接)。

华三RRPP实验(一)

步骤三:运行GNS3,建立如下拓朴,C1配置详见下图华三RRPP实验(一)

华三RRPP实验(一)

这里选择的是VMnet1    

华三RRPP实验(一)

按照步骤二中的端口连接进行添加


步骤四: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运行状态

华三RRPP实验(一)


关闭Sw1E0/4/0

华三RRPP实验(一)


查看RRPP环的切换

华三RRPP实验(一)


再将SW1E0/4/0接口开启

华三RRPP实验(一)


查看RRPP环的恢复

华三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实验(一)


RRPP有以下几种报文:

Health

Link-Down

Common-Flush-FDB

Complete-Flush-FDB

Edge-Hello

Major-Fault


本文出自 “闲云野鹤,悠悠垂钓” 博客,请务必保留此出处http://cvgcv6666.blog.51cto.com/713624/1355346

华三RRPP实验(一)

上一篇:通过profile优化SQL语句


下一篇:数据库隔离级别