The spt-switch-threshold command sets the rate threshold of the multicast packets when the DR at the member side joins the SPT.
The undo spt-switch-threshold command restores the default value.
By default, the system performs SPT switchover on receiving the first multicast data packet through the RPT.
spt-switch-threshold { traffic-rate | infinity } [ group-policy basic-acl-number [ order order-value ] ]
undo spt-switch-threshold [ traffic-rate | infinity ] [ group-policybasic-acl-number ]
Parameter | Description | Value |
---|---|---|
traffic-rate |
Specifies the threshold rate for the switchover from the RPT to the SPT. NOTE:
Setting this parameter may affect operation of multicast services. You are advised to use the default triggering condition. That is, an SPT switchover is triggered immediately after the first multicast data packet is received from the RPT. The default triggering condition can reduce the number of multicast packets forwarded on the RPT. |
The value is an integer that ranges from 1 to 4194304, in kbit/s. |
infinity |
Indicates that the SPT switchover is never triggered. |
- |
basic-acl-number |
Specifies an entry of the group-policy list. It works with the multicast group that matches group-policy basic-acl-number to enable the threshold. basic-acl-number specifies the number of the basic ACL that defines the range of multicast groups. |
If the parameter is not set, the threshold is applied to all multicast groups. The value ranges from 2000 to 2999. |
order order-value |
Adjusts the order of the ACLs in the group-policy list. |
If a group matches multiple ACLs, the threshold is selected in the order specified by order-value. order-value specifies the updated number. It is an integer. The value is any value other than original one in the current group-policy list. If the parameter is not set, the order of the ACLs in the group-policy list does not change. |
Usage Scenario
The source's DR encapsulates multicast packets in a Register message, and then transmits the unicast Register message to the RP. Then, the RP decapsulates the Register message and forwards the multicast packets to the receivers along the RPT. By default, when the RP or receiver's DR receives the first multicast packet, it initiates an SPT switchover to the source.
After the spt-switch-threshold command is executed on the receiver's DR, the receiver's DR periodically checks the forwarding rate of multicast packets. When the forwarding rate exceeds the threshold, the receiver's DR sends a Join messages to the source, triggering the SPT switchover.
Prerequisites
IP multicast routing has been enabled using the multicast routing-enable command.
Precautions
This command is valid to all devices that may function as the DR at the member side, but is invalid to RPs.
This command is valid for only PIM-SM.
If this command is used several times for the same group, the first matching command takes effect.
<HUAWEI> system-view [HUAWEI] multicast routing-enable [HUAWEI] pim [HUAWEI-pim] spt-switch-threshold 4
<HUAWEI> system-view [HUAWEI] acl number 2010 [HUAWEI-acl-basic-2010] rule permit source 225.1.1.1 0 [HUAWEI-acl-basic-2010] quit [HUAWEI] multicast routing-enable [HUAWEI] pim [HUAWEI-pim] spt-switch-threshold infinity group-policy 2010 order 1