High-availability Seamless Redundancy

High-availability Seamless Redundancy

High-availability Seamless Redundancy (HSR) is a network protocol defined in IEC 62439-3-2016 that provides seamless redundancy in ring topologies by sending traffic in both directions and using protocol-specific information to eliminate duplicate packets.

  • HSR operates in a ring topology, with Port-A sending traffic counterclockwise and Port-B sending traffic clockwise.

  • The HSR packet format includes a header (HSR header) containing a sequence number to identify duplicate frames.

  • HSR is similar to Parallel Redundancy Protocol (PRP), but differs in topology and packet format; PRP uses a redundancy control trailer (RCT) instead of a header.

HSR Protocol Operation and Device Support


Note


HSR is supported on specific Cisco Catalyst IE9300 Rugged Series Switches SKUs. For information about supported SKUs, refer to the Guidelines and Limitations section in this guide. The term switch in this document refers to a Cisco Catalyst IE9300 Rugged Series Switch unless otherwise noted.


In this release, the switch supports only HSR-singly attached node (SAN) and only one HSR instance. You can create only one HSR instance or one PRP instance. If you have created a PRP instance, no HSR instance can be created.

The non-switching nodes with two interfaces attached to the HSR ring are referred to as Doubly Attached Nodes implementing HSR (DANHs). Similar to PRP, Singly Attached Nodes (SANs) are attached to the HSR ring through a device called a RedBox (Redundancy Box). The RedBox acts as a DANH for any traffic when it is the source or the destination. The switch implements RedBox functionality using Gigabit Ethernet port connections to the HSR ring.

The following figure shows an example of an HSR ring as described in IEC 62439-3. In this example, the RedBox is an Cisco Catalyst IE9300 Rugged Series Switch .

Figure 1. Example of HSR Ring Carrying Unicast Traffic


Devices that do not support HSR directly, such as laptops and printers, must not be attached to the HSR ring. All HSR-capable devices must process the HSR header on packets received from the ring and add the HSR header to packets sent into the ring. Non-HSR devices are connected to the HSR ring through a RedBox.

As shown in the figure above, the RedBox has two ports on the DANH side. Non-HSR SAN devices are attached to the upstream switch ports. The RedBox generates supervision frames for these devices, so they appear as DANH devices on the ring. Because the RedBox emulates these as DANH, they are called Virtual Doubly Attached Nodes (VDAN).

loop avoidance mechanisms

Loop avoidance is a mechanism in HSR rings that prevents data frames from circulating endlessly, ensuring efficient use of network bandwidth and avoiding network loops.

  • Each node forwards frames from one HSR port to the other, but the RedBox does not retransmit frames already sent in the same direction.

  • Unicast packets destined for nodes inside the ring are consumed by the destination node and not forwarded further.

  • Packets that complete a loop are detected and dropped by the originating node to prevent looping.

Loop avoidance in HSR rings is achieved through specific forwarding and dropping behaviors for unicast and multicast packets.

  • Unicast packet with destination inside the ring: When the unicast packet reaches the destination node, the packet is consumed by the respective node and is not forwarded.

  • Unicast packet with destination not inside the ring: This packet does not have a destination node in the ring, so every node forwards it until it returns to the originating node. Each node tracks the packets it sends and their direction. When the originating node recognizes that the packet has completed a loop, it drops the packet.

  • Multicast packet: Each node forwards a multicast packet, as there can be more than one recipient. As a result, the multicast packet always returns to the originating node. Every node checks whether it has already forwarded the packet through its outgoing interface. When the packet returns to the originating node, the node identifies it as already forwarded and drops it instead of forwarding it again.

HSR RedBox operation modes

The HSR RedBox enables connectivity between SAN devices and HSR rings. It can also bridge HSR and PRP networks or connect two HSR rings, depending on its mode of operation.

  • HSR-SAN mode connects SAN devices to an HSR ring and represents SAN devices as VDANs on the ring.

  • HSR-PRP mode bridges HSR and PRP networks by converting frames between the two protocols.

  • HSR-HSR mode connects two HSR rings using a QuadBox device, associating switch ports with each ring.

Supported HSR RedBox Modes

The HSR RedBox can operate in several modes. Each mode defines how packets are handled in different network scenarios.

  • HSR-SAN : The most basic mode, where the RedBox connects SAN devices to an HSR ring. No other PRP or HSR network is involved. Traffic on the upstream switch port does not have HSR/PRP tags, and the RedBox represents the SAN device as a VDAN in the ring.

  • HSR-PRP : Used to bridge HSR and PRP networks. The RedBox extracts data from the PRP frame and generates the HSR frame, and performs the reverse operation for packets in the opposite direction. More than one PRP network can be bridged to one HSR ring and vice versa.

  • HSR-HSR : Connects two HSR rings through a QuadBox device. Two ports on the switch are associated with one HSR ring, and the other two ports are associated with the second HSR ring. The remaining ports on the switch are shut down.


