Configuring the SA cache mechanism

About the SA cache mechanism

The SA cache mechanism enables the device to locally cache (S, G) entries contained in SA messages. It reduces the time for obtaining multicast source information, but increases memory occupation.

With the SA cache mechanism enabled, when the device receives a new (*, G) join message, it searches its SA message cache first.

To protect the device against DoS attacks, you can set a limit on the number of (S, G) entries in the SA cache from an MSDP peer.

Procedure

  1. Enter system view.

    system-view

  2. Enter MSDP view.

    msdp [ vpn-instance vpn-instance-name ]

  3. Enable the SA cache mechanism.

    cache-sa-enable

    By default, the SA message cache mechanism is enabled. The device caches the (S, G) entries contained in the received SA messages.

  4. (Optional.) Set the maximum number of (S, G) entries in the SA cache from an MSDP peer.

    peer peer-address sa-cache-maximum sa-limit

    The default setting is 4294967295.