CLEAR-Flow Rule Examples
ExtremeWare XOS 11.3 Concepts Guide
389
CLEAR-Flow Rule Examples
In the examples that follow, there are one to two ACL rule entries followed by a CLEAR-Flow rule
entry. The examples illustrate the four CLEAR-Flow rule expressions: count, delta, ratio, and delta-ratio.
Count Expression Example
In the following example, every 10 seconds the CLEAR-Flow agent will request the
counter1
statistics
from the hardware. After it receives the counter value, it will evaluate the CLEAR-Flow rule. If the
value of counter1 is greater than 1000000 packets, the CLEAR-Flow agent will send a trap message to
the SNMP master, and change the ACL
acl_rule1
to block traffic (
acl_rule1
is modified to a deny rule).
Since there is no period configured for the
snmptrap
statement, the message is sent only once.
entry acl_rule1 {
if {
destination-address 192.168.16.0/24;
destination-port 2049;
protocol tcp;
} then {
count counter1;
}
}
entry cflow_count_rule_example {
if { count counter1 > 1000000 ;
period 10 ;
}
then {
snmptrap 123 "Traffic on acl_rule1 exceeds threshold";
deny acl_rule1;
}
}
Delta Expression Example
In this example, every 10 seconds the CLEAR-Flow agent will request the
counter1
statistics from the
hardware. After it receives the counter value, it will then evaluate the rule. If the delta (change) of the
counter1
value from the last sampled value 10 seconds ago is greater than or equal to 1000 packets, the
CLEAR-Flow agent will send a trap message to the SNMP master, and change the ACL
acl_rule1
to
sys_IgmpOutLeaves
The number of outgoing IGMP leave requests.
1.Most of these descriptions can be found in RFC 2011,
SNMPv2 Management Information Base for the In-
ternet Protocol using SMIv2
2.The length of an ICMP packet depends on the type and code field.
Table 56: Predefined CLEAR-Flow Counters (Continued)
Counter Name
Description
1
Summary of Contents for ExtremeWare XOS 11.3
Page 20: ...Contents ExtremeWare XOS 11 3 Concepts Guide 20...
Page 25: ...1 Using ExtremeWare XOS...
Page 26: ......
Page 38: ...ExtremeWare XOS Overview ExtremeWare XOS 11 3 Concepts Guide 38...
Page 58: ...Accessing the Switch ExtremeWare XOS 11 3 Concepts Guide 58...
Page 146: ...Configuring Slots and Ports on a Switch ExtremeWare XOS 11 3 Concepts Guide 146...
Page 218: ...Status Monitoring and Statistics ExtremeWare XOS 11 3 Concepts Guide 218...
Page 240: ...Virtual LANs ExtremeWare XOS 11 3 Concepts Guide 240...
Page 248: ...Virtual Routers ExtremeWare XOS 11 3 Concepts Guide 248...
Page 278: ...Access Lists ACLs ExtremeWare XOS 11 3 Concepts Guide 278...
Page 288: ...Routing Policies ExtremeWare XOS 11 3 Concepts Guide 288 entry deny_rest if then deny...
Page 344: ...Security ExtremeWare XOS 11 3 Concepts Guide 344...
Page 393: ...2 Using Switching and Routing Protocols...
Page 394: ......
Page 454: ...Spanning Tree Protocol ExtremeWare XOS 11 3 Concepts Guide 454...
Page 484: ...Extreme Standby Router Protocol ExtremeWare XOS 11 3 Concepts Guide 484...
Page 514: ...IPv4 Unicast Routing ExtremeWare XOS 11 3 Concepts Guide 514...
Page 530: ...IPv6 Unicast Routing ExtremeWare XOS 11 3 Concepts Guide 530...
Page 538: ...RIP ExtremeWare XOS 11 3 Concepts Guide 538...
Page 556: ...OSPF ExtremeWare XOS 11 3 Concepts Guide 556...
Page 566: ...OSPFv3 ExtremeWare XOS 11 3 Concepts Guide 566...
Page 589: ...3 Appendixes...
Page 590: ......
Page 640: ...CNA Agent ExtremeWare XOS 11 3 Concepts Guide 640...
Page 670: ...Glossary ExtremeWare XOS 11 3 Concepts Guide 670...
Page 698: ...Index ExtremeWare XOS 11 3 Concepts Guide 698...