Note


In this release, the switch supports HSR-SAN mode only.


Example: HSR RedBox in HSR-SAN Mode

For example, in HSR-SAN mode, the RedBox connects SAN devices to an HSR ring, and the RedBox represents each SAN device as a VDAN on the ring. No HSR or PRP tags are present on the upstream switch port traffic.

HSR SAN mode in RedBox ring topology

HSR SAN mode is a configuration in which the RedBox inserts the HSR tag for the host within a ring topology. The RedBox also manages forwarding of ring traffic, applying specific rules for handling frames, duplicates, and unique destinations.

In HSR SAN mode, packets are handled in these ways:

  • A source DANH sends a frame passed from its upper layers (C frame). It prefixes the frame with an HSR tag to identify frame duplicates and sends the frame over each port (A frame and B frame).

  • A destination DANH receives two identical frames from each port within a certain interval. The destination DANH removes the HSR tag of the first frame before passing it to its upper layers and discards any duplicate.

  • Each node in the HSR ring forwards frames received from one port to the other port of the HSR pair. However, specific exceptions apply:

    • The received frame returns to the originating node in the ring.

    • The frame is a unicast frame with a destination MAC address of a node upstream of the receiving node.

    • The node had already sent the same frame in the same direction. This rule prevents a frame from spinning in the ring in an infinite loop.

CDP and LLDP for HSR

HSR supports the Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP). CDP and LLDP are Layer 2 neighbor discovery protocols. Both CDP and LLDP can provide information about nodes directly connected to the device. They also provide additional information, including the local and remote interface names and device names.

When CDP or LLDP is enabled, you can use the CDP or LLDP information to find the adjacent nodes on an HSR ring and their status. You can use the neighbor information from each node to determine the complete HSR network topology. Additionally, you can debug and locate ring faults.

CDP and LLDP are configured on physical interfaces only.

For more information, see Configuring an HSR Ring and Verifying Configuration.

HSR Alarms

An HSR ring can generate the following two alarms:

  • Partial Ring Fault: This fault is generated by an HSR RedBox when one of its physical ring ports/links is down. Because the packets can be sent using the redundant path, this is considered as a partial fault. However, this fault still requires user intervention to restore the ring. This is a minor fault and cannot be associated with an external hardware alarm relay.

  • Full Ring Fault: This fault is generated by an HSR RedBox when both of its physical ring ports/links are down. This is a catastrophic failure and needs immediate attention. This is a major fault and can be associated with an external hardware alarm relay.

When an event that raises an alarm is generated, it can be associated with one or more of the following actions to notify the user:

  • Syslog: A syslog is generated when the Alarm is raised/cleared.

  • SNMP Notification: SNMP notification is sent when the alarm is raised/cleared.

  • Relay output: External relay contacts can be asserted/de-asserted in response to the alarm. Relays are activated by major faults only.

See Enabling HSR Alarms for steps to configure HSR alarms.

The following table lists the HSR events and their representations.

Event Number

Event Description

System Log (Level)

Alert/Alarm Log

Alarm LED and Output relay

1

Ring goes from UP to DOWN state.

2

2

Major Alarm/Assert

2

Ring goes from DOWN to UP state.

6

6

De-assert

3

One ring port goes DOWN, the other ring port and the ring itself is UP.

3

3

4

Both ring ports are UP again.

6

6

You can view currently active alarms using the show facility alarm status command. The following example shows alarm status for minor and major HSR alarms:

Switch#show facility-alarm status
Source          Severity    Description                      Relay   Time
Switch            MINOR    34 HSR ring is partially down        MAJ    Oct 24 2017 10:16:10 
-------
Switch# show facility-alarm status
Source          Severity    Description                   Relay     Time
Switch            MAJOR    33 HSR ring is down               MAJ      Oct 24 2017 10:17:07

The following examples show the syslog entries that are generated for each HSR alarm event assertion and clear event (if configured):

  • Syslog generated on occurrence of Partial fault:

    Oct 24 11:07:13.952 IST: %HSR_ALARM-3-HSR_PARTIALFAULT: The HSR ring in now in PARTIAL FAULT state
    
  • Syslog generated when the Partial fault is cleared:

    Oct 24 11:07:38.032 IST: %HSR_ALARM-3-HSR_PARTIALFAULT: The HSR ring in now in PARTIAL FAULT state - event cleared
    
  • Syslog generated on occurrence of Full fault:

    Oct 24 11:07:38.036 IST: %HSR_ALARM-2-HSR_RINGFAULT: The HSR ring in now in FAULT state
  • Syslog generated when the Full fault is cleared:

    Oct 24 11:08:19.082 IST: %HSR_ALARM-2-HSR_RINGFAULT: The HSR ring in now in FAULT state - event cleared
    

