08-Smart Link Configuration
Chapters Download (206.68 KB)
Table of Contents
Operating Mechanism of Smart Link
Smart Link Configuration Task List
Configuring a Smart Link Device
Configuring Protected VLANs for a Smart Link Group
Configuring Member Ports for a Smart Link Group
Configuring Role Preemption for a Smart Link Group
Enabling the Sending of Flush Messages in a Specified Control VLAN
Smart Link Device Configuration Example
Configuring an Associated Device
Enabling the Receiving of Flush Messages from Specified Control VLANs
Associated Device Configuration Example
Displaying and Maintaining Smart Link
Smart Link Configuration Examples
Single Smart Link Group Configuration Example (on an Ethernet Network)
Multiple Smart Link Groups Load Sharing Configuration Example (on an Ethernet Network)
Smart Link Group Configuration Example on an EPON Network
When configuring Smart Link, go to these sections for information that you are interested in:
l Configuring a Smart Link Device
l Configuring an Associated Device
l Displaying and Maintaining Smart Link
l Smart Link Configuration Examples
In most cases, Spanning Tree Protocol (STP) is used to remove network loops while delivering link redundancy in a dual uplink network. The problem with STP, however, is that STP convergence time is long, which makes it not suitable for users who have high demand on convergence speed.
For more information about STP, refer to MSTP Configuration in this manual.
Smart Link is a feature developed to address the slow convergence issue with STP. It provides link redundancy as well as fast convergence in a dual uplink network, allowing the backup link to take over quickly when the primary link fails. To sum up, Smart Link features the following:
l Dedicated to dual uplink networks
l Subsecond convergence
l Easy to configure
Figure 1-1 shows a Smart Link application scenario.
Figure 1-1 Smart Link application scenario
A smart link group consists of only two member ports: the master and the slave. At a time, only one port is active for forwarding, and the other port is blocked, that is, in the standby state. When link failure occurs on the active port due to port shutdown or presence of unidirectional link for example, the standby port becomes active to take over while the original active port transits to the blocked state.
As shown in Figure 1-1, GE1/1/1 and GE1/1/3 of Device C form a smart link group, with GE1/1/1 being active and GE1/1/3 being standby. GE1/1/1 and GE1/1/3 of Device E form another smart link group, with GE1/1/3 being active and GE1/1/1 being standby.
Master port is a port role in a smart link group. When both ports in a smart link group are up, the master port preferentially transits to the forwarding state. Once the master port fails, the slave port takes over to forward traffic. During this period, if the smart link group is not configured with role preemption, the master port stays in standby state until the next link switchover even if it has recovered.
As shown in Figure 1-1, you can configure GE1/1/1 of Device C and GE1/1/3 of Device E as master ports.
As shown in Figure 1-1, you can configure GE1/1/3 of Device C and GE1/1/1 of Device E as slave ports.
Flush messages are used by a smart link group to notify other devices to refresh their MAC address forwarding entries and ARP/ND entries when link switchover occurs in the smart link group. Flush messages are common multicast data packets, and will be dropped by a blocked receiving port.
The transmit control VLAN is used for transmitting flush messages. When link switchover occurs, the devices (such as Device C and E in Figure 1-1) broadcast flush messages within the transmit control VLAN.
The receive control VLAN is used for receiving and processing flush messages. When link switchover occurs, the devices (such as Device A, B, and D in Figure 1-1) receive and process flush messages in the receive control VLAN and refresh their MAC address forwarding entries and ARP/ND entries.
A smart link group controls the forwarding state of some data VLANs, which are referred to as protected VLANs. Different smart link groups on a port control different protected VLANs. The state of the port in a protected VLAN is determined by the state of the port in the smart link group.
As shown in Figure 1-1, the link on GE1/1/1 of Device C is the active link, and the link on GE1/1/3 of Device C is the standby link. Normally, GE1/1/1 is in the forwarding state, while GE1/1/3 is in the standby state. When the link on GE1/1/1 fails, GE1/1/3 takes over to forward traffic while GE1/1/1 is blocked and placed in the standby state.
When a port switches to the forwarding state, the system outputs log information to notify the user of the port state change.
As link switchover can outdate the MAC address forwarding entries and ARP/ND entries on all devices, you need a forwarding entry update mechanism to ensure proper transmission. By far, the following two update mechanisms are provided:
l Uplink traffic-triggered MAC address learning, where update is triggered by uplink traffic. This mechanism is applicable to environments with devices not supporting smart link, including devices of other vendors’.
l Flush update where a Smart Link-enabled device updates its information by transmitting flush messages over the backup link to its upstream devices. This mechanism requires the upstream devices to be capable of recognizing smart link flush messages to update its MAC address forwarding entries and ARP/ND entries.
To keep traffic forwarding stable, the master port that has been blocked due to link failure does not take over immediately upon its recovery. Instead, link switchover will occur at next link switchover.
As shown in Figure 1-1, the link on GE1/1/1 of Device C is the active link, and the link on GE1/1/3 of Device C is the standby link. Once GE1/1/1 fails, GE1/1/3 takes over to forward traffic. During this period, if the smart link group is configured with role preemption, GE1/1/1 takes over to forward traffic as soon as it recovers.
A ring network may carry traffic of multiple VLANs. Smart link can forward traffic of different VLANs in different smart link groups, thus implementing load sharing.
To implement load sharing, you can assign a port to multiple smart link groups (each configured with different protected VLANs), making sure that the state of the port is different in these smart link groups. In this way, traffic of different VLANs can be forwarded along different paths.
You can configure protected VLANs for a smart link group by referencing MSTIs.
Complete the following tasks to configure Smart Link:
Task |
Remarks |
|
Required |
||
Required |
||
Required |
||
Optional |
||
Enabling the Sending of Flush Messages in a Specified Control VLAN |
Optional |
|
Enabling the Receiving of Flush Messages from Specified Control VLANs |
Required |
l A smart link device is a device that supports Smart Link and is configured with a smart link group and a transmit control VLAN for flush message transmission. Device C and Device E in Figure 1-1 are two examples of smart link devices.
l An associated device is a device that supports Smart Link, and receives flush messages sent from the specified control VLAN. Device A, Device B, and Device D in Figure 1-1 are examples of associated devices.
l Before configuring a port as a smart link group member, shut down the port to prevent loops. You can bring up the port only after completing the smart link group configuration.
l Disable STP and RRPP on the ports you want to add to the smart link group, and make sure that the ports are not member ports of any aggregation group or service loopback group.
An H3C S3600 series EPON OLT switch has only two Gigabit uplink combo ports that can be configured as member ports of smart link groups.
Follow these steps to create a smart link group:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Create a smart link group and enter smart link group view |
smart-link group group-id |
Required |
Follow these steps to configure the protected VLANs for a smart link group:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enter smart link group view |
smart-link group group-id |
— |
Configure protected VLANs for the smart link group |
protected-vlan reference-instance instance-id-list |
Required By default, no protected VLAN is configured for a smart link group. |
l The protected-vlan command configures protected VLANs for a smart link group by referencing MSTIs. To view VLAN-to-MSTI mappings, use the display stp region-configuration command. For VLAN-to-MSTI mapping configuration, refer to MSTP Configuration in this manual.
l The protected VLANs configured for a smart link group must be different from those configured for any other smart link group.
l In a smart link group, you need to assign the member ports to the protected VLANs.
l You can configure member ports for a smart link group either in smart link group view or in Ethernet port view. The configurations made in these two views lead to the same result.
Follow these steps to configure member ports for a smart link group in smart link group view:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enter smart link group view |
smart-link group group-id |
— |
Configure member ports for a smart link group |
port interface-type interface-number { master | slave } |
Required |
Follow these steps to configure member ports for a smart link group in Ethernet port view:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enter Ethernet port view |
interface interface-type interface-number |
— |
Configure member ports for a smart link group |
port smart-link group group-id { master | slave } |
Required |
Follow these steps to configure role preemption for a smart link group:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enter smart link group view |
smart-link group group-id |
— |
Enable role preemption |
preemption mode role |
Optional Disabled by default. |
Configure the preemption delay |
preemption delay delay-time |
Optional 1 second by default |
The preemption delay configuration takes effect only after role preemption is enabled.
Follow these steps to enable the sending of flush messages in the specified control VLAN:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enter smart link group view |
smart-link group group-id |
Required |
Enable flush update in the specified control VLAN |
flush enable [ control-vlan vlan-id ] |
Optional By default, flush update is enabled, and VLAN 1 is the control VLAN. |
l The control VLAN configured for a smart link group must be different from that configured for any other smart link group.
l Make sure that the configured control VLAN already exists, and assign the smart link group member ports to the control VLAN.
l Do not remove the control VLAN. Otherwise, flush messages cannot be sent properly.
l Create smart link group 1.
l The protected VLANs (VLAN 1 through VLAN 80) of smart link group 1 are mapped to MSTI 0 through 8. The MSTIs and VLANs being mapped are already configured on the device.
l Configure GigabitEthernet 1/1/1 as the master port of the smart link group, and GigabitEthernet 1/1/3 as the slave port.
l Configure VLAN 2000 for flush update.
<Sysname> system-view
[Sysname] vlan 2000
[Sysname-vlan2000] quit
[Sysname] interface gigabitethernet 1/1/1
[Sysname-GigabitEthernet1/1/1] undo stp enable
[Sysname-GigabitEthernet1/1/1] port link-type trunk
[Sysname-GigabitEthernet1/1/1] port trunk permit vlan 1 to 80 2000
[Sysname-GigabitEthernet1/1/1] quit
[Sysname] interface gigabitethernet 1/1/3
[Sysname-GigabitEthernet1/1/3] undo stp enable
[Sysname-GigabitEthernet1/1/3] port link-type trunk
[Sysname-GigabitEthernet1/1/3] port trunk permit vlan 1 to 80 2000
[Sysname-GigabitEthernet1/1/3] quit
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 0 to 8
[Sysname-smlk-group1] port gigabitethernet 1/1/1 master
[Sysname-smlk-group1] port gigabitethernet 1/1/3 slave
[Sysname-smlk-group1] flush enable control-vlan 2000
You do not need to enable all ports on the associated devices to receive flush messages sent from the transmit control VLAN, only those on the active and standby links between the smart link device and the destination device.
For example, as all the numbered ports on Device A, B, and D in Figure 1-1 are on the way of the active and standby links from Device C and E to Device A, you need to enable the ports to process flush messages received from the control VLAN configured on Device C and E.
Follow these steps to enable the receiving of flush messages from specified control VLANs:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enter Ethernet port view or OLT port view |
interface interface-type interface-number |
— |
Configure the control VLANs for receiving flush messages |
smart-link flush enable [ control-vlan vlan-id-list ] |
Required By default, no control VLAN exists for receiving flush messages. |
l On an H3C S3600 series EPON OLT switch, the Gigabit uplink combo ports and OLT ports all support receiving flush messages from specified control VLANs.
l Configure all the control VLANs to receive flush messages.
l If no control VLAN is specified for processing flush messages, the device forwards the received flush messages without processing them.
l Make sure that the receive control VLAN is the same as the transmit control VLAN configured on the smart link device. If they are not the same, the associated device will forward the received flush messages directly without any processing.
l Do not remove the control VLANs. Otherwise, flush messages cannot be sent properly.
l Make sure that the control VLANs are existing VLANs, and assign the ports capable of receiving flush messages to the control VLANs.
Configure Olt1/0/1 to receive and process flush messages in VLAN 20.
<Sysname> system-view
[Sysname] vlan 20
[Sysname-vlan20] quit
[Sysname] interface olt 1/0/1
[Sysname-Olt1/0/1] port link-type trunk
[Sysname-Olt1/0/1] port trunk permit vlan 20
[Sysname-Olt1/0/1] smart-link flush enable control-vlan 20
To do... |
Use the command… |
Remarks |
Display smart link group information |
display smart-link group { group-id | all } |
Available in any view |
Display information about the received flush messages |
display smart-link flush |
Available in any view |
Clear the statistics about flush messages |
reset smart-link statistics |
Available in user view |
As shown in Figure 1-2:
l Two S3600 EPON OLT switches, Device C and Device E, are dually uplinked to Device A.
l Associated devices Device A, Device B, and Device D may be H3C switches of other series.
l Configure VLAN 1 as the control VLAN for sending and receiving flush messages.
l Configure VLANs mapped to all MSTIs as protected VLANs. The MSTI IDs supported on an S3600 EPON OLT switch range from 0 to 15 and the mapped VLAN IDs range from 1 to 500. Ensure that the MSTIs and VLANs being mapped are already configured on the device.
Figure 1-2 Single smart link group configuration
1) Configuration on Device C
<DeviceC> system-view
[DeviceC] interface gigabitethernet 1/1/1
[DeviceC-GigabitEthernet1/1/1] undo stp enable
[DeviceC-GigabitEthernet1/1/1] port link-type trunk
[DeviceC-GigabitEthernet1/1/1] port trunk permit vlan 1 to 500
[DeviceC-GigabitEthernet1/1/1] quit
[DeviceC] interface gigabitethernet 1/1/3
[DeviceC-GigabitEthernet1/1/3] undo stp enable
[DeviceC-GigabitEthernet1/1/3] port link-type trunk
[DeviceC-GigabitEthernet1/1/3] port trunk permit vlan 1 to 500
[DeviceC-GigabitEthernet1/1/3] quit
# Create smart link group 1.
[DeviceC] smart-link group 1
# Configure all VLANs mapped to MSTIs 0 through 15 as the protected VLANs.
[DeviceC-smlk-group1] protected-vlan reference-instance 0 to 15
# Configure GigabitEthernet1/1/1 as the master port and GigabitEthernet1/1/3 as the slave port.
[DeviceC-smlk-group1] port gigabitethernet 1/1/1 master
[DeviceC-smlk-group1] port gigabitethernet 1/1/3 slave
# Configure VLAN 1 as the transmit control VLAN.
[DeviceC-smlk-group1] flush enable
2) Configuration on Device E
<DeviceE> system-view
[DeviceE] interface gigabitethernet 1/1/1
[DeviceE-GigabitEthernet1/1/1] undo stp enable
[DeviceE-GigabitEthernet1/1/1] port link-type trunk
[DeviceE-GigabitEthernet1/1/1] port trunk permit vlan 1 to 500
[DeviceE-GigabitEthernet1/1/1] quit
[DeviceE] interface gigabitethernet 1/1/3
[DeviceE-GigabitEthernet1/1/3] undo stp enable
[DeviceE-GigabitEthernet1/1/3] port link-type trunk
[DeviceE-GigabitEthernet1/1/3] port trunk permit vlan 1 to 500
[DeviceE-GigabitEthernet1/1/3] quit
# Create smart link group 1.
[DeviceE] smart-link group 1
# Configure all VLANs mapped to MSTIs 0 through 15 as the protected VLANs.
[DeviceC-smlk-group1] protected-vlan reference-instance 0 to 15
# Configure GigabitEthernet1/1/3 as the master port and GigabitEthernet1/1/1 as the slave port.
[DeviceE-smlk-group1] port gigabitethernet 1/1/3 master
[DeviceE-smlk-group1] port gigabitethernet 1/1/1 slave
# Configure VLAN 1 as the transmit control VLAN.
[DeviceE-smlk-group1] flush enable
3) Configuration on Device B and Device D
Make the following configurations on GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 of Device B and Device D separately. For details, refer to the manuals delivered with the selected devices.
l Assign the port to VLAN 1 through VLAN 500.
l Configure VLAN 1 as the receive control VLAN of the port.
4) Configuration on Device A
Make the following configurations on GigabitEthernet 2/0/1 and GigabitEthernet 2/0/2. For details, refer to the manuals delivered with the selected device.
l Assign the port to VLAN 1 through VLAN 500.
l Configure VLAN 1 as the receive control VLAN of the port.
After completing the configuration, you can use the display command to verify the smart link configuration and view flush message statistics.
As shown in Figure 1-3:
l An S3600 EPON OLT switch, Device C, is configured as a smart link device.
l Associated devices Device A, Device B, and Device D may be H3C switches of other series.
l The traffic of VLAN 1 through VLAN 200 on Device C are dually uplinked to Device A by Device B and Device D. Implement load sharing to uplink the traffic of VLAN 1 through VLAN 100 and the traffic of VLAN 101 through VLAN 200 over different links to Device A.
l Implement dual link backup on Device C: the traffic of VLANs 1 through 100 (mapped to MSTI 0) is uplinked to Device A by Device B; the traffic of VLANs 101 through 200 (mapped to MSTI 2) is uplinked to Device A by Device D. Smart link group 1 references MSTI 0, and smart link group 2 references MSTI 2.
l The control VLAN of smart link group 1 is VLAN 10 and that of smart link group 2 is VLAN 101.
Figure 1-3 Multiple smart link groups load sharing configuration
1) Configuration on Device C
# Create VLANs and configure VLAN-to-MSTI mappings.
<DeviceC> system-view
[DeviceC] vlan 1 to 200
[DeviceC] stp region-configuration
[DeviceC-mst-region] instance 0 vlan 1 to 100
[DeviceC-mst-region] instance 2 vlan 101 to 200
[DeviceC-mst-region] active region-configuration
[DeviceC-mst-region] quit
# Disable STP on the ports, configure the ports as trunk ports, and configure the ports to allow packets from VLAN 1 through 200 to pass through.
[DeviceC] interface gigabitethernet 1/1/1
[DeviceC-GigabitEthernet1/1/1] undo stp enable
[DeviceC-GigabitEthernet1/1/1] port link-type trunk
[DeviceC-GigabitEthernet1/1/1] port trunk permit vlan 1 to 200
[DeviceC-GigabitEthernet1/1/1] quit
[DeviceC] interface gigabitethernet 1/1/3
[DeviceC-GigabitEthernet1/1/3] undo stp enable
[DeviceC-GigabitEthernet1/1/3] port link-type trunk
[DeviceC-GigabitEthernet1/1/3] port trunk permit vlan 1 to 200
[DeviceC-GigabitEthernet1/1/3] quit
# Create smart link group 1.
[DeviceC] smart-link group 1
# Configure protected VLANs for smart link group 1.
[DeviceC-smlk-group1] protected-vlan reference-instance 0
# Configure GigabitEthernet1/1/1 as the master port and GigabitEthernet1/1/3 as the slave port.
[DeviceC-smlk-group1] port gigabitethernet 1/1/1 master
[DeviceC-smlk-group1] port gigabitethernet 1/1/3 slave
# Enable role preemption.
[DeviceC-smlk-group1] preemption mode role
# Configure VLAN 10 as the transmit control VLAN of smart link group 1.
[DeviceC-smlk-group-1] flush enable control-vlan 10
[DeviceC-smlk-group-1] quit
# Create smart link group 2.
[DeviceC] smart-link group 2
# Configure protected VLANs for smart link group 2.
[DeviceC-smlk-group2] protected-vlan reference-instance 2
# Configure GigabitEthernet1/1/1 as the slave port and GigabitEthernet1/1/3 as the master port.
[DeviceC-smlk-group2] port gigabitethernet 1/1/1 slave
[DeviceC-smlk-group2] port gigabitethernet 1/1/3 master
# Enable role preemption.
[DeviceC-smlk-group2] preemption mode role
# Configure VLAN 101 as the transmit control VLAN of smart link group 2.
[DeviceC-smlk-group2] flush enable control-vlan 101
2) Configuration on Device B and Device D
Make the following configurations on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 of Device B and Device D separately. For details, refer to the manuals delivered with the selected devices.
l Assign the port to VLAN 1 through VLAN 200.
l Configure VLAN 10 and VLAN 101 as the receive control VLANs of the port.
3) Configuration on Device A
Make the following configurations on GigabitEthernet 2/0/1 and GigabitEthernet 2/0/2. For details, refer to the manuals delivered with the selected device.
l Assign the port to VLAN 1 through VLAN 200.
l Configure VLAN 10 and VLAN 101 as the receive control VLANs of the port.
After completing the configuration, you can use the display command to verify the smart link configuration and view flush message statistics.
As shown in Figure 1-4:
l An S3600 EPON OLT switch operates as an OLT device. Each of its two OLT ports is connected to a POS device through a fiber.
l An S3100-EPON-EI switch operates as an ONU device. Each of its two ONU subcards is uplinked to a POS device.
l Configure smart link on the S3100-EPON-EI switch to achieve redundancy for the two uplink fibers. When both fiber links work properly, one fiber link works as the master link, and the other works as the slave. When the master link, the ONU subcard connected by the master link, or the POS device connected by the master link fails, smart link can automatically switch traffic on the master link to the slave link, thus avoiding service interruptions.
Figure 1-4 Network diagram for smart link group configuration on an EPON network
# Before configuring smart link, configure the EPON network first. The task mainly includes connecting the OLT device, the POS devices, and the ONU device. Ensure that both ONU subcards can register normally, and both fiber links can normally transmit data. For details, refer to EPON Configuration in this manual.
# When you configure smart link on the ONU device, STP will be disabled for the ports of the ONU subcards. To avoid broadcast storms on the dual uplinks, disconnect the fibers connecting the ONU and OLT devices before you start the smart link configuration.
1) Configuration on the ONU device
Because the fibers connecting the ONU and OLT devices are disconnected, you need to log in to the S3100-EPON-EI switch (ONU) through Telnet or a console port to configure smart link on the switch locally.
# Create smart link group 1.
<Onu> system-view
[Onu] smart-link group 1
# Configure VLAN 2000 as the transmit control VLAN (the VLAN for sending flush messages) of smart link group 1.
[Onu-smlk-group1] flush enable control-vlan 2000
[Onu-smlk-group1] quit
# Configure the uplink port of one ONU subcard as the master port of the smart link group, and that of the other ONU subcard as the slave port of the smart link group.
[Onu] interface gigabitethernet 1/1/1
[Onu-GigabitEthernet1/1/1] stp disable
[Onu-GigabitEthernet1/1/1] port smart-link group 1 master
[Onu-GigabitEthernet1/1/1] quit
[Onu] interface gigabitethernet 1/2/1
[Onu-GigabitEthernet1/2/1] stp disable
[Onu-GigabitEthernet1/2/1] port smart-link group 1 slave
[Onu-GigabitEthernet1/2/1] quit
# Save the smart link configuration.
[Onu-GigabitEthernet1/2/1] save
The configuration will be written to the device.
Are you sure?[Y/N]y
Please input the file name(*.cfg)(To leave the existing filename
unchanged press the enter key):
Now saving current configuration to the device.
Saving configuration. Please wait...
..
Unit1 save configuration flash:/config.cfg successfully
After the above configurations are completed, connect the fibers between the ONU and OLT devices to let the two ONU subcards register to the OLT device.
2) Configuration on the OLT device
# Configure VLAN 2000 as the receive control for OLT 1/0/1 and OLT 1/0/2.
<Olt> system-view
[Olt] interface olt 1/0/1
[Olt-Olt1/0/1] port link-type hybrid
[Olt-Olt1/0/1] port hybrid vlan 2000 tagged
[Olt-Olt1/0/1] smart-link flush enable control-vlan 2000
[Olt-Olt1/0/1] quit
[Olt] interface olt 1/0/2
[Olt-Olt1/0/2] port link-type hybrid
[Olt-Olt1/0/2] port hybrid vlan 2000 tagged
[Olt-Olt1/0/2] smart-link flush enable control-vlan 2000
[Olt-Olt1/0/2] quit
# Assume that the two ONU subcards have registered to ONU 1/0/1:1 and ONU 1/0/2:1 of the OLT device respectively. Configure the two ports as trunk ports.
[Olt] interface Onu 1/0/1:1
[Olt-Onu1/0/1:1] port link-type trunk
[Olt-Onu1/0/1:1] quit
[Olt] interface Onu 1/0/2:1
[Olt-Onu1/0/2:1] port link-type trunk