Adding CLEAR-Flow Rules to ACLs
ExtremeWare XOS 11.3 Concepts Guide
381
See the section,
“Delta Expression Example” on page 389
, for a full example of an ACL and a CLEAR-
Flow rule using a delta expression.
Ratio Expression
A CLEAR-Flow ratio expression compares the ratio of two counter values with the threshold value. The
following is the syntax for a CLEAR-Flow ratio expression:
ratio <counterNameA> <counterNameB> REL_OPER <countThreshold> ;
min-value <min-value> ;
hysteresis <hysteresis> ;
The
ratio
statement specifies how to compare the ratio of two counters with its threshold. The value of
<counterNameA>
is divided by the value of
<counterNameB>
, to compute the ratio. That ratio is
compared with the
<countThreshold>
. The
REL_OPER
is selected from the relational operators for
greater than, great than or equal to, less than, or less than or equal to (>, >=, <, <=).
The min-value statement is optional, and sets a minimum value for the counters. If either counter is less
than the minimum value, the expression evaluates to false. If not specified, the minimum value is 1.
The
hysteresis <hysteresis>
statement is optional, and sets a hysteresis value for the threshold.
After the
ratio
statement is true, the value of the threshold is adjusted so that a change smaller than
the hysteresis value will not cause the statement to become false. For statements using the REL_OPER >
or >=, the hysteresis value is subtracted from the threshold; for < or <=, the hysteresis value is added to
the threshold.
For example, the following ratio expression:
ratio counter1 counter2 >= 5 ;
min-value 100;
hysteresis 1 ;
will only be true after the ratio of the counters reached at least 5 and the counter values are at least 100.
At the time it became true, the hysteresis value would be subtracted from the threshold (setting the
threshold to 4). With the threshold now at 4, the condition would stay true until the ratio of the
counters became less than 4.
If the statement becomes false, the threshold is reset to its original value. You would use the hysteresis
value to prevent the rule from vacillating between the true and false states if the ratio between the
counter values is near the threshold. If the hysteresis value is greater than the threshold value, the
hysteresis value will be set to zero.
In
Table 53
is an example of evaluating the CLEAR-Flow ratio expression above multiple times. Notice
that the rule is not triggered at the first evaluation because both counters have not yet reached the min-
value of 100. The rule first triggers at evaluation 3, when ratio of the two counters exceeds 5. Once the
rule is triggered, it remains triggered until the ratio value is less than 4 (the original threshold minus the
hysteresis), at evaluation 5. At evaluation 7, the rule is again triggered when the ratio reaches 5. The
rule will remain triggered until the ratio drops below 4.
10
1230
99
Yes
Table 52: Delta Expression Evaluation Example (Continued)
Evaluation
counter1 value
Delta value
Rule triggered?
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...