Guidelines for configuring HSR on IE9300 Series switches

When configuring HSR and related modes on IE9300 Series switches, follow these guidelines and limitations:

HSR-SAN is supported on the following Cisco Catalyst IE9300 Rugged Series Switches:

  • IE-9310-16P8S4X-E and IE-9310-16P8S4X-A

  • IE-9320-26S2C-E and IE-9320-26S2C-A

  • IE-9320-22S2C4X-E and IE-9320-22S2C4X-A

The interfaces supported for the HSR ring on IE-9310-16P8S4X-E and IE-9310-16P8S4X-A are listed in the table.

Table 1. Channel and interface details

Channel

Interface

HSR-Ring 1

Gi1/0/1-2 or Gi1/0/9-10

The interfaces supported for HSR ring on IE-9320-26S2C-E , IE-9320-26S2C-A , IE-9320-22S2C4X-E , and IE-9320-22S2C4X-A are:

Table 2. Channel and interface details

Channel

Interface

HSR-Ring 1

Gi1/0/21-22 or Gi1/0/23-24

HSR is supported only in a standalone deployment; there is no support for HSR for stacked switches.

Only one HSR instance is supported. The switch supports only one HSR or one PRP instance. If a PRP instance has been created, you cannot create an HSR instance.

The HSR feature requires the Network Essentials license.

The HSR feature is not enabled by default. You must configure the HSR rings explicitly.

HSR is disabled automatically if the required firmware image is not available on the system.

Physical interfaces are predefined for the rings and ports in HSR-SAN, HSR-PRP, and HSR-HSR modes and cannot be changed. The table lists port assignments for each HSR mode.

After including a port in a ring, you cannot change its media-type, speed, or duplex settings. Set these options before assigning ring membership.

If you change the mode of HSR interfaces from access to trunk or trunk to access after configuring the ring, flap the HSR ring.

The recommended maximum number of nodes in the node table is 512. Nodes include all DANH and VDAN devices connected to the ring. This number is not a strict limit. Adding more entries may increase duplicate packets for end devices.

The maximum number of nodes in the HSR ring is 50.

HSR ring ports can only be configured in L2 mode.

Ring 1 and Ring 2 support configuration in HSR-SAN mode. On the IE 4000 in HSR-PRP Dual RedBox mode, three ports participate in the HSR-PRP network. Only Ring 2 can be configured in this mode.

HSR is supported on following port types:

See the table for the assigned interfaces in HSR-HSR mode.
  • 100 mbps, Full Duplex. Half duplex is not supported.

  • 1000 mbps, Full Duplex. Half duplex is not supported.

  • HSR is not supported on the uplink ports.

Both ports of one ring must be of same speed and type (that is, both can be SFPs or both can be copper).

The following protocols and features are mutually exclusive with HSR on the same port:

  • PRP

  • EtherChannels

  • Link Aggregation Control Protocol (LACP)

  • Port Aggregation Protocol (PAgP)

  • Resilient Ethernet Protocol (REP)

MACsec, HSR, and PRP are not allowed together.

PTP over HSR is not supported.

HSR supports an MTU size of up to 1998 bytes of Ethernet payload.

STP is not supported on the HSR ring. By default, all modes of Spanning Tree Protocol (STP) will be disabled on the ring ports.

Switched Port Analyzer (SPAN) and Remote SPAN (RSPAN) are not supported on HSR. SPAN and RSPAN should not be used to monitor the traffic on an HSR ring. In addition, traffic that has been monitored using RSPAN should not be transferred over an HSR ring.

It is important for all interfaces in an HSR ring to have the same speed and duplex settings. Apply those settings before configuring ring membership.

Once a port is part of ring, the port cannot be shut down.

For example, if Gi1/0/23 and Gi1/0/24 are part of an HSR ring and you try to shut down Gi1/0/23 or Gi1/0/24, the operation will not be permitted:

Switch(config)# <userinput>interface range gi1/0/23-24</userinput>
Switch(config-if-range)#<userinput>shutdown</userinput>
 %Interface GigabitEthernet1/0/23 is configured in a HSR ring shutdown not permitted!
Switch(config-if-range)# 

You can perform a shutdown of the HSR ring. For example:

<userinput>Switch# conf t</userinput>
Switch(config)#<userinput>int hs1</userinput>
Switch(config-if-range)#<userinput>shut</userinput>

VLAN configuration such as trunk and access mode must be the same on both the ports participating in the ring. For example, if Gi1/0/24 and Gi1/0/23 in an HSR ring are in trunk mode and you attempt to change the mode of one port to access, the ports in the ring will not be bundled:

Switch(config)# <userinput>interface range gi1/0/23-24</userinput>
Switch(config-if-range)# <userinput>switchport mode  access</userinput>
Jul 27 22:00:27.809 IST: %EC-5-CANNOT_BUNDLE2: Gi1/0/23 is not compatible with Gi1/0/24 and will be suspended (trunk mode of Gi1/0/23 is access, Gi1/0/24 is dynamic)

