Beruflich Dokumente
Kultur Dokumente
Issue
01
Date
2013-10-30
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Website:
http://enterprise.huawei.com
Issue 01 (2013-10-30)
S Series Switch
Feature Start - Loop Prevention Features
Intended Audience
This document is intended for:
Maintenance engineers
Symbol Conventions
The symbols that may be found in this document are defined as follows:
Symbol
Description
Alerts you to a high risk hazard that could, if not avoided,
result in serious injury or death.
Alerts you to a medium or low risk hazard that could, if not
avoided, result in moderate or minor injury.
Alerts you to a potentially hazardous situation that could, if
not avoided, result in equipment damage, data loss,
performance deterioration, or unanticipated results.
Indicates a tip that may help you solve a problem or save your
time.
Provides additional information to emphasize or supplement
important points in the main text.
Issue 01 (2013-10-30)
ii
S Series Switch
Feature Start - Loop Prevention Features
Change History
Changes between document issues are cumulative. The latest document issue contains all the
changes made in earlier issues.
Issue 01 (2013-10-30)
This is the first official release.
Issue 01 (2013-10-30)
iii
S Series Switch
Feature Start - Loop Prevention Features
Contents
Contents
About This Document.......................................................................ii
1 Overview...................................................................................... 1
1.1 Introduction to Loop Prevention Technologies..............................................................................................................1
1.2 Comparison Between Ethernet Loop Prevention Technologies.....................................................................................2
1.3 Scenario Suggestions......................................................................................................................................................5
1.3.1 Usage Suggestions for Ethernet Loop Prevention Technologies.................................................................................5
1.3.2 Example Scenario 1: SEP............................................................................................................................................5
1.3.3 Example Scenario 2: RRPP.........................................................................................................................................6
1.3.4 Example Scenario 3: STP............................................................................................................................................7
1.3.5 Example Scenario 4: SEP+MSTP...............................................................................................................................8
1.3.6 Example Scenario 5: SEP+Smart Link........................................................................................................................9
2 SEP............................................................................................ 11
2.1 Overview......................................................................................................................................................................11
2.1.1 Feature Description....................................................................................................................................................11
2.1.1.1 SEP Working Principle...........................................................................................................................................11
2.1.1.2 SEP Concepts.........................................................................................................................................................12
2.1.1.3 SEP Implementation...............................................................................................................................................15
2.1.2 Version Difference.....................................................................................................................................................27
2.2 Configuration Guide.....................................................................................................................................................28
2.2.1 Scenario 1: SEP Open Ring Networking...................................................................................................................28
2.2.1.1 Networking Description.........................................................................................................................................28
2.2.1.2 Configuration Roadmap.........................................................................................................................................28
2.2.1.3 Configuration Example..........................................................................................................................................29
2.2.2 Scenario 2: SEP Closed Ring Networking................................................................................................................34
2.2.2.1 Networking Description.........................................................................................................................................34
2.2.2.2 Configuration Roadmap.........................................................................................................................................35
2.2.2.3 Configuration Example..........................................................................................................................................35
2.2.3 Scenario 3: Hybrid Networking of SEP and Smart Link...........................................................................................40
2.2.3.1 Networking Description.........................................................................................................................................40
2.2.3.2 Configuration Roadmap.........................................................................................................................................41
2.2.3.3 Configuration Example..........................................................................................................................................42
2.2.4 Scenario 4: Hybrid Networking of SEP and MSTP..................................................................................................47
Issue 01 (2013-10-30)
iv
S Series Switch
Feature Start - Loop Prevention Features
Contents
3 STP............................................................................................ 75
3.1 Overview......................................................................................................................................................................75
3.1.1 Feature Description...................................................................................................................................................75
3.1.1.1 Background.............................................................................................................................................................75
3.1.1.2 Introduction to STP................................................................................................................................................75
3.1.1.3 MSTP Concepts......................................................................................................................................................76
3.1.1.4 MSTP Protection....................................................................................................................................................79
3.1.1.5 MSTP Convergence Example.................................................................................................................................80
3.1.2 Version Difference.....................................................................................................................................................81
3.1.3 Implementation on Devices of Other Vendors..........................................................................................................82
3.1.3.1 H3C.........................................................................................................................................................................82
3.1.3.2 Cisco.......................................................................................................................................................................82
3.2 Configuration Guide.....................................................................................................................................................84
3.2.1 Scenario 1: Configuring Basic RSTP Functions.......................................................................................................84
3.2.1.1 Networking Description.........................................................................................................................................84
3.2.1.2 Configuration Roadmap.........................................................................................................................................84
3.2.1.3 Configuration Example..........................................................................................................................................85
Issue 01 (2013-10-30)
S Series Switch
Feature Start - Loop Prevention Features
Contents
vi
S Series Switch
Feature Start - Loop Prevention Features
Contents
4 RRPP........................................................................................ 138
4.1 RRPP Overview..........................................................................................................................................................138
4.1.1 Feature Description.................................................................................................................................................138
4.1.1.1 Basic RRPP Concepts...........................................................................................................................................138
4.1.1.2 RRPP Packets.......................................................................................................................................................140
4.1.1.3 RRPP Working Principles.....................................................................................................................................141
4.2 Configuration Guide...................................................................................................................................................144
4.2.1 Scenario 1: Configuring Single RRPP Ring with a Single Instance.......................................................................144
4.2.1.1 Networking Description.......................................................................................................................................144
4.2.1.2 Configuration Roadmap.......................................................................................................................................145
4.2.1.3 Configuration Example........................................................................................................................................145
4.2.2 Scenario 2: Configuring Intersecting RRPP Rings with a Single Instance.............................................................150
4.2.2.1 Networking Description.......................................................................................................................................150
4.2.2.2 Configuration Roadmap.......................................................................................................................................151
4.2.2.3 Configuration Example........................................................................................................................................151
4.2.3 Scenario 3: Configuring Intersecting RRPP Rings with Multiple Instances...........................................................161
4.2.3.1 Networking Description.......................................................................................................................................161
4.2.3.2 Configuration Roadmap.......................................................................................................................................163
4.2.3.3 Configuration Example........................................................................................................................................164
4.2.4 Deployment Precautions..........................................................................................................................................179
4.2.4.1 Check that All Switches on the RRPP Ring Have the Same Working Mode.......................................................179
4.2.4.2 Suppression of Unknown Unicast Traffic Cannot Be Configured on Transmit Nodes of the RRP Ring............180
4.2.4.3 LDT/LBDT and RRPP Cannot Be Configured Simultaneously on the Same Port..............................................180
4.3 Troubleshooting..........................................................................................................................................................180
4.3.1 Troubleshooting Overview......................................................................................................................................180
4.3.2 An RRPP Temporary Loop Occurs..........................................................................................................................181
Issue 01 (2013-10-30)
vii
S Series Switch
Feature Start - Loop Prevention Features
Contents
viii
S Series Switch
Feature Start - Loop Prevention Features
Contents
6 ERPS Overview..........................................................................215
6.1 Introduction to ERPS..................................................................................................................................................215
6.1.1 ERPS........................................................................................................................................................................215
6.1.1.1 Basic ERPS Concepts...........................................................................................................................................215
6.1.1.2 ERPS Single-ring Principle..................................................................................................................................220
6.1.1.3 ERPS Multi-ring Principle...................................................................................................................................225
6.1.1.4 ERPS Multi-instance............................................................................................................................................228
6.1.2 Version Difference...................................................................................................................................................230
6.2 Configuration Guide...................................................................................................................................................231
6.2.1 Scenario 1: Configuring a Single ERPS Instance....................................................................................................231
Issue 01 (2013-10-30)
ix
S Series Switch
Feature Start - Loop Prevention Features
Contents
7 LDT&LBDT................................................................................. 254
7.1 LDT&LBDT Overview..............................................................................................................................................254
7.1.1 Loop Detection........................................................................................................................................................254
7.1.2 Loopback Detection.................................................................................................................................................255
7.1.3 Version Difference...................................................................................................................................................258
7.2 Configuration Guide...................................................................................................................................................259
7.2.1 Configuring Loop Detection....................................................................................................................................259
7.2.1.1 Networking Description.......................................................................................................................................259
7.2.1.2 Configuration Roadmap.......................................................................................................................................259
7.2.1.3 Configuration Example........................................................................................................................................259
7.2.2 Configuring Loopback Detection............................................................................................................................260
7.2.2.1 Networking Description.......................................................................................................................................260
7.2.2.2 Configuration Roadmap.......................................................................................................................................261
7.2.2.3 Configuration Example........................................................................................................................................261
7.2.3 Deployment Precautions..........................................................................................................................................262
Issue 01 (2013-10-30)
S Series Switch
Feature Start - Loop Prevention Features
Contents
7.2.3.1 Do Not Configure the Block or Shutdown Action for the Uplink Interface When Loop Detection Is Enabled. .262
7.2.3.2 Set the Recovery Time of the Blocked Interface and Configure the Trap Function............................................263
7.3 Troubleshooting..........................................................................................................................................................264
7.3.1 Troubleshooting Overview......................................................................................................................................264
7.3.2 Chassis Switch Configured with Loop Detection Cannot Detect Loops................................................................264
7.3.2.1 Fault Description..................................................................................................................................................264
7.3.2.2 Troubleshooting Roadmap....................................................................................................................................264
7.3.2.3 Troubleshooting Flowchart...................................................................................................................................265
7.3.2.4 Troubleshooting Procedure...................................................................................................................................265
7.3.3 Switch Configured with Loopback Detection Cannot Detect Loops......................................................................266
7.3.3.1 Fault Description..................................................................................................................................................266
7.3.3.2 Troubleshooting Roadmap....................................................................................................................................266
7.3.3.3 Troubleshooting Flowchart...................................................................................................................................267
7.3.3.4 Troubleshooting Procedure...................................................................................................................................267
7.3.4 Information Collection............................................................................................................................................268
7.3.4.1 Network Topology................................................................................................................................................268
7.3.4.2 display Command List..........................................................................................................................................268
7.4 Troubleshooting Cases................................................................................................................................................270
7.4.1 S2700SI Configured with Loopback Detection Cannot Detect Loops...................................................................270
7.4.1.1 Symptom and Networking....................................................................................................................................270
7.4.1.2 Root Cause............................................................................................................................................................270
7.4.1.3 Identification Method...........................................................................................................................................270
7.4.1.4 Solution.................................................................................................................................................................270
7.4.2 S5700 Configured with Loopback Detection in Untagged Mode Cannot Detect Loops........................................270
7.4.2.1 Symptom and Networking....................................................................................................................................270
7.4.2.2 Root Cause............................................................................................................................................................271
7.4.2.3 Identification Method...........................................................................................................................................271
7.4.2.4 Solution.................................................................................................................................................................271
8 FAQ..........................................................................................272
8.1 What Is the Destination MAC Address of SEP Packets?...........................................................................................272
8.2 Which Interface Blocking Modes Does SEP Support?..............................................................................................272
8.3 After the SEP Topology Changes, Which Protocols Can Be Instructed to Update Forwarding Entries?..................272
8.4 What Is the Difference Between bpdu enable and bpdu bridge enable on the Chassis Switch Interface?.................273
8.5 Why the Switch Is Not the Root Bridge After stp root primary Is Configured Globally?.........................................273
8.6 What Does the Message Age Field in STP BPDUs Represent and How Is This Field Used?...................................273
8.7 How Does a Switch Interface Connected to a Non-Huawei Device Process the Received BPDU in a Different
Format?.............................................................................................................................................................................274
8.8 Can S Series Switches Transparently Transmit BPDUs By Default?........................................................................275
8.9 Can S Series Switches Transparently Transmit Cisco PVST+ Packets By Default?.................................................275
8.10 Do BPDUs Sent by S Series Switches Carry VLAN Tags By default, and How Do S Series Switches Process
Tagged BPDUs?...............................................................................................................................................................275
8.11 What Is the Destination MAC Address of RRPP Packets?......................................................................................275
Issue 01 (2013-10-30)
xi
S Series Switch
Feature Start - Loop Prevention Features
Contents
Issue 01 (2013-10-30)
xii
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Overview
Issue 01 (2013-10-30)
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Advantage
SEP
STP
Issue 01 (2013-10-30)
Disadvantage
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Protecti
on
Protocol
Advantage
RRPP
Smart Link
Loop
Detection
Issue 01 (2013-10-30)
Disadvantage
Functions as a single-node
technology that does not require the
cooperation of other nodes.
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Protecti
on
Protocol
Advantage
Loopback
Detection
DLDP
Storm
Control
Issue 01 (2013-10-30)
Disadvantage
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Suggestion
Issue 01 (2013-10-30)
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
ARP tables. The edge devices of the SEP segment send TC packets to notify devices on the
upper-layer network of the topology change in the SEP segment.
Figure 1.1 SEP multi-ring networking
Issue 01 (2013-10-30)
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
10
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
SEP
2.1 Overview
2.1.1 Feature Description
The Smart Ethernet Protection (SEP) protocol is a ring network protocol applied to the link
layer of an Ethernet network. SEP eliminates loops on a Layer 2 network by blocking
redundant links to prevent infinite packet transmission. This prevents broadcast storms on the
network.
SEP has the following advantages:
Supports various types of complex networks. For example, a network running SEP can
be connected to an upper-layer network running STP, RSTP, MSTP, or RRPP. SEP
supports networks with any topology and can display topologies. The displayed
topologies help users quickly find blocked ports and rapidly locate faults, improving
maintainability.
Enables a device on the Ethernet network to selectively block ports so that traffic is load
balanced.
Prevents traffic from being switched back after link recovery, improving network
stability.
11
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
To solve the bandwidth wasting problem and implement load balancing, Huawei datacom
devices provide SEP multi-instance. SEP multi-instance allows a physical ring to be
configured with two logical rings, that is, two SEP segments. Each SEP segment
independently detects the integrity of the physical ring and blocks or unblocks ports
accordingly. The two SEP segments do not affect each other.
For details about SEP multi-instance, see "SEP Multi-instance" in section 2.1.1.3"SEP
Implementation."
SEP segment
SEP works on the basis of SEP segments. An SEP segment consists of multiple
interconnected Layer 2 switching devices with the same SEP segment ID and the same
control VLAN ID.
Issue 01 (2013-10-30)
12
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
An SEP segment physically corresponds to a ring or linear Ethernet topology. Each SEP
segment contains a control VLAN, edge ports, and common ports.
Control VLAN
In an SEP segment, the control VLAN is only used to transmit SEP packets.
Each SEP segment must be configured with a control VLAN. After a port is added to an
SEP segment configured with a control VLAN, the port is automatically added to the
control VLAN.
Different SEP segments can use the same control VLAN.
Unlike control VLANs, data VLANs are used to transmit data packets.
Node
A node refers to a Layer 2 switching device added to an SEP segment. Each node can
have no more than two ports that belong to the same SEP segment.
Port roles
As defined in the SEP protocol, ports are classified into normal ports and edge ports, as
described in Table 1.1.
Normally, an edge port and a no-neighbor edge port belong to different SEP segments.
Sub-port
Description
Edge port
Primary edge
port
Secondary
edge port
No-neighbor
primary edge
port
No-neighbor
secondary
edge port
Issue 01 (2013-10-30)
13
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Port
Sub-port
Description
Common
port
Blocked port
In an SEP segment, some ports are blocked to prevent loops.
Any port in an SEP segment may be blocked if no blocked port is specified. When an
SEP segment works normally, there is only one blocked port in the SEP segment.
Description
Forwarding
A port in Forwarding state not only forwards user traffic but also sends and
receives SEP packets.
Discarding
The port state does not depend on the port role. A port may be in Forwarding or Discarding
state regardless of its role.
SEP Packets
Table 1.3 describes the types of SEP packets.
Table 1.3 SEP packet types
Packet
Type
Sub-type
Description
Hello
LSA
LSA request
packet
Issue 01 (2013-10-30)
14
S Series Switch
Feature Start - Loop Prevention Features
Packet
Type
1 Overview
Sub-type
Description
TC
GR
Packet for
primary
edge port
election
Preemption
packet
Preemption
request packet
Preemption reply
packet
Issue 01 (2013-10-30)
15
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
receive any Hello packet from the neighboring port, it considers that the neighboring port is
Down.
Neighbor negotiation provides necessary information for obtaining the SEP segment topology.
Ports establish neighbor relationships through neighbor negotiation and links form a complete
SEP segment. The topology of the SEP segment can be displayed.
Topology display
With the topology display function, you can view the topology with the highest network
connectivity on any device in an SEP segment. After link status synchronization, all
devices display the same topology.
Table 1.1 describes SEP topology types.
Description
Restriction Conditions
Ring
topology
Linear
topology
Issue 01 (2013-10-30)
16
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Restriction conditions in Table 1.1 ensure that all the nodes on a ring or linear topology display the same
topology information.
As shown in Figure 1.2, when no link is faulty on the network and a port is enabled with SEP:
If the port is a common port, it does not take part in the primary edge port election. That
is, only P1 ports on LSW1 and LSW5 take part in the primary edge port election.
If roles of P1 ports on LSW1 and LSW5 are the same, the port with a larger MAC
address is elected as the primary edge port.
After the primary edge port is elected, the port periodically sends packets for primary edge
port election and does not need to wait until the neighbor negotiation succeeds. The packets
for primary edge port election contain the port role (primary edge port, secondary edge port,
or common port), bridge MAC address of the port, port ID, and integrity of the topology
database.
Figure 1.2 Primary edge port election
As shown in Figure 1.2, if a link in the SEP segment fails, P1 ports on LSW1 and LSW5
receive fault notification packets or the P1 port on LSW5 does not receive any packet for
Issue 01 (2013-10-30)
17
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
primary edge port election after timeout. The P1 port on LSW1 becomes the secondary edge
port, and two secondary edge ports exist in the SEP segment.
Both the two secondary edge ports periodically send packets for primary edge port election.
When all link faults in the SEP segment are rectified, the two secondary edge ports can
receive packets for primary edge port election sent by the peer end. They elect a new primary
edge port within an interval (1s by default).
Description
Specifying the
blocked port
according to the
configured hop
counts of the ports
The hop count of the primary edge port is 1 and the hop count of the
neighboring port of the primary edge port is 2. Hop counts of other
ports increase at a step of 1 in the downstream direction of the
primary edge port.
Issue 01 (2013-10-30)
18
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Mode
Description
Specifying the
blocked port
according to the
device name and
port number
Preemption function
After the port blocking mode is specified, two preemption modes determine whether the
blocked port is moved from the current point to the specified point. The two modes are
the preemption mode and non-preemption mode, as described in Table 2.2.
Description
Non-preemption
In this mode, when all link faults are rectified or the last two ports
enabled with SEP complete the neighbor negotiation, ports send
blocking status packets to each other. Then the port with the highest
priority is blocked, and the other ports enter the Forwarding state.
Preemption
Preemption can be
performed only on
the device where the
primary edge port or
no-neighbor primary
edge port resides.
Delayed preemption
When the last faulty port recovers, the edge ports do not receive
any fault notification packet. If the primary edge port does not
receive fault notification packets within 3 seconds, it
immediately starts the delay timer. After the delay timer expires,
nodes in the SEP segment start preemption of the blocked port.
Manual preemption
In this mode, if the link status data of the primary edge port and
secondary edge port is integrated, the primary edge port or the
brother port of the no-neighbor primary edge port sends
preemption packets to block the specified port. The port
immediately sends a packet to advertise its status after being
blocked. The original blocked port enters the Forwarding state.
Manual preemption is complete.
A device can have at most two ports in the same SEP segment. If one port is
the no-neighbor primary edge port, the other port is the brother port of the
no-neighbor primary edge port.
The sending of preemption packets is determined by whether the brother port
Issue 01 (2013-10-30)
19
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Preemption
Mode
Description
of the no-neighbor primary edge port is the blocked port.
If the blocked port is the brother port of the no-neighbor primary edge
port, no preemption packet needs to be sent.
If the blocked port is not the brother port of the no-neighbor primary edge
port, the brother port of the no-neighbor primary edge port sends
preemption packets.
Description
Port faults
Issue 01 (2013-10-30)
20
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The function of advertising SEP topology changes is configured on a device that is connected to both
upper-layer and lower-layer networks so that when the topology of either of the networks changes, the
device can inform the other network of the change.
Issue 01 (2013-10-30)
21
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Scenario
Description
Solution
A network
running SEP
is connected
to an upperlayer network
running other
protocols.
Configure
SEP topology
change
notification.
The protocols
include SEP,
STP, and
RRPP.
Issue 01 (2013-10-30)
A host is
connected to
an SEPenabled
network using
a Smart Link
group.
Enable
devices in the
SEP segment
to process
Smart Link
Flush packets.
A network
running SEP
is connected
to an upperlayer network
that is
deployed with
the CFM
function.
Configure
association
between SEP
and CFM. As
shown in
Figure 1.4,
configure
association
between SEP
and CFM on
LSW1.
22
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
As shown in Figure 1.4, association between SEP and CFM is configured on LSW1. When
CFM detects a fault on the upper-layer network, LSW1 notifies the OAM management
module of the fault by sending a CFM packet to switch the SEP status of the port bound to
CFM to Down.
When the port on LSW1 bound to CFM becomes Down, a port on LSW2 that is the
downstream peer device of LSW1 needs to send Flush-FDB packets to report the topology
change to other nodes in the SEP segment. After other devices in the SEP segment receive
Flush-FDB packets, the blocked port in the SEP segment switches to the Forwarding state and
sends Flush-FDB packets to trigger other nodes in the SEP segment to update their MAC
address tables and ARP tables. The lower-layer network then can detect faults on the upperlayer network, ensuring reliable service transmission.
Issue 01 (2013-10-30)
23
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Link interruption
As shown in 2.2.2.1.1Step 1Figure 1.1, the SEP networking contains three layers of SEP
segments. When the topology of SEP segment 3 changes and SEP TC notification packets
pass through LSW4 or LSW6, the number of TC notification packets is multiplied by two,
and the packets are expanded to SEP segment 2. Similarly, when SEP TC notification packets
pass through an SEP segment, the number of packets is multiplied by two.
Figure 1.5 Multi-layer SEP networking
TC notification packets sent frequently reduce the CPU processing capability and make
devices in SEP segments frequently send Flush-FDB packets, occupying bandwidth. TC
notification packets must be suppressed to prevent the situation. The suppression measures are
as follows:
Issue 01 (2013-10-30)
24
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Suppress the source based on the topology change. The TC notification packets sent by
the same source port are not processed repeatedly.
Avoid deploying an SEP networking that contains too many layers (more than three
layers) of SEP segments.
SEP Multi-instance
As shown in Figure 1.6, on a common SEP network, a physical ring can only be configured
with one SEP segment and one blocked port.
When the SEP segment is in Complete state, the blocked port prohibits all user packets from
passing through. Then all user packets can only be transmitted along the link at the primary
edge port side in the SEP segment. As a result, the link at the secondary edge port side
becomes idle, wasting bandwidth.
Figure 1.6 SEP networking
SEP multi-instance allows a physical ring to be configured with two logical rings, that is, two
SEP segments. In an SEP segment, all devices, port roles, and control VLANs must comply
with basic SEP principles. A physical ring has two blocked ports. Each blocked port
independently detects the integrity of the physical ring and blocks or unblocks itself
accordingly. The two ports do not affect each other.
A physical ring can contain one or two SEP segments. Each SEP segment must be configured
with one protected instance, and each instance indicates a VLAN range. The topology
calculated by an SEP segment only takes effect in the SEP segment and does not affect other
SEP segments.
Different protected instances are configured for SEP segments. Each blocked port only takes
effect for VLANs protected by the local SEP segment. Data of different VLANs is transmitted
through different paths. This implements load balancing and link backup.
Issue 01 (2013-10-30)
25
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
As shown in Figure 1.7, LSW1 to LSW4 form an SEP multi-instance ring that contains two
SEP segments. P1 is the blocked port in SEP segment 1 and P2 is the blocked port in SEP
segment 2.
Configure protected instance 1 in SEP segment 1 to protect data of VLAN 100 to VLAN
200. The transmission path is LSW1->LSW2. P2 is the blocked port in SEP segment 2.
Only data of VLAN 201 to VLAN 400 is blocked and data of VLAN 100 to VLAN 200
can pass through.
Configure protected instance 2 in SEP segment 2 to protect data of VLAN 201 to VLAN
400. The transmission path is LSW3->LSW4. P1 is the blocked port in SEP segment 1.
Only data of VLAN 100 to VLAN 200 is blocked and data of VLAN 201 to VLAN 400
can pass through.
When a node or link fails, each SEP segment calculates the topology change independently
and updates LSDB on each node.
As shown in Figure 1.8, a fault occurs on the link between LSW3 and LSW4. In SEP segment
1, the link fault does not affect the data transmission path of VLAN 100 to VLAN 200, but
interrupts the data transmission path of VLAN 201 to VLAN 400 in the SEP segment.
Issue 01 (2013-10-30)
26
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
After the link between LSW3 and LSW4 is faulty, LSW3 in SEP segment 2 sends LSA
packets to notify other nodes in SEP segment 2 to update their LSDBs. The blocked port
switches to the Forwarding state. After the topology in SEP segment 2 reconverges, the data
transmission path of VLAN 201 to VLAN 400 is LSW3->LSW1->LSW2.
When the faulty link between LSW3 and LSW4 recovers, devices in SEP segment 2 perform
delayed preemption again. When delayed preemption times out, P1 becomes the blocked port
again, and sends LSA packets to notify nodes in SEP segment 2 to update their LSDBs. After
the topology in SEP segment 2 reconverges, the data transmission path of VLAN 201 to
VLAN 400 is switched back to LSW3->LSW4.
SEP multi-instance is supported since V100R006. SEP allows a port to join two SEP
segments for load balancing.
Association between SEP and Smart Link is supported since V100R006. SEP allows
Smart Link Flush packets to be sent to advertise SEP topology changes to other SEP
segments or remote devices.
Deleting MAC address entries on a port is supported since V100R006. SEP allows MAC
address entries and ARP entries on a port to be deleted. When the topology changes, SEP
updates only MAC address entries and ARP entries on a port. This reduces entry update
time and improves performance.
Issue 01 (2013-10-30)
27
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
28
S Series Switch
Feature Start - Loop Prevention Features
2.
1 Overview
Configure SEP segment 1 on LSW1 to LSW5 and configure VLAN 10 as the control
VLAN of SEP segment 1.
Add all devices on the ring to SEP segment 1, and configure the roles of GE1/0/1 on
LSW1 and GE1/0/1 on LSW5 in SEP segment 1.
On the device where the primary edge port is located, specify that the port with the
highest priority will be blocked.
Set priorities of the ports in the SEP segment. Set the highest priority for GE1/0/2 on
LSW3 and retain the default priority of the other ports so that GE1/0/2 on LSW3 will
be blocked.
Configure delayed preemption on the device where the primary edge port is located.
SEP segment ID
Configure SEP segment 1 on LSW1 to LSW5 and configure VLAN 10 as the control
VLAN of SEP segment 1.
# Configure LSW1.
<Switch> system-view
[Switch] sysname LSW1
[LSW1] sep segment 1
[LSW1-sep-segment1] control-vlan 10
[LSW1-sep-segment1] protected-instance all
[LSW1-sep-segment1] quit
# Configure LSW2.
< Switch > system-view
[Switch] sysname LSW2
[LSW2] sep segment 1
[LSW2-sep-segment1] control-vlan 10
[LSW2-sep-segment1] protected-instance all
[LSW2-sep-segment1] quit
# Configure LSW3.
<Switch> system-view
[Switch] sysname LSW3
[LSW3] sep segment 1
[LSW3-sep-segment1] control-vlan 10
[LSW3-sep-segment1] protected-instance all
[LSW3-sep-segment1] quit
# Configure LSW4.
<Switch> system-view
Issue 01 (2013-10-30)
29
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure LSW5.
< Switch> system-view
[Switch] sysname LSW5
[LSW5] sep segment 1
[LSW5-sep-segment1] control-vlan 10
[LSW5-sep-segment1] protected-instance all
[LSW5-sep-segment1] quit
The control VLAN must be a VLAN that has not been created or used, but the configuration file
automatically displays the command for creating a VLAN. Each SEP segment must have a control
VLAN. After a port is added to an SEP segment that has a control VLAN, the port is automatically
added to the control VLAN.
2.
Add all devices on the ring to SEP segment 1 and configure port roles on the devices.
By default, STP is enabled on Layer 2 ports. Before adding a port to an SEP segment, disable STP on the
port.
# On LSW1, configure GE1/0/1 as the primary edge port and GE1/0/3 as the secondary
edge port.
[LSW1] interface gigabitethernet 1/0/1
[LSW1-GigabitEthernet1/0/1] stp disable
[LSW1-GigabitEthernet1/0/1] sep segment 1 edge primary
[LSW1-GigabitEthernet1/0/1] quit
# Configure LSW2.
[LSW2] interface gigabitethernet 1/0/1
[LSW2-GigabitEthernet1/0/1] stp disable
[LSW2-GigabitEthernet1/0/1] sep segment 1
[LSW2-GigabitEthernet1/0/1] quit
[LSW2] interface gigabitethernet 1/0/2
[LSW2-GigabitEthernet1/0/2] stp disable
[LSW2-GigabitEthernet1/0/2] sep segment 1
[LSW2-GigabitEthernet1/0/2] quit
# Configure LSW3.
[LSW3] interface gigabitethernet 1/0/1
[LSW3-GigabitEthernet1/0/1] stp disable
[LSW3-GigabitEthernet1/0/1] sep segment 1
[LSW3-GigabitEthernet1/0/1] quit
[LSW3] interface gigabitethernet 1/0/2
[LSW3-GigabitEthernet1/0/2] stp disable
[LSW3-GigabitEthernet1/0/2] sep segment 1
[LSW3-GigabitEthernet1/0/2] quit
# Configure LSW4.
[LSW4] interface gigabitethernet 1/0/1
[LSW4-GigabitEthernet1/0/1] stp disable
[LSW4-GigabitEthernet1/0/1] sep segment 1
[LSW4-GigabitEthernet1/0/1] quit
[LSW4] interface gigabitethernet 1/0/2
Issue 01 (2013-10-30)
30
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure LSW5.
[LSW5] interface gigabitethernet 1/0/1
[LSW5-GigabitEthernet1/0/1] stp disable
[LSW5-GigabitEthernet1/0/1] sep segment 1 edge secondary
[LSW5-GigabitEthernet1/0/1] quit
3.
4.
5.
When delayed preemption is configured, you must set the delay because there is no default delay.
When the last faulty port recovers, the edge ports do not receive any fault notification packet.
If the primary edge port does not receive fault notification packets within 3 seconds, it
immediately starts the delay timer. After the delay timer expires, nodes in the SEP segment
start preemption of the blocked port.
To implement delayed preemption in this example, you need to simulate a port fault and then
rectify the fault. For example, run the shutdown command on GE1/0/2 of LSW2 to simulate
a port fault. Then run the undo shutdown command on GE1/0/2 to rectify the fault.
Step 2 Configure the Layer 2 forwarding function on CE1 and LSW1 to LSW5.
The configuration details are not provided here. For details, see configuration files in this
example.
----End
Configuration Files
Issue 01 (2013-10-30)
31
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
#
interface GigabitEthernet1/0/1
port hybrid tagged vlan 10 100
stp disable
sep segment 1 edge primary
#
interface GigabitEthernet1/0/2
port hybrid pvid vlan 200
port hybrid tagged vlan 100
port hybrid untagged vlan 200
#
return
Issue 01 (2013-10-30)
32
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
interface GigabitEthernet1/0/3
port hybrid tagged vlan 100
#
return
Issue 01 (2013-10-30)
33
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
When there is no faulty link on the ring network, SEP can eliminate loops on the
network.
When a link on the ring network fails, SEP can fast restore communication between
nodes on the ring network.
Issue 01 (2013-10-30)
34
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
Configure SEP segment 1 on LSW1 to LSW5 and configure VLAN 10 as the control
VLAN of SEP segment 1.
Add all devices on the ring to SEP segment 1, and configure the roles of GE1/0/1 and
GE1/0/3 on LSW1 in SEP segment 1.
On the device where the primary edge port is located, specify that the port with the
highest priority will be blocked.
Set priorities of the ports in the SEP segment. Set the highest priority for GE1/0/2 on
LSW3 and retain the default priority of the other ports so that GE1/0/2 on LSW3 will
be blocked.
Configure delayed preemption on the device where the primary edge port is located.
SEP segment ID
Configure SEP segment 1 on LSW1 to LSW5 and configure VLAN 10 as the control
VLAN of SEP segment 1.
# Configure LSW1.
<Switch> system-view
[Switch] sysname LSW1
[LSW1] sep segment 1
[LSW1-sep-segment1] control-vlan 10
[LSW1-sep-segment1] protected-instance all
[LSW1-sep-segment1] quit
# Configure LSW2.
<Switch> system-view
[Switch] sysname LSW2
[LSW2] sep segment 1
[LSW2-sep-segment1] control-vlan 10
[LSW2-sep-segment1] protected-instance all
[LSW2-sep-segment1] quit
# Configure LSW3.
<Switch> system-view
[Switch] sysname LSW3
Issue 01 (2013-10-30)
35
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure LSW4.
<Switch> system-view
[Switch] sysname LSW4
[LSW4] sep segment 1
[LSW4-sep-segment1] control-vlan 10
[LSW4-sep-segment1] protected-instance all
[LSW4-sep-segment1] quit
# Configure LSW5.
<Switch> system-view
[Switch] sysname LSW5
[LSW5] sep segment 1
[LSW5-sep-segment1] control-vlan 10
[LSW5-sep-segment1] protected-instance all
[LSW5-sep-segment1] quit
The control VLAN must be a VLAN that has not been created or used, but the configuration file
automatically displays the command for creating a VLAN. Each SEP segment must have a control
VLAN. After a port is added to an SEP segment that has a control VLAN, the port is automatically
added to the control VLAN.
2.
Add all devices on the ring to SEP segment 1 and configure port roles on the devices.
By default, STP is enabled on Layer 2 ports. Before adding a port to an SEP segment, disable STP on the
port.
# On LSW1, configure GE1/0/1 as the primary edge port and GE1/0/3 as the secondary
edge port.
[LSW1] interface gigabitethernet 1/0/1
[LSW1-GigabitEthernet1/0/1] stp disable
[LSW1-GigabitEthernet1/0/1] sep segment 1 edge primary
[LSW1-GigabitEthernet1/0/1] quit
[LSW1] interface gigabitethernet 1/0/3
[LSW1-GigabitEthernet1/0/3] stp disable
[LSW1-GigabitEthernet1/0/3] sep segment 1 edge secondary
[LSW1-GigabitEthernet1/0/3] quit
# Configure LSW2.
[LSW2] interface gigabitethernet 1/0/1
[LSW2-GigabitEthernet1/0/1] stp disable
[LSW2-GigabitEthernet1/0/1] sep segment 1
[LSW2-GigabitEthernet1/0/1] quit
[LSW2] interface gigabitethernet 1/0/2
[LSW2-GigabitEthernet1/0/2] stp disable
[LSW2-GigabitEthernet1/0/2] sep segment 1
[LSW2-GigabitEthernet1/0/2] quit
# Configure LSW3.
[LSW3] interface gigabitethernet 1/0/1
[LSW3-GigabitEthernet1/0/1] stp disable
[LSW3-GigabitEthernet1/0/1] sep segment 1
[LSW3-GigabitEthernet1/0/1] quit
Issue 01 (2013-10-30)
36
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure LSW4.
[LSW4] interface gigabitethernet 1/0/1
[LSW4-GigabitEthernet1/0/1] stp disable
[LSW4-GigabitEthernet1/0/1] sep segment 1
[LSW4-GigabitEthernet1/0/1] quit
[LSW4] interface gigabitethernet 1/0/2
[LSW4-GigabitEthernet1/0/2] stp disable
[LSW4-GigabitEthernet1/0/2] sep segment 1
[LSW4-GigabitEthernet1/0/2] quit
# Configure LSW5.
[LSW5] interface gigabitethernet 1/0/1
[LSW5-GigabitEthernet1/0/1] stp disable
[LSW5-GigabitEthernet1/0/1] sep segment 1
[LSW5-GigabitEthernet1/0/1] quit
[LSW5] interface gigabitethernet 1/0/3
[LSW5-GigabitEthernet1/0/3] stp disable
[LSW5-GigabitEthernet1/0/3] sep segment 1
[LSW5-GigabitEthernet1/0/3] quit
3.
4.
5.
When delayed preemption is configured, you must set the delay because there is no default delay.
When the last faulty port recovers, the edge ports do not receive any fault notification
packet. If the primary edge port does not receive fault notification packets within 3
seconds, it immediately starts the delay timer. After the delay timer expires, nodes in the
SEP segment start preemption of the blocked port.
To implement delayed preemption in this example, you need to simulate a port fault and
then rectify the fault. For example, run the shutdown command on GE1/0/2 of LSW2 to
simulate a port fault. Then run the undo shutdown command on GE1/0/2 to rectify the
fault.
Step 2 Configure the Layer 2 forwarding function on CE1 and LSW1 to LSW5.
The configuration details are not provided here. For details, see configuration files in this
example.
Issue 01 (2013-10-30)
37
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
----End
Configuration Files
Issue 01 (2013-10-30)
38
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
interface GigabitEthernet1/0/1
port hybrid tagged vlan 10 100
stp disable
sep segment 1
#
interface GigabitEthernet1/0/2
port hybrid tagged vlan 10 100
stp disable
sep segment 1
#
return
Issue 01 (2013-10-30)
39
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
sep segment 1
#
return
40
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Devices in the SEP segment are enabled to process Smart Link Flush packets. After receiving
Flush packets sent by devices on the lower-layer Smart Link network, edge devices on the
upper-layer SEP network send TC packets to notify other devices in the SEP segment of the
lower-layer network topology change. Then all the devices delete the original MAC addresses
and learn new MAC addresses to ensure uninterrupted traffic transmission.
Figure 1.1 Hybrid networking of SEP and Smart Link
Issue 01 (2013-10-30)
Configure SEP segment 1 on PE1 to PE4 and configure VLAN 10 as the control
VLAN of SEP segment 1.
Add PE1 to PE4 to SEP segment 1, and configure the roles of ports on PE1 in SEP
segment 1.
On the device where the primary edge port is located, specify that the port in the
middle of the SEP segment will be blocked.
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co.,
Ltd.
41
S Series Switch
Feature Start - Loop Prevention Features
2.
3.
1 Overview
Enable PE3 and PE4 to process Smart Link Flush packets. The Smart Link groups are
connected to PE3 and PE4.
Add the GE1/0/1 and GE1/0/2 ports on CE1 and CE2 to two Smart Link groups
respectively. The GE1/0/1 ports are the master ports and GE1/0/2 ports are the slave
ports. The control VLANs of the two Smart Link groups are VLAN 20 and VLAN 30
respectively.
On PE3 and PE4, configure GE1/0/3 and GE1/0/4 to receive Smart Link Flush
packets.
Configure SEP segment 1 and configure VLAN 10 as the control VLAN of SEP segment
1.
# Configure PE1.
<PE1> system-view
[PE1] sep segment 1
[PE1-sep-segment1] control-vlan 10
[PE1-sep-segment1] protected-instance all
[PE1-sep-segment1] quit
# Configure PE2.
< PE2> system-view
[PE2] sep segment 1
[PE2-sep-segment1] control-vlan 10
[PE2-sep-segment1] protected-instance all
[PE2-sep-segment1] quit
# Configure PE3.
< PE3> system-view
[PE3] sep segment 1
[PE3-sep-segment1] control-vlan 10
[PE3-sep-segment1] protected-instance all
[PE3-sep-segment1] quit
# Configure PE4.
< PE4> system-view
[PE4] sep segment 1
[PE4-sep-segment1] control-vlan 10
[PE4-sep-segment1] protected-instance all
[PE4-sep-segment1] quit
2.
Issue 01 (2013-10-30)
42
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure PE2.
[PE2] interface gigabitethernet 1/0/1
[PE2-GigabitEthernet1/0/1] stp disable
[PE2-GigabitEthernet1/0/1] sep segment 1
[PE2-GigabitEthernet1/0/1] quit
[PE2] interface gigabitethernet 1/0/2
[PE2-GigabitEthernet1/0/2] stp disable
[PE2-GigabitEthernet1/0/2] sep segment 1
[PE2-GigabitEthernet1/0/2] quit
# Configure PE3.
[PE3] interface gigabitethernet 1/0/1
[PE3-GigabitEthernet1/0/1] stp disable
[PE3-GigabitEthernet1/0/1] sep segment 1
[PE3-GigabitEthernet1/0/1] quit
[PE3] interface gigabitethernet 1/0/2
[PE3-GigabitEthernet1/0/2] stp disable
[PE3-GigabitEthernet1/0/2] sep segment 1
[PE3-GigabitEthernet1/0/2] quit
# Configure PE4.
[PE4] interface gigabitethernet 1/0/1
[PE4-GigabitEthernet1/0/1] stp disable
[PE4-GigabitEthernet1/0/1] sep segment 1
[PE4-GigabitEthernet1/0/1] quit
[PE4] interface gigabitethernet 1/0/2
[PE4-GigabitEthernet1/0/2] stp disable
[PE4-GigabitEthernet1/0/2] sep segment 1
[PE4-GigabitEthernet1/0/2] quit
3.
4.
5.
# Configure PE4.
[PE4] sep segment 1
[PE4-sep-segment1] deal smart-link-flush
[PE4-sep-segment1] quit
43
S Series Switch
Feature Start - Loop Prevention Features
1.
1 Overview
# Configure CE2.
<CE2> system-view
[CE2] smart-link group 1
[CE2-smlk-group1] port GigabitEthernet1/0/1 master
[CE2-smlk-group1] port GigabitEthernet1/0/2 slave
[CE2-smlk-group1] flush send control-vlan 30
[CE2-smlk-group1] smart-link enable
[CE2-smlk-group1] quit
2.
On PE3 and PE4, configure GE1/0/3 and GE1/0/4 to receive Smart Link Flush packets.
# Configure PE3.
[PE3] interface GigabitEthernet1/0/3
[PE3-GigabitEthernet1/0/3] smart-link flush receive control-vlan 20
[PE3-GigabitEthernet1/0/3] quit
[PE3] interface GigabitEthernet1/0/4
[PE3-GigabitEthernet1/0/4] smart-link flush receive control-vlan 30
[PE3-GigabitEthernet1/0/4] quit
# Configure PE4.
[PE4] interface GigabitEthernet1/0/3
[PE4-GigabitEthernet1/0/3] smart-link flush receive control-vlan 30
[PE4-GigabitEthernet1/0/3] quit
[PE4] interface GigabitEthernet1/0/4
[PE4-GigabitEthernet1/0/4] smart-link flush receive control-vlan 20
[PE4-GigabitEthernet1/0/4] quit
Step 3 Configure the Layer 2 forwarding function on CE1, CE2, and PE1 to PE4.
The configuration details are not provided here. For details, see configuration files in this
example.
----End
Configuration Files
Issue 01 (2013-10-30)
44
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 10 100 200
stp disable
sep segment 1 edge primary
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 10 100 200
stp disable
sep segment 1 edge secondary
#
return
Issue 01 (2013-10-30)
45
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
stp disable
sep segment 1
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 10 100 200
stp disable
sep segment 1
#
interface GigabitEthernet1/0/3
port link-type trunk
port trunk allow-pass vlan 10 20 100 200
smart-link flush receive control-vlan 20
#
interface GigabitEthernet1/0/4
port link-type trunk
port trunk allow-pass vlan 10 30 100 200
smart-link flush receive control-vlan 30
#
return
Issue 01 (2013-10-30)
46
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
#
sysname CE1
#
vlan batch 20 100
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 20 100
stp disable
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 20 100
stp disable
#
smart-link group 1
smart-link enable
port GigabitEthernet1/0/1 master
port GigabitEthernet1/0/2 slave
flush send control-vlan 20
#
return
47
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
When there is no faulty link on the ring network, SEP can eliminate loops on the
network.
When a link on the ring network fails, SEP can fast restore communication between
nodes on the ring network.
Topology change notification can be deployed on edge devices in the SEP segment so
that the upper-layer network can know topology changes of the lower-layer network in
real time.
After receiving TC packets from the lower-layer network, edge devices on the upper-layer
network send TC packets to notify other devices on the network of the topology change. Then
all the devices delete the original MAC addresses and learn new MAC addresses to ensure
uninterrupted traffic transmission.
Figure 1.1 Hybrid networking of SEP and MSTP
48
S Series Switch
Feature Start - Loop Prevention Features
1.
1 Overview
Configure SEP segment 1 on LSW1 to LSW3 and configure VLAN 10 as the control
VLAN of SEP segment 1.
Add LSW1 to LSW3 to SEP segment 1 and configure port roles on the edge devices
of the SEP segment, namely, LSW1 and LSW2.
PE1 and PE2 do not support the SEP protocol. Therefore, the ports on LSW1 and LSW2 connected to
the PEs must be no-neighbor edge ports.
2.
3.
On the device where the no-neighbor primary edge port is located, specify that the
port in the middle of the SEP segment will be blocked.
Configure the topology change notification function so that the upper-layer network
running MSTP can be notified of topology changes in the SEP segment.
Create VLANs on PE1 to PE4 and add ports on the MSTP ring to the VLANs.
Configure PE3 as the root bridge and PE4 as the backup root bridge.
Configure SEP segment 1 and configure VLAN 10 as the control VLAN of SEP segment
1.
# Configure LSW1.
<Switch> system-view
[Switch] sysname LSW1
[LSW1] sep segment 1
[LSW1-sep-segment1] control-vlan 10
[LSW1-sep-segment1] protected-instance all
[LSW1-sep-segment1] quit
# Configure LSW2.
<Switch> system-view
[Switch] sysname LSW2
[LSW2] sep segment 1
[LSW2-sep-segment1] control-vlan 10
[LSW2-sep-segment1] protected-instance all
[LSW2-sep-segment1] quit
# Configure LSW3.
<Switch> system-view
[Switch] sysname LSW3
[LSW3] sep segment 1
[LSW3-sep-segment1] control-vlan 10
[LSW3-sep-segment1] protected-instance all
[LSW3-sep-segment1] quit
Issue 01 (2013-10-30)
49
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The control VLAN must be a VLAN that has not been created or used, but the configuration file
automatically displays the command for creating a VLAN. Each SEP segment must have a control
VLAN. After a port is added to an SEP segment that has a control VLAN, the port is automatically
added to the control VLAN.
2.
# Configure LSW2.
[LSW2] interface gigabitethernet 1/0/1
[LSW2-GigabitEthernet1/0/1] stp disable
[LSW2-GigabitEthernet1/0/1] sep segment 1 edge no-neighbor secondary
[LSW2-GigabitEthernet1/0/1] quit
[LSW2] interface gigabitethernet 1/0/2
[LSW2-GigabitEthernet1/0/2] stp disable
[LSW2-GigabitEthernet1/0/2] sep segment 1
[LSW2-GigabitEthernet1/0/2] quit
# Configure LSW3.
[LSW3] interface gigabitethernet 1/0/1
[LSW3-GigabitEthernet1/0/1] stp disable
[LSW3-GigabitEthernet1/0/1] sep segment 1
[LSW3-GigabitEthernet1/0/1] quit
[LSW3] interface gigabitethernet 1/0/2
[LSW3-GigabitEthernet1/0/2] stp disable
[LSW3-GigabitEthernet1/0/2] sep segment 1
[LSW3-GigabitEthernet1/0/2] quit
3.
4.
5.
# Configure LSW2.
[LSW2] sep segment 1
[LSW2-sep-segment1] tc-notify stp
Issue 01 (2013-10-30)
50
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
[LSW2-sep-segment1] quit
# Configure PE2.
<Switch> system-view
[Switch] sysname PE2
[PE2] stp region-configuration
[PE2-mst-region] region-name RG1
[PE2-mst-region] active region-configuration
[PE2-mst-region] quit
# Configure PE3.
<Switch> system-view
[Switch] sysname PE3
[PE3] stp region-configuration
[PE3-mst-region] region-name RG1
[PE3-mst-region] active region-configuration
[PE3-mst-region] quit
# Configure PE4.
<Switch> system-view
[Switch] sysname PE4
[PE4] stp region-configuration
[PE4-mst-region] region-name RG1
[PE4-mst-region] active region-configuration
[PE4-mst-region] quit
2.
Create a VLAN and add ports on the ring network to the VLAN.
# On PE1, create VLAN 100 and add GE1/0/1, GE1/0/2, and GE1/0/3 to VLAN 100.
[PE1] vlan 100
[PE1-vlan100] quit
[PE1] interface gigabitethernet
[PE1-GigabitEthernet1/0/1] port
[PE1-GigabitEthernet1/0/1] quit
[PE1] interface gigabitethernet
[PE1-GigabitEthernet1/0/2] port
[PE1-GigabitEthernet1/0/2] quit
[PE1] interface gigabitethernet
[PE1-GigabitEthernet1/0/3] port
[PE1-GigabitEthernet1/0/3] quit
1/0/1
hybrid tagged vlan 100
1/0/2
hybrid tagged vlan 100
1/0/3
hybrid tagged vlan 100
# On PE2, PE3, and PE4, create VLAN 100 and add GE1/0/1, GE1/0/2, and GE1/0/3 to
VLAN 100.
The configurations of PE2, PE3, and PE4 are similar to the configuration of PE1, and are
not mentioned here. For details, see configuration files in this example.
3.
Issue 01 (2013-10-30)
Enable MSTP.
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co.,
Ltd.
51
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure PE1.
[PE1] stp enable
# Configure PE2.
[PE2] stp enable
# Configure PE3.
[PE3] stp enable
# Configure PE4.
[PE4] stp enable
4.
Configure PE3 as the root bridge and PE4 as the backup root bridge.
# Set the priority of PE3 to 0 in MSTI0 to ensure that PE3 functions as the root bridge.
[PE3] stp instance 0 priority 0
[PE3] stp root primary
# Set the priority of PE4 to 4096 in MSTI0 to ensure that PE4 functions as the backup
root bridge.
[PE4] stp instance 0 priority 4096
[PE4] stp root secondary
----End
Configuration Files
Issue 01 (2013-10-30)
52
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
#
interface GigabitEthernet1/0/1
port hybrid tagged vlan 10 100
stp disable
sep segment 1 no-neighbor edge primary
#
interface GigabitEthernet1/0/2
port hybrid tagged vlan 10 100
stp disable
sep segment 1
#
return
Issue 01 (2013-10-30)
53
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
interface GigabitEthernet1/0/3
port hybrid tagged vlan vlan 100
#
return
Issue 01 (2013-10-30)
54
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
region-name RG1
active region-configuration
#
interface GigabitEthernet1/0/1
port hybrid tagged vlan 100
#
interface GigabitEthernet1/0/2
port hybrid tagged vlan 100 200
#
interface GigabitEthernet1/0/3
port hybrid pvid vlan 200
port hybrid tagged vlan 100
port hybrid untagged vlan 200
#
return
Configuration file of CE
#
sysname CE
#
vlan batch 100
#
interface GigabitEthernet1/0/1
port hybrid tagged vlan 100
#
return
Issue 01 (2013-10-30)
55
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
When there is no faulty link on the ring network, SEP can eliminate loops on the
network.
When a link on the ring network fails, SEP can fast restore communication between
nodes on the ring network.
Topology change notification can be deployed on edge devices in the SEP segment so
that the upper-layer network can know topology changes of the lower-layer network in
real time.
After receiving TC packets from the lower-layer SEP network, edge devices on the upperlayer RRPP network send COMMON-FLUSH-FDB packets to notify other devices on the
network of the topology change. Then all the devices delete the original MAC addresses and
learn new MAC addresses to ensure uninterrupted traffic transmission.
Issue 01 (2013-10-30)
56
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
Issue 01 (2013-10-30)
On PE1, PE2, and LSW1 to LSW3, configure SEP segment 1 and configure VLAN
10 as the control VLAN of SEP segment 1.
Add PE1, PE2, and LSW1 to LSW3 to SEP segment 1 and configure port roles on the
edge devices of the SEP segment, namely, PE1 and PE2.
On the device where the primary edge port is located, specify the port blocking mode.
Configure the SEP preemption mode to ensure that the specified blocked port is
available when the fault is rectified.
Configure the topology change notification function so that the upper-layer network
running RRPP can be notified of topology changes in the SEP segment.
57
S Series Switch
Feature Start - Loop Prevention Features
3.
1 Overview
Add PE1 to PE4 to RRPP domain 1. Create control VLAN 5 on PE1 to PE4 and
configure a protected VLAN.
Configure PE1 as the master node and PE2 to PE4 as transit nodes of the master ring,
and configure primary and secondary ports on the nodes.
Create VLANs on PE1 to PE4 and add ports on the RRPP ring to the VLANs.
Configure SEP segment 1 and configure VLAN 10 as the control VLAN of SEP segment
1.
# Configure PE1.
<PE1> system-view
[PE1] sep segment 1
[PE1-sep-segment1] control-vlan 10
[PE1-sep-segment1] protected-instance all
[PE1-sep-segment1] quit
# Configure PE2.
<PE2> system-view
[PE2] sep segment 1
[PE2-sep-segment1] control-vlan 10
[PE2-sep-segment1] protected-instance all
[PE2-sep-segment1] quit
# Configure LSW1.
<LSW1> system-view
[LSW1] sep segment 1
[LSW1-sep-segment1] control-vlan 10
[LSW1-sep-segment1] protected-instance all
[LSW1-sep-segment1] quit
# Configure LSW2.
<LSW2> system-view
[LSW2] sep segment 1
[LSW2-sep-segment1] control-vlan 10
[LSW2-sep-segment1] protected-instance all
[LSW2-sep-segment1] quit
# Configure LSW3.
<LSW3> system-view
[LSW3] sep segment 1
[LSW3-sep-segment1] control-vlan 10
[LSW3-sep-segment1] protected-instance all
[LSW3-sep-segment1] quit
2.
Add PE1, PE2, and LSW1 to LSW3 to SEP segment 1 and configure port roles.
By default, STP is enabled on Layer 2 ports. Before adding a port to an SEP segment, disable STP on the
port.
# Configure PE1.
[PE1] interface gigabitethernet 1/0/1
[PE1-GigabitEthernet1/0/1] stp disable
Issue 01 (2013-10-30)
58
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure LSW1.
[LSW1] interface gigabitethernet 1/0/1
[LSW1-GigabitEthernet1/0/1] stp disable
[LSW1-GigabitEthernet1/0/1] sep segment 1
[LSW1-GigabitEthernet1/0/1] quit
[LSW1] interface gigabitethernet 1/0/2
[LSW1-GigabitEthernet1/0/2] stp disable
[LSW1-GigabitEthernet1/0/2] sep segment 1
[LSW1-GigabitEthernet1/0/2] quit
# Configure LSW2.
[LSW2] interface gigabitethernet 1/0/1
[LSW2-GigabitEthernet1/0/1] stp disable
[LSW2-GigabitEthernet1/0/1] sep segment 1
[LSW2-GigabitEthernet1/0/1] quit
[LSW2] interface gigabitethernet 1/0/2
[LSW2-GigabitEthernet1/0/2] stp disable
[LSW2-GigabitEthernet1/0/2] sep segment 1
[LSW2-GigabitEthernet1/0/2] quit
# Configure LSW3.
[LSW3] interface gigabitethernet 1/0/1
[LSW3-GigabitEthernet1/0/1] stp disable
[LSW3-GigabitEthernet1/0/1] sep segment 1
[LSW3-GigabitEthernet1/0/1] quit
[LSW3] interface gigabitethernet 1/0/2
[LSW3-GigabitEthernet1/0/2] stp disable
[LSW3-GigabitEthernet1/0/2] sep segment 1
[LSW3-GigabitEthernet1/0/2] quit
# Configure PE2.
[PE1] interface gigabitethernet 1/0/1
[PE1-GigabitEthernet1/0/1] stp disable
[PE1-GigabitEthernet1/0/1] sep segment 1 edge secondary
[PE1-GigabitEthernet1/0/1] quit
After the configurations are complete, run the display sep topology command on PE1 to
view topology information of the SEP segment. The command output shows that the
blocked port is one of the two ports that complete neighbor negotiation last.
[PE1] display sep topology
SEP segment 1
----------------------------------------------------------------System Name
Port Name
Port Role
Port Status
----------------------------------------------------------------PE1
GE1/0/1
primary
forwarding
LSW1
GE1/0/1
common
forwarding
LSW1
GE1/0/2
common
forwarding
LSW3
GE1/0/2
common
forwarding
LSW3
GE1/0/1
common
forwarding
LSW2
GE1/0/2
common
forwarding
LSW2
GE1/0/1
common
forwarding
PE2
GE1/0/1
secondary
discarding
3.
Issue 01 (2013-10-30)
59
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# On PE1 where the primary edge port is located, specify that the port in the middle of
the SEP segment is blocked.
[PE1] sep segment 1
[PE1-sep-segment1] block port middle
4.
5.
# Configure PE2.
[PE2] sep segment 1
[PE2-B-sep-segment1] tc-notify rrpp
[PE2-B-sep-segment1] quit
After the configurations are complete, perform the following operations to verify the
configurations. PE1 is used as an example.
6.
Run the display sep topology command on PE1 to view topology information of the
SEP segment.
The topology information shows that GE1/0/2 of LSW3 is in Discarding state, and the
other ports are in Forwarding state.
[PE1] display sep topology
SEP segment 1
----------------------------------------------------------------System Name
Port Name
Port Role
Port Status
----------------------------------------------------------------PE1
GE1/0/1
primary
forwarding
LSW1
GE1/0/1
common
forwarding
LSW1
GE1/0/2
common
forwarding
LSW3
GE1/0/2
common
discarding
LSW3
GE1/0/1
common
forwarding
LSW2
GE1/0/2
common
forwarding
LSW2
GE1/0/1
common
forwarding
PE2
GE1/0/1
secondary
forwarding
7.
Run the display sep interface verbose command on PE1 to view detailed information
about ports in the SEP segment.
[PE1] display sep interface verbose
SEP segment 1
Control-vlan
:10
Preempt Delay Timer
:0
TC-Notify Propagate to :rrpp
---------------------------------------------------------------Interface
:GE1/0/1
Port Role
:Config = primary / Active = primary
Port Priority
:64
Port Status
:forwarding
Neighbor Status
:up
Neighbor Port
:LSW1 - GE1/0/1 (00e0-0829-7c00.0000)
NBR TLV
rx :2124
tx :2126
Issue 01 (2013-10-30)
60
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
rx
rx
rx
rx
rx
rx
:2939
:113
:0
:3
:5
:363
tx
tx
tx
tx
tx
tx
:135
:768
:3
:0
:3
:397
Add PE1 to PE4 to RRPP domain 1. Create control VLAN 5 on PE1 to PE4 and
configure a protected VLAN.
# Configure PE1.
[PE1] stp region-configuration
[PE1-mst-region] instance 1 vlan 5 6 100
[PE1-mst-region] active region-configuration
[PE1-mst-region] quit
[PE1] rrpp domain 1
[PE1-rrpp-domain-region1] control-vlan 5
[PE1-rrpp-domain-region1] protected-vlan reference-instance 1
# Configure PE2.
[PE2] stp region-configuration
[PE2-mst-region] instance 1 vlan 5 6 100
[PE2-mst-region] active region-configuration
[PE2-mst-region] quit
[PE2] rrpp domain 1
[PE2-rrpp-domain-region1] control-vlan 5
[PE2-rrpp-domain-region1] protected-vlan reference-instance 1
# Configure PE3.
[PE3] stp region-configuration
[PE3-mst-region] instance 1 vlan 5 6 100
[PE3-mst-region] active region-configuration
[PE3-mst-region] quit
[PE3] rrpp domain 1
[PE3-rrpp-domain-region1] control-vlan 5
[PE3-rrpp-domain-region1] protected-vlan reference-instance 1
# Configure PE4.
[PE4] stp region-configuration
[PE4-mst-region] instance 1 vlan 5 6 100
[PE4-mst-region] active region-configuration
[PE4-mst-region] quit
[PE4] rrpp domain 1
[PE4-rrpp-domain-region1] control-vlan 5
[PE4-rrpp-domain-region1] protected-vlan reference-instance 1
2.
Create a VLAN and add ports on the ring network to the VLAN.
# On PE1, create VLAN 100 and add GE1/0/1, GE1/0/2, and GE1/0/3 to VLAN 100.
[PE1] vlan 100
[PE1-vlan100] quit
[PE1] interface gigabitethernet 1/0/1
[PE1-GigabitEthernet1/0/1] stp disable
[PE1-GigabitEthernet1/0/1] port link-type trunk
[PE1-GigabitEthernet1/0/1] port trunk allow-pass vlan 100
[PE1-GigabitEthernet1/0/1] quit
Issue 01 (2013-10-30)
61
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# On PE2, create VLAN 100 and add GE1/0/1, GE1/0/2, and GE1/0/3 to VLAN 100.
[PE2] vlan 100
[PE2-vlan100] quit
[PE2] interface gigabitethernet 1/0/1
[PE2-GigabitEthernet1/0/1] stp disable
[PE2-GigabitEthernet1/0/1] port link-type trunk
[PE2-GigabitEthernet1/0/1] port trunk allow-pass vlan 100
[PE2-GigabitEthernet1/0/1] quit
[PE2] interface gigabitethernet 1/0/2
[PE2-GigabitEthernet1/0/2] stp disable
[PE2-GigabitEthernet1/0/2] port link-type trunk
[PE2-GigabitEthernet1/0/2] port trunk allow-pass vlan 100
[PE2-GigabitEthernet1/0/2] quit
[PE2] interface gigabitethernet 1/0/3
[PE2-GigabitEthernet1/0/3] stp disable
[PE2-GigabitEthernet1/0/3] port link-type trunk
[PE2-GigabitEthernet1/0/3] port trunk allow-pass vlan 100
[PE2-GigabitEthernet1/0/3] quit
# On PE3, create VLAN 100 and add GE1/0/1, GE1/0/2, and GE1/0/3 to VLAN 100.
[PE3] vlan 100
[PE3-vlan100] quit
[PE3] interface gigabitethernet 1/0/1
[PE3-GigabitEthernet1/0/1] stp disable
[PE3-GigabitEthernet1/0/1] port link-type trunk
[PE3-GigabitEthernet1/0/1] port trunk allow-pass vlan 100
[PE3-GigabitEthernet1/0/1] quit
[PE3] interface gigabitethernet 1/0/2
[PE3-GigabitEthernet1/0/2] stp disable
[PE3-GigabitEthernet1/0/2] port link-type trunk
[PE3-GigabitEthernet1/0/2] port trunk allow-pass vlan 100
[PE3-GigabitEthernet1/0/2] quit
# On PE4, create VLAN 100 and add GE1/0/1, GE1/0/2, and GE1/0/3 to VLAN 100.
[PE4] vlan 100
[PE4-vlan100] quit
[PE4] interface gigabitethernet 1/0/1
[PE4-GigabitEthernet1/0/1] stp disable
[PE4-GigabitEthernet1/0/1] port link-type trunk
[PE4-GigabitEthernet1/0/1] port trunk allow-pass vlan 100
[PE4-GigabitEthernet1/0/1] quit
[PE4] interface gigabitethernet 1/0/2
[PE4-GigabitEthernet1/0/2] stp disable
[PE4-GigabitEthernet1/0/2] port link-type trunk
[PE4-GigabitEthernet1/0/2] port trunk allow-pass vlan 100
Issue 01 (2013-10-30)
62
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
[PE4-GigabitEthernet1/0/2] quit
3.
Configure PE1 as the master node and PE2 to PE4 as transit nodes of the master ring,
and configure primary and secondary ports on the nodes.
# Configure PE1.
[PE1] rrpp domain 1
[PE1-rrpp-domain-region1] ring 1 node-mode master primary-port
gigabitethernet1/0/2 secondary-port gigabitethernet1/0/3 level 0
[PE1-rrpp-domain-region1] ring 1 enable
# Configure PE2.
[PE2] rrpp domain 1
[PE2-rrpp-domain-region1] ring 1 node-mode transit primary-port
gigabitethernet1/0/2 secondary-port gigabitethernet1/0/3 level 0
[PE2-rrpp-domain-region1] ring 1 enable
# Configure PE3.
[PE3] rrpp domain 1
[PE3-rrpp-domain-region1] ring 1 node-mode transit primary-port
gigabitethernet1/0/1 secondary-port gigabitethernet1/0/2 level 0
[PE3-rrpp-domain-region1] ring 1 enable
# Configure PE4.
[PE4] rrpp domain 1
[PE4-rrpp-domain-region1] ring 1 node-mode transit primary-port
gigabitethernet1/0/1 secondary-port gigabitethernet1/0/2 level 0
[PE4-rrpp-domain-region1] ring 1 enable
4.
Enable RRPP.
# Configure PE1.
[PE1] rrpp enable
# Configure PE2.
[PE2] rrpp enable
# Configure PE3.
[PE3] rrpp enable
# Configure PE4.
[PE4] rrpp enable
After the configurations are complete, run the display rrpp brief or display rrpp
verbose domain command on the devices. PE1 is used as an example.
[PE1] display rrpp brief
Abbreviations for Switch Node Mode :
M - Master , T - Transit , E - Edge , A - Assistant-Edge
RRPP Protocol Status: Enable
RRPP Working Mode: HW
RRPP Linkup Delay Timer: 0 sec (0 sec default)
Number of RRPP Domains: 1
Domain Index
: 1
Control VLAN
: major 5
sub 6
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
Ring Ring
Node Primary/Common
ID
Level Mode Port
Issue 01 (2013-10-30)
63
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
---------------------------------------------------------------------------1
0
M
GigabitEthernet1/0/2
GigabitEthernet1/0/3
Yes
The command output shows that RRPP is enabled on PE1. In domain 1, VLAN 5 is the
major control VLAN, VLAN6 is the sub-control VLAN, and VLANs mapping instance 1
are the protected VLANs. PE1 is the master node on ring 1. The primary node is
GE1/0/2 and the secondary port is GE1/0/3.
[PE1] display rrpp verbose domain 1
Domain Index
: 1
Control VLAN
: major 5
sub 6
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
RRPP Ring
Ring Level
Node Mode
Ring State
Is Enabled
Primary port
Secondary port
:
:
:
:
:
:
:
1
0
Master
Complete
Enable
GigabitEthernet1/0/2
GigabitEthernet1/0/3
Is Active: Yes
Port status: UP
Port status: BLOCKED
The command output shows that VLAN 5 is the major control VLAN, VLAN6 is the
sub-control VLAN, and VLANs mapping instance 1 are the protected VLANs in domain
1. PE1 is the master node in domain 1 and is in Complete state. The primary node is
GE1/0/2 and the secondary port is GE1/0/3.
Step 3 Configure the Layer 2 forwarding function on CE and LSW1 to LSW3.
The configuration details are not provided here. For details, see configuration files in this
example.
----End
Configuration Files
Issue 01 (2013-10-30)
64
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
sep segment 1
#
return
Issue 01 (2013-10-30)
65
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
#
sysname PE1
#
vlan batch 5 to 6 10 100
#
rrpp enable
#
stp region-configuration
instance 1 vlan 5 to 6 100
active region-configuration
#
rrpp domain 1
control-vlan 5
protected-vlan reference-instance 1
ring 1 node-mode master primary-port GigabitEthernet 1/0/2 secondary-port
GigabitEthernet 1/0/3 level 0
ring 1 enable
#
sep segment 1
control-vlan 10
block port middle
tc-notify rrpp
protected-instance 0 to 48
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 10 100
stp disable
sep segment 1 edge primary
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 5 to 6 100
stp disable
#
interface GigabitEthernet1/0/3
port link-type trunk
port trunk allow-pass vlan 5 to 6 100
stp disable
#
return
Issue 01 (2013-10-30)
66
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
protected-vlan reference-instance 1
ring 1 node-mode transit primary-port GigabitEthernet 1/0/2 secondary-port
GigabitEthernet 1/0/3 level 0
ring 1 enable
#
sep segment 1
control-vlan 10
tc-notify rrpp
protected-instance 0 to 48
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 10 100
stp disable
sep segment 1 edge secondary
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 5 to 6 100
stp disable
#
interface GigabitEthernet1/0/3
port link-type trunk
port trunk allow-pass vlan 5 to 6 100
stp disable
#
return
Issue 01 (2013-10-30)
67
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
#
interface GigabitEthernet1/0/3
port default vlan 200
port trunk allow-pass vlan 5 to 6 100
#
return
Configuration file of CE
#
sysname CE
#
vlan batch 100
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 100
#
return
Issue 01 (2013-10-30)
68
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.3 Troubleshooting
2.3.1 Troubleshooting Overview
SEP supports various complex networking and has a fast convergence time. SEP enables a
device on the Ethernet network to selectively block ports so that traffic is load balanced. SEP
is widely used because of its advantages. Various problems occur when SEP is used. The
major problem is that SEP causes traffic forwarding failure. This section describes common
causes of SEP faults, and provides the corresponding troubleshooting flowchart and trouble
shooting procedure.
A port does not allow data packets of the specified VLAN to pass.
Check whether the topology and status of the SEP segment are normal.
2.
Check whether ports on the ring network allow data packets of the specified VLAN to
pass.
3.
Check whether physical ports on the ring network are in Down state.
4.
Issue 01 (2013-10-30)
69
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
70
S Series Switch
Feature Start - Loop Prevention Features
LSW1
LSW2
LSW2
LSW3
LSW3
LSW4
LSW4
LSW5
LSW5
LSW1
1 Overview
GE1/0/1
GE1/0/1
GE1/0/2
GE1/0/0
GE1/0/2
GE1/0/1
GE1/0/2
GE1/0/1
GE1/0/3
GE1/0/3
primary
common
common
common
common
common
common
common
common
secondary
forwarding
forwarding
forwarding
forwarding
discarding
forwarding
forwarding
forwarding
forwarding
forwarding
If the topology and status of the SEP segment are abnormal, perform the following
operations:
Issue 01 (2013-10-30)
71
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
If the port is in Down state, run the display this command in the interface view to check
whether the port has been shut down.
If the command output displays shutdown, run the undo shutdown command in the
interface view.
Step 4 Check whether ports in the SEP segment allow data packets of the specified VLAN to pass.
Run the display this command in the interface view to check whether the port allows data
packets of the specified VLAN to pass.
[Quidway] interface GigabitEthernet 1/0/1
[Quidway-GigabitEthernet1/0/1] display this
port link-type trunk
port trunk allow-pass vlan 10 100
stp disable
sep segment 1 edge primary
#
return
If the port does not allow packets of the specified VLAN to pass, configure it to allow
packets of this VLAN to pass.
Step 5 Collect the following information and contact Huawei technical support personnel:
----End
Description
display version
display device
Issue 01 (2013-10-30)
72
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Command
Description
display patch-information
display current-configuration
display interface
Issue 01 (2013-10-30)
73
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.4.1.4 Solution
When deleting SEP configurations in an open ring scenario, you are advised to delete the
configurations from one end of the open ring. When only one SEP-enabled port is left, shut
down the port and then delete the SEP configuration on the port.
2.4.1.5 Summary
When deleting SEP configurations, you need to consider the deployment of service VLANs in
the SEP segment. Otherwise, a device may become unmanageable or services may be
interrupted because of multiple blocked ports.
Issue 01 (2013-10-30)
74
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
STP
3.1 Overview
3.1.1 Feature Description
3.1.1.1 Background
On a Layer 2 switching network, packets will be generated and transmitted infinitely once a
loop occurs, causing a broadcast storm. All available bandwidth is consumed by the broadcast
storm, and therefore valid packets cannot be transmitted on the network.
The Spanning Tree Protocol (STP) is developed to solve the problem. STP is a Layer 2
management protocol. It selectively blocks redundant links to eliminate loops on Layer 2
networks. STP also supports link backup.
Like other protocols, STP evolves continuously with the network development. In the
beginning, the IEEE802.1D-1998 STP protocol was widely used. The IEEE 802.1w Rapid
Spanning Tree Protocol (RSTP) and the IEEE 802.1s Multiple Spanning Tree Protocol
(MSTP) were developed on the basis of STP afterwards.
Issue 01 (2013-10-30)
75
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Configures alternate ports that are used to implement fast switchover for root ports and
configures backup ports for designated ports.
On a point-to-point link connecting only two switch ports, designated ports enter the
Forwarding state without delay after one-way handshake with the downstream bridge.
Defines ports directly connected to terminals rather than other bridges as edge ports.
Edge ports can directly enter the Forwarding state after being configured manually.
However, both RSTP and STP have a defect, that is, all the VLANs on the same LAN share
the same spanning tree. As a result, data traffic cannot be load balanced among different
VLANs. In addition, packets of some VLANs may fail to be forwarded.
MSTP is a new spanning tree protocol defined in IEEE 802.1s and has obvious advantages
compared with STP and RSTP. MSTP has the following features:
Divides a switching network into multiple regions. Each region has multiple spanning
trees, which are independent of each other. MSTP uses a Common and Internal Spanning
Tree (CIST) to prevent loops in the entire network topology.
Maps multiple VLANs to one instance. The topology of each multiple spanning tree
instance (MSTI) is calculated independently (each instance has an independent spanning
tree). Traffic from different VLAN is load balanced among the instances.
A0
VLAN1--> MSTI1
VLAN2--> MSTI2
other VLANs-->MSTI0
D0
VLAN1--> MSTI1
VLAN2,VLAN3--> MSTI2
other VLANs-->MSTI0
B0
C0
VLAN1--> MSTI1
VLAN2,VLAN3--> MSTI2
other VLANs-->MSTI0
CST
Issue 01 (2013-10-30)
VLAN1--> MSTI1
VLAN2--> MSTI2
other VLANs-->MSTI0
76
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
MST region
A multiple spanning tree (MST) region consists of several switches in a LAN and
network segments between the switches. The devices run MSTP and have the same
region name, mapping between VLANs and MSTIs, and MSTP revision level. As shown
in Figure 1.1, the A0 region is an MST region.
A LAN can comprise several directly or indirectly connected MST regions. In Figure
1.1, the LAN comprises four MST regions, namely, A0, B0, C0, and D0.
MSTI
Multiple spanning trees can be generated in an MST region. Each spanning tree is
independent of one another and maps a VLAN. Such a spanning tree is called a multiple
spanning tree instance (MSTI). As shown in Figure 1.2, the D0 region contains three
MSTIs, namely, MSTI 0, MSTI 1, and MSTI 2.
CST
The common spanning tree (CST) is a single spanning tree that connects all MST regions
on a switching network. If each MST region is considered as a switch, the CST is a
spanning tree generated by STP and RSTP calculation. In Figure 1.1, the dotted blue line
indicates the CST.
IST
The internal spanning tree (IST) is a spanning tree in instance 0 of each MST region. It is
a fragment of the CIST in the MST region. IST is also called MSTI 0. In Figure 1.2,
MSTI 0 is an IST. The ISTs of all MST regions and the CST form a complete spanning
tree, that is, the CIST.
CIST
The Common and Internal Spanning Tree (CIST) is a single spanning tree calculated by
STP and RSTP. CIST connects all switches on a switching network.
D0
SwitchA
AP1
MSTI1
root switch: SwitchC
MSTI2
root switch: SwitchB
SwitchB
SwitchC
SwitchD
Issue 01 (2013-10-30)
MSTI0 (IST)
root switch: SwitchA
VLAN1
VLAN2,VLAN3
other VLANs
MSTI1
MSTI2
MSTI0
77
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The VLAN mapping table is an attribute of an MST region. It describes the mapping
between a VLAN and an MSTI. As shown in Figure 1.2, VLAN 1 maps to MSTI 1,
VLAN 2 and VLAN 3 map to MSTI 2, and other VLANs map to MSTI 0 in the MST
region D0.
Regional root
Regional roots are classified into CIST regional roots and MSTI regional roots. A CIST
regional root is the root of an IST, and an MSTI regional root is the root of an MSTI. If
topologies of spanning trees in an MST region are different, regional roots may be
different.
CIST root
The CIST root is the root switch of the CIST.
Bridge ID
The bridge ID contains 64 bits in total. The leftmost 16 bits are the STP priority of a
switch and the other 48 bits are the MAC address of the switch.
Edge port
An edge port is the port located at the edge of the whole region and is not connected to
any switch. Generally, the edge port is directly connected to a user terminal.
Port role
During MSTP calculation, MSTP defines five port roles: root port, designated port,
alternate port, backup port, and master port. A port can function as different roles in
different MSTIs. Figure 1.3 shows port roles defined in MSTP.
SwitchA
root
AP2
AP3
root port
CP1
BP1
SwitchC
CP2
CP3
designated port
SwitchB
alternate port
BP2
backup port
Root port
On a non-root switch, the root port is the port closest to the root switch. The root
switch does not have a root port. The root port is responsible for forwarding data to
the tree root.
Issue 01 (2013-10-30)
78
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
As shown in Figure 1.3, SwitchA is the root switch. CP1 is the root port of SwitchC
and BP1 is the root port of SwitchB.
Designated port
The designated port is responsible for forwarding data to the downstream network
segment or switch.
As shown in Figure 1.3, AP2 and AP3 are the designated ports of SwitchA, and CP2
is the designated port of SwitchC.
Alternate port
The alternate port is the backup port of the root port. If the root port is blocked, the
alternate port becomes the root port. As shown in Figure 1.3, BP2 is an alternate port.
Backup port
When two ports of a switch are connected, a loop is formed, and then the switch
blocks one of the two ports. The blocked port is a backup port. The other port is in
Forwarding state and becomes a designated port. As shown in Figure 1.3, CP3 is the
backup port. The backup port is the backup port of the designated port.
Master port
A master port connects an MST region to the CIST root. It is on the shortest path
from the MST region to the CIST root. The master port is the root port in the
IST/CIST and is the master port in other MSTIs.
Port state
A port can function as different roles in different MSTIs.
The state of a port depends on whether the port learns MAC addresses and forwards user
traffic. A port can be in the following three states:
Forwarding state: The port learns MAC addresses and forwards user traffic.
Learning state: The port learns MAC addresses but does not forward user traffic.
Discarding state: The port does not learn MAC addresses or forward user traffic.
BPDU protection
On a switch, ports that are directly connected to the user terminal such as a PC or file
server are configured as edge ports to implement fast port state transition. Usually, no
BPDU is sent to edge ports. If the switch is attacked by pseudo BPDUs, the switch
automatically sets these ports as non-edge ports after these ports receive BPDUs, and
recalculates the spanning tree. As a result, network flapping occurs.
MSTP provides the BPDU protection function to prevent such attacks. After the BPDU
protection function is enabled, the switch shuts down the edge ports that receive BPDUs.
At the same time, the shutdown command configuration is generated on the ports. The
edge ports shut down by the switch can be manually started only by the network
administrator.
Root protection
The valid root switch may receive a BPDU with a higher priority due to incorrect
configurations or malicious attacks on the network. This results in the position loss of the
root switch and the incorrect change of the network topology. In this case, the traffic
transmitted on a high-speed link is switched to a low-speed link, which causes network
congestion.
To address this problem, the switch provides the root protection function. The root
protection function protects the role of the root switch by retaining the role of the
Issue 01 (2013-10-30)
79
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
designated port. After root protection is enabled on a port, the port remains as the
designated port in all instances.
When the port receives a BPDU with a higher priority, the port stops forwarding packets
and enters the Discarding state, but does not change into a non-designated port. If the
port does not receive any BPDU with a higher priority within a certain period, it restores
to the forwarding state.
Loop protection
The switch maintains states of the root port and blocked ports by continuously receiving
BPDUs from the upstream switch. If these ports cannot receive any BPDU from the
upstream switch because of link congestion or link failures, the switch selects a new root
port. Then the previous root port becomes a designated port and the blocked ports turn to
the Forwarding state. This may cause network loops.
The loop protection function prevents such network loops. After loop protection is
enabled, the root port is blocked if it does not receive any BPDU from the upstream
switch. The blocked ports are still blocked and cannot forward packets. Therefore,
network loops will not be generated.
TC protection
After receiving TC-BPDUs, the switch implements the operation of deleting MAC
address entries and ARP entries. If a malicious attacker sends pseudo TC-BPDUs to
attack the switch, the switch will receive a large number of TC-BPDUs within a short
period, and delete its MAC address entries and ARP entries frequently. As a result, the
switch is heavily burdened, threatening the network stability.
After TC protection is enabled, the number of times that TC-BPDUs are processed by the
switch within a certain period is configurable (the default period is 2s, and the default
number of times is different in different versions). If the number of TC-BPDUs that the
switch receives within the given time exceeds the specified threshold, the switch
processes TC-BPDUs only for the specified number of times. For the excess TC-BPDUs,
the switch processes them once in a unified way after the timer expires. In this way, the
switch is prevented from frequently deleting its MAC address entries and ARP entries,
and therefore relieved from the ensuing burdens.
Table 1.1 lists initial parameters of devices and ports in Figure 1.1.
Issue 01 (2013-10-30)
80
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Bridge ID
Port
Cost
Switch A
0. BridgeA
AP1
20000
AP2
20000
BP1
20000
BP2
20000
CP1
30000
CP2
20000
Switch B
Switch C
32768. BridgeB
32768. BridgeC
Therefore, BP1 is the root port of SwitchB and CP1 is the root port of SwitchC.
The link between BP2 and CP2 is a redundant link. BP2 or CP2 must be blocked. The
path cost from the root port to the root bridge is used in selection of the designated port
(used to forward data to the downstream network segment or switch). BP2 is more
suitable than CP2 and is selected as the designated port. CP2 is the alternate port.
Issue 01 (2013-10-30)
81
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
On S series switches since V100R006, you can run the display stp region-configuration
digest command to view the digest of an STP region and determine whether a device is
in the region.
[Switch]display stp region-configuration digest
Oper configuration
Format selector
:0
Region name
:286ed4e8d272
Revision level
:0
Digest
:0xAC36177F50283CD4B83821D8AB26DE62
:Config=default / Active=disabled
:Config=disabled / Active=disabled (on a chassis switch in
V100R002)
In V200R001, the information is displayed as follows:
Port Edged
:Config=default / Active=enabled
In V200R001, the automatic detection function of the edge port attribute is supported. If
the port has never received any BPDU, the edge port attribute takes effect automatically.
(The stp edged-port enable command configuration is not automatically generated on
the port. Therefore, the value of the Config field is still default.)
3.1.3.2 Cisco
Cisco switches support the following spanning tree protocols: Per VLAN Spanning Tree
(PVST), Per VLAN Spanning Tree Plus (PVST+), Rapid PVST+, and Multiple Spanning Tree
(MST). Some BPDUs of these spanning tree protocols use Cisco proprietary BPDU formats,
which are different from the BPDU format defined by IEEE.
When a Cisco switch runs PVST+ or Rapid PVST+, the link type of the port on the
Cisco switch determines whether the switch can communicate with an S series switch.
Issue 01 (2013-10-30)
If the port link type is trunk and the port is deleted from VLAN 1, the Cisco switch
cannot communicate with the S series switch. If the port on the Cisco switch sends
proprietary BPDUs in VLANs except VLAN 1, the S series switch does not process
the BPDUs by default and forwards the BPDUs as common multicast data packets.
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co.,
Ltd.
82
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The S series switch can also have the l2protocol-tunnel transparent transmission
configured to transparently transmit the BPDUs.
If the port link type is trunk and the port is added to VLAN 1, the Cisco switch can
communicate with the S series switch only in VLAN 1.
If the port link type is access, the Cisco switch can communicate with the S series
switch.
When the Cisco switch runs MST, the switch is considered to work in standard MSTP
mode and can communicate with the S series switch.
When an MSTP-enabled S series switch and an MST-enabled Cisco switch have the
same region configuration (the same region name, revision level, and mapping between
VLANs and instances), the two switches use different keys to generate MSTP digests in
BPDUs. Therefore, digests in BPDUs sent by ports on the two switches are different.
The two switches belong to different MST regions because they generate different
digests. They can implement only inter-region interoperation. To implement intra-region
interoperation, run the stp config-digest-snoop command on the S series switch to
enable the digest snooping function.
Example:
Switch # show spanning-tree mst 1
###### MST01
vlans mapped:
Bridge
address 0015.fa90.7c80
Root
address 5489-98f5-a0a0
port
Fa0/2
19
Interface
-------------Fa0/2
Fa0/3
6
priority
priority
cost
When an S series box switch transparently transmits PVST+ packets through l2protocol-tunnel, run the
bpdu mac-address 0100-0ccc-cccd command on the switch.
Issue 01 (2013-10-30)
83
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
3.
Configure the path cost on a port so that the port can be blocked.
4.
Issue 01 (2013-10-30)
84
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
3.
Configure the path cost on a port so that the port can be blocked.
The path cost range is decided by the algorithm. The Huawei proprietary algorithm is used as an
example. Set the path costs of the ports to 20000.
The switches on the same network must use the same algorithm to calculate path costs.
4.
Issue 01 (2013-10-30)
85
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Role
DESI
DESI
STP State
FORWARDING
FORWARDING
Protection
NONE
NONE
After SwitchA is configured as the root bridge, GE1/0/2 and GE1/0/1 connected to SwitchB
and SwitchD respectively are elected as designated ports in STP calculation.
# On SwitchB, run the display stp interface gigabitethernet 1/0/1 brief command to check
the state of GE1/0/1. The displayed information is as follows:
[SwitchB] display stp interface gigabitethernet 1/0/1 brief
MSTID Port
Role STP State
Protection
0
GigabitEthernet1/0/1
DESI FORWARDING
NONE
Role
ALTE
ROOT
STP State
DISCARDING
FORWARDING
Protection
NONE
NONE
Configuration Files
Issue 01 (2013-10-30)
86
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
#
return
mode rstp
instance 0 root secondary
pathcost-standard legacy
enable
#
return
Issue 01 (2013-10-30)
87
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
Issue 01 (2013-10-30)
88
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Add SwitchA, SwitchB, SwitchC, and SwitchD to the region RG1, and create instances
MSTI1 and MSTI2.
# Configure an MST region on SwitchA.
<Quidway> system-view
[Quidway] sysname SwitchA
[SwitchA] stp region-configuration
[SwitchA-mst-region] region-name RG1
[SwitchA-mst-region] instance 1 vlan 2 to 10
[SwitchA-mst-region] instance 2 vlan 11 to 20
[SwitchA-mst-region] active region-configuration
[SwitchA-mst-region] quit
2.
Configure root bridges and backup root bridges for MSTI1 and MSTI2 in RG1.
Configure the root bridge and backup root bridge for MSTI1.
# Configure SwitchA as the root bridge of MSTI1.
[SwitchA] stp instance 1 root primary
Configure the root bridge and backup root bridge for MSTI2.
# Configure SwitchB as the root bridge of MSTI2.
Issue 01 (2013-10-30)
89
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
3.
Set path costs to values larger than the default value for ports to be blocked in MSTI1
and MSTI2.
The path cost range is decided by the algorithm. The Huawei proprietary algorithm is used as an
example. Set the path costs of the ports to 20000.
The switches on the same network must use the same algorithm to calculate path costs.
# Set the path cost algorithm on SwitchC to Huawei proprietary algorithm. Set the path
cost of GE1/0/2 in MSTI2 to 20000.
[SwitchC] stp pathcost-standard legacy
[SwitchC] interface gigabitethernet 1/0/2
[SwitchC-GigabitEthernet1/0/2] stp instance 2 cost 20000
[SwitchC-GigabitEthernet1/0/2] quit
# Set the path cost algorithm on SwitchD to Huawei proprietary algorithm. Set the path
cost of GE1/0/2 in MSTI1 to 20000.
[SwitchD] stp pathcost-standard legacy
[SwitchD] interface gigabitethernet 1/0/2
[SwitchD-GigabitEthernet1/0/2] stp instance 1 cost 20000
[SwitchD-GigabitEthernet1/0/2] quit
4.
90
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
91
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Role
DESI
DESI
DESI
DESI
DESI
ROOT
STP State
FORWARDING
FORWARDING
FORWARDING
FORWARDING
FORWARDING
FORWARDING
Protection
NONE
NONE
ROOT
NONE
NONE
NONE
In MSTI1, GE1/0/2 and GE1/0/1 of SwitchA are set as designated ports because SwitchA is
the root bridge of MSTI1. In MSTI2, GE1/0/1 of SwitchA is set as the designated port and
GE1/0/2 is set as the root port.
# Run the display stp brief command on SwitchB. The displayed information is as follows:
[SwitchB] display stp brief
MSTID Port
0
GigabitEthernet1/0/1
0
GigabitEthernet1/0/2
1
GigabitEthernet1/0/1
1
GigabitEthernet1/0/2
2
GigabitEthernet1/0/1
2
GigabitEthernet1/0/2
Role
DESI
ROOT
DESI
ROOT
DESI
DESI
STP State
FORWARDING
FORWARDING
FORWARDING
FORWARDING
FORWARDING
FORWARDING
Protection
NONE
NONE
NONE
NONE
NONE
NONE
In MSTI2, GE1/0/1 and GE1/0/2 of SwitchB are set as designated ports because SwitchB is
the root bridge of MSTI2. In MSTI1, GE1/0/1 of SwitchB is set as the designated port and
GE1/0/2 is set as the root port.
# Run the display stp interface brief command on SwitchC. The displayed information is as
follows:
[SwitchC] display stp interface gigabitethernet 1/0/3 brief
MSTID Port
Role STP State
Protection
0
GigabitEthernet1/0/3
ROOT FORWARDING
NONE
1
GigabitEthernet1/0/3
ROOT FORWARDING
NONE
Issue 01 (2013-10-30)
92
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2
GigabitEthernet1/0/3
ROOT FORWARDING
NONE
[SwitchC] display stp interface gigabitethernet 1/0/2 brief
MSTID Port
Role STP State
Protection
0
GigabitEthernet1/0/2
DESI FORWARDING
NONE
1
GigabitEthernet1/0/2
DESI FORWARDING
NONE
2
GigabitEthernet1/0/2
ALTE DISCARDING
NONE
GE1/0/3 of SwitchC is the root port in MSTI1 and MSTI2. GE1/0/2 of SwitchC is blocked in
MSTI2 and is set as the designated port in MSTI1.
# Run the display stp interface brief command on SwitchD. The displayed information is as
follows:
[SwitchD] display stp interface gigabitethernet 1/0/3 brief
MSTID Port
Role STP State
Protection
0
GigabitEthernet1/0/3
ALTE DISCARDING
NONE
1
GigabitEthernet1/0/3
ROOT FORWARDING
NONE
2
GigabitEthernet1/0/3
ROOT FORWARDING
NONE
[SwitchD] display stp interface gigabitethernet 1/0/2 brief
MSTID Port
Role STP State
Protection
0
GigabitEthernet1/0/2
ROOT FORWARDING
NONE
1
GigabitEthernet1/0/2
ALTE DISCARDING
NONE
2
GigabitEthernet1/0/2
DESI FORWARDING
NONE
GE1/0/3 of SwitchD is the root port in MSTI1 and MSTI2. GE1/0/2 of SwitchD is blocked in
MSTI1 and is set as the designated port in MSTI2.
----End
Configuration Files
Issue 01 (2013-10-30)
93
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
#
return
Issue 01 (2013-10-30)
94
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
interface GigabitEthernet1/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 20
#
return
Issue 01 (2013-10-30)
95
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Configure the Cisco switch to work in PVST mode and configure S series switches to
transparently transmit Cisco proprietary BPDUs.
2.
Configure the Cisco switch to work in Rapid PVST mode and communicate with S series
switches.
3.
Configure the Cisco switch to work in MST mode and communicate with S series
switches.
2.
pvst
3.
Issue 01 (2013-10-30)
(config)#vlan 100
(config-vlan)#exit
(config)#interface FastEthernet 1/0/1
(config-if)#switchport mode trunk
(config-if)#switchport trunk encapsulation dot1q
(config-if)#switchport trunk allowed vlan 100
(config-if)#interface FastEthernet 1/0/3
(config-if)#switchport mode trunk
(config-if)#switchport trunk encapsulation dot1q
(config-if)#switchport trunk allowed vlan 100
(config-if)#exit
96
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
system-view
sysname SwitchB
vlan 100
interface Ethernet0/0/1
4.
Priority
Address
Hello Time
Aging Time
Interface
Role Sts Cost
------------------- ---- --- ---------------------------------------Fa1/0/1
Desg FWD 19
Fa1/0/3
Back BLK 19
Issue 01 (2013-10-30)
Prio.Nbr Type
-------128.3
128.5
P2p
P2p
97
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
5.
Issue 01 (2013-10-30)
98
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
6.
Priority
Address
Hello Time
Aging Time
Interface
Role Sts Cost
------------------- ---- --- ---------------------------------------Fa1/0/1
Desg FWD 19
Fa1/0/3
Back BLK 19
Prio.Nbr Type
-------128.3
128.5
P2p
P2p
Configuration Files
Issue 01 (2013-10-30)
99
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
100
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
rapid-pvst
Issue 01 (2013-10-30)
101
S Series Switch
Feature Start - Loop Prevention Features
Name
Revision
1 Overview
[REG01]
0
Instances configured 3
3.
(config)#vlan 100
(config-vlan)#exit
(config)#interface FastEthernet 1/0/1
(config-if)#switchport mode trunk
(config-if)#switchport trunk encapsulation
dot1q
4.
Enable STP on ports of S series switches for the switches to communicate with CiscoSW
in instance 1.
# Configure STP region and ports on SwitchA.
<Quidway> system-view
[Quidway] sysname SwitchA
[SwitchA] stp enable
[SwitchA]stp region-configuration
[SwitchA-mst-region]instance 1 vla 1
[SwitchA-mst-region]instance 2 vlan 100
[SwitchA-mst-region]region-name REG01
[SwitchA-mst-region]check region-configuration
Admin configuration
Format selector
:0
Region name
:REG01
Revision level
:0
Instance
VLANs Mapped
0
2 to 99, 101 to 4094
1
1
2
100
[SwitchA -mst-region]active region-configuration
[SwitchAmst-region]quit
[SwitchA] bpdu mac-address 0100-0ccc-cccd
[SwitchA] l2protocol-tunnel pvst+ group-mac 0100-1111-1111
[SwitchA] vlan 100
[SwitchA] interface Ethernet2/0/2
[SwitchA-Ethernet2/0/2] port link-type trunk
[SwitchA-Ethernet2/0/2] port trunk allow-pass vlan 100
Issue 01 (2013-10-30)
102
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
[SwitchA-Ethernet2/0/2]quit
[SwitchA] interface Ethernet2/0/3
[SwitchA-Ethernet2/0/3] port link-type trunk
[SwitchA-Ethernet2/0/3] port trunk allow-pass vlan 100
[SwitchA-Ethernet2/0/3] l2protocol-tunnel pvst+ enable
[SwitchA-Ethernet2/0/3] stp config-digest-snoop
[SwitchA-Ethernet2/0/3]quit
5.
Issue 01 (2013-10-30)
Role
DESI
DESI
DESI
DESI
DESI
STP State
FORWARDING
FORWARDING
FORWARDING
FORWARDING
FORWARDING
Protection
NONE
NONE
NONE
NONE
NONE
103
S Series Switch
Feature Start - Loop Prevention Features
2
1 Overview
Ethernet2/0/2
DESI
FORWARDING
NONE
The command output shows that SwitchA is the root bridge in MSTI 0, MSTI 1, and
MSTI 2.
# Run the display stp brief command on SwitchB to check the port status. The displayed
information is as follows:
[SwitchB]display stp brief
MSTID Port
0
Ethernet0/0/1
0
Ethernet0/0/2
1
Ethernet0/0/1
1
Ethernet0/0/2
2
Ethernet0/0/1
2
Ethernet0/0/2
Protection
NONE
NONE
NONE
NONE
NONE
NONE
The command output shows that SwitchB uses MSTP to communicate with SwitchA in
MSTI 0, MSTI 1, and MSTI 2.
# Run the show spanning-tree command on CiscoSW to check the port status. The
displayed information is as follows:
Ciscosw#show spanning-tree
VLAN0001
Spanning tree enabled protocol rstp
Root ID
Priority
32768
Address
286e.d4e8.d272
Cost
19
Port
3 (FastEthernet1/0/1)
Hello Time
2 sec Max Age 20 sec
Bridge ID
Priority
Address
Hello Time
Aging Time
Interface
Role Sts Cost
------------------- ---- --- ---------------------------------------Fa1/0/1
Root FWD 19
Fa1/0/3
Altn BLK 19
Prio.Nbr Type
-------128.3
128.5
VLAN0100
Spanning tree enabled protocol rstp
Root ID
Priority
32868
Address
a8b1.d44b.f280
This bridge is the root
Hello Time
2 sec Max Age 20 sec
Bridge ID
Priority
Address
Hello Time
Aging Time
P2p
P2p
Interface
Role Sts Cost
Prio.Nbr Type
------------------- ---- --- --------- ---------------------------------------
Issue 01 (2013-10-30)
104
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Fa1/0/1
Fa1/0/3
Ciscosw#
Desg FWD 19
Back BLK 19
128.3
128.5
P2p
P2p
When CiscoSW works in Rapid PVST mode, ports send standard RSTP packets in
VLAN 1. CiscoSW communicates with S series switches in VLAN 1. CiscoSW sends
proprietary BPDUs in VLAN 100. After l2protocol-tunnel transparent transmission is
configured on S series switches, Cisco Rapid PVST converges after the BPDUs are
transparently transmitted.
Configuration Files
Issue 01 (2013-10-30)
105
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
mst
2.
Issue 01 (2013-10-30)
106
S Series Switch
Feature Start - Loop Prevention Features
Revision
1 Overview
Instances configured 3
3.
(config)#vlan 100
(config-vlan)#exit
(config)#vlan 200
(config-vlan)#exit
(config)#interface FastEthernet 1/0/1
(config-if)#switchport mode trunk
(config-if)#switchport trunk encapsulation
dot1q
4.
Enable STP on ports of S series switches for the switches to communicate with CiscoSW
in instance 1 and instance 2.
# Configure STP region and ports on SwitchA.
<Quidway> system-view
[Quidway] sysname SwitchA
[SwitchA] stp enable
[SwitchA]stp region-configuration
[SwitchA-mst-region]instance 1 vla 100
[SwitchA-mst-region]instance 2 vlan 200
[SwitchA-mst-region]region-name REG01
[SwitchA-mst-region]check region-configuration
Admin configuration
Format selector
:0
Region name
:REG01
Revision level
:0
Instance
VLANs Mapped
0
1 to 99, 101 to 199, 201 to 4094
1
100
2
200
[SwitchA -mst-region]active region-configuration
[SwitchAmst-region]quit
[SwitchA] vlan 100
[SwitchA-vlan100]quit
[SwitchA] vlan 200
[SwitchA-vlan200]quit
[SwitchA] interface Ethernet2/0/2
[SwitchA-Ethernet2/0/2] port link-type trunk
Issue 01 (2013-10-30)
107
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
Protection
NONE
NONE
NONE
NONE
NONE
108
S Series Switch
Feature Start - Loop Prevention Features
2
1 Overview
Ethernet2/0/2
DESI
FORWARDING
NONE
The command output shows that SwitchA is the root bridge in MSTI 0 and MSTI 2.
# Run the display stp brief command on SwitchB to check the port status. The displayed
information is as follows:
[SwitchB]display stp brief
MSTID Port
0
Ethernet0/0/1
0
Ethernet0/0/2
1
Ethernet0/0/1
1
Ethernet0/0/2
2
Ethernet0/0/1
2
Ethernet0/0/2
Protection
NONE
NONE
NONE
NONE
NONE
NONE
# Run the show spanning-tree command on CiscoSW to check the port status. The displayed
information is as follows:
Ciscosw#show spanning-tree
MST0
Spanning tree enabled protocol mstp
Root ID
Priority
32768
Address
286e.d4e8.d272
Cost
0
Port
5 (FastEthernet1/0/3)
Hello Time
2 sec Max Age 20 sec
Bridge ID
Priority
Address
Hello Time
Interface
------------------Fa1/0/1
Fa1/0/3
Fa1/0/23
Role
---Altn
Root
Desg
Cost
--------200000
200000
200000
Prio.Nbr
-------128.3
128.5
128.25
MST1
Spanning tree enabled protocol mstp
Root ID
Priority
24577
Address
a8b1.d44b.f280
This bridge is the root
Hello Time
2 sec Max Age 20 sec
Bridge ID
Priority
Address
Hello Time
Interface
------------------Fa1/0/1
Fa1/0/3
Issue 01 (2013-10-30)
Role
---Desg
Desg
Type
-------------------------------P2p
P2p
P2p
Cost
--------200000
200000
Prio.Nbr
-------128.3
128.5
Type
-------------------------------P2p
P2p
109
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
MST2
Spanning tree enabled protocol mstp
Root ID
Priority
32770
Address
286e.d4e8.d272
Cost
200000
Port
5 (FastEthernet1/0/3)
Hello Time
2 sec Max Age 20 sec
Bridge ID
Priority
Address
Hello Time
Interface
------------------Fa1/0/1
Fa1/0/3
Role
---Altn
Root
Cost
--------200000
200000
Prio.Nbr
-------128.3
128.5
Type
-------------------------------P2p
P2p
The command output shows that CiscoSW is the root bridge in MSTI 1. The three switches
use MSTP to communicate with each other in MSTI 0, MSTI 1, and MSTI 2.
Configuration Files
Issue 01 (2013-10-30)
110
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
sysname SwitchA
#
vlan batch 100 200
#
stp enable
#
stp region-configuration
region-name REG01
instance 1 vlan 100
instance 2 vlan 100
active region-configuration
#
interface Ethernet2/0/2
port link-type trunk
port trunk allow-pass vlan 100 200
#
interface Ethernet2/0/3
port link-type trunk
port trunk allow-pass vlan 100 200
stp config-digest-snoop
#
return
----End
111
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Identification method: For S2300/S2700 switches in V100R005 and earlier versions, check
whether the bpdu enable command is configured globally. For other box switches in
V100R005 and earlier versions, check whether the bpdu enable command is configured on
physical ports and the Eth-Trunk. For box switches in V100R006 and later versions, the bpdu
enable command is configured globally or on ports by default on corresponding models.
Solution: After STP is globally enabled on box switches, run the bpdu enable command on
the Eth-Trunk participated in STP calculation.
Versions involved: versions earlier than V100R006
3.3 Troubleshooting
3.3.1 Troubleshooting Overview
As an IEEE standard protocol, STP has advantages such as good compatibility, low network
planning requirements, and easy configuration. Therefore, STP is widely used on Layer 2
networks.
STP-related problems on the network can be classified into the following categories:
Issue 01 (2013-10-30)
112
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
113
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
1.
2.
Check whether the STP region configuration is correct and whether ports are added to
VLANs correctly.
3.
Check whether the STP role and state of ports are normal.
4.
Issue 01 (2013-10-30)
114
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
115
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
stp brief
interface
GigabitEthernet
2/0/6
Issue 01 (2013-10-30)
Vlans Mapped
1 to 99, 201 to 299, 401 to 4094
100 to 200
300 to 400
116
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
If the mapping between VLANs and MSTIs is not configured in an MST region, all VLANs belong
to MSTI0 by default. That is, traffic of all VLANs on all ports of the switch is forwarded according
to the port status calculated by MSTI0.
By default, S series switches use the system MAC address as the region name.
STP calculation based on the MSTI instead of VLAN. In an STP-enabled closed topology, there
must be ports in Discarding state in an MSTI. If the VLAN configuration on ports does not construct
a Layer 2 broadcast domain in the closed network, STP does not need to be enabled on relevant ports
to avoid services being influenced by the port in Discarding state.
Changes in parameters (especially the VLAN mapping table) in an MST region cause spanning tree
recalculation and route flapping on a network. Therefore, you are advised to run the check regionconfiguration command in the MST region view before activating the configuration of the MST
region to check whether parameters of the MST region are set correctly. After verifying that
parameters of the MST region are correct, run the active region-configuration command to activate
the configuration of the MST region.
The active region-configuration command activates the name, VLAN mapping table, and MSTP
revision level of the MST region. You are advised to run the active region-configuration command
after complete all the configurations to reduce network flapping.
Step 3 Check whether the STP role and state of ports are normal.
The port roles include the designated port (DESI), root port (ROOT), alternate port (ALTE),
backup port (BACK), and master port (MAST). The alternate port and backup port do not
forward traffic and they are always in Discarding state. Other ports are in Forwarding state
normally and forward traffic.
Generally, two directly connected STP-enabled ports cannot be designated ports at the same
time. If both ports are designated ports and are in Forwarding state, check whether the
problem is caused by the following reasons:
For S3300/S3700/S5300/S5700 switches in V100R005, the bpdu enable command must be
configured on ports (including Eth-Trunk) participated in STP calculation. For S2300/S2700
switches in V100R005, the bpdu enable command must be configured globally. Otherwise,
the received STP BPDUs are not processed.
For box switches in V100R006, the bpdu enable command is configured globally on
S2300/S2700 switches and on ports of other models by default. Chassis switches do not have
this restriction.
If the STP state of a designated port is Discarding, check whether root protection or loop
protection is configured on the port.
#
interface GigabitEthernet2/0/6
stp loop-protection
#
interface GigabitEthernet2/0/7
stp root-protection
#
display stp brief
MSTID Port
0
GigabitEthernet2/0/6
0
GigabitEthernet2/0/7
Role
ROOT
DESI
STP State
FORWARDING
FORWARDING
Protection
LOOP
ROOT
If the root protection and loop protection are not configured on the port, go to Step 4.
Step 4 Check whether ports receive and send STP BPDUs normally.
Issue 01 (2013-10-30)
117
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Run the display stp interface command to check the number of BPDUs received and sent by
a port.
display stp interface GigabitEthernet 2/0/6
----[CIST][Port14(GigabitEthernet2/0/6)][FORWARDING]---Port Protocol
:enabled
Port Role
:Designated Port
Port Priority
:128
Port Cost(Dot1T )
:Config=auto / Active=20000
Desg. Bridge/Port
:32768.4c1f-cc1f-56b7 / 128.14
Port Edged
:Config=default / Active=disabled
Point-to-point
:Config=auto / Active=true
Transit Limit
:147 packets/hello-time
Protection Type
:None
Port Stp Mode
:MSTP
Port Protocol Type :Config=auto / Active=dot1s
BPDU Encapsulation :Config=stp / Active=stp
PortTimes
:Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send :2
TC or TCN received :0
BPDU Sent
:103219
TCN: 0, Config: 0, RST: 0, MST: 103219
BPDU Received
:0
TCN: 0, Config: 0, RST: 0, MST: 0
The BPDU Sent field displays the total number of BPDUs sent by the port and the BPDU
Received field displays the total number of BPDUs received by the port. TCN indicates
topology change notification packets. Config indicates traditional STP packets. RST indicates
RSTP packets. MST indicates MSTP packets. Normally, only the number increases
periodically in the BPDU Sent field for designated ports and in the BPDU Received field for
other ports. After the convergence is stable, the number of BPDUs sent and received by a port
is fixed.
If the numbers in both the BPDU Sent field and BPDU Received field increase, run the
debugging stp interface <interface-type> <interface-number> packet all command to
enable STP debugging. BPDUs received and sent by a port are displayed. Check whether the
displayed information remains unchanged.
<Switch> debugging stp interface GigabitEthernet 2/0/6 packet all
<Switch> terminal monitor
<Switch>terminal debugging
Jun 24 2001 10:29:41.60.1+01:00 DST Switch MSTP/7/PKT:
Port55(GigabitEthernet2/0/6) Rcvd Packet(Length: 102)
ProtocolVersionID
: 03
BPDUType
: 02
Flags
: 7c( DESIGNATED Learning Forwarding
Agreement )
CIST Root Identifier
: 0.101b-5498-d3e0
CIST External Path Cost
: 0
CIST Bridge Identifier
: 0.101b-5498-d3e0
CIST Port Identifier
: 128.126
Message Age
: 0
Max Age
: 20
Hello Time
: 2
Forward Delay
: 15
Version 1 Length
: 0
Version 3 Length
: 64
Issue 01 (2013-10-30)
118
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
:
:
:
:
0.101b-5498-d3e0
0
20
0
Multiple bits may be set to 1 at the same time. For example, in the configuration messages
periodically received by GE2/0/6, the Flags field displays 0x7C (binary digits: 0-1-1-1-1-1-00). It means that the Agreement, Forwarding, and Learning bits are set to 1, and the Port Role
bit is set to 11, meaning that the peer port is a designated port.
In TC packets, the Topology Change bit is set to 1.
----End
119
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
3.
Issue 01 (2013-10-30)
120
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
121
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The fast port transition mechanism is also called the Proposal/Agreement mechanism.
Traditional STP mode cannot provide the fast transition mechanism. A port must wait twice
the forward-delay time (15s by default) to enter the Forwarding state. The type of STP
BPDUs sent and received by a port can be obtained based on the number of BPDUs displayed
in the BPDU Sent field and BPDU Received field.
S series switches support the Proposal/Agreement mechanism in enhanced mode and in
common mode. The enhanced mode is the default mode.
Enhanced mode: The current port calculates the root port when calculating the
synchronization flag bit.
Issue 01 (2013-10-30)
122
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The upstream device then sends an Agreement packet to the downstream device.
After the downstream device receives the packet, the status of the root port changes
to Forwarding.
The downstream device sends an Agreement packet to the upstream device. After
receiving the Agreement packet, the upstream device sets the port connected to the
downstream device as a designated port. The designated port then enters the
Forwarding state.
Common mode: The current port does not calculate the root port when calculating the
synchronization flag bit.
The downstream device sends an Agreement packet to the upstream device. After
receiving the Agreement packet, the upstream device sets the port connected to the
downstream device as a designated port. The designated port then enters the
Forwarding state.
Issue 01 (2013-10-30)
123
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Protection Type
:None
Port Stp Mode
:MSTP
Port Protocol Type :Config=auto / Active=dot1s
BPDU Encapsulation :Config=stp / Active=stp
PortTimes
:Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send :2
TC or TCN received :0
BPDU Sent
:103219
TCN: 0, Config: 0, RST: 0, MST: 103219
BPDU Received
:0
TCN: 0, Config: 0, RST: 0, MST: 0
In the preceding command output, Config=auto indicates that the configured value is auto,
and Active=true indicates that the link type of the port is P2P.
If the fast transition mechanism cannot be implemented on the port when the link type is P2P,
contact Huawei technical support personnel.
----End
2.
3.
Issue 01 (2013-10-30)
124
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
125
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
In traditional STP mode, the flooding path of TCN packets is shown in the following figure:
In RSTP/MSTP mode, the flooding path of TC packets is shown in the following figure:
Generally, a switch updates forwarding entries after receiving a TC packet indicating the
topology change. Then traffic is transmitted through new paths. When ports continuously
receive TC packets, the switch updates forwarding entries frequently, occupying CPU
resources and affecting service traffic forwarding.
Check TC packets received and sent by ports using the following commands:
display stp tc (The command is used in the hidden view on chassis switches in V100R003
and earlier versions. It displays only the number of received packets and does not differentiate
TC and TCN packets.)
display stp tc-bpdu statistics (The command is supported by chassis switches since
V100R006 and by box switches since V100R005.)
display stp topology-change (The command is supported by chassis switches since
V100R006 and by box switches since V100R005.)
[Frame-hidecmd]display
stp tc (The command displays only the total number of TC or TCN packets
received by ports.)
---------- Stp Instance 0 tc or tcn count ---------Port GigabitEthernet3/0/0
0
Port GigabitEthernet3/0/23
29
[Switch]display stp tc-bpdu statistics
-------------------------- STP TC/TCN information -------------------------MSTID Port
TC(Send/Receive)
TCN(Send/Receive)
0
GigabitEthernet2/0/6
21/4
0/1
0
GigabitEthernet2/0/7
93/0
0/1
Issue 01 (2013-10-30)
126
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
0
GigabitEthernet2/0/8
115/0
0/0
0
GigabitEthernet2/0/9
110/0
0/0
0
GigabitEthernet3/0/23
29/5
0/0
[Switch]display stp topology-change
CIST topology change information
Number of topology changes
:35
Time since last topology change
:0 days 1h:7m:30s
Topology change initiator(notified)
:GigabitEthernet2/0/6
Topology change last received from
:101b-5498-d3e0
Number of generated topologychange traps :
38
Number of suppressed topologychange traps:
8
MSTI 1 topology change information
Number of topology changes
:0
If the command output shows that ports continuously receive a large number of TC packets,
run the stp tc-protection command to enable TC protection on the switch to suppress TC
packets. The switch then is protected against TC packets. Run the stp tc-protection threshold
command to set the number of times that TC packets are processed in a specified Hello time.
After receiving TC packets, the switch updates forwarding entries. When the STP
convergence modes are different, the switch processes ARP entries in different ways. The
normal convergence mode is recommended.
If the STP convergence mode is fast, the switch deletes the related ARP entries directly.
If the STP convergence mode is normal, the switch sets the remaining aging time of the ARP
entries to 0 and ages them.
By default, the STP convergence mode is normal on chassis switches since V100R003 and on box
switches since V100R005. The mode is fast by default on switches in earlier versions.
If the PPI task still has high CPU usage after TC protection is enabled and STP convergence
mode is changed, go to Step 2.
Step 2 Check whether ports receive multiple types of STP BPDUs.
Due to network changes, the stable STP ring may reconverge.
Run the display stp history command on chassis switches to check role calculation history on
ports. If the role of ports keeps changing, ports receive packets from different devices,
indicating a problem on the network.
On chassis switches in versions earlier than V200R001 (hidden view), the displayed
information is as follows:
[Switch-hidecmd]display stp history
---------- Stp Instance 0 history trace ---------GigabitEthernet6/0/16 Root->Desi
at 2001/06/20 11:40:14 UTC+00:00
{4096.101b-5498-1234 0 4096.101b-5498-1234 0 4096.101b-5498-1234 128.63}
GigabitEthernet6/0/16 Desi->Root
at 2001/06/20 11:37:53 UTC+00:00
{0.0489-98f5-a0a0 259999 4096.101b-5498-1234 0 4096.101b-5498-1234 128.63}
(0.0489-98f5-a0a0: root MAC address; 259999: external path cost; 4096.101b-5498-1234: region root MAC address; 0:
external path cost; 4096.101b-5498-1234: designated bridge MAC address; 128.63: configured port priority)
Issue 01 (2013-10-30)
127
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
On S series switches in V200R001 and later versions (diagnosis view), the displayed
information is as follows:
[Switch-diagnose]display stp history
Stp Instance 0 history trace:
Port Name: GigabitEthernet0/0/6
Role Transation: Root->Desi
IsAged: Yes
Time: 2008/10/05 00:12:25 UTC+00:00
RootPriority: 0
RootMac: 101b-5498-d3e0
PathExtCost: 0
RegRootPriority: 32768
RegRootMac: 0000-0a88-1580
PathInCost: 0
DesignatedPriority: 0
DesignateMac: 101b-5498-d3e0
PortPriority: 128
PortId: 7
Run the following commands to enable STP debugging to collect exchanged STP BPDUs and
event information when the network is faulty.
<Switch> debugging stp interface <interface-type> <interface-number> packet
<Switch>debugging stp event
all
When locating the fault, pay attention to the situation that some network devices can transparently
transmit STP BPDUs by default although STP is not globally enabled on the devices.
02:26:40
MSTP set
02:26:43
MSTP set
Run the display interface command to check whether the physical status, rate, and full
duplex mode of a port are normal and whether there are error packets in the inbound direction.
If links are normal, run the display stp interface <interface-type> <interface-number>
command to check the number displayed in the BPDU Received field as shown in
3.2.4"Deployment Precautions." If the number does not increase periodically and the BPDU
configuration on the port is correct, bind a traffic policy in the inbound direction of the port to
collect traffic statistics about STP BPDUs. This confirms whether the peer device periodically
sends STP BPDUs. Perform the following configurations:
Configure a traffic policy.
[Switch]traffic classifier stp
[Switch-classifier-stp]if-match destination-mac 0180-c200-0000
[Switch]traffic behavior stp
[Switch-behavior-stp]statistic enable
[Switch]traffic policy stp
[Switch-trafficpolicy-stp]classifier stp behavior stp
Issue 01 (2013-10-30)
128
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
stp inbound
2/0/6
If the traffic statistics show that STP BPDUs increase periodically, but the number displayed
in the BPDU Received field does not increase periodically, run the display cpu-defend
statistics all command to check whether a large number of other packets are sent to the CPU
for processing.
[Switch]display cpu-defend statistics all
CPCAR on slot 1
------------------------------------------------------------------------------Packet Type
Pass(Bytes) Drop(Bytes)
Pass(Packets)
Drop(Packets)
arp-request
8639817608
136756196
127257200
2011692
arp-reply
591903504
8257252
8704451
121430
stp
2436513867
0
17536915
0
smart-link
0
0
0
0
ldt
0
0
0
0
lacp
0
0
0
0
lldp
0
0
0
0
dldp
0
0
0
0
vrrp
0
0
0
0
mpls-oam
0
0
0
0
isis
0
0
0
0
dhcp-client
0
0
0
0
dhcp-server
0
0
0
0
igmp
0
0
0
0
pim
0
0
0
0
S series switches use the CPCAR mechanism to classify packets sent to the control plane, and
limit the rate of these packets and schedule packets in queues to ensure security of the control
plane. If some packets exceed the CPCAR threshold and are discarded, run the display cpudefend configuration all command to check whether these packets are in the same queue
with STP BPDUs.
[Frame]dis cpu-defend configuration all
Car Configurations on main board.
---------------------------------------------------------------------Packet Name
Status
Cir(Kbps)
Cbs(Byte) Queue Port-Type
Issue 01 (2013-10-30)
129
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
---------------------------------------------------------------------8021X
Enabled
256
32000
3
NA
arp-mff
Enabled
128
16000
3
NA
arp-miss
Enabled
128
16000
3
NA
arp-reply
Enabled
128
16000
3
NA
arp-request
Enabled
128
16000
3
NA
ssh
stp
Enabled
Enabled
128
512
16000
64000
5
5
NA
NA
Enabled
Enabled
128
128
16000
16000
5
5
NNI
NA
If the reason for high CPU usage still cannot be found, contact Huawei technical support
personnel.
On S series switches in different models and versions, packet types displayed in the display cpudefend statistics all command output may be different.
For box switches in some versions, STP state changes of ports are not recorded in the log buffer by
default. Run the info-center source MSTP channel 4 log level informational command to adjust
the log level.
----End
Description
display version
display device
display patch-information
Issue 01 (2013-10-30)
130
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Command
Description
display current-configuration
display interface
display stp
display trapbuffer
Issue 01 (2013-10-30)
131
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
H3Csw-2
S5700
Two H3C switches and one S5700 form an RSTP ring. H3Csw-1 is the root bridge. The link
between the S5700 and H3Csw-2 is redundant when the network is stable.
Shut down the port on H3Csw-1 connected to the S5700 and restore the port to check the
RSTP fast convergence mechanism. After the link between H3Csw-1 and the S5700 recovers,
the port on H3Csw-1 remains in Discarding state and changes to Forwarding state after 30s.
The upstream device sends a Proposal packet to the downstream device, requesting for
fast transition. After receiving the packet, the downstream device sets the port connected
to the upstream device as a root port and blocks all non-edge ports.
The upstream device then sends an Agreement packet to the downstream device. After
the downstream device receives the packet, the status of the root port changes to
Forwarding.
The downstream device sends an Agreement packet to the upstream device. After
receiving the Agreement packet, the upstream device sets the port connected to the
downstream device as a designated port. The designated port then enters the Forwarding
state.
H3Csw-1 uses the Proposal/Agreement mechanism in common mode. Run the debugging stp
interface GigabitEthernet0/0/8 packet receive command on the S5700 to view STP BPDUs
received by ports. Only RSTP BPDUs with the Proposal bit are displayed.
Port50(GigabitEthernet0/0/8) Rcvd Packet(Length: 43)
Issue 01 (2013-10-30)
132
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
ProtocolVersionID
BPDUType
Flags
Root Identifier
Root Path Cost
Bridge Identifier
Port Identifier
Message Age
Max Age
Hello Time
Forward Delay
Version 1 Length
:
:
:
:
:
:
:
:
:
:
:
:
02
02( RST BPDU )
0e( Proposal DESIGNATED )
0.000f-e2e0-7425
0
0.000f-e2e0-7425
128.206
0
20
2
15
0
3.4.1.4 Solution
On the S5700, run the stp no-agreement-check command on ports connected to H3C
switches for the S5700 to communicate with H3C switches.
3.4.1.5 Summary
When S series switches work with non-Huawei devices, run the stp no-agreement-check
command on S series switches to configure the transition mode according to the
Proposal/Agreement mechanism of non-Huawei devices.
S7700
H3Csw
Ge5/0/1
Ge6/0/0
All ports are added to VLAN 100. GE0/0/21 of S5700 (in V100R006C00SPC800) receives
service traffic and sends the traffic to GE5/0/1 of H3Csw through the connected link
aggregation group (LAG). GE5/0/1 then forwards the traffic to GE6/0/0 of S7700.
The LAG information on H3Csw and S5700 is displayed as follows:
<H3Csw>display link-aggregation verbose 1
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Aggregation ID: 1, AggregationType: Static,
Loadsharing Type: Shar
Aggregation Description:
System ID: 0x8000, 000f-e21e-98a5
Port Status: S -- Selected, T -- sTandby
Local:
Port
Status Priority Flag Oper-Key Link-Status
-------------------------------------------------------------------------------GigabitEthernet0/0/1
S
32768
0x3d 1
Up
GigabitEthernet0/0/2
S
32768
0x3d 1
Up
GigabitEthernet0/0/3
S
32768
0x3d 1
Up
Issue 01 (2013-10-30)
133
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Remote:
Actor
Partner Priority Flag Oper-Key SystemID
-------------------------------------------------------------------------------GigabitEthernet0/0/1
1
32768
0x3d 305
0x8000,0025-9efb-597a
GigabitEthernet0/0/2
2
32768
0x3d 305
0x8000,0025-9efb-597a
GigabitEthernet0/0/3
3
32768
0x3d 305
0x8000,0025-9efb-597a
<S5700>display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1
WorkingMode: STATIC
Preempt Delay: Disabled
Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768
System ID: 0025-9efb-597a
Least Active-linknumber: 1 Max Active-linknumber: 8
Operate status: up
Number Of Up Port In Trunk: 3
-------------------------------------------------------------------------------ActorPortName
Status
PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1
Selected 1GE
32768
1
305
10111100 1
GigabitEthernet0/0/2
Selected 1GE
32768
2
305
10111100 1
GigabitEthernet0/0/3
Selected 1GE
32768
3
305
10111100 1
Partner:
-------------------------------------------------------------------------------ActorPortName
SysPri
SystemID
PortPri PortNo PortKey PortState
GigabitEthernet0/0/1
32768
000f-e21e-98a5 32768
0
1
10111100
GigabitEthernet0/0/2
32768
000f-e21e-98a5 32768
1
1
10111100
GigabitEthernet0/0/3
32768
000f-e21e-98a5 32768
2
1
10111100
After the optical fiber connecting the two GE0/0/2 ports is removed, the two ports are Down
and service traffic is interrupted for about 30s.
Issue 01 (2013-10-30)
Protection
NONE
NONE
134
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Forward delay(s)
Hello time(s)
Max hops
:15
:2
:20
The STP cost of an Eth-Trunk is the cost of a member port divided by the number of member
ports. By default, the cost of GE ports on S5700 is 20000. When all the three member ports in
Eth-Trunk 1 are Up, the STP cost of Eth-Trunk 1 is 6666 (20000/3). After the optical fiber
connected to GE0/0/2 is removed, only two member ports in Eth-Trunk 1 are Up, and the STP
cost of Eth-Trunk 1 is 10000 (20000/2). When selecting port roles, STP calculates the path
cost according to the STP cost of ports.
Eth-Trunk 1 is the root port of S5700. After the STP cost of Eth-Trunk 1 changes, STP
calculation is triggered and STP reconverges on GE0/0/21. Because STP is not enabled on the
peer end of GE0/0/21 on S5700, STP converges slowly on GE0/0/21 and traffic is interrupted
for 30s.
3.4.2.4 Solution
1.
2.
Set the STP cost of Eth-Trunk 1 to 10000 so that STP convergence is not triggered after
member ports of Eth-Trunk 1 are Down.
3.4.2.5 Summary
If STP is globally enabled on a device and a port is connected to a peer device that is not
enabled with STP, configure the port as an STP edge port or disable STP on the port.
STP is triggered to reconverge after the status of member ports in an Eth-Trunk changes.
Set the STP cost of the Eth-Trunk to a fixed value smaller than the cost of its physical
member ports.
Swtich-2
GE0/0/20
GE0/0/23
GE0/0/24
STP is enabled on two S series switches connected through GE0/0/20, GE0/0/23, and
GE0/0/24 on the two switches. Configure MSTP multi-instance.
instance 1 vlan 101
instance 2 vlan 99
The GE0/0/20 ports belong to instance 1 and 2. The GE0/0/23 ports only belong to instance 1.
The GE0/0/24 ports only belong to instance 2.
The GE0/0/20 ports in instance 1 and 2 are in Forwarding state. However, the GE0/0/20 ports
are required to be in different STP state in instance 1 and 2.
Issue 01 (2013-10-30)
135
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Role
ROOT
ALTE
ALTE
MAST
ALTE
MAST
ALTE
STP State
FORWARDING
DISCARDING
DISCARDING
FORWARDING
DISCARDING
FORWARDING
DISCARDING
Protection
NONE
NONE
NONE
NONE
NONE
NONE
NONE
Protection
NONE
NONE
NONE
NONE
NONE
NONE
NONE
Revision level
Revision level
:0
:0
The command output shows that the two switches have different region names. They perform
calculation between regions and the calculation of instance 0 takes effect for all instances.
3.4.3.4 Solution
All region configurations of the two switches are the same except the region name, and no
service is loaded on the two switches. Change the region name of Switch-2 to solve the
problem.
[Switch-2]stp region-configuration
Issue 01 (2013-10-30)
136
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
[Switch-2-mst-region]region-name vlan101
[Switch-2-mst-region] active region-configuration
3.4.3.5 Summary
By default, S series switches use the system MAC address as the region name. In MSTP
planning, pay attention to the region name and mapping between VLANs and instances in the
region configuration. Changes in the region configuration trigger MSTP recalculation. After
the network is stable, consider the impact on services when changing the region configuration.
Eth-trunk0
Switch-2
GE0/19
ATAE
slot7
GE0/19
GE0/15
ATAE
slot8
GE0/17
O&M
switch
Two S series switches and the ATAE switch board form an STP ring. The two slots of the
ATAE switch board can be considered as two switches that are connected through GE0/15
ports on the two slots. Swtich-1 is the root bridge and Swtich-2 is the backup root bridge. In
normal situations, GE0/19 of ATAE slot8 is the blocked port. Switch-1 and Switch-2 have
VRRP enabled and function as gateways of the ATAE switchboard. When the two switches
are faulty, service traffic sent by the ATAE switch board is interrupted.
Services are temporarily restored after Swtich-1 is powered off.
137
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
switches. If the Eth-Trunk negotiation fails after the fault occurs, STP reconverges and
heartbeat packets are forwarded through the ATAE switch board.
Power on Swith-1 but do not connect it the the network. Check the configuration file of
Switch-1. The configuration file shows that STP root protection is enabled on all ports in Up
state. After receiving STP BPDUs with a higher priority, the ports enter the Discarding state
and stop forwarding packets. Because Switch-1 is restarted, it is unknown whether Switch-1
receives packets with a higher priority when the fault occurs. Analyze the STP history
calculation information of the ATAE switch board.
According to the STP history calculation information, GE0/19 of ATAE slot8 receives STP
BPDUs from the device whose MAC address is 000f-e2f6-1d18 and the priority is 0,
triggering STP recalculation.
GigabitEthernet0/19
Alte->Desi
at 2011/10/29 04:38:06
{0.5489-98f5-26bf 18 4096. 5489-98f5-834d 0 4096. 5489-98f5-834d 128.18}
GigabitEthernet0/17
Desi->Root
at 2011/10/29 04:38:06
{0.000f-e2f6-1d18 0 0.000f-e2f6-1d18 0 0.000f-e2f6-1d18 128.16}
GigabitEthernet0/15
Root->Desi
at 2011/10/29 04:38:06
{0. 5489-98f5-26bf 20000 32768.0018-8200-5428 0 32768.0018-8200-5428 128.14}
STP selects the root bridge according to the bridge ID (the bridge priority and MAC address).
When two devices have the same bridge priority, the device with a smaller system MAC
address has a smaller bridge ID and a higher priority. When the fault occurs, ATAE slot8
receives STP BPDUs with a higher priority (0.000f-e2f6-1d18) than the priority (0.000f-e2f626bf) of the original root bridge Switch-1. As a result, ports configured with STP root
protection on Switch-1 are blocked. VRRP heartbeat packets cannot be forwarded between
Switch-1 and Switch-2. Both the two switches become the VRRP master and services are
interrupted.
It is found that 000f-e2f6-1d18 is the system MAC address of an O&M switch connected to
GE0/17. The switch is incorrectly connected to the network when the fault occurs.
3.4.4.4 Solution
Disable STP on ports that are not added to the STP ring on the ATAE switch board.
3.4.4.5 Summary
If a device with a higher priority sends packets to preempt to be the root bridge, services may
be interrupted. When configuring root protection to protect the root bridge, consider the
situation and avoid it beforehand.
Issue 01 (2013-10-30)
138
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
RRPP
Issue 01 (2013-10-30)
139
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
RRPP domain
An RRPP domain consists of a group of interconnected switches/routers with the same
domain ID and control VLAN ID. The RRPP domain contains the following entities:
major ring, sub-ring, control VLAN, master node, transit node, edge node, assistant edge
node, common port, edge port, primary port, and secondary port.
RRPP ring
A physical RRPP ring uses an Ethernet ring topology. Each RRPP ring is a unit of the
RRPP domain that it belongs to. An RRPP domain comprises a single ring or multiple
interconnected rings. When multiple interconnected rings exist, one ring is the major ring
and the others are sub-rings.
Control VLAN
A control VLAN is used to transmit only RRPP packets. An RRPP domain has two
control VLANs: major control VLAN and sub-control VLAN.
RRPP packets on the major ring are transmitted in the major control VLAN, and RRPP
packets on the sub-rings are transmitted in the sub-control VLAN.
Node
Each switch on an RRPP ring is a node. Nodes on the RRPP ring are classified into
following types:
Issue 01 (2013-10-30)
Master node
140
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The master node determines how to handle topology changes. Each RRPP ring must
have only one master node.
Any switch on the Ethernet ring can serve as the master node.
Transit node
On an RRPP ring, all nodes except the master node are transit nodes. A transit node
monitors the status of its directly-connected links and notifies the master node of link
changes.
Port role
The Hello timer specifies the interval at which the master node sends Hello packets from
the primary port. The Hello timer value ranges from 1 to 10, in seconds.
The Fail timer specifies the maximum delay period during which the primary port sends
a Hello packet and the secondary port receives the Hello packet. The Fail timer value
ranges from 3 to 30, in seconds.
The Fail timer on the transit node specifies the time to unblock the temporarily blocked port.
When a link becomes faulty, RRPP immediately sends a LINK-DOWN packet to notify the master node
of the link fault. The master node then unblocks the secondary port. When the link recovers, the master
node sends a COMPLETE-FLUSH-FDB packet to request the transit node to unblock the temporarily
blocked port. This process is irrelevant to the value range of the Hello and Fail timers.
Issue 01 (2013-10-30)
141
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Packet Type
Table 1.1 lists different types of RRPP packets.
Table 1.1 Types of RRPP packets
Type
Description
HEALTH
(HELLO)
LINK-DOWN
COMMONFLUSH-FDB
Packet sent by the master node to request that transit nodes update their
MAC address forwarding entries and ARP entries.
COMPLETEFLUSH-FDB
Packet sent by the master node to request that transit nodes, edge
nodes, or assistant edge nodes update their MAC address forwarding
entries and ARP entries, and enable transit nodes to unblock
temporarily blocked ports of the data VLAN.
EDGE-HELLO
MAJOR-FAULT
The master node periodically sends Hello packets from its primary port based on the
value of the Hello timer.
2.
The Hello packet is transmitted along transit nodes on the ring. Normally, the master
node receives the Hello packet on its secondary port.
Issue 01 (2013-10-30)
If the master node receives the Hello packet on its secondary port before the Fail
timer times out, the master node considers the ring complete.
If the master node does not receive the Hello packet on its secondary port after the
Fail timer times out, the master node considers the ring faulty.
142
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
RRPP Multi-Instance
On a common RRPP network, a physical ring contains only one RRPP domain and a physical
ring has only one master node. When the master node is in Complete state, the master node
blocks the secondary port, prohibiting all user packets from passing through. Then all user
packets are transmitted on the RRPP ring along one path. As a result, the link at the secondary
port side of the master node becomes idle, wasting bandwidth.
RRPP multi-instance is implemented by domain, allowing one physical ring to have multiple
RRPP domains configured. In a domain, all ports, node roles, and topologies comply with
RRPP rules. Therefore, a physical ring has multiple master nodes. Each master node
independently detects the completeness of the physical ring and blocks or unblocks its
secondary port accordingly. RRPP domains have different protected VLANs configured.
RRPP in a domain takes effect only for data from its protected VLANs. When the master node
in a domain blocks its secondary port, data from protected VLANs in other domains are not
affected. This implements link backup and traffic load balancing.
Issue 01 (2013-10-30)
143
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
As shown in Figure 2.1, Instance 1 is created in Domain 1, and data of VLANs 100 to 200 is
mapped to Instance 1 and transmitted along the path Switch A->Switch C->Switch E. Master
2 (Switch C) serves as the master node in Domain 2. The secondary port on Master 2 is
blocked. Only data in VLANs 201 to 400 is prohibited and data in VLANs 100 to 200 can
pass through. Instance2 is created in Domain 2, and data in VLANs 201 to 400 is mapped to
Instance2 and transmitted along the path Switch B->Switch D->Switch E. Master 1 (Switch
D) serves as the master node in Domain 1. The secondary port on Master 1 is blocked. Only
data in VLANs 100 to 200 is prohibited and data in VLANs 201 to 400 can pass through.
Figure 2.1 RRPP multi-instance
Ring Group
In RRPP multi-instance, sub-rings are grouped to reduce the number of received and sent
EDGE-HELLO packets and to improve system performance.
In the path status detection mechanism for sub-ring protocol packets on the major ring, the
edge node on a sub-ring periodically sends EDGE-HELLO packets to the two RRPP ports on
the major ring to detect the completeness of the path for sub-ring protocol packets.
As shown in Figure 2.2, the edge nodes on multiple sub-rings (sub-ring 2 and sub-ring 3 in
Domain 1; sub-ring 2 and sub-ring 3 in Domain 2) are the same device, and the assistant edge
nodes on the sub-rings are also the same device. In addition, the edge nodes and assistant edge
nodes connect to the major ring in the same link. The EDGE-HELLO packets from edge
nodes on the sub-rings arrive at assistant edge nodes along the same path. In this case, the
sub-rings with the same edge nodes and assistant edge nodes can be added to a ring group. A
sub-ring in the ring group is selected to send EDGE-HELLO packets to detect the path for
sub-ring protocol packets on the major ring. This reduces the number of received and sent
EDGE-HELLO packets and improves system performance.
Issue 01 (2013-10-30)
144
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
145
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Configure ports to be added to the RRPP ring on the switches so that VLAN data can
pass through the ports. Disable protocols that conflict with RRPP, such as STP.
2.
3.
Map VLANs that are allowed on the RRPP ring to instance 1, including data VLANs 100
to 300 and control VLANs 20 and 21.
4.
In the RRPP domain, configure a protected VLAN, create an RRPP ring, and configure
SwitchA, SwitchB, SwitchC, and SwitchD as nodes on ring 1 in domain 1. Configure
SwitchA as the master node on ring 1, and configure other switches as transit nodes.
5.
Enable the RRPP ring and RRPP protocol on the switches to make RRPP take effect.
# The configurations on SwitchB, SwitchC, and SwitchD are similar to that on SwitchA
and not provided here. For details, see the configuration files.
Step 2 Map instance 1 to control VLAN 20 and VLAN 21, and data VLANs 100 to 300. The process
to create the VLANs is not provided here.
Issue 01 (2013-10-30)
146
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# The configurations on SwitchB, SwitchC, and SwitchD are similar to that on SwitchA
and not provided here. For details, see the configuration files.
Step 3 Configure the ports to be added to the RRPP ring as trunk ports, allow data VLANs 100 to
300 to pass through the ports, and disable STP on the ports.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port link-type trunk
[SwitchA-GigabitEthernet1/0/1] port trunk allow-pass vlan 100 to 300
[SwitchA-GigabitEthernet1/0/1] stp disable
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface gigabitethernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] port link-type trunk
[SwitchA-GigabitEthernet1/0/2] port trunk allow-pass vlan 100 to 300
[SwitchA-GigabitEthernet1/0/2] stp disable
[SwitchA-GigabitEthernet1/0/2] quit
# The configurations on SwitchB, SwitchC, and SwitchD are similar to that on SwitchA
and not provided here. For details, see the configuration files.
Step 4 Specify a protected VLAN, and create and enable an RRPP ring.
# Configure the protected VLAN on SwitchA, configure SwitchA as the master node on
ring 1, and specify the primary and secondary ports.
[SwitchA] rrpp domain 1
[SwitchA-rrpp-domain-region1] protected-vlan reference-instance 1
[SwitchA-rrpp-domain-region1] ring 1 node-mode master primary-port
gigabitethernet 1/0/1 secondary-port gigabitethernet 1/0/2 level 0
[SwitchA-rrpp-domain-region1] ring 1 enable
[SwitchA-rrpp-domain-region1] quit
# The configurations on SwitchC and SwitchD are similar to that on SwitchB and not
provided here. For details, see the configuration files.
Step 5 Enable RRPP.
After the RRPP ring configuration is complete, enable RRPP on each node of the ring to
activate the RRPP ring. The configuration procedure is as follows:
# Enable RRPP on SwitchA.
[SwitchA] rrpp enable
147
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Run the display rrpp brief command on SwitchA. The command output is as
follows:
<SwitchA> display rrpp brief
Abbreviations for Switch Node Mode :
M - Master , T - Transit , E - Edge , A - Assistant-Edge
RRPP Protocol Status: Enable
RRPP Working Mode: HW
RRPP Linkup Delay Timer: 0 sec (0 sec default)
Number of RRPP Domains: 1
Domain Index : 1
Control VLAN : major 20
sub 21
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
sec)
Ring
Ring
Is
ID
Level
Enabled
Node
Primary/Common
Secondary/Edge
Mode
Port
Port
------------------------------------------------------------------------------1
0
M
GigabitEthernet1/0/1
GigabitEthernet1/0/2
Yes
The command output shows that RRPP is enabled on SwitchA, the major control
VLAN of domain 1 is VLAN 20 and the sub-control VLAN is VLAN 21, and
SwitchA is the master node on ring 1. The primary port is GigabitEthernet1/0/1 and
the secondary port is GigabitEthernet1/0/2.
Run the display rrpp verbose domain command on SwitchA. The command output
is as follows:
# Check detailed information about SwitchA in domain 1.
<SwitchA> display rrpp verbose domain 1
Domain Index
: 1
Control VLAN
: major 20
sub 21
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
sec)
RRPP Ring
Ring Level
Node Mode
Ring State
Is Enabled
Issue 01 (2013-10-30)
:
:
:
:
:
1
0
Master
Complete
Enable
Is Active : Yes
148
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Primary port
: GigabitEthernet1/0/1
Secondary port : GigabitEthernet1/0/2
Port status: UP
Port status: BLOCKED
Configuration Files
Issue 01 (2013-10-30)
149
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
ring 1 enable
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 20 to 21 100 to 300
stp disable
#
interface GigabitEthernet1/0/2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 20 to 21 100 to 300
stp disable
#
Issue 01 (2013-10-30)
150
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
As shown in Figure 1.1, the network is required to prevent loops when the ring is complete
and implement fast convergence to rapidly restore communication between nodes on the ring
Issue 01 (2013-10-30)
151
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
when the ring fails. RRPP can meet this requirement. RRPP supports multiple rings. In this
example, configure the aggregation layer as the major ring and the access layer as the subring, which simplifies the network configuration.
Figure 1.2 is the simplified networking diagram of Figure 1.1. SwitchB, SwitchA, SwitchD,
and SwitchC map PE-AGG1, PE-AGG2, PE-AGG3, and UPE1 respectively. Figure 1.2 is
used as an example to describe how to configure intersecting RRPP rings with a single
instance.
Figure 1.2 Intersecting RRPP rings with a single instance
2.
Map the VLANs that need to pass through the RRPP ring to instance 1, including data
VLANs 2 to 9 and control VLANs 10 and 11 (VLAN 11 is the sub-control VLAN
generated by the switch).
3.
4.
Configure ports to be added to the RRPP ring on the switches so that VLAN data can
pass through the ports. Disable protocols that conflict with RRPP, such as STP.
5.
Configure a protected VLAN and create an RRPP ring in the RRPP domain.
6.
Configure SwitchB as the master node on the major ring and configure SwitchA and
SwitchD as transit nodes on the major ring.
Configure SwitchC as the master node on the sub-ring, configure SwitchA as the
edge node on the sub-ring, and configure SwitchD as the assistant edge node on the
sub-ring.
Enable the RRPP ring and RRPP protocol on the switches to make RRPP take effect.
VLANs that are not mentioned in this example are considered nonexistent. However, switch ports join
VLAN 1 by default. You need to remove corresponding ports from VLAN 1.
152
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure instance 1, and map it to the data VLANs and control VLANs allowed by
the RRPP ports.
[SwitchB] stp region-configuration
[SwitchB-mst-region] instance 1 vlan 2 to 11
[SwitchB-mst-region] active region-configuration
[SwitchB-mst-region] quit
# Configure the ports to be added to the RRPP ring as trunk ports, allow VLANs 2 to 9 to
pass through the ports, and disable STP on the ports.
[SwitchB] interface gigabitethernet 2/0/1
[SwitchB-GigabitEthernet2/0/1] port link-type trunk
[SwitchB-GigabitEthernet2/0/1] port trunk allow-pass vlan 2 to 9
[SwitchB-GigabitEthernet2/0/1] stp disable
[SwitchB-GigabitEthernet2/0/1] quit
[SwitchB] interface gigabitethernet 2/0/2
[SwitchB-GigabitEthernet2/0/2] port link-type trunk
[SwitchB-GigabitEthernet2/0/2] port trunk allow-pass vlan 2 to 9
[SwitchB-GigabitEthernet2/0/2] stp disable
[SwitchB-GigabitEthernet2/0/2] quit
# Configure the primary and secondary ports on the master node of the major ring.
[SwitchB] rrpp domain 1
[SwitchB-rrpp-domain-region1] ring 1 node-mode master primary-port
gigabitethernet 2/0/1 secondary-port gigabitethernet 2/0/2 level 0
[SwitchB-rrpp-domain-region1] ring 1 enable
[SwitchB-rrpp-domain-region1] quit
# Configure instance 1, and map it to the data VLANs and control VLANs allowed by
the RRPP ports.
[SwitchC] stp region-configuration
[SwitchC-mst-region] instance 1 vlan 2 to 11
[SwitchC-mst-region] active region-configuration
[SwitchC-mst-region] quit
Issue 01 (2013-10-30)
153
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure the ports to be added to the RRPP ring as trunk ports, allow VLANs 2 to 9 to
pass through the ports, and disable STP on the ports.
[SwitchC] interface gigabitethernet 1/0/1
[SwitchC-GigabitEthernet1/0/1] port link-type trunk
[SwitchC-GigabitEthernet1/0/1] port trunk allow-pass vlan 2 to 9
[SwitchC-GigabitEthernet1/0/1] stp disable
[SwitchC-GigabitEthernet1/0/1] quit
[SwitchC] interface gigabitethernet 1/0/2
[SwitchC-GigabitEthernet1/0/2] port link-type trunk
[SwitchC-GigabitEthernet1/0/2] port trunk allow-pass vlan 2 to 9
[SwitchC-GigabitEthernet1/0/2] stp disable
[SwitchC-GigabitEthernet1/0/2] quit
# Configure the primary and secondary ports on the master node of the sub-ring.
[SwitchC] rrpp domain 1
[SwitchC-rrpp-domain-region1] ring 2 node-mode master primary-port
gigabitethernet 1/0/1 secondary-port gigabitethernet 1/0/2 level 1
[SwitchC-rrpp-domain-region1] ring 2 enable
[SwitchC-rrpp-domain-region1] quit
Step 3 Configure SwitchA as the transit node on the major ring and the edge node on the sub-ring.
# Create data VLANs 2 to 9 on SwitchA.
<Switch> system-view
[Switch] sysname SwitchA
[SwitchA] vlan batch 2 to 9
# Configure instance 1, and map it to the data VLANs and control VLANs allowed by
the RRPP ports.
[SwitchA] stp region-configuration
[SwitchA-mst-region] instance 1 vlan 2 to 11
[SwitchA-mst-region] active region-configuration
[SwitchA-mst-region] quit
# Configure the ports to be added to the RRPP ring as trunk ports, allow VLANs 2 to 9 to
pass through the ports, and disable STP on the ports.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port link-type trunk
[SwitchA-GigabitEthernet1/0/1] port trunk allow-pass vlan 2 to 9
[SwitchA-GigabitEthernet1/0/1] stp disable
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface gigabitethernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] port link-type trunk
[SwitchA-GigabitEthernet1/0/2] port trunk allow-pass vlan 2 to 9
[SwitchA-GigabitEthernet1/0/2] stp disable
[SwitchA-GigabitEthernet1/0/2] quit
[SwitchA] interface gigabitethernet 1/0/3
Issue 01 (2013-10-30)
154
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
[SwitchA-GigabitEthernet1/0/3]
[SwitchA-GigabitEthernet1/0/3]
[SwitchA-GigabitEthernet1/0/3]
[SwitchA-GigabitEthernet1/0/3]
# Configure the primary and secondary ports on the transit node of the major ring.
[SwitchA] rrpp domain 1
[SwitchA-rrpp-domain-region1] ring 1 node-mode transit primary-port
gigabitethernet 1/0/2 secondary-port gigabitethernet 1/0/1 level 0
[SwitchA-rrpp-domain-region1] ring 1 enable
[SwitchA-rrpp-domain-region1] quit
# Configure the common and edge ports of the edge node on the sub-ring.
[SwitchA] rrpp domain 1
[SwitchA-rrpp-domain-region1] ring 2 node-mode edge common-port
gigabitethernet 1/0/2 edge-port gigabitethernet 1/0/3
[SwitchA-rrpp-domain-region1] ring 2 enable
[SwitchA-rrpp-domain-region1] quit
Step 4 Configure SwitchD as the transit node on the major ring and the assistant edge node on the
sub-ring.
# Create data VLANs 2 to 9 on SwitchD.
<Switch> system-view
[Switch] sysname SwitchD
[SwitchD] vlan batch 2 to 9
# Configure instance 1, and map it to the data VLANs and control VLANs allowed by
the RRPP ports.
[SwitchD] stp region-configuration
[SwitchD-mst-region] instance 1 vlan 2 to 11
[SwitchD-mst-region] active region-configuration
[SwitchD-mst-region] quit
# Configure the ports to be added to the RRPP ring as trunk ports, allow VLANs 2 to 9 to
pass through the ports, and disable STP on the ports.
[SwitchD] interface gigabitethernet 1/0/1
[SwitchD-GigabitEthernet1/0/1] port link-type trunk
[SwitchD-GigabitEthernet1/0/1] port trunk allow-pass vlan 2 to 9
[SwitchD-GigabitEthernet1/0/1] stp disable
[SwitchD-GigabitEthernet1/0/1] quit
[SwitchD] interface gigabitethernet 1/0/2
[SwitchD-GigabitEthernet1/0/2] port link-type trunk
[SwitchD-GigabitEthernet1/0/2] port trunk allow-pass vlan 2 to 9
[SwitchD-GigabitEthernet1/0/2] stp disable
[SwitchD-GigabitEthernet1/0/2] quit
[SwitchD] interface gigabitethernet 1/0/3
[SwitchD-GigabitEthernet1/0/3] port link-type trunk
[SwitchD-GigabitEthernet1/0/3] port trunk allow-pass vlan 2 to 9
[SwitchD-GigabitEthernet1/0/3] stp disable
Issue 01 (2013-10-30)
155
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
[SwitchD-GigabitEthernet1/0/3] quit
# Configure the primary and secondary ports on the transit node of the major ring.
[SwitchD] rrpp domain 1
[SwitchD-rrpp-domain-region1] ring 1 node-mode transit primary-port
gigabitethernet 1/0/2 secondary-port gigabitethernet 1/0/1 level 0
[SwitchD-rrpp-domain-region1] ring 1 enable
[SwitchD-rrpp-domain-region1] quit
# Configure the common and edge ports on the assistant edge node of the sub-ring.
[SwitchD] rrpp domain 1
[SwitchD-rrpp-domain-region1] ring 2 node-mode assistant-edge common-port
gigabitethernet 1/0/2 edge-port gigabitethernet 1/0/3
[SwitchD-rrpp-domain-region1] ring 2 enable
[SwitchD-rrpp-domain-region1] quit
# The configurations on SwitchB, SwitchC, and SwitchD are similar to that on SwitchA
and not provided here. For details, see the configuration files.
Step 6 Verify the configuration.
After the preceding configurations are complete and the network becomes stable, run the
following commands to verify the configuration.
Run the display rrpp brief command on SwitchB. The command output is as
follows:
<SwitchB> display rrpp brief
Abbreviations for Switch Node Mode :
M - Master , T - Transit , E - Edge , A - Assistant-Edge
RRPP Protocol Status: Enable
RRPP Working Mode: HW
RRPP Linkup Delay Timer: 0 sec (0 sec default)
Number of RRPP Domains: 1
Domain Index : 1
Control VLAN : major 10
sub 11
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
sec)
Ring
Ring
Is
ID
Level
Enabled
Node
Primary/Common
Secondary/Edge
Mode
Port
Port
--------------------------------------------------------------------------1
0
M
GigabitEthernet2/0/1
GigabitEthernet2/0/2
Yes
Issue 01 (2013-10-30)
156
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The command output shows that RRPP is enabled on SwitchB, the major control
VLAN is VLAN 10 and the sub-control VLAN is VLAN 11, and SwitchB is the
master node on the major ring, with GE2/0/1 as the primary port and GE2/0/2 as the
secondary port.
Run the display rrpp verbose domain command on SwitchB. The command output
is as follows:
<SwitchB> display rrpp verbose domain 1
Domain Index
: 1
Control VLAN
: major 10
sub 11
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
sec)
RRPP Ring
Ring Level
Node Mode
Ring State
Is Enabled
Primary port
Secondary port
:
:
:
:
:
:
:
1
0
Master
Complete
Enable
GigabitEthernet2/0/1
GigabitEthernet2/0/2
Is Active : Yes
Port status: UP
Port status: BLOCKED
The command output shows that the ring is in Complete state, and the secondary port
on the master node is blocked.
Run the display rrpp brief command on SwitchC. The command output is as
follows:
<SwitchC> display rrpp brief
Abbreviations for Switch Node Mode :
M - Master , T - Transit , E - Edge , A - Assistant-Edge
RRPP Protocol Status: Enable
RRPP Working Mode: HW
RRPP Linkup Delay Timer: 0 sec (0 sec default)
Number of RRPP Domains: 1
Domain Index : 1
Control VLAN : major 10
sub 11
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec) Fail Timer : 6 sec(default is 6
sec)
Ring
Ring
Is
ID
Level
Enabled
Node
Primary/Common
Secondary/Edge
Mode
Port
Port
------------------------------------------------------------------------------2
1
M
GigabitEthernet2/0/1
GigabitEthernet2/0/2
Yes
The command output shows that RRPP is enabled on SwitchC, the major control
VLAN is VLAN 10 and the sub-control VLAN is VLAN 11, and SwitchC is the
master node on the sub-ring, with GE1/0/1 as the primary port and GE1/0/2 as the
secondary port.
Issue 01 (2013-10-30)
Run the display rrpp verbose domain command on SwitchC. The command output
is as follows:
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co.,
Ltd.
157
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
RRPP Ring
: 2
Ring Level
: 1
Node Mode
: Master
Ring State
: Complete
Is Enabled
: Enable
Primary port
: GigabitEthernet2/0/1
Secondary port : GigabitEthernet2/0/2
Is Active : Yes
Port status: UP
Port status: BLOCKED
The command output shows that the sub-ring is in Complete state, and the secondary
port of the master node on the sub-ring is blocked.
Run the display rrpp brief command on SwitchA. The command output is as
follows:
<SwitchA> display rrpp brief
Abbreviations for Switch Node Mode :
M - Master , T - Transit , E - Edge , A - Assistant-Edge
RRPP Protocol Status: Enable
RRPP Working Mode: HW
RRPP Linkup Delay Timer: 0 sec (0 sec default)
Number of RRPP Domains: 1
Domain Index : 1
Control VLAN : major 10
sub 11
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
sec)
Ring
Ring
Is
ID
Level
Enabled
Node
Primary/Common
Secondary/Edge
Mode
Port
Port
------------------------------------------------------------------------------1
0
T
GigabitEthernet1/0/2
GigabitEthernet1/0/1
Yes
2
1
E
GigabitEthernet1/0/2
GigabitEthernet1/0/3
Yes
The command output shows that RRPP is enabled on SwitchA, the major control
VLAN is VLAN 10 and the sub-control VLAN is VLAN 11, and SwitchA is the
transit node on the major ring 1, with GE1/0/2 as the primary port and GE1/0/1 as the
secondary port. SwitchA is also the edge node on sub-ring 2, with GE1/0/2 as the
common port and GE1/0/3 as the edge port.
Run the display rrpp verbose domain command on SwitchA. The command output
is as follows:
<SwitchA> display rrpp verbose domain 1
Domain Index : 1
Issue 01 (2013-10-30)
158
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
1
0
Transit
Linkup
Enable
GigabitEthernet1/0/2
GigabitEthernet1/0/1
Is Active : Yes
Port status: UP
Port status: UP
RRPP Ring
Ring Level
Node Mode
Ring State
Is Enabled
Common port
Edge port
2
1
Edge
Linkup
Enable
GigabitEthernet1/0/2
GigabitEthernet1/0/3
Is Active : Yes
Port status: UP
Port status: UP
:
:
:
:
:
:
:
Run the display rrpp brief command on SwitchD. The command output is as
follows:
<SwitchD> display rrpp brief
Abbreviations for Switch Node Mode :
M - Master , T - Transit , E - Edge , A - Assistant-Edge
RRPP Protocol Status: Enable
RRPP Working Mode: HW
RRPP Linkup Delay Timer: 0 sec (0 sec default)
Number of RRPP Domains: 1
Domain Index : 1
Control VLAN : major 10
sub 11
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
sec)
Ring
Ring
Is
ID
Level
Enabled
Node
Primary/Common
Secondary/Edge
Mode
Port
Port
------------------------------------------------------------------------------1
0
T
GigabitEthernet1/0/2
GigabitEthernet1/0/1
Yes
2
1
A
GigabitEthernet1/0/2
GigabitEthernet1/0/3
Yes
The command output shows that RRPP is enabled on SwitchD, the major control
VLAN is VLAN 10 and the sub-control VLAN is VLAN 11, and SwitchD is the
transit node on the major ring 1, with GE1/0/2 as the primary port and GE1/0/1 as the
secondary port. SwitchD is also the assistant edge node on sub-ring 2, with GE1/0/2
as the common port and GE1/0/3 as the edge port.
Issue 01 (2013-10-30)
159
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Run the display rrpp verbose domain command on SwitchD. The command output
is as follows:
<SwitchD> display rrpp verbose domain 1
Domain Index : 1
Control VLAN : major 10
sub 11
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
sec)
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
1
0
Transit
Linkup
Enable
GigabitEthernet1/0/2
GigabitEthernet1/0/1
RRPP Ring
Ring Level
Node Mode
: 2
: 1
: Assistant-edge
Ring State
Is Enabled
Common port
Edge port
:
:
:
:
Linkup
Enable
GigabitEthernet1/0/2
GigabitEthernet1/0/3
Is Active : Yes
Port status: UP
Port status: UP
Is Active : Yes
Port status: UP
Port status: UP
Configuration Files
Issue 01 (2013-10-30)
160
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
interface GigabitEthernet1/0/2
port link-type trunk
undo port trunk allow-pass vlan
port trunk allow-pass vlan 2 to
stp disable
#
interface GigabitEthernet1/0/3
port link-type trunk
undo port trunk allow-pass vlan
port trunk allow-pass vlan 2 to
stp disable
#
return
1
11
1
9 11
Issue 01 (2013-10-30)
161
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
instance 1 vlan 2 to 11
active region-configuration
#
rrpp domain 1
control-vlan 10
protected-vlan reference-instance 1
ring 2 node-mode master primary-port GigabitEthernet1/0/1 secondary-port
GigabitEthernet1/0/2 level 1
ring 2 enable
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 9 11
stp disable
#
interface GigabitEthernet1/0/2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 9 11
stp disable
#
return
Issue 01 (2013-10-30)
162
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
stp disable
#
interface GigabitEthernet1/0/3
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 9 11
stp disable
#
return
Issue 01 (2013-10-30)
163
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Table 1.1 lists the mappings between protected VLANs and instances in Domain 1 and
Domain 2.
Table 1.1 Mappings between protected VLANs and instances.
Domain
ID
Control VLAN
Data VLAN
Instance
Domain 1
Instance 1
Domain 2
Instance 2
Table 1.2 lists the master node on each ring, and the primary and secondary ports on each
master node.
Issue 01 (2013-10-30)
164
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Table 1.2 Master node and its primary and secondary ports
Ring ID
Master
Node
Primary
Port
Secondary
Port
Ring Type
Ring 1 in
Domain 1
PE-AGG
GE1/0/0
GE2/0/0
Major ring
Ring 1 in
Domain 2
PE-AGG
GE2/0/0
GE1/0/0
Major ring
Ring 2 in
Domain 1
CE1
GE1/0/0
GE2/0/0
Sub-ring
Ring 2 in
Domain 2
CE1
GE2/0/0
GE1/0/0
Sub-ring
Ring 3 in
Domain 1
CE2
GE1/0/0
GE2/0/0
Sub-ring
Ring 3 in
Domain 2
CE2
GE2/0/0
GE1/0/0
Sub-ring
Table 1.3 lists the edge nodes, assistant edge nodes, common and edge ports of the sub-rings.
Table 1.3 Edge nodes, assistant edge nodes, common port, and edge ports of the sub-rings
Ring ID
Edge
Node
Commo
n Port
Edge
Port
EdgeAssistant
Node
Commo
n Port
Edge
Port
Ring 2 in
Domain 1
UPE B
GE1/0/0
GE3/0/0
UPE C
GE2/0/0
GE3/0/0
Ring 3 in
Domain 1
UPE B
GE1/0/0
GE3/0/1
UPE C
GE2/0/0
GE3/0/1
Ring 2 in
Domain 2
UPE B
GE1/0/0
GE3/0/0
UPE C
GE2/0/0
GE3/0/0
Ring 3 in
Domain 2
UPE B
GE1/0/0
GE3/0/1
UPE C
GE2/0/0
GE3/0/1
2.
Map the VLANs that need to pass through Domain 1 to instance 1, including data
VLANs and control VLANs.
3.
Map the VLANs that need to pass through Domain 2 to instance 2, including data
VLANs and control VLANs.
4.
Configure ports to be added to the RRPP ring on the switches so that VLAN data can
pass through the ports. Disable protocols that conflict with RRPP, such as STP.
Issue 01 (2013-10-30)
165
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
5.
6.
Add UPEA, UPEB, UPEC, UPED, and PE-AGG to ring 1 in Domain 1 and ring 1 in
Domain 2.
Configure PE-AGG as the master node and configure UPEA, UPEB, UPEC, and
UPED as transit nodes on ring 1 in Domain 1 and ring 1 in Domain 2.
Configure CE 1 as the master node, UPEB as an edge node, and UPEC as an assistant
edge node on ring 2 in Domain 1 and ring 2 in Domain 2.
Configure CE 2 as the master node, UPEB as an edge node, and UPEC as an assistant
edge node on ring 3 in Domain 1 and ring 3 in Domain 2.
7.
To prevent topology flapping, set the LinkUp timer on the master nodes.
8.
To reduce the number of EDGE-HELLO packets sent on the major ring and increase
available bandwidth, add the four sub-rings to a ring group.
9.
Enable the RRPP ring and RRPP protocol on the switches to make RRPP take effect.
VLANs that are not mentioned in this example are considered nonexistent. However, switch ports join
VLAN 1 by default. You need to remove corresponding ports from VLAN 1.
# Create instance 1, and map the control VLANs 5 and 6, and data VLANs 100 to 200 in
Domain 1 to instance 1.
[CE1] stp region-configuration
[CE1-mst-region] instance 1 vlan 5 6 100 to 200
# Create instance 2, and map the control VLANs 10 and 11 and data VLANs 201 to 300
in Domain 2 to instance 2.
[CE1-mst-region] instance 2 vlan 10 11 201 to 300
# The configurations on CE 2, UPEA, UPEB, UPEC, UPED, and PE-AGG are similar to
that on CE 1 and not provided here. For details, see the configuration files.
Step 2 Configure the ports to be added to the RRPP rings.
# Configure the RRPP ports as trunk ports to allow data from VLANs 100 to 300 to pass
through and disable STP on the ports to be added to the RRPP rings.
[CE1] interface gigabitethernet 1/0/0
[CE1-GigabitEthernet1/0/0] port link-type trunk
[CE1-GigabitEthernet1/0/0] port trunk allow-pass vlan 100 to 300
[CE1-GigabitEthernet1/0/0] stp disable
[CE1-GigabitEthernet1/0/0] quit
Issue 01 (2013-10-30)
166
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# The configurations on CE 2, UPEA, UPEB, UPEC, UPED, and PE-AGG are similar to
that on CE 1 and not provided here. For details, see the configuration files.
Step 3 Create RRPP domains and configure protected VLANs and control VLANs.
# Configure the VLANs mapped to instance 1 as the protected VLANs in Domain 1, and
VLAN 5 as the control VLAN.
[CE1] rrpp domain 1
[CE1-rrpp-domain-region1] protected-vlan reference-instance 1
[CE1-rrpp-domain-region1] control-vlan 5
[CE1-rrpp-domain-region1] quit
# Configure the VLANs mapped to instance 2 as the protected VLANs in Domain 2, and
VLAN 10 as the control VLAN.
[CE1] rrpp domain 2
[CE1-rrpp-domain-region2] protected-vlan reference-instance 2
[CE1-rrpp-domain-region2] control-vlan 10
[CE1-rrpp-domain-region2] quit
# The configurations on CE 2, UPEA, UPEB, UPEC, UPED, and PE-AGG are similar to
that on CE 1 and not provided here. For details, see the configuration files.
Step 4 Create RRPP rings.
# Configure PE-AGG as the master node on ring 1 in Domain 1, with GE1/0/0 as the
primary port and GE2/0/0 as the secondary port.
[PE-AGG] rrpp domain 1
[PE-AGG-rrpp-domain-region1] ring 1 node-mode master primary-port
gigabitethernet 1/0/0 secondary-port gigabitethernet 2/0/0 level 0
[PE-AGG-rrpp-domain-region1] ring 1 enable
[PE-AGG-rrpp-domain-region1] quit
# Configure PE-AGG as the master node on ring 1 in Domain 2, with GE2/0/0 as the
primary port and GE1/0/0 as the secondary port.
[PE-AGG] rrpp domain 2
[PE-AGG-rrpp-domain-region2] ring 1 node-mode master primary-port
gigabitethernet 2/0/0 secondary-port gigabitethernet 1/0/0 level 0
[PE-AGG-rrpp-domain-region2] ring 1 enable
[PE-AGG-rrpp-domain-region2] quit
# Configure UPEA as a transit node on ring 1 in Domain 1 and specify its primary and
secondary ports.
[UPEA] rrpp domain 1
[UPEA-rrpp-domain-region1] ring 1 node-mode transit primary-port
gigabitethernet 1/0/0 secondary-port gigabitethernet 2/0/0 level 0
[UPEA-rrpp-domain-region1] ring 1 enable
[UPEA-rrpp-domain-region1] quit
# Configure UPEA as a transit node on ring 1 in Domain 2 and specify its primary and
secondary ports.
[UPEA] rrpp domain 2
[UPEA-rrpp-domain-region2] ring 1 node-mode transit primary-port
gigabitethernet 1/0/0 secondary-port gigabitethernet 2/0/0 level 0
Issue 01 (2013-10-30)
167
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure UPED as a transit node on ring 1 in Domain 1 and specify its primary and
secondary ports.
[UPED] rrpp domain 1
[UPED-rrpp-domain-region1] ring 1 node-mode transit primary-port
gigabitethernet 1/0/0 secondary-port gigabitethernet 2/0/0 level 0
[UPED-rrpp-domain-region1] ring 1 enable
[UPED-rrpp-domain-region1] quit
# Configure UPED as a transit node on ring 1 in Domain 2 and specify its primary and
secondary ports.
[UPED] rrpp domain 2
[UPED-rrpp-domain-region2] ring 1 node-mode transit primary-port
gigabitethernet 1/0/0 secondary-port gigabitethernet 2/0/0 level 0
[UPED-rrpp-domain-region2] ring 1 enable
[UPED-rrpp-domain-region2] quit
# Configure UPEB as a transit node on ring 1 in Domain 1 and specify its primary and
secondary ports.
[UPEB] rrpp domain 1
[UPEB-rrpp-domain-region1] ring 1 node-mode transit primary-port
gigabitethernet 1/0/0 secondary-port gigabitethernet 2/0/0 level 0
[UPEB-rrpp-domain-region1] ring 1 enable
[UPEB-rrpp-domain-region1] quit
# Configure UPEB as a transit node on ring 1 in Domain 2 and specify its primary and
secondary ports.
[UPEB] rrpp domain 2
[UPEB-rrpp-domain-region2] ring 1 node-mode transit primary-port
gigabitethernet 1/0/0 secondary-port gigabitethernet 2/0/0 level 0
[UPEB-rrpp-domain-region2] ring 1 enable
[UPEB-rrpp-domain-region2] quit
# Configure UPEB as an edge node on ring 2 in Domain 1, with GE1/0/0 as the common
port and GE3/0/0 as the edge port.
[UPEB] rrpp domain 1
[UPEB-rrpp-domain-region1] ring 2 node-mode edge common-port gigabitethernet
1/0/0 edge-port gigabitethernet 3/0/0
[UPEB-rrpp-domain-region1] ring 2 enable
[UPEB-rrpp-domain-region1] quit
# Configure UPEB as an edge node on ring 2 in Domain 2, with GE1/0/0 as the common
port and GE3/0/0 as the edge port.
[UPEB] rrpp domain 2
[UPEB-rrpp-domain-region2] ring 2 node-mode edge common-port gigabitethernet
1/0/0 edge-port gigabitethernet 3/0/0
[UPEB-rrpp-domain-region2] ring 2 enable
[UPEB-rrpp-domain-region2] quit
# Configure UPEB as an edge node on ring 3 in Domain 1, with GE1/1/0 as the common
port and GE3/0/0 as the edge port.
[UPEB] rrpp domain 1
[UPEB-rrpp-domain-region1] ring 3 node-mode edge common-port gigabitethernet
1/0/0 edge-port gigabitethernet 3/0/1
[UPEB-rrpp-domain-region1] ring 3 enable
[UPEB-rrpp-domain-region1] quit
Issue 01 (2013-10-30)
168
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure UPEB as an edge node on ring 3 in Domain 2, with GE1/1/0 as the common
port and GE3/0/0 as the edge port.
[UPEB] rrpp domain 2
[UPEB-rrpp-domain-region2] ring 3 node-mode edge common-port gigabitethernet
1/0/0 edge-port gigabitethernet 3/0/1
[UPEB-rrpp-domain-region2] ring 3 enable
[UPEB-rrpp-domain-region2] quit
# Configure UPEC as a transit node on ring 1 in Domain 1 and specify its primary and
secondary ports.
[UPEC] rrpp domain 1
[UPEC-rrpp-domain-region1] ring 1 node-mode transit primary-port
gigabitethernet 1/0/0 secondary-port gigabitethernet 2/0/0 level 0
[UPEC-rrpp-domain-region1] ring 1 enable
[UPEC-rrpp-domain-region1] quit
# Configure UPEC as a transit node on ring 1 in Domain 2 and specify its primary and
secondary ports.
[UPEC] rrpp domain 2
[UPEC-rrpp-domain-region2] ring 1 node-mode transit primary-port
gigabitethernet 1/0/0 secondary-port gigabitethernet 2/0/0 level 0
[UPEC-rrpp-domain-region2] ring 1 enable
[UPEC-rrpp-domain-region2] quit
# Configure UPEC as an assistant edge node on ring 2 in Domain 1, with GE2/0/0 as the
common port and GE3/0/0 as the edge port.
[UPEC] rrpp domain 1
[UPEC-rrpp-domain-region1] ring 2 node-mode assistant-edge common-port
gigabitethernet 2/0/0 edge-port gigabitethernet 3/0/0
[UPEC-rrpp-domain-region1] ring 2 enable
[UPEC-rrpp-domain-region1] quit
# Configure UPEC as an assistant edge node on ring 2 in Domain 2, with GE2/0/0 as the
common port and GE3/0/0 as the edge port.
[UPEC] rrpp domain 2
[UPEC-rrpp-domain-region2] ring 2 node-mode assistant-edge common-port
gigabitethernet 2/0/0 edge-port gigabitethernet 3/0/0
[UPEC-rrpp-domain-region2] ring 2 enable
[UPEC-rrpp-domain-region2] quit
# Configure UPEC as an assistant edge node on ring 3 in Domain 1, with GE2/0/0 as the
common port and GE3/0/1 as the edge port.
[UPEC] rrpp domain 1
[UPEC-rrpp-domain-region1] ring 3 node-mode assistant-edge common-port
gigabitethernet 2/0/0 edge-port gigabitethernet 3/0/1
[UPEC-rrpp-domain-region1] ring 3 enable
[UPEC-rrpp-domain-region1] quit
# Configure UPEC as an assistant edge node on ring 3 in Domain 2, with GE2/0/0 as the
common port and GE3/0/1 as the edge port.
[UPEC] rrpp domain 2
[UPEC-rrpp-domain-region2] ring 3 node-mode assistant-edge common-port
gigabitethernet 2/0/0 edge-port gigabitethernet 3/0/1
[UPEC-rrpp-domain-region2] ring 3 enable
[UPEC-rrpp-domain-region2] quit
# Configure CE 1 as the master node on ring 2 in Domain 1, with GE1/0/0 as the primary
port and GE2/0/0 as the secondary port.
Issue 01 (2013-10-30)
169
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure CE 1 as the master node on ring 2 in Domain 2, with GE2/0/0 as the primary
port and GE1/0/0 as the secondary port.
[CE1] rrpp domain 2
[CE1-rrpp-domain-region2] ring 2 node-mode master primary-port gigabitethernet
2/0/0 secondary-port gigabitethernet 1/0/0 level 1
[CE1-rrpp-domain-region2] ring 2 enable
[CE1-rrpp-domain-region2] quit
# Configure CE 2 as the master node on ring 3 in Domain 1, with GE1/0/0 as the primary
port and GE2/0/0 as the secondary port.
[CE2] rrpp domain 1
[CE2-rrpp-domain-region1] ring 3 node-mode master primary-port gigabitethernet
1/0/0 secondary-port gigabitethernet 2/0/0 level 1
[CE2-rrpp-domain-region1] ring 3 enable
[CE2-rrpp-domain-region1] quit
# Configure CE 2 as the master node on ring 3 in Domain 2, with GE2/0/0 as the primary
port and GE1/0/0 as the secondary port.
[CE2] rrpp domain 2
[CE2-rrpp-domain-region2] ring 3 node-mode master primary-port gigabitethernet
2/0/0 secondary-port gigabitethernet 1/0/0 level 1
[CE2-rrpp-domain-region2] ring 3 enable
[CE2-rrpp-domain-region2] quit
# The configurations on CE 2, UPEA, UPEB, UPEC, UPED, and PE-AGG are similar to
that on CE 1 and not provided here. For details, see the configuration files.
Step 6 Configure ring groups.
# Create ring group 1, which consists of four sub-rings: ring 2 in Domain 1, ring 3 in
Domain 1, ring 2 in Domain 2, and ring 3 in Domain 2.
[UPEC] rrpp ring-group 1
[UPEC-rrpp-ring-group1] domain 1 ring 2 to 3
[UPEC-rrpp-ring-group1] domain 2 ring 2 to 3
[UPEC-rrpp-ring-group1] quit
# Create ring group 1, which consists of four sub-rings: ring 2 in Domain 1, ring 3 in
Domain 1, ring 2 in Domain 2, and ring 3 in Domain 2.
[UPEB] rrpp ring-group 1
[UPEB-rrpp-ring-group1] domain 1 ring 2 to 3
[UPEB-rrpp-ring-group1] domain 2 ring 2 to 3
[UPEB-rrpp-ring-group1] quit
Issue 01 (2013-10-30)
170
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
------------------------------------------------------------------------------1
0
T
GigabitEthernet1/0/0
GigabitEthernet2/0/0
Yes
2
1
E
GigabitEthernet1/0/0
GigabitEthernet3/0/0
Yes
3
1
E
GigabitEthernet1/0/0
GigabitEthernet3/0/1
Yes
Domain Index :
Control VLAN :
Protected VLAN:
Hello Timer
:
Ring
Ring
ID
Level
Enabled
2
major 10
sub 11
Reference Instance 2
1 sec(default is 1 sec)
Node
Primary/Common
Mode
Port
------------------------------------------------------------------------------1
0
T
GigabitEthernet1/0/0
GigabitEthernet2/0/0
Yes
2
1
E
GigabitEthernet1/0/0
GigabitEthernet3/0/0
Yes
3
1
E
GigabitEthernet1/0/0
GigabitEthernet3/0/1
Yes
Issue 01 (2013-10-30)
In Domain 1:
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co.,
Ltd.
171
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The major control VLAN is VLAN 5 and the protected VLANs are the VLANs mapped
to instance 1.
UPEB is a transit node on ring 1, with the primary port GE1/0/0 and secondary port
GE2/0/0.
UPEB is an edge node on ring 2, with the common port GE1/0/0 and edge port
GE3/0/0.
UPEB is an edge node on ring 3, with the common port GE1/0/0 and edge port
GE3/0/1.
In Domain 2:
The major control VLAN is VLAN 10 and the protected VLANs are the VLANs mapped
to instance 2.
1.
UPEB is a transit node on ring 1, with the primary port GE1/0/0 and secondary port
GE2/0/0.
UPEB is an edge node on ring 2, with the common port GE1/0/0 and edge port
GE3/0/0.
UPEB is an edge node on ring 3, with the common port GE1/0/0 and edge port
GE3/0/1.
Run the display rrpp brief command on PE-AGG. The command output is as follows:
[PE-AGG] display rrpp brief
Abbreviations for Switch Node Mode :
M - Master , T - Transit , E - Edge , A - Assistant-Edge
RRPP Protocol Status: Enable
RRPP Working Mode: HW
RRPP Linkup Delay Timer: 1 sec (0 sec default)
Number of RRPP Domains: 2
Domain Index : 1
Control VLAN : major 5
sub 6
Protected VLAN : Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec) Fail Timer : 6 sec(default is 6 sec)
Ring
Ring
Node
Primary/Common
Secondary/Edge
Is
ID
Level
Mode
Port
Port
Enabled
-------------------------------------------------------------------------------1
0
M
GigabitEthernet1/0/0
GigabitEthernet2/0/0
Yes
Domain Index :
Control VLAN :
Protected VLAN:
Hello Timer
:
2
major 10
sub 11
Reference Instance 2
1 sec(default is 1 sec)
Ring
Ring
Node
Primary/Common
Secondary/Edge
Is
ID
Level
Mode
Port
Port
Enabled
-------------------------------------------------------------------------------1
0
M
GigabitEthernet2/0/0
GigabitEthernet1/0/0
Yes
The command output shows that RRPP is enabled on PE-AGG, and the LinkUp timer is 2
seconds.
Issue 01 (2013-10-30)
172
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
In Domain 1, the major control VLAN is VLAN 5 and the protected VLANs are the VLANs
mapped to instance 1. PE-AGG is the master node on ring 1, with the primary port GE1/0/0
and secondary port GE2/0/0.
In Domain 2, the major control VLAN is VLAN 10, the protected VLANs are the VLANs
mapped to instance 2. PE-AGG is the master node on ring 1, with the primary port GE2/0/0
and secondary port GE1/0/0.
Run the display rrpp verbose domain command on UPEB. The command output is as
follows:
# Check detailed information about UPEB in Domain 1.
[UPEB] display rrpp verbose domain 1
Domain Index : 1
Control VLAN : major 5
sub 6
Protected VLAN: Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
1
0
Transit
LinkUp
Enable
GigabitEthernet1/0/0
GigabitEthernet2/0/0
Is Active : Yes
Port status: UP
Port status: UP
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
2
1
Edge
LinkUp
Enable
GigabitEthernet1/0/0
GigabitEthernet3/0/0
Is Active : Yes
Port status: UP
Port status: UP
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
3
1
Edge
LinkUp
Enable
GigabitEthernet1/0/0
GigabitEthernet4/0/0
Is Active : Yes
Port status: UP
Port status: UP
The command output shows that the control VLAN in Domain 1 is VLAN 5, and the
protected VLANs are the VLANs mapping instance 1.
UPEB is a transit node on ring 1 in Domain 1 and is in LinkUp state.
UPEB is an edge node on ring 2 in Domain 1 and is in LinkUp state. GE1/0/0 is the common
port and GE3/0/0 is the edge port.
UPEB is an edge node on ring 3 in Domain 1 and is in LinkUp state. GE1/0/0 is the common
port and GE3/0/1 is the edge port.
# Check detailed information about UPEB in Domain 2.
<UPEB> display rrpp verbose domain 2
Domain Index : 2
Control VLAN : major 10
sub 11
Issue 01 (2013-10-30)
173
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
1
0
Transit
LinkUp
Enable
GigabitEthernet1/0/0
GigabitEthernet2/0/0
Is Active : Yes
Port status: UP
Port status: UP
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
2
1
Edge
LinkUp
Enable
GigabitEthernet1/0/0
GigabitEthernet3/0/0
Is Active : Yes
Port status: UP
Port status: UP
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
3
1
Edge
LinkUp
Enable
GigabitEthernet1/0/0
GigabitEthernet4/0/0
Is Active : Yes
Port status: UP
Port status: UP
The command output shows that the control VLAN in Domain 2 is VLAN 10, and the
protected VLANs are the VLANs mapping instance 2.
UPEB is a transit node on ring 1 in Domain 2 and is in LinkUp state.
UPEB is an edge node on ring 2 in Domain 2 and is in LinkUp state. GE1/0/0 is the common
port and GE3/0/0 is the edge port.
UPEB is an edge node on ring 3 in Domain 2 and is in LinkUp state. GE1/0/0 is the common
port and GE3/0/1 is the edge port.
Run the display rrpp verbose domain command on PE-AGG. The command output is as
follows:
# Check detailed information about PE-AGG in Domain 1.
[PE-AGG] display rrpp verbose domain 1
Domain Index : 1
Control VLAN : major 5
sub 6
Protected VLAN: Reference Instance 1
Hello Timer
: 1 sec(default is 1 sec)
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
Issue 01 (2013-10-30)
1
0
Master
Complete
Enable
GigabitEthernet1/0/0
GigabitEthernet2/0/0
Is Active : Yes
Port status: UP
Port status: BLOCKED
174
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The command output shows that the control VLAN in Domain 1 is VLAN 5, and the
protected VLANs are the VLANs mapping instance 1.
PE-AGG is the master node in Domain 1 and is in Complete state.
GE1/0/0 is the primary port and GE2/0/0 is the secondary port.
# Check detailed information about PE-AGG in Domain 2.
[PE-AGG] display rrpp verbose domain 2
Domain Index : 2
Control VLAN : major 10
sub 11
Protected VLAN: Reference Instance 2
Hello Timer
: 1 sec(default is 1 sec)
RRPP Ring
:
Ring Level
:
Node Mode
:
Ring State
:
Is Enabled
:
Primary port :
Secondary port:
1
0
Master
Complete
Enable
GigabitEthernet2/0/0
GigabitEthernet1/0/0
Is Active : Yes
Port status: UP
Port status: BLOCKED
The command output shows that the control VLAN in Domain 2 is VLAN 10, and the
protected VLANs are the VLANs mapping instance 2.
PE-AGG is the master node in Domain 2 and is in Complete state.
GE2/0/0 is the primary port and GE1/0/0 is the secondary port.
Run the display rrpp ring-group command on UPEB to check the configuration of the ring
group.
# Check the configuration of ring group 1.
[UPEB] display
Ring Group 1:
domain 1 ring
domain 2 ring
domain 1 ring
rrpp ring-group 1
2 to 3
2 to 3
2 send Edge-Hello packet
Configuration Files
Configuration file of CE 1
#
sysname CE1
#
vlan batch 5 to 6 10 to 11 100 to 300
#
rrpp enable
rrpp linkup-delay-timer 1
#
stp region-configuration
instance 1 vlan 5 to 6 100 to 200
instance 2 vlan 10 to 11 201 to 300
active region-configuration
#
rrpp domain 1
control-vlan 5
Issue 01 (2013-10-30)
175
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
protected-vlan reference-instance 1
ring 2 node-mode master primary-port GigabitEthernet1/0/0 secondary-port
GigabitEthernet2/0/0 level 1
ring 2 enable
rrpp domain 2
control-vlan 10
protected-vlan reference-instance 2
ring 2 node-mode master primary-port GigabitEthernet2/0/0 secondary-port
GigabitEthernet1/0/0 level 1
ring 2 enable
#
interface GigabitEthernet1/0/0
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 6 11 100 to 300
stp disable
#
interface GigabitEthernet2/0/0
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 6 11 100 to 300
stp disable
#
return
Configuration file of CE 2
#
sysname CE2
#
vlan batch 5 to 6 10 to 11 100 to 300
#
rrpp enable
rrpp linkup-delay-timer 1
#
stp region-configuration
instance 1 vlan 5 to 6 100 to 200
instance 2 vlan 10 to 11 201 to 300
active region-configuration
#
rrpp domain 1
control-vlan 5
protected-vlan reference-instance 1
ring 3 node-mode master primary-port GigabitEthernet1/0/0 secondary-port
GigabitEthernet2/0/0 level 1
ring 3 enable
rrpp domain 2
control-vlan 10
protected-vlan reference-instance 2
ring 3 node-mode master primary-port GigabitEthernet2/0/0 secondary-port
GigabitEthernet1/0/0 level 1
ring 3 enable
#
interface GigabitEthernet1/0/0
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 6 11 100 to 300
Issue 01 (2013-10-30)
176
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
stp disable
#
interface GigabitEthernet2/0/0
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 6 11 100 to 300
stp disable
#
return
Issue 01 (2013-10-30)
177
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
rrpp enable
#
stp region-configuration
instance 1 vlan 5 to 6 100 to 200
instance 2 vlan 10 to 11 201 to 300
active region-configuration
#
rrpp domain 1
control-vlan 5
protected-vlan reference-instance 1
ring 1 node-mode transit primary-port GigabitEthernet1/0/0 secondary-port
GigabitEthernet2/0/0 level 0
ring 1 enable
ring 2 node-mode edge common-port GigabitEthernet1/0/0 edge-port
GigabitEthernet3/0/0
ring 2 enable
ring 3 node-mode edge common-port GigabitEthernet1/0/0 edge-port
GigabitEthernet3/0/1
ring 3 enable
rrpp domain 2
control-vlan 10
protected-vlan reference-instance 2
ring 1 node-mode transit primary-port GigabitEthernet1/0/0 secondary-port
GigabitEthernet2/0/0 level 0
ring 1 enable
ring 2 node-mode edge common-port GigabitEthernet1/0/0 edge-port
GigabitEthernet3/0/0
ring 2 enable
ring 3 node-mode edge common-port GigabitEthernet1/0/0 edge-port
GigabitEthernet3/0/1
ring 3 enable
#
rrpp ring-group 1
domain 1 ring 2 to 3
domain 2 ring 2 to 3
#
interface GigabitEthernet1/0/0
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 5 to 6 10 to 11 100 to 300
stp disable
#
interface GigabitEthernet2/0/0
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 5 to 6 10 to 11 100 to 300
stp disable
#
interface GigabitEthernet3/0/0
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 6 11 100 to 300
stp disable
#
interface GigabitEthernet3/0/1
Issue 01 (2013-10-30)
178
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
179
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
180
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
#
return
GigabitEthernet1/0/0 secondary-port
GigabitEthernet2/0/0 secondary-port
to 11 100 to 300
to 11 100 to 300
181
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
the transit nodes fail to update their MAC address forwarding entries and ARP entries when a
link fails or a faulty link recovers. Traffic forwarding is therefore affected.
Identification method: Run the display rrpp brief domain <domain-id> command to
check working modes of all nodes on the RRPP ring.
Solution: If devices from different vendors are used on the network, configure the devices to
work in the RRPP mode defined by international standards. If only Huawei devices are used
on the network, configure the devices to work in the RRPP mode defined by Huawei.
Versions involved: All versions
4.3 Troubleshooting
4.3.1 Troubleshooting Overview
RRPP is configured during network deployment. Roles of RRPP nodes and ports on the ring
are configured by the user rather than obtained through automatic calculation. Therefore,
Issue 01 (2013-10-30)
182
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
RRPP must be correctly configured. Incorrect RRPP configuration may cause a temporary
loop or status errors.
RRPP is not configured on a certain device and ports on the ring are not added to the
control VLAN. As a result, RRPP packets cannot pass through the device, and the
secondary port of the master node cannot receive the Hello packet. The master node
unblocks the secondary port, causing a loop.
The master node is not configured on the ring. In this case, all nodes on the RRPP ring
are configured as transit nodes. All ports are unblocked, causing a loop.
The protected VLAN is incorrectly configured. Some VLANs are allowed by ports on
the RRPP ring. However, protected VLANs referenced by the instance do not include
these VLANs. Data from these VLANs cannot be managed by RRPP, causing a loop.
When RRPP snooping is enabled, the trust 8021p command is not configured on
corresponding ports. If the trust 8021p command is not configured on ports that transmit
RRPP packets, RRPP packets are transmitted with other data packets. When there is a
large number of packets to be transmitted, RRPP packets may be discarded, and Hello
packets may not reach the secondary port of the master node in a timely manner. The
master node then unblocks the secondary port, causing a loop.
2.
Check whether the values of Fail timers are set the same on nodes of the RRPP ring.
Issue 01 (2013-10-30)
183
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
184
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
VLANs Mapped
1 to 4094
Run the display vlan <vlan-id> command to check whether ports of devices on the
RRPP ring that are not enabled with RRPP allow the control VLAN. If the devices are on
a major ring, check whether the ports allow the major control VLAN; if the devices are
on a sub-ring, check whether the ports allow sub-control VLAN.
[Switch] display vlan 1025
------------------------------------------------------------------------------U: Up;
D: Down;
TG: Tagged;
UT: Untagged;
MP: Vlan-mapping;
ST: Vlan-stacking;
#: ProtocolTransparent-vlan;
*: Management-vlan;
------------------------------------------------------------------------------VID Type
Ports
------------------------------------------------------------------------------2000 common TG:GE0/0/1(U)
GE0/0/3(U)
VID Status Property
MAC-LRN Statistics Description
------------------------------------------------------------------------------2000 enable default
enable disable
VLAN 2000
[Switch]
If a VPLS network is on the RRPP ring, check whether RRPP snooping is enabled and
whether the trust 8021p command is configured on corresponding ports. You can run the
display rrpp snooping enable/vsi command to check ports that have RRPP snooping
enabled, VSIs, and VLANs. If RRPP snooping is not enabled, check the reasons and
deploy RRPP snooping according to actual situations.
[Switch] display rrpp snooping enable all
Port
VsiName
Vlan
--------------------------------------------------------------------------[Quidway]
Run the display rrpp brief domain <domain id> and display rrpp verbose domain
<domain id> ring <ring id> commands to check current RRPP status.
# display rrpp brief domain <domain id>
< Switch> display rrpp brief
Abbreviations for Switch Node Mode :
Issue 01 (2013-10-30)
185
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
: 1
: major 2001
sub 2002
: 1 sec(default is 1 sec)
Ring Ring
Node Primary/Common
Secondary/Edge
Is
ID
Level Mode Port
Port
Enabled
---------------------------------------------------------------------------1
0
M
Eth-Trunk0
Eth-Trunk1
Yes
< Switch>
# display rrpp verbose domain <domain id> ring <ring id>
< Switch> display rrpp verbose domain 1 ring 1
Domain Index
: 1
Control VLAN
: major 2001
sub 2002
Hello Timer
: 1 sec(default is 1 sec) Fail Timer : 3 sec(default is 3 sec)
RRPP Ring
Ring Level
Node Mode
Ring State
Is Enabled
Primary port
Secondary port
:
:
:
:
:
:
:
1
0
Master
Complete
Enable
Eth-Trunk0
Eth-Trunk1
Is Active: Yes
Port status: UP
Port status: BLOCKED
< Switch>
Step 2 Check whether the values of Fail timers on nodes of the RRPP ring are the same.
Run the display rrpp brief domain <domain-id> and display rrpp verbose domain
<domain-id> ring <ring-id> commands to check whether values of Fail timers on all
nodes are the same.
# display rrpp brief domain <domain id>
<Quidway> display rrpp brief
Abbreviations for Switch Node Mode :
M - Master , T - Transit , E - Edge , A - Assistant-Edge
RRPP Protocol Status: Enable
Number of RRPP Domains: 1
Domain Index
Control VLAN
Hello Timer
: 1
: major 2001
sub 2002
: 1 sec(default is 1 sec)
Ring Ring
Node Primary/Common
Secondary/Edge
Is
ID
Level Mode Port
Port
Enabled
---------------------------------------------------------------------------1
0
M
Eth-Trunk0
Eth-Trunk1
Yes
<Quidway>
# display rrpp verbose domain <domain id> ring <ring id>
<Quidway> display rrpp verbose domain 1 ring 1
Issue 01 (2013-10-30)
186
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Domain Index
Control VLAN
Hello Timer
: 1
: major 2001
sub 2002
: 1 sec(default is 1 sec)
RRPP Ring
Ring Level
Node Mode
Ring State
Is Enabled
Primary port
Secondary port
:
:
:
:
:
:
:
1
0
Master
Complete
Enable
Eth-Trunk0
Eth-Trunk1
Is Active: Yes
Port status: UP
Port status: BLOCKED
<Quidway>
Description
display version
display device
display patch-information
display current-configuration
display interface
display logbuffer
display trapbuffer
Issue 01 (2013-10-30)
187
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Command
Description
As shown in Figure 1.1, Switch A, Switch B, Switch C, and Switch D constitute an RRPP
ring. Data from VLANs 10 and 20 is protected on the RRPP ring. VLAN 10 and VLAN 20
are added to instance 1. The protected VLANs are configured to reference instance 1. Switch
ports join VLAN 1 by default, causing data from VLAN 1 to form a loop.
Issue 01 (2013-10-30)
188
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
3.
VLANs Mapped
1 to 9, 11 to 19, 21 to 4094
10, 20
4.4.1.4 Solution
1.
Issue 01 (2013-10-30)
189
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Revision level
:0
Instance
VLANs Mapped
0
2 to 9, 11 to 19, 21 to 4094
1
1, 10, 20
[Switch]
If VLAN 1 is useless, configure the ports to prohibit VLAN 1.
[Switch] interface GigabitEthernet1/0/0
[Switch-GigabitEthernet1/0/0] undo port trunk allow-pass vlan 1
4.4.1.5 Summary
When planning the protected VLANs on the RRPP ring, note that switch ports are added to
VLAN 1 by default. You need to add VLAN 1 to the protected VLANs to prevent loops.
As shown in Figure 1.1, SwitchA, SwitchB, and SwitchC form an RRPP ring. SwitchB
functions as the master node. SwitchC is the transit node. Ports GE2/0/4 and GE1/0/5 on
SwitchA allow control VLAN 2515. VLANs mapping instance 0 on SwitchB and SwitchC are
protected VLANs. RRPP multi-instance is configured on SwitchB. Packets from VLANs in
other instances cause a loop. As a result, many access devices are disconnected.
190
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
3.
region-configuration
:0
:00259e5cec21
:0
Vlans Mapped
1 to 2499, 2501 to 2542, 2544 to 2572, 2574 to 4094
2500, 2543, 2573
Issue 01 (2013-10-30)
Physical
191
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
GigabitEthernet0/1/1
UP
GigabitEthernet0/1/2
UP
# SwitchA
[SwitchB]display vlan 2500
VLAN ID Type
Status
MAC Learning Broadcast/Multicast/Unicast
Property
------------------------------------------------------------------------------2500
common
enable
enable
forward
forward
forward
default
---------------Tagged
Port: GigabitEthernet2/0/0
GigabitEthernet2/0/2
GigabitEthernet2/0/5
---------------Interface
GigabitEthernet2/0/0
GigabitEthernet2/0/1
GigabitEthernet2/0/2
GigabitEthernet2/0/4
GigabitEthernet2/0/5
GigabitEthernet2/0/6
GigabitEthernet2/0/1
GigabitEthernet2/0/4
GigabitEthernet2/0/6
Physical
UP
UP
UP
UP
DOWN
UP
The command output shows that each port on the ring allows VLAN 2500, and some
ports that are not on the ring also allow VLAN 2500. VLAN 2500 is added to instance 1.
The RRPP ring protects VLANs in instance 0. Consequently, data from VLAN 2500 is
not blocked, causing a loop.
4.4.2.4 Solution
RRPP is configured to protect all VLANs. In this case, delete instance 1.
[SwitchB] stp region-configuration
Info: Please activate the stp region-configuration after it is modified.
[SwitchB-mst-region] undo instance 1
[SwitchB-mst-region] active region-configuration
Info: This operation may take a few seconds. Please wait for a moment...done.
SwitchB-mst-region]quit
[SwitchB] display stp region-configuration
Oper configuration
Format selector
:0
Region name
:00259e5cec21
Revision level
:0
Instance
0
[SwitchB]
Vlans Mapped
1 to 4094
4.4.2.5 Summary
When deploying an RRPP ring, ensure that multi-instance configurations on the device do not
affect the RRPP ring.
Issue 01 (2013-10-30)
192
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
As shown in Figure 1.1, SwitchA, SwitchB, SwitchC, and SwitchD form an RRPP ring.
SwitchA is the master node, and SwitchB, SwitchC, and SwitchD are the transit nodes. When
the link between SwitchB, SwitchC, and SwitchD becomes faulty or recovers from a fault,
other transit nodes do not update their MAC address forwarding entries or ARP entries.
Traffic forwarding is affected.
Issue 01 (2013-10-30)
193
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
4.4.3.4 Solution
Configure all nodes on the RRPP ring to work in the same RRPP working mode.
4.4.3.5 Summary
All nodes on the RRPP ring must have the same RRPP working mode configured. They can
work in the mode defined by Huawei or the mode defined by international standards.
Issue 01 (2013-10-30)
194
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Smart Link
5.1.1.2 Characteristics
Figure 1.1 Smart Link networking
Issue 01 (2013-10-30)
195
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
As shown in Figure 1.1, link redundancy can be provided on the dual-homed network, but a
loop (SwitchA --> SwitchB -->SwitchD --> SwitchC --> SwitchA) results in broadcast
storms. STP can be used to prevent loops, but the convergence speed is low. When the active
link becomes faulty, traffic is switched to the standby link. During the switchover, a large
amount of traffic is lost because the convergence takes several seconds. STP cannot be
applied to the networks that require short convergence time. RRPP and SEP can improve the
convergence performance, but they are applied to complicated ring networks and are difficult
to configure. New devices require extra configurations, and the configurations are complex.
When the ring network fails, you need to troubleshoot the fault on the devices one by one.
To address the preceding problem, Huawei introduces Smart Link on dual-homed networks to
implement link redundancy and rapid link status transition. This solution ensures high
performance and simplifies network configurations. In addition, Monitor Link supplements
Smart Link by introducing a port association solution, which monitors uplink status and
widens the scope of link backup.
Smart Link has the following advantages:
Preventing broadcast storms caused by loops. When two links are running properly on a
dual-homed network, only one link transmits traffic and the other link is blocked.
Ensuring nonstop data forwarding. When the active link is faulty, traffic is switched to
the standby link in milliseconds.
Simplifying configurations.
Issue 01 (2013-10-30)
196
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Figure 1.1 Configuring load balancing between active and standby links of a Smart Link group
Configure Smart Link multi-instance on SwitchA and add uplink ports to the Smart Link
group.
2.
3.
4.
5.
6.
Issue 01 (2013-10-30)
1/0/1
link-type trunk
trunk allow-pass vlan 10 100 500
1/0/2
link-type trunk
trunk allow-pass vlan 10 100 500
197
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Step 3 Disable STP on uplink ports, add the ports to the Smart Link group, and specify the master
and slave ports.
# Configure SwitchA.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] stp disable
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface gigabitethernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] stp disable
[SwitchA-GigabitEthernet1/0/2] quit
[SwitchA] smart-link group 1
[SwitchA-smlk-group1] port gigabitethernet 1/0/1 master
[SwitchA-smlk-group1] port gigabitethernet 1/0/2 slave
# Configure SwitchC.
[SwitchC] interface gigabitethernet 1/0/1
[SwitchC-GigabitEthernet1/0/1] smart-link flush receive control-vlan 10
password simple 123
[SwitchC-GigabitEthernet1/0/1] quit
Issue 01 (2013-10-30)
198
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
GigabitEthernet 1/0/1 is the master port and is in Active state, and GigabitEthernet
1/0/2 is the slave port and is in Inactive state. The load balancing function is
configured.
<SwitchA> display smart-link group 1
Smart Link group 1 information :
Smart Link group was enabled
Wtr-time is: 30 sec.
Load-Balance Instance: 10
There is no protected-vlan reference-instance
DeviceID: 0018-2000-0083 Control-vlan ID: 10
Member
Role
State
Flush Count Last-Flush-Time
-----------------------------------------------------------------------GigabitEthernet1/0/1
Master Active
1
2009/01/05
10:33:46 UTC+05:00
GigabitEthernet1/0/2
Slave
Inactive 0
0000/00/00
00:00:00 UTC+05:00
# Run the shutdown command to shut down GigabitEthernet 1/0/1, and you can find
that GigabitEthernet 1/0/1 is in Inactive state and GigabitEthernet 1/0/2 is in Active
state.
[SwitchA-GigabitEthernet1/0/1] shutdown
[SwitchA-GigabitEthernet1/0/1] display smart-link group 1
Smart Link group 1 information :
Smart Link group was enabled
Wtr-time is: 30 sec.
Load-Balance Instance: 10
There is no protected-vlan reference-instance
DeviceID: 0018-2000-0083 Control-vlan ID: 10
Member
Role
State
Flush Count Last-Flush-Time
-----------------------------------------------------------------------GigabitEthernet1/0/1
Master Inactive 1
2009/01/05
10:33:46 UTC+05:00
GigabitEthernet1/0/2
Slave
Active
1
2009/01/05
10:34:46 UTC+05:00
# Run the undo shutdown command to enable GigabitEthernet 1/0/1. Wait for 30
seconds, and you can find that GigabitEthernet 1/0/1 is in Active state and GE 1/0/2
is in Inactive state.
[SwitchA-GigabitEthernet1/0/1] undo shutdown
[SwitchA-GigabitEthernet1/0/1] display smart-link group 1
Smart Link group 1 information :
Smart Link group was enabled
Issue 01 (2013-10-30)
199
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Configuration Files
Issue 01 (2013-10-30)
200
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
201
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Configure a Smart Link group on SwitchA and SwitchC and add corresponding ports to
the Smart Link group.
2.
3.
4.
202
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
<SwitchA> system-view
[SwitchA] smart-link group 1
[SwitchA-smlk-group1] quit
# Configure SwitchC.
<SwitchC> system-view
[SwitchC] smart-link group 2
[SwitchC-smlk-group1] quit
Step 3 Add ports to the Smart Link group and specify the master and slave ports.
# Configure SwitchA.
[SwitchA] interface gigabitethernet1/0/1
[SwitchA-GigabitEthernet1/0/1] stp disable
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface gigabitethernet1/0/2
[SwitchA-GigabitEthernet1/0/2] stp disable
[SwitchA-GigabitEthernet1/0/2] quit
[SwitchA] smart-link group 1
[SwitchA-smlk-group1] port gigabitethernet 1/0/1 master
[SwitchA-smlk-group1] port gigabitethernet 1/0/2 slave
# Configure SwitchC.
[SwitchC] interface gigabitethernet1/0/1
[SwitchC-GigabitEthernet1/0/1] stp disable
[SwitchC-GigabitEthernet1/0/1] quit
[SwitchC] interface gigabitethernet1/0/2
[SwitchC-GigabitEthernet1/0/2] stp disable
[SwitchC-GigabitEthernet1/0/2] quit
[SwitchC] smart-link group 2
[SwitchC-smlk-group2] port gigabitethernet 1/0/1 master
[SwitchC-smlk-group2] port gigabitethernet 1/0/2 slave
# Configure SwitchC.
[SwitchC-smlk-group2] restore enable
[SwitchC-smlk-group2] timer wtr 30
# Configure SwitchB.
Issue 01 (2013-10-30)
203
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
<SwitchB> system-view
[SwitchB] interface gigabitethernet 2/0/1
[SwitchB-GigabitEthernet2/0/1] smart-link flush receive control-vlan 10
password simple 123
[SwitchB-GigabitEthernet2/0/1] quit
[SwitchB] interface gigabitethernet 2/0/2
[SwitchB-GigabitEthernet2/0/2] smart-link flush receive control-vlan 10
password simple 123
[SwitchB-GigabitEthernet2/0/2] quit
# Configure SwitchC.
[SwitchC-smlk-group2] flush send control-vlan 10 password simple 123
# Configure SwitchC.
[SwitchC] smart-link group 2
[SwitchC-smlk-group2] smart-link enable
[SwitchC-smlk-group2] quit
Step 7 Create a Monitor Link group and add the uplink and downlink ports to the Monitor Link
group.
# Configure SwitchA.
[SwitchA] monitor-link group 1
[SwitchA-mtlk-group1] smart-link group 1 uplink
[SwitchA-mtlk-group1] port gigabitethernet 2/0/1 downlink 1
# Configure SwitchB.
[SwitchB] monitor-link group 2
[SwitchB-mtlk-group2] port gigabitethernet 1/0/1 uplink
[SwitchB-mtlk-group2] port gigabitethernet 2/0/1 downlink 1
# Configure SwitchB.
[SwitchB-mtlk-group2] timer recover-time 10
Issue 01 (2013-10-30)
204
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
+05:00
GigabitEthernet1/0/2
Slave
Inactive 0
0000/00/00 00:00:00
UTC
+05:00
<SwitchA> display monitor-link group 1
Monitor Link group 1 information :
Recover-timer is 3 sec.
Member
Role
State Last-up-time
Last-downtim
e
Smart-link1
UpLk
UP
0000/00/00 00:00:00 UTC+05:00
0000/0
0/00 00:00:00 UTC+05:00
GigabitEthernet2/0/1
DwLk[1] UP
0000/00/00 00:00:00 UTC+05:00
0000/0
0/00 00:00:00 UTC+05:00
Configuration Files
Issue 01 (2013-10-30)
205
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
206
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
return
5.3 Troubleshooting
5.3.1 Troubleshooting Overview
Smart Link is a commonly used feature in dual-homed scenarios. The state of Smart Link
depends on the port state. The upper-layer network is notified of network changes through the
Flush packets sent by Smart Link. Incorrect configurations cause a traffic switching failure in
the Smart Link group.
2.
Check whether the Force and Lock functions are enabled in the Smart Link group.
3.
Check whether the function of sending Flush packets is enabled for the Smart Link group
and whether corresponding ports are added to the control VLAN.
4.
Check whether the function of receiving Flush packets is enabled, whether the control
VLAN and password are correct, and whether corresponding ports are added to the
control VLAN.
Issue 01 (2013-10-30)
207
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
208
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
If the value of the current state field is Down, rectify the fault according to
Connected Ethernet Interfaces Down.
If the value of the current state field is Up, the port is Up. Go to step 2.
If one port is Active and the other port is Inactive, the Smart Link group status is
correct. Go to step 4.
Step 3 Check whether data flows are locked on a port in the Smart Link group.
Run the display smart-link group group-id command to check whether data flows are
locked on a port in the Smart Link group through the value of the Link status field.
<Quidway> display smart-link group 1
Smart Link group 1 information :
Smart Link group was enabled
Link status:lock
Load-Balance Instance: 1 to 2
DeviceID: 0018-2000-0083 Control-vlan ID: 20
Member
Role
State
Flush Count Last-Flush-Time
-----------------------------------------------------------------------GigabitEthernet1/0/1 Master
Active
1
2008/11/21 16:37:20 UTC05:00
GigabitEthernet1/0/2 Slave
Inactive
2
2008/11/21 17:45:20 UTC05:00
If the value of the Link status field is lock or force, data flows are locked on the
master or slave port in the Smart Link group. Run the undo smart-link { force |
lock } command to unlock data flows in the Smart Link group.
If no information is displayed in the Link status field, data flows are not locked in
the Smart Link group. Go to step 8.
Step 4 Check whether packets are discarded on member ports in the Smart Link group. Use the
following method to check whether packets are discarded:
Run the ping-c count -t timeout command to view packet loss information in the
command output.
If the network is unreliable, set the packet transmission count (-c) and timeout (-t) to the upper limits.
This makes the test result accurate.
209
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Run the display this command in the Smart Link group view to check whether the
function of sending Flush packets is enabled.
If the information "flush send control-vlan vlan-id" is not displayed, run the flush
send command to enable the function of sending Flush packets.
Step 6 Check whether the control VLAN is created. Ensure that member ports of the Smart Link
group join the control VLAN.
Run the display vlan vlan-id command.
If the following information is displayed, member ports of the Smart Link group join
the control VLAN. Go to step 7.
------------------------------------------------------------------------------U: Up;
D: Down;
TG: Tagged;
UT: Untagged;
MP: Vlan-mapping;
ST: Vlan-stacking;
#: ProtocolTransparent-vlan;
*: Management-vlan;
------------------------------------------------------------------------------VID Type
Ports
------------------------------------------------------------------------------10
common TG:GE1/0/3(U)
GE1/0/2(U)
If the preceding information is not displayed, create a control VLAN and add member
ports of the Smart Link group to the control VLAN.
Step 7 Check whether the function of receiving Flush packets is enabled on the peer device.
Run the display this command in the interface view.
If the information "smart-link flush receive control-vlan vlan-id" is not displayed, run
the smart-link flush receive command to enable the function of receiving Flush
packets
Step 8 Collect the following information and contact Huawei technical support personnel:
MAC address entries on the devices with the Smart Link group configured
Issue 01 (2013-10-30)
210
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
1.
Check the status of the member ports in the Monitor Link group.
2.
If the value of the State field is DOWN, rectify the fault according to Connected
Ethernet Interfaces Down.
A link fault, a unidirectional OAM connectivity fault, or a failure to establish OAM connections may
occur on the uplink port. If the uplink port belongs to a Smart Link group, the uplink port is considered
as faulty if none of the maser and slave ports in the Smart Link group are in active state or the Smart
Link group is not enabled.
Issue 01 (2013-10-30)
211
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Step 2 Check whether member ports of the Monitor Link group are added to the service VLAN.
Run the display current-configuration interface interface-type interface-number command
in the member interface view to check whether member ports of the Monitor Link group are
added to the service VLAN.
If any member port of the Monitor Link group is not added to the service VLAN, add
the member port to the service VLAN.
If member ports of the Monitor Link group are added to the service VLAN, go to step
3.
Step 3 Collect the following information and contact Huawei technical support personnel:
Description
display version
display device
display patch-information
display current-configuration
display interface
display logbuffer
display trapbuffer
Issue 01 (2013-10-30)
212
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
10
Vlans Mapped
1, 3 to 39, 41, 43 to 49, 51 to 900, 925 to 948, 973 to 1000,
1201 to 1700, 2001 to 3050, 3053 to 3100, 3126 to 3136, 3138 to
3148, 3173 to 3300, 3325 to 3348, 3373 to 4091, 4093 to 4094
2, 40, 42, 50, 901 to 924, 949 to 972, 1001 to 1200, 1701 to
2000, 3051 to 3052, 3101 to 3125, 3137, 3149 to 3172, 3301 to
3324, 3349 to 3372, 4092
Run the check region-configuration command to check STP region configurations that do
not take effect after the active region-configuration command is executed.
[Switch-mst-region]display stp region-configuration
Oper configuration
Format selector
:0
Region name
:286ed4fcf061
Revision level
:0
Instance
0
10
20
Vlans Mapped
1 to 41, 43 to 47, 51 to 900, 997 to 1000, 1601 to 1700, 2001 to
3050, 3053 to 3100, 3197 to 3300, 3397 to 4091, 4093 to 4094
42, 50, 901 to 924, 949 to 972, 1001 to 1200, 1701 to 2000, 3051
to 3052, 3101 to 3124, 3149 to 3172, 3301 to 3324, 3349 to 3372,
4092
48 to 49, 925 to 948, 973 to 996, 1201 to 1600, 3125 to 3148,
3173 to 3196, 3325 to 3348, 3373 to 3396
The display stp region-configuration command output shows the STP region configurations
that take effect after the active region-configuration command is run.
Issue 01 (2013-10-30)
213
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Compare the command outputs of the two commands, and you can find that instance 20 has
been deleted from the device before. The operation of adding VLAN 2 or VLAN 40 to
instance 10 does not take effect when the active region-configuration command is executed.
Check the device configurations, and you can find that two Smart Link groups have been
created on the device, and instances 10 and 20 are all reference instances of the Smart Link
groups.
smart-link group 1
protected-vlan reference-instance 0 10 20
load-balance reference-instance 20 slave
restore enable
smart-link enable
port GigabitEthernet1/0/0 master
port GigabitEthernet2/0/0 slave
smart-link group 2
protected-vlan reference-instance 0 10 20
load-balance reference-instance 20 slave
restore enable
smart-link enable
port GigabitEthernet1/0/1 master
port GigabitEthernet2/0/1 slave
timer wtr 30
After the Smart Link group is bound to instance 20, the operation of deleting instance 20 is
performed on the device. The error message is displayed when the active regionconfiguration command is executed at that time. The analysis of the system logs also shows
that the related operation has been performed.
Mar 30 2012 14:03:44 Switch %%01SHELL/5/CMDRECORD(l): Record command information.
(Task=vt0, Ip=61.160.100.16, User=sjzx2011, Command="undo instance 20")
Mar 30 2012 14:03:46 Switch %%01SHELL/6/DISPLAY_CMDRECORD(l): Record command
information. (Task=vt0, Ip=61.160.100.16, User=sjzx2011, Command="display this")
Mar 30 2012 14:03:52 Switch %%01SHELL/5/CMDRECORD(l): Record command information.
(Task=vt0, Ip=61.160.100.16, User=sjzx2011, Command="active region-configuration")
Therefore, the error message is still displayed when VLAN 2 or VLAN 40 is added to
instance 10.
5.4.1.4 Solution
Disable the Smart Link group function and unbind the Smart Link group from instance 20.
Delete instance 20 in the STP region view and then run the active region-configuration
command. After that, re-configure instance 20 and run the active region-configuration
command again.
Issue 01 (2013-10-30)
214
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
5.4.1.5 Summary
STP region configurations are not only applicable to the STP function. Instances in the STP
region may also be bound to ring features such as RRPP and Smart Link.
When modifying STP region configurations, run the check region-configuration command
to check whether region parameters that do not take effect are correctly configured. Then run
the active region-configuration command to check whether messages indicating an
activation failure are displayed.
As shown in Figure 1.1, the Smart Link group is enabled on SW4. A is the master port while
B is the slave port. When A becomes down, traffic is switched to B. However, traffic from
SW1 is interrupted.
Issue 01 (2013-10-30)
215
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
5.4.2.4 Solution
Enable all ports on the Smart Link ring, including A and B on SW1, SW2, and SW3 to receive
Flush packets.
5.4.2.5 Summary
In addition to switches connecting to ports in the Smart Link group, all ports on the Smart
Link ring must be able to receive Flush packets.
Issue 01 (2013-10-30)
216
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
ERPS Overview
Two manual port blocking modes: forced switch (FS) and manual switch (MS)
Faster protection switching on Ethernet networks is required. STP does not meet the
requirement for convergence performance. RRPP and SEP are Huawei proprietary ring
protocols, which cannot be used for communication between Huawei and non-Huawei
devices on a ring network.
ERPS is a standard protocol issued by the ITU-T to prevent loops on ring networks, and
inherits advantages of ring network technologies such as STP. It optimizes detection and
performs fast convergence. In addition, ERPS provides good compatibility that can be used
for communication between Huawei and non-Huawei devices on a ring network.
ERPS brings the following benefits:
On networks with loops, ERPS can prevent broadcast storms and fast switch services.
ERPS is a standard protocol issued by the ITU-T to prevent loops on ring networks. It
allows all ERPS-capable devices on a ring network to communicate.
Issue 01 (2013-10-30)
217
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
ERPS Ring
An ERPS ring consists of interconnected Layer 2 switching devices configured with the same
control VLAN. An ERPS ring is the basic unit for ERPS.
An ERPS ring can be a major ring or a subring. By default, an ERPS ring is a major ring. The
major ring is a closed ring, and a subring is a non-closed ring. You can configure the major
ring and subring using command lines.
Only ERPSv2 supports the subring configuration.
Node
A node refers to a Layer 2 switching device added to an ERPS ring. A maximum of two ports
on a node can be added to the same ERPS ring.
Port Role
As defined in the ERPS protocol, ports are classified into the RPL owner port, RPL neighbor
port, and common port. Only ERPSv2 supports the RPL neighbor port.
Issue 01 (2013-10-30)
218
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Common port
On an ERPS ring, the ports except the RPL owner port are common ports. A common
port monitors the status of the directly-connected ERPS link, and sends RAPS PDUs to
inform the other ports if the link status changes.
Port Status
On an ERPS ring, an ERPS-enabled port can be in either of the following states:
Forwarding: The port forwards user traffic and sends and receives RAPS PDUs.
Control VLAN
A control VLAN is configured for an ERPS ring to transmit RAPS PDUs. Each ERPS ring
must be configured with a control VLAN. After a port is added to an ERPS ring configured
with a control VLAN, the port is added to the control VLAN automatically. Different ERPS
rings cannot be configured with the same control VLAN ID. Unlike control VLANs, data
VLANs are used to transmit data packets.
Protected Instance
On a Layer 2 device running ERPS, the VLAN in which RAPS PDUs and data packets are
transmitted must be mapped to a protected instance so that ERPS forwards or blocks the
VLAN packets. Otherwise, VLAN packets may cause broadcast storms on the ring network,
causing the network to be unavailable.
Timer
ERPS defines four timers: guard timer, WTR timer, holdoff timer, and WTB timer (only in
ERPSv2).
Guard timer
After a faulty link, a node recovers, or a clear operation is executed, the nodes on the two
ends of the link or the recovered node sends RAPS No Request (NR) messages to inform
the other nodes of the link or node recovery and starts a guard timer. Before the timer
expires, each involved node does not process any RAPS PDUs to avoid receiving out-ofdate RAPS (NR) messages. After the timer expires, if the involved node still receives an
RAPS NR message, the local port enters the Forwarding state.
Issue 01 (2013-10-30)
219
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
WTR timer
If the RPL owner port is unblocked due to a link or node failure, the involved port may
not go Up immediately after the link or node recovers. To prevent the RPL owner port
from alternating between Up and Down, the node where the RPL owner port resides
starts a WTR timer after receiving an RAPS NR message. If the node receives an RAPS
Signal Fail (SF) message before the timer expires, it terminates the WTR timer. If the
node does not receive any RAPS SF message before the timer expires, it unblocks the
RPL owner port when the timer expires and sends an RAPS (NR, RB) (RAPS no request,
root blocked) message. After receiving this RAPS (NR, RB) message, the nodes set their
recovered ports on the ring to the Forwarding state.
Holdoff timer
Protection switching sequence requirements vary for Layer 2 networks running ERPS.
For example, in a multi-layer service application, if a server fails, a period of time is
needed for the server to recover. No protection switching is performed immediately after
the server fails, and the client does not detect the failure in this period of time. A holdoff
timer can be set. If a fault occurs, the fault is not immediately reported to ERPS. Instead,
the hold-off timer starts. If the fault persists after the timer expires, the fault will be
reported to ERPS.
WTB timer
The WTB timer starts after forcible or manual switching is performed. When multiple
nodes on an ERPS ring are in forcible or manual switching state, the clear operation
takes effect only after the WTB timer expires so that the RPL owner port will not be
blocked immediately.
The WTB timer value cannot be configured. Its value is the guard timer value plus 5.
The default WTB timer value is 7s.
In revertive switching, the RPL owner port is re-blocked after the WTR timer expires,
and the traffic channel is blocked on the RPL.
MS: forcibly blocks a port when link failures and FS conditions are absent.
In addition to FS and MS operations, ERPS also supports the clear operation:
Issue 01 (2013-10-30)
220
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Triggers revertive switching before the WTR or wait to block (WTB) timer expires on an
ERPS ring in revertive switching mode.
VC: RAPS PDUs on sub-rings are transmitted to the major ring through interconnection
nodes. The RPL owner port of a sub-ring blocks both RAPS PDUs and data traffic.
NVCs: RAPS PDUs on sub-rings are terminated on the interconnection nodes. The RPL
owner port blocks data traffic but not RAPS PDUs on each sub-ring.
On the network shown in Figure 1.2, a major ring is interconnected with two sub-rings. The
sub-ring on the left has a VC, whereas the sub-ring on the right has an NVC.
Figure 1.2 Interconnected rings with a VC or NVC
By default, sub-rings use NVCs to transmit RAPS PDUs, except for the scenario shown in
Figure 1.3.
When sub-ring links are not contiguous, VCs must be used. On the network shown in Figure 1.3, links b
and d belong to major rings 1 and 2, respectively; links a and c belong to the sub-ring. As links a and c
are not contiguous, they cannot detect the status change between each other, so VCs must be used for
RAPS PDU transmission.
Issue 01 (2013-10-30)
221
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Table 3.1 lists the advantages and disadvantages of RAPS PDU transmission modes on subrings with VCs or NVCs.
Table 3.1 Comparison between RAPS PDU transmission modes on sub-rings with VCs or NVCs
RAPS PDU
Transmission
Mode on
Subrings
Advantage
Disadvantage
VC
Applies to scenarios in
which sub-ring links are
incontiguous.
NVC
222
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
To prevent loops, ERPS blocks the RPL owner port and also the RPL neighbor port (if
any is configured). All other ports can transmit service traffic.
All ports on the ERPS ring send RAPS NR messages to all other nodes on the ring at an
interval of 5s, indicating that ERPS links are normal.
A Link Fails
As shown in Figure 1.2, if the link between LSW4 and LSW5 fails, the ERPS protection
switching mechanism is triggered. The ports on both ends of the faulty link are blocked and
the RPL owner port and RPL neighbor port are unblocked to send and receive packets. This
ensures nonstop traffic forwarding. The process is as follows:
Issue 01 (2013-10-30)
After LSW4 and LSW5 detect the link fault, they block their ports on the faulty link and
update FDB entries.
223
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
LSW4 and LSW5 send three consecutive RAPS SF messages to the other LSWs and
then send one RAPS SF message at an interval of 5s afterwards.
After receiving the RAPS PDUs, LSW3 where the RPL owner port resides unblocks the
RPL owner port and updates FDB entries; the other LSWs update local FDB entries.
Similarly, after receiving the RAPS PDUs, LSW2 where the RPL owner port resides
unblocks the RPL neighbor port and updates FDB entries.
If the ERPS ring uses revertive switching, the RPL owner port is blocked again, and the
link that has recovered is used to forward traffic.
If the ERPS ring uses non-revertive switching, the RPL remains unblocked, and the link
that has recovered is still blocked.
The following example uses revertive switching to illustrate the process after the link
recovers:
Issue 01 (2013-10-30)
After the link between LSW4 and LSW5 recovers, LSW4 and LSW5 start a guard timer
to avoid receiving out-of-date RAPS PDUs. The two devices do not receive any RAPS
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co.,
Ltd.
224
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
PDUs before the timer expires. At the same time, LSW4 and LSW5 send RAPS NR
messages to the other LSWs.
After receiving an RAPS NR message, LSW3 on which the RPL owner port resides
starts the WTR timer. After the WTR timer expires, LSW3 blocks the RPL owner port
and sends RAPS (NR, RB) messages.
After receiving an R-APS (NR, RB) message, LSW4 and LSW5 unblock the ports at the
two ends of the link that has recovered, stop sending RAPS NR messages, and update
FDB entries. The other LSWs also update FDB entries after receiving an R-APS (NR,
RB) message.
Protection Switching
Issue 01 (2013-10-30)
After the LSW4's port that connects to LSW5 is forcibly blocked, LSW5 updates
FDB entries.
LSW5 sends three consecutive RAPS SF messages to the other LSWs and then sends
one RAPS SF message at an interval of 5s afterwards.
After receiving an RAPS SF message, the other LSWs update FDB entries. LSW3 on
which the RPL owner port resides and LSW2 on which the RPL neighbor port resides
unblock the respective RPL owner port and RPL neighbor port, and update FDB
entries.
225
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Clear
After a clear operation is performed on LSW5, the port that is forcibly blocked sends
RAPS NR messages to all other ports on the ERPS ring.
If the ERPS ring uses revertive switching, the RPL owner port starts the WTB timer
after receiving an RAPS NR message. After the WTB timer expires, the FS operation
is cleared. Then the RPL owner port is blocked, and the blocked port on LSW5 is
unblocked. If a clear operation is performed on LSW3 on which the RPL owner port
resides before the WTB timer expires, the RPL owner port is immediately blocked,
and the blocked port on LSW5 is unblocked.
If the ERPS ring uses non-revertive switching and the RPL owner port needs to be
blocked, perform a clear operation on LSW3 on which the RPL owner port resides.
Manual switch
Compared with an FS operation, a manual switch (MS) operation triggers protection
switching in a similar way except that an MS operation does not take effect in FS, MS, or link
failure conditions.
Issue 01 (2013-10-30)
226
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
All ports on each ring send R-APS (NR) messages to all other nodes on the same ring at
an interval of 5s. The RAPS NR messages on each subring are terminated on the
interconnection nodes and therefore are not transmitted to the major ring.
Traffic between PC1 and the upper-layer network travels along the path PC1 -> LSW6 ->
LSW2 -> LSW1 -> NPE1; traffic between PC2 and the upper-layer network travels along the
path PC2 -> LSW7 -> LSW4 -> LSW5 -> NPE2.
Issue 01 (2013-10-30)
227
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
A Link Fails
As shown in Figure 1.2, if the link between LSW4 and LSW7 fails, the ERPS protection
switching mechanism is triggered. The ports on both ends of the faulty link are blocked, and
the RPL owner port on subring 2 is unblocked to send and receive traffic. In this situation,
traffic from PC1 still travels along the original path. LSW2 and LSW3 inform the other nodes
on the major ring of the topology change so that traffic from PC2 is also not interrupted.
Traffic between PC2 and the upper-layer network travels along the path PC2 -> LSW7 ->
LSW3 -> LSW2 -> LSW1 -> LSW5 -> NPE2. The process is as follows:
.1
After LSW4 and LSW7 detect the link fault, they block their ports on the faulty link and
update FDB entries.
.2
LSW7 sends three consecutive RAPS SF messages to the other LSWs and then sends
one RAPS SF message at an interval of 5s afterwards.
.3
LSW7 then unblocks the RPL owner port and updates FDB entries.
Issue 01 (2013-10-30)
228
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
.4
After the interconnection node LSW3 receives an RAPS SF message, it updates FDB
entries. LSW3 and LSW4 then send an RAPS Event message within the major ring to
notify the topology change in subring 2.
.5
After receiving the RAPS Event message, the other LSWs on the major ring update FDB
entries.
If the ERPS ring uses revertive switching, the RPL owner port is blocked again, and the
link that has recovered is used to forward traffic.
If the ERPS ring uses non-revertive switching, the RPL remains unblocked, and the link
that has recovered is still blocked.
Issue 01 (2013-10-30)
229
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
The following example uses revertive switching to illustrate the process after the link
recovers:
.1
After the link between LSW4 and LSW7 recovers, LSW4 and LSW7 start a guard timer
to avoid receiving out-of-date RAPS PDUs. The two devices do not receive any RAPS
PDUs before the timer expires. Then LSW4 and LSW7 send RAPS NR messages within
subring 2.
.2
LSW7 on which the RPL owner port resides starts the WTR timer. After the WTR timer
expires, LSW7 blocks the RPL owner port and unblocks its port on the link that has
recovered and then sends RAPS (NR, RB) messages within subring 2.
.3
After receiving an RAPS (NR, RB) message from LSW7, LSW4 unblocks its port on the
recovered link, stops sending RAPS NR messages, and updates FDB flush entries.
LSW3 also updates FDB entries after receiving an RAPS (NR, RB) message from
LSW7.
.4
LSW3 and LSW4, interconnection nodes, then send an RAPS Event message within the
major ring to notify the link recovery of subring 2.
.5
After receiving the RAPS Event message, the other LSWs on the major ring update FDB
entries.
Issue 01 (2013-10-30)
230
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
To improve link use efficiency, only two logical rings can be configured on the same physical
ring in the ERPS multi-instance. A port may have different roles in different ERPS rings and
different ERPS rings use different control VLANs. A physical ring can have two blocked ports
accordingly. Each blocked port independently monitors the physical ring status and then
blocks or unblocks the ports. An ERPS ring must be configured with a protected instance, and
each instance specifies a range of VLANs. The topology calculated for a specific ERPS ring
only takes effect on the ERPS ring. Different VLANs can use separate paths, implementing
traffic load balancing and link backup.
As shown in Figure 1.1, ERPS Ring1 and ERPS Ring2 can be configured on the physical ring
consisting of SwitchA through SwitchE. Interface1 is the blocked port in ERPS Ring1. The
VLANs mapping to the protected instance is VLAN 100 to VLAN 200. Interface2 is the
blocked port in ERPS Ring2. The VLANs mapping to the protected instance is VLAN 300 to
VLAN 400. After the configuration is completed, data from VLAN 100 to VLAN 200 is
forwarded through Data Flow1, and data from VLAN 300 to VLAN 400 is forwarded through
Data Flow2. In this manner, load balancing is implemented and link use efficiency is
improved.
Issue 01 (2013-10-30)
231
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Starting from V200R001, switches support ERPSv1. ERPS is a standard protocol issued
by the ITU-T to prevent loops on ring networks. It allows all ERPS-capable devices on a
ring network to communicate. Switches support only single-ring networking.
Starting from V200R003, switches support ERPSv2. ERPSv2 was released by G.8032
ITU-T in August 2010. ERPSv2 is compatible with ERPSv1 and provides the following
enhancements: multi-ring networking, FS, MS, revertive/non-revertive switching, and
CFM association.
Issue 01 (2013-10-30)
232
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
Packets sent from CE1 are forwarded through SwitchB and SwitchA. Packets sent from
CE2 are forwarded through SwitchC, SwitchB, and SwitchA. Packets sent from CE3 are
forwarded through SwitchD and SwitchE.
233
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
Create an ERPS ring, and configure a control VLAN and a protected instance. The
control VLAN is configured for an ERPS ring to transmit RAPS PDUs. The VLAN in
which RAPS PDUs and data packets are transmitted must be mapped to a protected
instance so that ERPS forwards or blocks the VLAN packets.
3.
Add Layer 2 ports connecting the switches to the ERPS ring and configure GE1/0/2 on
SwitchC as the RPL owner port. Normally, the RPL owner port is blocked to eliminate
loops. When a link on the ring network fails, ERPS immediately unblocks the blocked
port and performs link switching to restore communication between nodes on the ring
network.
4.
Set the guard timer and WTR timer for the ERPS ring.
Issue 01 (2013-10-30)
234
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
1/0/1
link-type trunk
trunk allow-pass vlan 100 to 200
1/0/2
link-type trunk
trunk allow-pass vlan 100 to 200
# The configurations of SwitchB, SwitchC, SwitchD, and SwitchE are similar to the
configuration of SwitchA, and configuration details are not mentioned here.
Step 2 Create an ERPS ring, configure VLAN 10 as the control VLAN to transmit RAPS PDUs, and
bind VLANs 100 through 200 to a protected instance.
# Configure SwitchA.
[SwitchA] erps ring 1
[SwitchA-erps-ring1] control-vlan 10
[SwitchA-erps-ring1] protected-instance 1
[SwitchA-erps-ring1] quit
[SwitchA] stp region-configuration
[SwitchA-mst-region] instance 1 vlan 10 100 to 200
[SwitchA-mst-region] active region-configuration
[SwitchA-mst-region] quit
# The configurations of SwitchB, SwitchC, SwitchD, and SwitchE are similar to the
configuration of SwitchA, and configuration details are not mentioned here.
Step 3 Disable STP on interfaces, add interfaces to the ERPS ring, and configure GE1/0/2 on
SwitchC as the RPL owner port.
# Configure SwitchA.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] stp disable
[SwitchA-GigabitEthernet1/0/1] erps ring 1
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface gigabitethernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] stp disable
[SwitchA-GigabitEthernet1/0/2] erps ring 1
[SwitchA-GigabitEthernet1/0/2] quit
# Configure SwitchC.
[SwitchC] interface gigabitethernet 1/0/1
[SwitchC-GigabitEthernet1/0/1] stp disable
[SwitchC-GigabitEthernet1/0/1] erps ring 1
[SwitchC-GigabitEthernet1/0/1] quit
[SwitchC] interface gigabitethernet 1/0/2
Issue 01 (2013-10-30)
235
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# The configurations of SwitchB, SwitchD, and SwitchE are similar to the configuration of
SwitchA, and configuration details are not mentioned here.
Step 4 Set the guard timer and WTR timer for the ERPS ring.
# Configure SwitchA.
[SwitchA] erps ring 1
[SwitchA-erps-ring1] wtr-timer 6
[SwitchA-erps-ring1] guard-timer 100
[SwitchA-erps-ring1] quit
# The configurations of SwitchB, SwitchC, SwitchD, and SwitchE are similar to the
configuration of SwitchA, and configuration details are not mentioned here.
Step 5 Verify the configuration.
After the preceding configurations are complete, perform the following operations to verify
the configuration. The display on SwitchC is used as an example.
Run the display erps ring 1 command to view brief information about the ERPS ring, and
ports of SwitchC that have been added to the ring.
[SwitchC] display erps ring 1
D : Discarding
F : Forwarding
R : RPL Owner
Ring Control WTR Timer Guard Timer Port 1
Port 2
ID
VLAN
(min)
(csec)
-------------------------------------------------------------------------------1
10
6
100 (F)GE1/0/1
(D,R)GE1/0/2
--------------------------------------------------------------------------------
Run the display erps ring 1 verbose command to view detailed information about the ERPS
ring, and ports of SwitchC that have been added to the ring.
[SwitchC] display erps ring 1 verbose
Ring ID
: 1
Description
: Ring 1
Control Vlan
: 10
Protected Instance
: 1
WTR Timer Setting (min)
: 6
Running (s)
: 0
Guard Timer Setting (csec)
: 100
Running (csec)
: 0
Holdoff Timer Setting (deciseconds) : 0
Running (deciseconds) : 0
Ring State
: Idle
RAPS_MEL
: 7
Time since last topology change
: 0 days 0h:33m:4s
-------------------------------------------------------------------------------Port
Port Role
Port Status
Signal Status
-------------------------------------------------------------------------------GE1/0/1
Common
Forwarding
Non-failed
GE1/0/2
RPL Owner
Discarding
Non-failed
----End
Issue 01 (2013-10-30)
236
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Configuration Files
Issue 01 (2013-10-30)
237
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
238
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
stp disable
erps ring 1
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 10 100 to 200
stp disable
erps ring 1
#
return
239
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
from different vendors to communicate. Huawei ERPS supports multi-instance so that data
from different VLANs can be forwarded through different paths, maximizing link usage.
Data packets from VLANs 100 to 200 and VLANs 300 to 400 need to be transmitted from the
ring network to the Layer 3 network. To prevent loops on the ring network, deploy ERPS on
devices of the ring network. To make full use of link resources, data packets from VLANs 100
to 200 need to be transmitted along the path SwitchC -> SwitchB -> SwitchA, and data
packets from VLANs 300 to 400 need to be transmitted along the path SwitchC -> SwitchD
-> SwitchE so that load balancing is implemented.
Figure 1.1 Networking of ERPS multi-instance
2.
Create ERPS ring 1, and configure a control VLAN and protected instance. VLANs 100
to 200 are bound to the protected instance.
Issue 01 (2013-10-30)
240
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
3.
Add Layer 2 ports to ERPS ring 1 and configure GE1/0/2 on Switch C as the RPL owner
port. Normally, the RPL owner port is blocked, so data packets from VLANs 100 to 200
are transmitted along the path SwitchC -> SwitchB -> SwitchA.
4.
Set the guard timer and WTR timer for ERPS ring 1.
5.
Create ERPS ring 2, and configure a control VLAN and protected instance. The control
VLAN on ERPS ring 2 is different from that on ERPS ring 1, and VLANs 300 to 400 are
bound to the protected instance.
6.
Add Layer 2 ports to ERPS ring 2 and configure GE1/0/1 on Switch C as the RPL owner
port. Normally, the RPL owner port is blocked, so data packets from VLANs 300 to 400
are transmitted along the path SwitchC -> SwitchD -> SwitchE. That is, data packets
from VLANs 100 to 200 and VLANs 300 to 400 are forwarded through different paths,
implementing load balancing.
7.
Set the guard timer and WTR timer for ERPS ring 2.
to 400
1/0/1
link-type trunk
trunk allow-pass vlan 100 to 200 300 to 400
1/0/2
link-type trunk
trunk allow-pass vlan 100 to 200 300 to 400
# The configurations of SwitchB, SwitchC, SwitchD, and SwitchE are similar to the
configuration of SwitchA, and configuration details are not mentioned here.
Step 2 Create ERPS ring 1, configure VLAN 10 as the control VLAN to transmit RAPS PDUs, and
bind VLANs 100 through 200 to the protected instance.
# Configure SwitchA.
[SwitchA] erps ring 1
[SwitchA-erps-ring1] control-vlan 10
[SwitchA-erps-ring1] protected-instance 1
[SwitchA-erps-ring1] quit
[SwitchA] stp region-configuration
[SwitchA-mst-region] instance 1 vlan 10 100 to 200
[SwitchA-mst-region] active region-configuration
[SwitchA-mst-region] quit
# The configurations of SwitchB, SwitchC, SwitchD, and SwitchE are similar to the
configuration of SwitchA, and configuration details are not mentioned here.
Step 3 Disable STP on interfaces, add interfaces to the ERPS ring, and configure GE1/0/2 on
SwitchC as the RPL owner port.
# Configure SwitchA.
Issue 01 (2013-10-30)
241
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
# Configure SwitchC.
[SwitchC] interface gigabitethernet 1/0/1
[SwitchC-GigabitEthernet1/0/1] stp disable
[SwitchC-GigabitEthernet1/0/1] erps ring 1
[SwitchC-GigabitEthernet1/0/1] quit
[SwitchC] interface gigabitethernet 1/0/2
[SwitchC-GigabitEthernet1/0/2] stp disable
[SwitchC-GigabitEthernet1/0/2] erps ring 1 rpl owner
[SwitchC-GigabitEthernet1/0/2] quit
# The configurations of SwitchB, SwitchD, and SwitchE are similar to the configuration of
SwitchA, and configuration details are not mentioned here.
Step 4 Set the guard timer and WTR timer for ERPS ring 1.
# Configure SwitchA.
[SwitchA] erps ring 1
[SwitchA-erps-ring1] wtr-timer 6
[SwitchA-erps-ring1] guard-timer 100
[SwitchA-erps-ring1] quit
# The configurations of SwitchB, SwitchC, SwitchD, and SwitchE are similar to the
configuration of SwitchA, and configuration details are not mentioned here.
Step 5 Create ERPS ring 2, configure VLAN 20 as the control VLAN to transmit RAPS PDUs, and
bind VLANs 300 through 400 to the protected instance.
# Configure SwitchA.
[SwitchA] erps ring 2
[SwitchA-erps-ring1] control-vlan 20
[SwitchA-erps-ring1] protected-instance 2
[SwitchA-erps-ring1] quit
[SwitchA] stp region-configuration
[SwitchA-mst-region] instance 2 vlan 20 300 to 400
[SwitchA-mst-region] active region-configuration
[SwitchA-mst-region] quit
# The configurations of SwitchB, SwitchC, SwitchD, and SwitchE are similar to the
configuration of SwitchA, and configuration details are not mentioned here.
Step 6 Disable STP on interfaces, add interfaces to ERPS ring 2, and configure GE1/0/1 on SwitchC
as the RPL owner port.
# Configure SwitchA.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] stp disable
[SwitchA-GigabitEthernet1/0/1] erps ring 2
Issue 01 (2013-10-30)
242
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface gigabitethernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] stp disable
[SwitchA-GigabitEthernet1/0/2] erps ring 2
[SwitchA-GigabitEthernet1/0/2] quit
# Configure SwitchC.
[SwitchC] interface gigabitethernet 1/0/1
[SwitchC-GigabitEthernet1/0/1] stp disable
[SwitchC-GigabitEthernet1/0/1] erps ring 2 rpl owner
[SwitchC-GigabitEthernet1/0/1] quit
[SwitchC] interface gigabitethernet 1/0/2
[SwitchC-GigabitEthernet1/0/2] stp disable
[SwitchC-GigabitEthernet1/0/2] erps ring 2
[SwitchC-GigabitEthernet1/0/2] quit
# The configurations of SwitchB, SwitchD, and SwitchE are similar to the configuration of
SwitchA, and configuration details are not mentioned here.
Step 7 Set the guard timer and WTR timer for ERPS ring 2.
# Configure SwitchA.
[SwitchA] erps ring 2
[SwitchA-erps-ring1] wtr-timer 6
[SwitchA-erps-ring1] guard-timer 100
[SwitchA-erps-ring1] quit
# The configurations of SwitchB, SwitchC, SwitchD, and SwitchE are similar to the
configuration of SwitchA, and configuration details are not mentioned here.
Step 8 Verify the configuration.
After the preceding configurations are complete, perform the following operations to verify
the configuration. The display on SwitchC is used as an example.
Run the display erps ring 1 command to view brief information about the ERPS ring, and
ports of SwitchC that have been added to the ring.
[SwitchC] display erps ring 1
D : Discarding
F : Forwarding
R : RPL Owner
Ring Control WTR Timer Guard Timer Port 1
Port 2
ID
VLAN
(min)
(csec)
-------------------------------------------------------------------------------1
10
6
100 (F)GE1/0/1
(D,R)GE1/0/2
--------------------------------------------------------------------------------
Run the display erps ring 2 command to view brief information about the ERPS ring, and
ports of SwitchC that have been added to the ring.
[SwitchC] display erps ring 2
D : Discarding
F : Forwarding
R : RPL Owner
Ring Control WTR Timer Guard Timer Port 1
Port 2
ID
VLAN
(min)
(csec)
--------------------------------------------------------------------------------
Issue 01 (2013-10-30)
243
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2
20
6
100 (D,R)GE1/0/1
(F)GE1/0/2
--------------------------------------------------------------------------------
Run the display erps ring 1 verbose command to view detailed information about the ERPS
ring, and ports of SwitchC that have been added to the ring.
[SwitchC] display erps ring 1 verbose
Ring ID
: 1
Description
: Ring 1
Control Vlan
: 10
Protected Instance
: 1
WTR Timer Setting (min)
: 6
Running (s)
: 0
Guard Timer Setting (csec)
: 100
Running (csec)
: 0
Holdoff Timer Setting (deciseconds) : 0
Running (deciseconds) : 0
Ring State
: Idle
RAPS_MEL
: 7
Time since last topology change
: 0 days 0h:33m:4s
-------------------------------------------------------------------------------Port
Port Role
Port Status
Signal Status
-------------------------------------------------------------------------------GE1/0/1
Common
Forwarding
Non-failed
GE1/0/2
RPL Owner
Discarding
Non-failed
Run the display erps ring 2 verbose command to view detailed information about the ERPS
ring, and ports of SwitchC that have been added to the ring.
[SwitchC] display erps ring 2 verbose
Ring ID
: 2
Description
: Ring 2
Control Vlan
: 20
Protected Instance
: 2
WTR Timer Setting (min)
: 6
Running (s)
: 0
Guard Timer Setting (csec)
: 100
Running (csec)
: 0
Holdoff Timer Setting (deciseconds) : 0
Running (deciseconds) : 0
Ring State
: Idle
RAPS_MEL
: 7
Time since last topology change
: 0 days 0h:33m:4s
-------------------------------------------------------------------------------Port
Port Role
Port Status
Signal Status
-------------------------------------------------------------------------------GE1/0/1
RPL Owner
Discarding
Non-failed
GE1/0/2
Common
Forwarding
Non-failed
----End
Configuration Files
Issue 01 (2013-10-30)
244
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
active region-configuration
#
erps ring 1
control-vlan 10
protected-instance 1
wtr-timer 6
guard-timer 100
erps ring 2
control-vlan 20
protected-instance 2
wtr-timer 6
guard-timer 100
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#
return
Issue 01 (2013-10-30)
245
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
erps ring 2
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#
return
Issue 01 (2013-10-30)
246
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
247
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
stp disable
erps ring 1
erps ring 2
#
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#
return
Issue 01 (2013-10-30)
248
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
6.3 Troubleshooting
6.3.1 Troubleshooting Overview
Faster protection switching on Ethernet networks is required. STP does not meet the
requirement for convergence performance. RRPP and SEP are Huawei proprietary ring
protocols, which cannot be used for communication between Huawei and non-Huawei
devices on a ring network. ERPS is a standard protocol issued by the ITU-T to prevent loops
on ring networks. It allows all ERPS-capable devices on a ring network to communicate.
During ERPS application, ERPS faults may occur. This section describes how to troubleshoot
ERPS faults.
The interface does not allow packets of the specified VLAN to pass.
Issue 01 (2013-10-30)
249
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
250
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
-------------------------------------------------------------------------------GE1/0/1
Common
Forwarding
Non-failed
GE1/0/2
RPL Owner
Discarding
Non-failed
If the ERPS status on a device is not Idle, check that the ERPS configuration is correct.
Go to step 2.
Step 2 Check whether the interface with an MEP configured is in Down state.
Run the display interface command in any view to check the interface status.
<Switch> display interface gigabitethernet1/0/1
GigabitEthernet1/0/1 current state : DOWN
Line protocol current state : DOWN
Description:HUAWEI, Quidway Series, GigabitEthernet1/0/1 Interface
Switch Port, PVID :
1, TPID : 8100(Hex), The Maximum Frame Length is 1600
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000b-0918-8bc1
Port Mode: COMMON COPPER
Speed :
10, Loopback: NONE
Duplex: HALF, Negotiation: ENABLE
Mdi
: AUTO
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
Input peak rate 0 bits/sec, Record time: Output peak rate 0 bits/sec, Record time: Input: 0 packets, 0 bytes
Unicast
:
0, Multicast
:
0
Broadcast
:
0, Jumbo
:
0
CRC
:
0, Giants
:
0
Jabbers
:
0, Fragments
:
0
Runts
:
0, DropEvents
:
0
Alignments
:
0, Symbols
:
0
Ignoreds
:
0, Frames
:
0
Discard
:
0, Total Error
:
0
Output: 0 packets, 0 bytes
Unicast
:
0, Multicast
:
0
Broadcast
:
0, Jumbo
:
0
Collisions
:
0, Deferreds
:
0
Late Collisions:
0, ExcessiveCollisions:
0
Buffers Purged :
0
Discard
:
0, Total Error
:
0
Input bandwidth utilization threshold : 100.00%
Output bandwidth utilization threshold: 100.00%
Input bandwidth utilization : 0.00%
Output bandwidth utilization : 0.00%
If the interface is in Down state, run the display this command in the interface view to
check whether the interface has been shut down.
If the command output displays shutdown, run the undo shutdown command in the
interface view.
Issue 01 (2013-10-30)
251
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
If the physical interface is faulty, rectify the fault according to Ethernet Interface
Troubleshooting.
Step 4 Check whether the interface allows data packets of the specified VLAN to pass.
Run the display this command in the interface view to check the VLANs allowed by the
interface.
[Quidway-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 1025
stp disable
erps ring 1
#
If the interface does not allow packets of the specified VLAN to pass, configure it to
allow packets of this VLAN to pass.
Step 5 Collect the following information and contact Huawei technical support personnel.
----End
Description
display version
display device
display patch-information
display current-configuration
Issue 01 (2013-10-30)
252
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Command
Description
display interface
display logbuffer
display trapbuffer
Issue 01 (2013-10-30)
253
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Run the display erps verbose command to check the ERPS port status.
<SwtichB> display erps verbose
Ring ID
Description
Control Vlan
Protected Instance
WTR Timer Setting (min)
Guard Timer Setting (csec)
Holdoff Timer Setting (deciseconds)
Ring State
Issue 01 (2013-10-30)
:
:
:
:
:
:
:
:
1
Ring 1
4094
1
5
Running (s)
: 0
50
Running (csec)
: 0
0
Running (deciseconds) : 0
Pending
254
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
RAPS_MEL
: 7
Time since last topology change
: 0 days 0h:31m:36s
------------------------------------------------------------------------------Port
Port Role
Port Status
Signal Status
------------------------------------------------------------------------------Eth-Trunk1
Common
Forwarding
Non-failed
GE2/0/36
Common
Discarding
Non-failed
The RPL owner port of the RTN and GE2/0/36 on SwitchB are blocked, indicating that
the ERPS port status is abnormal.
2.
Run the display erps statistics command to check whether the switch receives RAPS
PDUs from the RTN.
<SwtichB> display erps statistics
------------------------------------------------------------------------------Ring Port
Direction
SF
NR
NRRB
------------------------------------------------------------------------------1 Eth-Trunk1
RX
0
80
0
1 Eth-Trunk1
TX
0
16
0
1 GE2/0/36
RX
0
0
0
1 GE2/0/36
TX
0
11
0
The preceding information shows that GE2/0/36 does not receive RAPS PDUs from
RTNB. Capture packets on the link of GE2/0/36 and compare the RAPS PDUs sent by
the RTN and switch. The value of EtherType in RAPS PDUs sent by the RTN is 0x8809,
and the value of EtherType in RAPS PDUs sent by the switch is 0x8802. The correct
value of EtherType is 0x8802. As a result, the switch cannot send RAPS PDUs from the
RTN.
6.4.1.4 Solution
When customer requirements are met, deploy a loop prevention technology.
6.4.1.5 Summary
In ERPS interworking scenarios, check whether RAPS PDUs sent by devices are correct.
Issue 01 (2013-10-30)
255
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
LDT&LBDT
Issue 01 (2013-10-30)
256
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Loop detection can only detect loops but cannot remove loops like the Multiple Spanning Tree Protocol
(MSTP). Before enabling loop detection, disable the loop prevention protocol. An interface blocked by a
loop prevention protocol cannot continue to send loop detection packets.
Issue 01 (2013-10-30)
257
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
sent from this interface is looped back to the interface, which may cause traffic
forwarding errors or MAC address flapping on the interface.
Figure 1.1 Applicable scenario 1 of loopback detection
As shown in Figure 1.2, a loop occurs on the network connected to the switch. Packets
sent from an interface are sent back to this interface.
Issue 01 (2013-10-30)
As shown in Figure 1.3, a loop occurs on the network where the switch resides. Packets
sent from Interface 1 are forwarded by devices on other networks and looped back to
Interface 2.
258
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
You can configure loopback detection on the switch interface to detect loops in the preceding
scenarios. When the device detects a loop on the network connected to one of its interfaces,
the device shuts down this interface to eliminate the loop. When the device detects that the
loop has been removed, it recovers communication on the interface.
Loopback detection cannot prevent loops on the entire network. It only detects loops on a single
node.
A large number of broadcast packets are sent during loopback detection, occupying system
resources; therefore, disable loopback detection if it is not required.
Untagged loopback detection packet: The destination MAC address in the packet is the
BPDU MAC address. This packet is used to detect loopback on a TX-RX interface. The
interface can receive and send untagged loopback detection packets, without being added
to a VLAN.
Tagged loopback detection packet: The destination MAC address in the packet is the
broadcast MAC address with all Fs. This packet is used to detect loops on the
downstream network connected to the interface. The interface can receive and send
tagged loopback detection packets only after the interface is added to a VLAN.
After loopback detection is enabled on an interface, the interface periodically sends detection
packets and checks whether loopback packets are received. If a loopback occurs on an
interface, the device sets the interface in loopback detection state to minimize the impact of
loopback on the entire network. You can run the loopback-detect action { block | nolearn |
shutdown | trap } command to configure an action to take after a loopback is detected. The
default action is shutdown.
Issue 01 (2013-10-30)
259
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
In V100R003 and earlier versions, if the action is set to block or shutdown, run the
loop-detection recovery-time command to set the recovery time. Otherwise, the
blocked or shutdown interface cannot be restored after a loop is detected.
Starting from V200R003, a chassis switch enabled with loop detection can detect loops
in a maximum of 4K VLANs. When a loop is detected on an interface, the interface is
removed from the VLAN to remove loops.
Loopback Detection
V100R003 and earlier versions: three times the detection interval (over 90s)
V100R006 and later versions: three times the packet sending interval (over 15s)
Starting from V200R003, a box switch enabled with loopback detection can detect
loopback on two interfaces.
Issue 01 (2013-10-30)
260
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
3.
4.
5.
Issue 01 (2013-10-30)
261
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
[Quidway-GigabitEthernet1/0/0]
[Quidway-GigabitEthernet1/0/0]
[Quidway-GigabitEthernet1/0/0]
[Quidway-GigabitEthernet1/0/0]
stp disable
port hybrid pvid vlan 200
port hybrid untagged vlan 200
loop-detection mode port-shutdown
Configuration Files
Configuration file of the switch
#
sysname Quidway
#
vlan batch 200
#
loop-detection enable
loop-detection interval-time 10
loop-detection enable vlan 200
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 200
port hybrid untagged vlan 200
stp disable
loop-detection mode port-shutdown
loop-detection recovery-time 20
#
return
Issue 01 (2013-10-30)
262
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
2.
3.
Issue 01 (2013-10-30)
263
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Configuration Files
Configuration file of the switch
#
sysname Quidway
#
vlan batch 100
#
loopback-detect packet-interval 10
#
interface GigabitEthernet0/0/1
port hybrid tagged vlan 100
loopback-detect enable
loopback-detect recovery-time 30
loopback-detect packet vlan 100
#
return
264
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Root cause: When an interface enabled with loop detection detects a loop, chassis switches in
V1R6 and earlier versions do not record logs. The loop detection trap function needs to be
enabled.
Identification method:
Set the recovery time of the blocked interface:
Chassis switch
[Quidway-GigabitEthernet1/0/0] loop-detection recovery-time 20
Issue 01 (2013-10-30)
265
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
7.3 Troubleshooting
7.3.1 Troubleshooting Overview
Loop detection is used to detect loops. Sometimes, loops cannot be detected.
Box switches send untagged loopback detection packets to detect loops. Check whether
the downlink device can transparently transmit BPDUs.
The chassis switch configured with loop detection cannot detect loops. Check whether
the downlink device can transparently transmit packets from the VLAN in which loop
detection is enabled.
2.
Check whether the downlink device can transparently transmit packets from the VLAN
in which loop detection is enabled.
Issue 01 (2013-10-30)
266
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
267
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Run the display loop-detection interface command to check whether the interface is added
to the VLAN. If not, add the interface to the VLAN.
[Quidway]display loop-detection interface GigabitEthernet 1/0/1
The port is enabled.
The port's status list:
Status
WorkMode
Recovery-time
EnabledVLAN
----------------------------------------------------------------------Normal
Shutdown
255
1
Normal
Shutdown
255
2
Normal
Shutdown
255
3
Normal
Shutdown
255
4
Normal
Shutdown
255
5
Step 2 Check whether the downlink interface is added to the VLAN enabled with loop detection.
Check whether the downlink interface is added to the VLAN enabled with loop detection and
ensure that loop detection packets can be forwarded.
Step 3 If the fault persists, contact Huawei technical support personnel.
----End
2.
Check whether the downlink device can transparently transmit loopback detection
packets.
Issue 01 (2013-10-30)
268
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Interface
RecoverTime
Action
Status
-------------------------------------------------------------------------------GigabitEthernet0/0/4
block
NORMAL
If the interface uses untagged loopback detection packets to detect a loopback, you are
advised to run the loopback-detect packet vlan command (excluding the S2300SI/S2700SI).
Issue 01 (2013-10-30)
269
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Starting from V200R001, when the action is set to shutdown, the buildrun information is not generated
when a loop is detected. The interface status is displayed as LOOPBACK-DETECT DOWN in the
display interface command output. After the loop is eliminated, run the shutdown and undo shutdown
commands to restore the interface. If the recovery time is reached, the interface is restored when no loop
exists in all VLANs including the VLAN specified by the PVID in untagged mode.
Step 2 Check whether the downlink device can transparently transmit loopback detection packets.
If the switch interface is configured to use tagged loopback detection packets, check whether
the downlink device is added to the VLAN. Ensure that loopback detection packets can be
forwarded.
If the switch interface is configured to use untagged loopback detection packets, perform
either of the following operations:
V100R006: Load V100R006SPH011 and run the loopback-detect untagged macaddress command to change the destination MAC address to all Fs (excluding
S2300SI/S2700SI).
V200R001: Check whether the downlink device can transparently transmit BPDUs with
the destination MAC address as 0180-c200-000a.
Description
display version
display device
display patch-information
display current-configuration
display interface
display loop-detection
Issue 01 (2013-10-30)
270
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Command
Description
display loopback-detect
Issue 01 (2013-10-30)
271
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
7.4.1.4 Solution
The S2300SI does not support loopback detection. It is recommended that loopback detection
be configured on the S2300EI to detect loops.
Issue 01 (2013-10-30)
272
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Loops occur on the S5700SI. Although loopback detection in untagged mode is configured on
GE0/0/40 of the S5700EI, the S5700EI cannot detect loops on the S5700SI.
7.4.2.4 Solution
Load the patch V100R006SPH011. Change the destination MAC address in untagged
loopback detection packets to all Fs so that packets can be broadcast on the downlink device.
Then loops can be detected.
Issue 01 (2013-10-30)
273
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
FAQ
Specify the interface in the middle of a SEP segment as the blocked interface.
Specify the interface with the highest priority as the blocked interface.
274
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
[Quidway-sep-segment1]tc-notify ?
rrpp
Rapid ring protection protocol
segment
Segment
smart-link Smart-link
stp
Spanning Tree Protocol
Issue 01 (2013-10-30)
STP compares the Message Age value with the Max Age value to determine whether the
configuration BPDU expires. When the switch receives a configuration BPDU from its
upstream device, it determines whether the Message Age value in the configuration
BPDU is smaller than the Max Age value. If the Message Age value in the configuration
BPDU is smaller than the Max Age value, the switch sends the configuration BPDU with
the Message Age value plus 1 to the downstream bridge. If the Message Age value in the
configuration BPDU is larger than or equal to the Max Age value, the switch considers
that the configuration BPDU expires, and the receive interface enters the Discarding
state. The switch then sends a configuration BPDU with itself as the root bridge. In this
case, the Message Age value in the configuration BPDU received by the downstream
bridge is 0.
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co.,
Ltd.
275
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
RSTP re-defines increments of the Message Age value. Each time a configuration BPDU
passes through a bridge, the increment of the Message Age value is the maximum value
between 1/16 of the Max Age that is rounded off and 1. When the Max Age value is
smaller than 24, the increment is 1. When the Max Age value is larger than or equal to 24
and smaller than 40, the increment is 2. When the Max Age value is equal to 40, the
increment is 3, and so on.
On S series switches, the default value of Max Age is 2000 centiseconds (20s).
The Max Age value is invalid for MSTIs. If the switch is the CIST root bridge, it determines
whether the configuration BPDU expires according to the Max Age value. If the switch is not
the CIST root bridge, it uses its configured Max Age value.
The Hello time, Forward delay, and Max Age must conform to the following formulas:
STP works properly only when the three values conform to the preceding formulas.
It is recommended the default values of the Hello time (2s), Forward delay (15s), and Max
Age (20s) be used on S series switches.
2.
Query and record the information about the interface on the remote end, including the
manufacturer, version, and configuration.
3.
Issue 01 (2013-10-30)
If a Huawei device is used, run the display version, display interface, and display
current-configuration commands.
If an invalid packet was received by MSTP and hence the STP status was incorrect, loops
may occur at Layer 2. It is recommended that the interface be shut down to prevent
broadcast storms. To view the STP status and check whether loops occur, run the display
stp brief command. After confirming that loops are removed, run the undo shutdown
command to enable the interface.
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co.,
Ltd.
276
S Series Switch
Feature Start - Loop Prevention Features
4.
1 Overview
Provide the error packets and collected information to Huawei technical support
personnel.
HEALTH (HELLO)
000F-E207-8217
LINK-DOWN
000F-E207-8257
Issue 01 (2013-10-30)
277
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Packet Type
COMMON-FLUSH-FDB
000F-E207-8297
COMPLETE-FLUSH-FDB
EDGE-HELLO
MAJOR-FAULT
If a link on the ring is faulty, the port directly connected to the link goes Down.
The transit node immediately sends a Link-Down packet to the master node to report the
link status change.
When receiving the Link-Down packet, the master node considers that the ring fails, so it
unblocks the secondary port and sends a packet to instruct other transit nodes to refresh
Forwarding DataBases (FDBs).
After other transit nodes refresh their FDBs, the data stream is switched to a link in the
Up state.
Issue 01 (2013-10-30)
278
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Run the display rrpp statistics domain id command to view the statistics on RRPP packets.
Issue 01 (2013-10-30)
279
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Issue 01 (2013-10-30)
Loopback detection is used on the edge switch to prevent fiber loopback on the switch
interface or packets from being looped back to the local interface. Loop detection is used
on the aggregation switch to detect loopback and loops on the layer 2 network.
Huawei Proprietary and Confidential
Copyright Huawei Technologies Co.,
Ltd.
280
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Starting from V200R001, chassis switches support loopback detection. Starting from
V200R003, a box switch enabled with loopback detection can detect loops on two interfaces.
V100R006
An interface sends a loopback detection packet every 5s. You can set the interval for
sending loopback detection packets by using the loopback-detect packet-interval
packet-interval-time command. In the command, packet-interval-time ranges from 1 to
300, in seconds.
The switch adds the interface index to outgoing loop detection packets. When an
interface receives loop detection packets, it differentiates the loop detection packets
according to the interface index.
Detection packets are sent frequently; therefore, the CPU usage will increase if the loop
detection function is enabled on all interfaces.
Issue 01 (2013-10-30)
281
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Chassis Switch
Step 1: Run the save logfile command in the common view to save the configuration
file.
Step 2: Run the save diag-logfile command in the hidden view (diagnosis view after
V200R001) to save the diagnosis log file.
Step 3: Start the FTP server on the PC and download the primary log files and
diagnosis log files to the PC.
Log files of the master MPUs on an S9300 or S7700 series are stored in cfcard:/logfile, and those of
the slave MPUs are stored in slave#cfcard:/logfile.
Version
Issue 01 (2013-10-30)
Diagnosis File
Name
V100R002
log.txt
diag.txt
V100R003
log.log
log.dblg
V100R006
log.log
log.dblg
V200R001
log.log
log.dblg
282
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Log files and diagnosis log files of the master MPUs are mandatory. If a fault triggers a switchover
or the slave MPUs fail, you must collect log files and diagnosis log files of the slave MPUs. If a CSS
is torn down, collect log files and diagnosis log files on the four MPUs.
When the size of a log file exceeds the threshold, the switch automatically archives the log file and
saves it as a .zip file. For example, 2012-11-27.05-00-25.log.zip and 2012-11-15.05-22-32.diag.zip
are respectively an archived log file and a diagnosis log file. The file name indicates the archiving
time. Therefore, collect the log file and diagnosis log file generated when the fault occurs.
If the FTP server is unavailable, run the more command, such as more log.log. To collect diagnosis
log files of V100R003 or later, run the display diag-logfile command in the hidden view
(V100R003/V100R006) or diagnosis view (V200R001 or later), for example, display diag-logfile
cfcard:/logfile/log.dblg. It takes a long time to collect a large log file. FTP is recommended for
downloading log files.
Box Switch
Logs
In V100R003 and V100R005:
Step 1: Run the display logbuffer command to collect information in the log buffer.
Step 2: Run the display trapbuffer command to collect information in the trap
buffer.
Box switches support log file recording from V100R006; therefore, perform the
following operations to collect log files:
Issue 01 (2013-10-30)
Step 1: Run the save logfile command in the common view to save the configuration
file.
Step 2: Start the FTP server on the PC and download the primary log files and
diagnosis log files to the PC.
If a CSS is torn down or fails to be reset, collect log files of all devices in the CSS.
Box switches have only a small number of log files. Send all files in directories syslogfile and
resetinfo to R&D for analysis.
Directories syslogfile or resetinfo may not exist on some models due to hardware restrictions, so
you do not need to collect log files.
283
S Series Switch
Feature Start - Loop Prevention Features
10
1 Overview
Description
Issue 01 (2013-10-30)
284
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Description
Description
Description
Issue 01 (2013-10-30)
285
S Series Switch
Feature Start - Loop Prevention Features
1 Overview
Description
Issue 01 (2013-10-30)
286
S Series Switch
Feature Start - Loop Prevention Features
SEP
LSA
RRPP
STP
RSTP
MSTP
BPDU
TC
Topology Change
SMLK
Smart Link
ERPS
LDT
Loop Detection
LBDT
Loopback-detect
DLDP
Issue 01 (2013-10-30)
287