The peer sa-cache-maximum command sets a maximum cache number for (S, G) entries learned from a specified Multicast Source Discovery Protocol (MSDP) peer.
The undo peer sa-cache-maximum command restores the default configuration.
By default, a maximum of 8192 (S, G) entries can be cached for a specified MSDP peer.
Usage Scenario
To protect a network against deny of service (DoS) attacks, run the peer sa-cache-maximum command to set a maximum cache number for (S, G) entries learned from an MSDP peer. Running this command for all MSDP peers is recommended.
Prerequisites
The multicast routing function has been enabled using the multicast routing-enable command in the public network instance view or VPN instance view.
MSDP peers have been configured, and the SA cache function has been enabled.Configuration Impact
The total number of (S, G) entries that can be cached in the SA cache is limited by the specifications of the SA cache.
For (S, G) entries learned from a specific MSDP peer: -If a maximum cache number is not set or is set to a value larger than the default value, a maximum number of the default value (S, G) entries can be cached for this peer.<HUAWEI> system-view [~HUAWEI] interface loopback1 [*HUAWEI-LoopBack1] quit [*HUAWEI] multicast routing-enable [*HUAWEI] msdp [*HUAWEI-msdp] peer 10.10.7.6 connect-interface LoopBack 1 [*HUAWEI-msdp] peer 10.10.7.6 sa-cache-maximum 100