S3900 Series Switches EAPS Configuration
S3900 Series Switches EAPS Configuration
I
S3900 SERIES SWTCHES EAPS CONFIGURATION
Contents
1 Introduction of Fast Ethernet Ring Protection.........................................................................................1
1.1 Overview................................................................................................................................................................................. 1
www.fs.com I
S3900 SERIES SWITCHES EAPS CONFIGURATION
MY COMPANYEthernet ring protection protocol is a special type of link-layer protocol specially designed for constructing the ring Ethernet
topology. The Ethernet protection protocol can shut down one link in a complete ring topology, preventing the data loop from forming
the broadcast storm. If a link is broken, the protocol immediately resumes the link that is previously shut down. In this way, the nodes
among the ring network can communicate with each other.
The ring protection protocol and STP are both used for topology control on the link layer. STP is suitable for all kinds of complicated
networks, which transmits the change of network topology hop by hop. The ring protection protocol is used for ring topology and adopts
the pervasion mechanism to transmit the change of network topology. Therefore, the convergence of the ring protection protocol in the
ring network is better than STP. In a sound network, the ring protection protocol can resume network communication within less than
50ms.
Remark:
EAPS supports to set a switch to be a node of multiple physical ring to construct complicated topology.
Each switch on an Ethernet ring is a ring node. The ring nodes are classified into master nodes and transit nodes. Only one switch on the
Ethernet ring can serve as a mere master node and other switches are worked as transit nodes.
Master node: It positively knows whether the ring’s topology is complete, removes loopback, control other switches to update topology
information.
Transit node: It only checks the state of the local port of the ring, and notifies the master node of the invalid link.
The role of each node can be specified by user through configuration. The thing is that each switch in the same ring can be set to only one
kind of node. In figure 1.1, switch S1 is the master node of ring network, while switches S2, S3 and S4 are transit nodes.
EAPS demands each switch has two ports to connect the ring network. Each port of the ring network also needs to be specified through
www.fs.com 1
S3900 SERIES SWITCHES EAPS CONFIGURATION
configuration and the protocol supports the following kinds of port roles:
Primary port: the primary port can be configured only on the master node. The master node transmits the ring detection packets through
the primary port.
Secondary port: the secondary port can be configured only on the master node. The master node receives the ring detection packets from
the secondary port and judges whether the topology of the ring network is complete. In complete topology, the master node blocks the
data packets on the secondary port, and prevents loopback from occurring; after a link on the ring network is interrupted, the master
node will open the secondary port to forwarding the data packets.
Transit port: the transmit port can only be configured on the transit node. Both ports through which the transit node connects the ring
network are all transit ports.
Each port of the ring network can be configured as only one port role after the node's role of the switch and the control VLAN are
configured. As shown in figure 1.1, the port through which master node S1 connects transit node S4 is a primary port, the port through
which S1 connects S2 is a secondary port, and the ports through which other switches connect the ring network are all transit ports.
Remark:
To configure a same switch to belong to multiple rings, the switch must connect different rings through different physical ports.
A private control VLAN is used between master node and transit node to transmit protocol packets. This control VLAN is specified by user
through configuration and ring's ports are added also by user to the control VLAN, which guarantees that the protocol packets can be
normally forwarded. In general, each port of the ring network is in the forwarding state in the control VLAN and the ports which do not
belong to the ring network cannot forward the packets of control VLAN.
Note:
You can specify different control VLAN for each ring on a switch. The control VLAN is only used to forward the control packets of the ring
network, not for L2/L3 communication. For example, if the VLAN port that corresponds to the control VLAN is established, the IP address
of the VLAN port cannot be pinged through other devices.
The VLANs except the control VLAN are all data VLANs, which are used to transmit the packets of normal services or the management
packets.
Note:
The data VLAN can be used for normal L2/L3 communication. For example, you can establish a VLAN port corresponding to data VLAN and
configure dynamic routing protocols.
The Ethernet ring protection protocol can transmit data packets to the correct link by controlling the aging of the switch’s MAC address
table when the topology changes. In general, the time for a MAC address to age in the MAC address table is 300 seconds. The ring
protection protocol can control the aging of the MAC address table in a short time.
Both the master node and the transit node can show whether the current ring network is complete through the state symbol “COMPLETE”.
On the master node, only when all links of the ring network are normal, the primary port is in forwarding state and the secondary port is in
blocking state can the "COMPLETE” symbol be real; on the transit node, only when its two transit ports are in forwarding state can the
“COMPLETE” symbol be true.
The state symbol of the ring network helps user to judge the topology state of the current network.
www.fs.com 2
S3900 SERIES SWITCHES EAPS CONFIGURATION
The EAPS packets can be classified into the following types, as shown in table 1.1.
Loopback detection It is transmitted by the master node to detect whether the topology of the ring network is
(HEALTH) complete.
LINK-DOWN Indicates that link interruption happens in the ring. This kinds of packets are transmitted by
RING-DOWN-FLUSH-FDB It is transmitted by the master node after interruption of the ring network is detected and
the packets show the MAC address aging table of the transit node.
RING-UP-FLUSH-FDB It is transmitted by the master node after interruption of the ring network is resumed and the
packets show the MAC address aging table of the transit node.
The master node transmits the HEALTH packets to the control VLAN through the primary port in a configurable period. In normal case, the
HEALTH packets will pass through all other nodes of the ring network and finally arrive at the secondary port of the master node.
The secondary port blocks all data VLANs in primitive condition. When receiving the HEALTH packets continuously, the secondary port
keeps blocking data VLANs and blocking the loop. If the secondary port does not receive the HEALTH packets from the primary port in a
certain time (which can be configured), it will regard the ring network is out of effect. Then the master node removes the blocking of data
VLANs on the secondary port, ages the local MAC address table, and transmits the RING-DOWN-FLUSH-FDB packets to notify other nodes.
If the master node receives the HEALTH packets at the secondary port that is open to data VLANs, the ring network is resumed. In this case,
the master node immediately blocks data VLANs on the secondary port, updates the local topology information and reports other nodes
to age the MAC address table through RING-UP-FLUSH-FDB packets.
You can configure related commands on the Hello-time node and the Fail-time node to modify the interval for the primary port to
transmit the HEALTH packets and the time limit for the secondary port to wait for the HEALTH packets.
After the transit port of the transit node is out of effect, the LINK-DOWN packet will be immediately transmitted by the other transit port
to notify other nodes. In normal case, the packet passes through other transit nodes and finally arrives at one port of the master node.
After the master node receives the LINK-DOWN packet, it thinks that the ring network is invalid. In this case, the master node removes the
blocking of data VLANs on its secondary port, ages the local MAC address table, transmits the RING-DOWN-FLUSH-FDB packet and notifies
other nodes.
After the transit port is resumed, it does not immediately transmit the packets of data VLANs, but enters the Pre-Forwarding state. A transit
port in pre-forwarding state only transmits and receives the control packets from the control VLAN.
If there is only one transit port invalid in the ring network and when the port enters the pre-forwarding state, the secondary port of the
www.fs.com 3
S3900 SERIES SWITCHES EAPS CONFIGURATION
master node can receive the HEALTH packet from the primary port again. In this case, the master node blocks data VLANs on the
secondary port again and transmits the notification of ageing address table outside. After the node with a transit port in pre-forwarding
state receives the notification of aging address table, the node will first modify the pre-forwarding port to the forwarding port and then
ages the local MAC address table.
If a transit mode does not receives the notification of aging address table from the master node, it thinks that the link to the master node
is already out of effect, the transit node will automatically set the pre-forwarding port to be a forwarding one.
You can configure the related commands through the pre-forward-time node to modify the time for the transit port to keep the
pre-forwarding state.
www.fs.com 4
S3900 SERIES SWITCHES EAPS CONFIGURATION
Note:
The fast Ethernet protection protocol cannot be set together with STP.
After STP is disabled, you are recommended to run spanning-tree bpdu-terminal to keep the ring node from forwarding BPDU, which
leads to the storm.
Table 2.1 Default settings of the Ethernet ring protection protocol and STP.
www.fs.com 5
S3900 SERIES SWITCHES EAPS CONFIGURATION
Configure a switch to be the master node of a ring network according to the following steps:
Command Purpose
id: Instance ID
Switch_config_ring#hello-time value This step is optional. Configures the cycle for the master node to
Switch_config_ring#fail-time value This step is optional. Configures the time for the secondary port
Switch_config_ring#exit Saves the current settings and exits the node configuration
mode.
Remark:
The no ether-ring id command is used to delete the node settings and port settings of the Ethernet ring.
Configure a switch to be the transit node of a ring network according to the following steps:
www.fs.com 6
S3900 SERIES SWITCHES EAPS CONFIGURATION
Command Purpose
id: Instance ID
Switch_config_ring#pre-forward-time value This step is optional. Configures the time of maintaining the
Switch_config_ring#exit Saves the current settings and exits the node configuration
mode.
Configure a port of a switch to be the port of Ethernet ring according to the following steps:
Command Purpose
Remark:
The no ether-ring id {primary-port | secondary-port | transit-port } command can be used to cancel the port settings of Ethernet ring.
www.fs.com 7
S3900 SERIES SWITCHES EAPS CONFIGURATION
Run the following command to browse the state of the ring protection protocol:
Command Purpose
show ether-ring id Browses the summary information about the ring protection protocol
show ether-ring id detail Browses the detailed information about the ring protection protocol and
show ether-ring id interface intf-name Browses the state of the Ether-ring port or that of the common port.
MEAPS configuration
As shown in figure 2.1, master node S1 and transit node S2 are configured as follows. As to the settings of other nodes, they are same to
S2's settings.
Configuring switch S1:
Shuts down STP and configures the Ether-ring node:
S1_config#no spanning-tree
S1_config#ether-ring 1
S1_config_ring1#control-vlan 2
S1_config_ring1#master-node
The following commands are used to set the time related parameters:
S1_config_ring1#hello-time 2
S1_config_ring1#fail-time 6
Exits from the node configuration mode:
www.fs.com 8
S3900 SERIES SWITCHES EAPS CONFIGURATION
S1_config_ring1#exit
Configures the primary port and the secondary port:
S1_config#interface gigaEthernet 0/1
S1_config_g0/1#ether-ring 1 primary-port
S1_config_g0/1#exit
S1_config#interface gigaEthernet 0/3
S1_config_g0/3#ether-ring 1 secondary-port
S1_config_g0/3#exit
Establishes the control VLAN:
S1_config#vlan 2
S1_config_vlan2#exit
S1_config#interface range g0/1 , 3
S1_config_if_range#switchport mode trunk
S1_config_if_range#exit
www.fs.com 9
S3910 SERIES SWITCHES DATASHEET
www.fs.com 10