When it triggers based on the decision, most case the interface go in error disabled mode, since you configure strom control on the interface. (due to viloation)
if you using CoPP that is different - what is the device model and IOS Code running.
We have only two optics when the threshold crosses.
2. generating the trap
My question is when the threshold is will be decided based on data traffic or control-plane traffic
what is the config on the interface - can you post show run inter gi x/x
in general look at the document :
Pls find the interface config
switchport trunk allowed vlan 100-200
switchport mode trunk
storm-control broadcast level 2.00
storm-control action shutdown
storm-control broadcast level 2.00 storm-control action shutdown
This is your config, as per technically there is no guide lines how this need to be configured, this all depends on your network, how lasrge your broadcast traffic in the network, this is depends on network size and where this switch is located in the path.
this required some understand, by looking at the stastics and setup, the port not going to shutdown due to data traffic hit ratios. (i do see myslef in lasrge exit point where the port-channel with large traffic, the port go in shutdown when we connecting device to other network).
check this thread what TAC suggesting :
Hello @jaggy_learner ,
storm-control action shutdown is optional in most implementations I have seen this feature not used.
To answer to your question the type of traffic broadcast is measured in 1 seconds time intervals, if the threshold is crossed all traffic of that type is dropped .
if in next time intervals the broadcast traffic is again below the level the broadcast traffic is allowed.
The storm-control affects both user data traffic and control plane traffic.
From the link provided by BB there are notes abour storm control if using storm control for multicast traffic:
Hope to help