
158
Configuring the SA cache mechanism
The SA cache mechanism enables the router 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 router receives a new (*, G) join message, it
searches its SA message cache first.
•
If no matching (S, G) entry is found, the router waits for the SA message that its MSDP peer
sends in the next cycle.
•
If a matching (S, G) entry is found in the cache, the router joins the SPT rooted at S.
To protect the router against DoS attacks, you can set a limit on the number of (S, G) entries in the
SA cache from an MSDP peer.
To configure the SA cache mechanism:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter MSDP view.
msdp
[
vpn-instance
vpn-instance-name
]
N/A
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.
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.
Displaying and maintaining MSDP
Execute
display
commands in any view and
reset
commands in user view.
Task
Command
Display brief information about MSDP peers.
display msdp
[
vpn-instance vpn-instance-name
]
brief
[
state
{
connect
|
disabled
|
established
|
listen
|
shutdown
} ]
Display detailed status of MSDP peers.
display msdp
[
vpn-instance vpn-instance-name
]
peer-status
[
peer-address
]
Display (S, G) entries in the SA cache.
display msdp
[
vpn-instance vpn-instance-name
]
sa-cache
[
group-address
|
source-address
|
as-number
] *
Display the number of (S, G) entries in the SA cache.
display msdp
[
vpn-instance vpn-instance-name
]
sa-count
[
as-number
]
Reset the TCP connection with an MSDP peer and
clear statistics for the MSDP peer.
reset msdp
[
vpn-instance vpn-instance-name
]
pee
r [
peer-address
]
Delete (S, G) entries in the SA cache.
reset msdp
[
vpn-instance vpn-instance-name
]
sa-cache
[
group-address
]
Clear statistics for an MSDP peer without resetting
the TCP connection with the MSDP peer.
reset msdp
[
vpn-instance vpn-instance-name
]
statistics
[
peer-address
]