After an interface is added in the HSR ring, only the primary interface counters are updated. You should not need to configure and check the status of individual physical interfaces after they are added to the HSR ring.

Configuring an HSR ring on two ports of a switch causes MAC flaps on other switches without the HSR configuration. Shut down the newly created HSR ring on the switch, configure the ring on all switches, and then re-enable the rings one at a time. For example, if there are four switches in the ring, disable the HSR ring interfaces on each switch:

Switch1(config)# <userinput>interface range gi1/0/21-22</userinput>
Switch1(config-if-range)# <userinput>shutdown</userinput>
Switch1(config-if-range)# <userinput>hsr-ring 1</userinput>
Creating a HSR-ring interface hs1
Switch1(config-if-range)# <userinput>int hs1</userinput>
Switch1(config-if-range)# <userinput>shutdown</userinput>
Switch1(config-if-range)# <userinput>end</userinput>

After all four switches are configured with the ring, re-enable the HSR ports on each switch:

Switch1# <userinput>conf t</userinput>
Enter configuration commands, one per line. End with CNTL/Z.
Switch1(config)# <userinput>interface range gi1/0/21-22</userinput>
Switch1(config-if-range)# <userinput>int hs1</userinput>
Switch1(config-if-range)# <userinput>no shutdown</userinput>
Switch1(config-if-range)# <userinput>end</userinput>
Switch1#

This process prevents temporary MAC flapping during HSR ring configuration in member switches.

HSR-PRP Dual RedBox mode

Adhere to these restrictions when configuring HSR-PRP Dual RedBox mode to ensure correct operation and avoid loss of connectivity or configuration.

Because three ports participate in the HSR-PRP network, only HSR ring 2 can be configured in HSR-PRP mode.

Interface assignment is fixed and cannot be changed. Refer to the table above for the assigned interfaces in HSR-PRP mode.

When HSR-PRP Dual RedBox mode is configured and enabled, all other ports apart from the 3 HSR-PRP ports are shut down and any feature running on any of these ports will not be functional. You will be warned about this mode change.

When HSR-PRP RedBox is active, all other interfaces that are not part of the RedBox remain in the shutdown state and are unusable as long as the RedBox mode is active.

Management of the switch through Device Manager is still possible with an in-band SVI interface reachable over the HSR Ring or PRP network. However, there will be loss of connection for a period of time when RedBox mode is enabled or disabled and the device reconfigures itself. Therefore, we highly recommend that you use a console connection when switching into or out of HSR-PRP mode.

When HSR-PRP mode is disabled, all physical interfaces will return to their default configuration (that is, configuration on non-RedBox physical ports will be lost).

In HSR-PRP mode, by design PRP/HSR channel 1 (gi1/0/21-22) operates in "PRP/HSR disabled" mode. Frames coming into these two ports are passed through to the hardware for switching to the HSR-PRP enabled channel 2. Because channel 1 is not used for PRP or HSR in HSR-PRP mode, the show prp channel 1 detail command displays "Protocol = Disabled" even though the Port state displays "Inuse".

In HSR-PRP Dual RedBox mode, during reload of the HSR-PRP switch when the traffic is in progress, MAC flaps occur once per source MAC address in the switch that is reloaded and also on the PRP device that is transmitting the traffic. Therefore, if there are 512 different source MAC addresses, then MAC flaps are observed 512 times (once per source MAC address). Also some duplicate packets are seen after this event.

HSR-HSR QuadBox Mode

Adhere to these restrictions when configuring HSR-HSR QuadBox mode to ensure correct operation and avoid loss of connectivity or configuration.

Interface assignment is fixed and cannot be changed. See the table for the assigned interfaces in HSR-HSR mode.

When HSR-HSR QuadBox mode is configured and enabled, all other ports apart from the four HSR-HSR ports are shut down and any feature running on any of these ports will not be functional. You will be warned about this mode change.

When HSR-HSR QuadBox is active, all other interfaces that are not part of the RedBox remain in the shutdown state and are unusable as long as the RedBox mode is active.

Management of the switch through Device Manager is still possible with an in-band SVI interface reachable over the HSR Ring. However, there will be loss of connection for a period of time when QuadBox mode is enabled or disabled and the device reconfigures itself. Therefore, we highly recommend that you use a console connection when switching into or out of HSR-HSR mode.

When HSR-HSR mode is disabled, all physical interfaces will return to their default configuration (that is, configuration on non-QuadBox physical ports will be lost).

HSR sends two packets from source to destination. The destination is guaranteed to receive one packet in a fault condition and both packets under normal conditions. On QuadBox devices, the redundant packet may arrive on different rings. This situation may cause MAC address flapping to be reported under normal conditions. To avoid this, MAC address learning is disabled. When all other ports are shut down, unnecessary flooding of packets does not occur.

