Time Ranges

From IPFlow Netflow Collector

Time-Ranges in IPFlow are very similar to the Time-Based Access-Lists (http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120t/120t1/timerang.htm) implemented in Cisco IOS.


Periodic Time-Ranges

Please consider this example:

time-range test {
    periodic {
        days { monday; tuesday; };
        start-time 08:00;
        end-time 22:00;
    };
};

rule r1 {
    term 1 {
        time-range test;
        # ... some actions ...
    };
};

The term "1" of rule r1 will be matched positively every monday or tuesday, between 8:00am and 10:00pm. Please note that you can specify many "periodic" sections in a time-range.


It is also possible to specify starting and ending days:

time-range test {
    periodic {
        days { monday; };
        end-day { friday; };
        start-time 08:00;
        end-time 22:00;
    };
};

The time-range "test" will match from Monday 8:00am to Friday 10:00pm.


Absolute Time-Ranges

Absolute time-ranges are defined like this:

time-range test {
    absolute {
        start-day 2003-06-16;
        start-time 08:00;

        end-day 2003-06-19;
        end-time 21:00;
    };

};

The time-range will match between 2003-06-16 8:00am and 2003-06-19 9:00pm.


Remarks

  • You can specify many absolute time-ranges in a time-range (contrary to Cisco Time-Based ACL).
  • You can mix absolute and periodic time-ranges. However, at least one absolute time-range must match in order to have the periodic time-ranges evaluated.