When the topology has more than one QuadBox, the VLAN and multicast filter configuration must match on all the QuadBoxes.

Switch port mode access is restricted in HSR-HSR mode.

MTU size is fixed to 2020 in HSR-HSR mode and cannot be altered.

MAC address table learning for VLAN 1-4094 is disabled and cannot be altered.

PTP is by default disabled (due to no FPGA support) but is not restricted to use.

show and clear commands for Node and VDAN table, HSR ring proxyNodeTableForgetTime, HSR ring nodeforgetTime, and creating independent HSR ring interfaces (that is, not part of HSR-HSR mode) are restricted in HSR-HSR profile.

Multicast filters are designed to drop only Multicast MACDA. The filter set as Unicast MAC addresses will not result in any packet drop.

Default Settings

This topic provides a reference for the default settings and parameters used in HSR Ring configurations.

Table 3. HSR Ring Parameters

Parameter

Description

Range

Default Value

entryForgetTime

Time for clearing an inactive entry from duplicate discard table.

0-65535

400 ms

fpgamode-DualUplinkEnhancement

Sets the FPGA register to filter source MAC addresses.

enable or disable

enable

nodeForgetTime

Clears an inactive entry from the node table after a set time interval.

0-65535

60000 ms

nodeRebootInterval

Specifies when the RedBox starts sending supervision frames after bootup.

0-65535

500 ms

pauseFrameTime

Specifies the interval between HSR pause frames.

0-65535

25 ms

proxyNodeTableForgetTime

Clears an inactive entry from the proxy node table or vdan table after a set interval.

0-65535

60000 ms

supervisionFrameLifeCheckInterval

Specifies the life check interval for supervision frames.

0-65535

2000 ms

supervisionFrameOption

mac-da

Specifies the last bytes of the destination MAC address for supervision frames (01:15:4E:00:01:00). The final pair, '00,' is replaced by the value of this parameter.

1-255 MAC DA last eight bits option value

No default

vlan-cfi

Enables the Canonical Format Indicator (CFI) for the VLAN-tagged frame.

enable or disable

disable

vlan-cos

Sets the Class of Service (COS) value in the VLAN tag of the supervision frame.

0-7

0

vlan-id

Specifies the VLAN tag for the supervision frame.

0-4095

0

vlan-tagged

Specifies the VLAN tagging option.

enable or disable

disable

supervisionFrameRedboxMacaddress

Specifies the RedBox MAC address included in supervision frames.

48-bit RedBox MAC address

The interface HSR ring MAC address

supervisionFrameTime

Specifies the interval between supervision frames.

0-65535

3 ms

Configure an HSR ring

Follow these steps to configure an HSR ring:

Before you begin

Procedure


Step 1

Enter global configuration mode:


                        Switch# 
                        configure terminal
                    

Step 2

(Optional) Globally enable CDP to provide information about HSR ring nodes:


                        Switch(config)# 
                        cdp run
                    

Step 3

(Optional) Globally enable LLDP to provide information about HSR ring nodes:


                        Switch(config)# 
                        lldp run
                    

Step 4

Enter interface configuration mode and disable PTP on the ports to be assigned to the HSR ring:


                        Switch(config)# 
                        interface range gi1/0/21-22
                        Switch(config-if-range)# 
                        no ptp enable
                    

Step 5

(Optional) Enable CDP on the ports to be assigned to the HSR ring:

Switch(config-if-range)#cdp enable

Step 6

(Optional) Enable LLDP on the ports to be assigned to the HSR ring:


                        Switch(config-if-range)#
                        lldp transmit
                        Switch(config-if-range)#
                        lldp receive
                        
                    

Step 7

Shut down the ports before configuring the HSR ring:


                        Switch(config-if-range)# 
                        shutdown
                    

Step 8

Create the HSR ring interface and assign the ports to the HSR ring:


                        Switch(config)# 
                        interface range gigabitEthernet 1/0/21-22
                        Switch(config-if-range)# 
                        hsr-ring 1
                    

Step 9

(Optional) If required, configure HSR ring optional parameters. Refer to the Default Settings section for descriptions of parameters, ranges, and default values.


                        Switch(config-range)# 
                        hsr 1 supervisionFrameLifeCheckInterval 10000
                    

Step 10

Turn on the HSR interface:


                        Switch(config-if-range)# 
                        no shutdown
                        Switch(config-if-range)# 
                        end
                    


                Switch# 
                conf t
                Enter configuration commands, one per line.  End with CNTL/Z.
                Switch(config)# 
                interface range gigabitEthernet 1/0/21-22
                Switch(config-if-range)# 
                no ptp enable
                Switch(config-if-range)# 
                shutdown
                Switch(config-if-range)# 
                hsr-ring 1
                Switch(config-if-range)# 
                hsr-ring 1 supervisionFrameLifeCheckInterval 10000
                Switch(config-if-range)# 
                no shutdown
                Switch(config-if-range)# 
                end
            

Enabling HSR Alarms

To enable alarms for HSR, follow these steps:

Before you begin

Alarms and actions can be enabled/disabled at the facility level only. You cannot enable only partial faults or full faults; either all alarms for given facility are enabled or all are disabled.

See HSR Alarms for details about HSR alarms.

Procedure


Step 1

Enter global configuration mode:

Switch# configure terminal

Step 2

Enable the HSR alarm facility:

Switch(config)# alarm facility hsr enable

To disable HSR alarms, enter no alarm facility hsr enable .

Step 3

(Optional) Enable SNMP notification for HSR alarms:

Switch(config)# alarm facility hsr notifies

Step 4

(Optional) Associate HSR alarms with the Major Relay:

Switch(config)# alarm facility hsr relay major

Step 5

(Optional) Send HSR alarms to a syslog server:

Switch(config)# alarm facility hsr syslog

Step 6

(Optional) Enable logging of informational HSR alarm messages:

Switch(config)# logging alarm informational

Step 7

Exit global configuration mode:

Switch(config)# end

Step 8

Verify the configuration:

Switch# show facility-alarm status

Clear all node table and VDAN table dynamic entries

Procedure


Step 1

To clear all dynamic entries in the node table, enter this command: clear hsr node-table

Step 2

To clear all dynamic entries in the VDAN table, enter this command: clear hsr vdan-table


HSR verification commands

  • To verify HSR configuration, use specific show commands. These commands display details about the ring, filtering information, statistics, and neighbor data.

  • Commands such as show hsr ring , show multicast-filter-drop-count , and show hsr statistics provide detailed operational and diagnostic information.

  • Neighbor discovery and status can be checked using show cdp neighbors and show lldp neighbors commands.

Command Reference for Verifying HSR Configuration

This table lists the primary commands used to verify HSR ring configuration and their purposes.

Table 4. HSR Verification Commands

Command

Purpose

show hsr ring 1 [ detail ]

Displays configuration details for the specified HSR ring.

show hsr statistics { egressPacketStatistics | ingressPacketStatistics | nodeTableStatistics | pauseFrameStatistics }

Displays statistics for HSR components.

Note

 

To clear HSR statistics information, enter the command clear hsr statistics .

show hsr node-table

Displays HSR node table.

show hsr vdan-table

Displays HSR Virtual Doubly Attached Node (VDAN) table.

Note

 

The VDAN table and Proxy node table are the same.

show cdp neighbors

Displays CDP neighbor information for an HSR ring.

show lldp neighbors

Displays LLDP neighbor information for an HSR ring.

Verifying HSR Configuration and Neighbor Information

These examples show how to use verification commands and interpret their output for HSR rings, multicast/VLAN filtering, and neighbor discovery.


                    Switch#
                    show hsr ring detail
HSR-ring listing:
--------------------
HSR-ring: HS1
------------
 Layer type = L2
 Operation Mode = mode-H
 Ports: 2       Maxports = 2
 Port state = hsr-ring is Inuse
 Protocol = Enabled  Redbox Mode = hsr-hsr
Ports in the ring:
  1) Port: Gi1/1
   Logical slot/port = 1/1      Port state = Inuse
        Protocol = Enabled
  2) Port: Gi1/2
   Logical slot/port = 1/2      Port state = Inuse
        Protocol = Enabled
Ring Parameters:
 Redbox MacAddr: 70db.984a.5040
 Node Forget Time: 60000 ms
 Node Reboot Interval: 500 ms
 Entry Forget Time: 400 ms
 Proxy Node Forget Time: 60000 ms
 Supervision Frame COS option: 0
 Supervision Frame CFI option: 0
 Supervision Frame VLAN Tag option: Disabled
 Supervision Frame MacDa: 0x00
 Supervision Frame VLAN id: 0
 Supervision Frame Time: 3 ms
 Life Check Interval: 1600 ms
 Pause Time: 25 ms
 fpgamode-DualUplinkEnhancement: Enabled
HSR-ring: HS2
------------
 Layer type = L2
 Operation Mode = mode-H
 Ports: 2       Maxports = 2
 Port state = hsr-ring is Inuse
 Protocol = Enabled  Redbox Mode = hsr-hsr
Ports in the ring:
  1) Port: Gi1/3
   Logical slot/port = 1/3      Port state = Inuse
        Protocol = Enabled
  2) Port: Gi1/4
   Logical slot/port = 1/4      Port state = Inuse
        Protocol = Enabled
Ring Parameters:
 Redbox MacAddr: 70db.984a.5040
 Node Forget Time: 60000 ms
 Node Reboot Interval: 500 ms
 Entry Forget Time: 400 ms
 Proxy Node Forget Time: 60000 ms
 Supervision Frame COS option: 0
 Supervision Frame CFI option: 0
 Supervision Frame VLAN Tag option: Disabled
 Supervision Frame MacDa: 0x00
 Supervision Frame VLAN id: 0
 Supervision Frame Time: 3 ms
 Life Check Interval: 1600 ms
 Pause Time: 25 ms
 fpgamode-DualUplinkEnhancement: Enabled
Switch#
                

                    Switch#
                    show hsr ring multicast-filter
HSR-ring listing:
--------------------
HSR-ring: HS1
---------------
Filter No.  Address         Mask
=============================================
2           0000.0100.0a00 ffff.ffff.ffff
HSR-ring: HS2
---------------
Filter No.  Address         Mask
=============================================
5           0000.0100.0b00 0000.0000.0000
Switch#                                         
Switch#
                    show hsr ring allowed-vlan
HSR-ring listing:
--------------------
HSR-ring: HS1
---------------
Vlan allowed list
----------------------
0-4094
HSR-ring: HS2
---------------
Vlan allowed list
----------------------
0-4094
Switch#
                    show hsr ring multicast-filter-drop
HSR-ring listing:
--------------------
HSR-ring: HS1
---------------
Multicast filter drop count: 0
HSR-ring: HS2
---------------
Multicast filter drop count: 0
Switch#
                    show hsr ring allowed-vlan
HSR-ring listing:
--------------------
HSR-ring: HS1
---------------
Vlan allowed list
----------------------
0-4094
HSR-ring: HS2
---------------
Vlan allowed list
----------------------
0-4094
Switch#
                

This example shows how to display CDP neighbor information for an HSR ring. In this example, there are three switches, and CDP is enabled on all three.


                    DUT 2#
                    sh cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, 
                  D - Remote, C - CVTA, M - Two-port Mac Relay 
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
DUT 1            Gig 1/3           160              S I   IE-4000-8 Gig 1/2
DUT 3            Fas 1/4           163              S I   IE-4000-8 Gig 1/1
Total cdp entries displayed : 2
                

This example shows how to display LLDP neighbor information for an HSR ring. This example uses the same topology as the previous figure. LLDP is enabled on all three switches.


                    DUT 2#
                    sh lldp neighbors
Capability codes:
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID           Local Intf     Hold-time  Capability      Port ID
DUT 1               Gi1/3          120        B               port-002
DUT 3               Gi1/4          120        B               port-001
Total entries displayed: 2
                

Configuration examples

A configuration example is a documentation asset that

  • illustrates recommended command-line sequences for configuring features on Cisco IE9300 and S5400 switches,

  • includes sample outputs to verify successful configuration for both HSR-SAN and HSR-PRP scenarios, and

  • supports users by providing step-by-step command demonstrations for practical reference.

HSR-SAN

This example shows the configuration of an HSR ring (Ring 1) using Gi1/0/23 and Gi1/0/24 ports between four devices.

Figure 3. HSR Ring Configuration with Four Devices



                    IE9300-1# 
                    conf t
Enter configuration commands, one per line.  End with CNTL/Z.
IE9300-1(config)# 
                    interface range gi1/0/23-24
IE9300-1(config-if-range)# 
                    shutdown
IE9300-1(config-if-range)# 
                    hsr-ring 1
IE9300-1(config-if-range)# 
                    no shutdown
IE9300-1(config-if-range)# 
                    end
IE9300-1#          
IE9300-2# 
                    conf t
Enter configuration commands, one per line.  End with CNTL/Z.
IE9300-2(config)# 
                    interface range gi1/0/23-24
IE9300-2(config-if-range)# 
                    shutdown
IE9300-2(config-if-range)# 
                    hsr-ring 1
IE9300-2(config-if-range)# 
                    no shutdown
IE9300-2(config-if-range)# 
                    end
IE9300-2#          
IE9300-3# conf t
Enter configuration commands, one per line.  End with CNTL/Z.
IE9300-3(config)# 
                    interface range gi1/0/23-24
IE9300-3(config-if-range)# 
                    shutdown
IE9300-3(config-if-range)# 
                    hsr-ring 1
IE9300-3(config-if-range)# 
                    no shutdown
IE9300-3(config-if-range)# 
                    end
IE9300-3#          
IE9300-4# 
                    conf t
Enter configuration commands, one per line.  End with CNTL/Z.
IE9300-4(config)# 
                    interface range gi1/0/23-24
IE9300-4(config-if-range)# 
                    shutdown
IE9300-4(config-if-range)# 
                    hsr-ring 1
IE9300-4(config-if-range)# 
                    no shutdown
IE9300-4(config-if-range)# 
                    end
IE9300-4#          
IE9300-1# 
                    sh hsr ring 1 detail
HSR-ring: HS1
------------
 Layer type = L2
 Operation Mode = mode-H
 Ports: 2       Maxports = 2
 Port state = hsr-ring is Inuse
 Protocol = Enabled  Redbox Mode = hsr-san
Ports in the ring:
  1) Port: Gi1/0/23
   Logical slot/port = 1/3      Port state = Inuse
        Protocol = Enabled
  2) Port: Gi1/0/24
   Logical slot/port = 1/4      Port state = Inuse
        Protocol = Enabled
Ring Parameters:
 Redbox MacAddr: f454.3365.8a84
 Node Forget Time: 60000 ms
 Node Reboot Interval: 500 ms
 Entry Forget Time: 400 ms
 Proxy Node Forget Time: 60000 ms
 Supervision Frame COS option: 0
 Supervision Frame CFI option: 0
 Supervision Frame VLAN Tag option: Disabled
 Supervision Frame MacDa: 0x00
 Supervision Frame VLAN id: 0
 Supervision Frame Time: 3 ms
 Life Check Interval: 2000 ms
 Pause Time: 25 ms
IE9300-2# 
                    show hsr ring 1 detail
HSR-ring: HS1
------------
 Layer type = L2
 Operation Mode = mode-H
 Ports: 2       Maxports = 2
 Port state = hsr-ring is Inuse
 Protocol = Enabled  Redbox Mode = hsr-san
Ports in the ring:
  1) Port: Gi1/0/23
   Logical slot/port = 1/3      Port state = Inuse
        Protocol = Enabled
  2) Port: Gi1/0/24
   Logical slot/port = 1/4      Port state = Inuse
        Protocol = Enabled
Ring Parameters:
 Redbox MacAddr: 34c0.f958.ee83
 Node Forget Time: 60000 ms
 Node Reboot Interval: 500 ms
 Entry Forget Time: 400 ms
 Proxy Node Forget Time: 60000 ms
 Supervision Frame COS option: 0
 Supervision Frame CFI option: 0
 Supervision Frame VLAN Tag option: Disabled
 Supervision Frame MacDa: 0x00
 Supervision Frame VLAN id: 0
 Supervision Frame Time: 3 ms
 Life Check Interval: 2000 ms
 Pause Time: 25 ms
IE9300-4# 
                    sh hsr ring 1 de
HSR-ring: HS1
------------
 Layer type = L2
 Operation Mode = mode-H
 Ports: 2       Maxports = 2
 Port state = hsr-ring is Inuse
 Protocol = Enabled  Redbox Mode = hsr-san
Ports in the ring:
  1) Port: Gi1/0/23
   Logical slot/port = 1/3      Port state = Inuse
        Protocol = Enabled
  2) Port: Gi1/0/24
   Logical slot/port = 1/4      Port state = Inuse
        Protocol = Enabled
Ring Parameters:
 Redbox MacAddr: f454.3312.5104
 Node Forget Time: 60000 ms
 Node Reboot Interval: 500 ms
 Entry Forget Time: 400 ms
 Proxy Node Forget Time: 60000 ms
 Supervision Frame COS option: 0
 Supervision Frame CFI option: 0
 Supervision Frame VLAN Tag option: Disabled
 Supervision Frame MacDa: 0x00
 Supervision Frame VLAN id: 0
 Supervision Frame Time: 3 ms
 Life Check Interval: 2000 ms
 Pause Time: 25 ms
IE9300-3# 
                    sh hsr ring 1 detail
HSR-ring: HS1
------------
 Layer type = L2
 Operation Mode = mode-H
 Ports: 2       Maxports = 2
 Port state = hsr-ring is Inuse
 Protocol = Enabled  Redbox Mode = hsr-san
Ports in the ring:
  1) Port: Gi1/0/23
   Logical slot/port = 1/3      Port state = Inuse
        Protocol = Enabled
  2) Port: Gi1/0/24
   Logical slot/port = 1/4      Port state = Inuse
        Protocol = Enabled
Ring Parameters:
 Redbox MacAddr: f454.335c.4684
 Node Forget Time: 60000 ms
 Node Reboot Interval: 500 ms
 Entry Forget Time: 400 ms
 Proxy Node Forget Time: 60000 ms
 Supervision Frame COS option: 0
 Supervision Frame CFI option: 0
 Supervision Frame VLAN Tag option: Disabled
 Supervision Frame MacDa: 0x00
 Supervision Frame VLAN id: 0
 Supervision Frame Time: 3 ms
 Life Check Interval: 2000 ms
 Pause Time: 25 ms
                

Feature History

This topic provides the release and feature information for High-Availability Seamless Redundancy (HSR)—HSR-SAN (Single RedBox mode).

Table 5. Feature History Table

Feature Name

Release

Feature Information

High-Availability Seamless Redundancy (HSR)—HSR-SAN (Single RedBox mode)

Cisco IOS XE 17.13.1

Initial support for Cisco Catalyst IE9300 Rugged Series Switches