Snort - the de facto standard for intrusion detection/prevention
next up previous contents
Next: Examples Up: Preprocessors Previous: Format   Contents


Performance Monitor

This preprocessor measures Snort's real-time and theoretical maximum performance. Whenever this preprocessor is turned on, it should have an output mode enabled, either ``console'' which prints statistics to the console window or ``file'' with a file name, where statistics get printed to the specified file name. By default, Snort's real-time statistics are processed. This includes:

  • Time Stamp
  • Drop Rate
  • Mbits/Sec (wire) [duplicated below for easy comparison with other rates]
  • Alerts/Sec
  • K-Pkts/Sec (wire) [duplicated below for easy comparison with other rates]
  • Avg Bytes/Pkt (wire) [duplicated below for easy comparison with other rates]
  • Pat-Matched [percent of data received that Snort processes in pattern matching]
  • Syns/Sec
  • SynAcks/Sec
  • New Sessions Cached/Sec
  • Sessions Del fr Cache/Sec
  • Current Cached Sessions
  • Max Cached Sessions
  • Stream Flushes/Sec
  • Stream Session Cache Faults
  • Stream Session Cache Timeouts
  • New Frag Trackers/Sec
  • Frag-Completes/Sec
  • Frag-Inserts/Sec
  • Frag-Deletes/Sec
  • Frag-Auto Deletes/Sec [memory DoS protection]
  • Frag-Flushes/Sec
  • Frag-Current [number of current Frag Trackers]
  • Frag-Max [max number of Frag Trackers at any time]
  • Frag-Timeouts
  • Frag-Faults
  • Number of CPUs [*** Only if compiled with LINUX_SMP ***, the next three appear for each CPU]
  • CPU usage (user)
  • CPU usage (sys)
  • CPU usage (Idle)
  • Mbits/Sec (wire) [average mbits of total traffic]
  • Mbits/Sec (ipfrag) [average mbits of IP fragmented traffic]
  • Mbits/Sec (ipreass) [average mbits Snort injects after IP reassembly]
  • Mbits/Sec (tcprebuilt) [average mbits Snort injects after stream4 reassembly]
  • Mbits/Sec (applayer) [average mbits seen by rules and protocol decoders]
  • Avg Bytes/Pkt (wire)
  • Avg Bytes/Pkt (ipfrag)
  • Avg Bytes/Pkt (ipreass)
  • Avg Bytes/Pkt (tcprebuilt)
  • Avg Bytes/Pkt (applayer)
  • K-Pkts/Sec (wire)
  • K-Pkts/Sec (ipfrag)
  • K-Pkts/Sec (ipreass)
  • K-Pkts/Sec (tcprebuilt)
  • K-Pkts/Sec (applayer)
  • Total Packets Received
  • Total Packets Dropped (not processed)
  • Total Packets Blocked (inline)

The following options can be used with the performance monitor:

  • flow - Prints out statistics about the type of traffic and protocol distributions that Snort is seeing. This option can produce large amounts of output.

  • events - Turns on event reporting. This prints out statistics as to the number of signatures that were matched by the setwise pattern matcher (non-qualified events) and the number of those matches that were verified with the signature flags (qualified events). This shows the user if there is a problem with the rule set that they are running.

  • max - Turns on the theoretical maximum performance that Snort calculates given the processor speed and current performance. This is only valid for uniprocessor machines, since many operating systems don't keep accurate kernel statistics for multiple CPUs.

  • console - Prints statistics at the console. This is enabled by default.

  • file - Prints statistics in a comma-delimited format to the file that is specified. Not all statistics are output to this file. You may also use snortfile which will output into your defined Snort log directory. Both of these directives can be overridden on the command line with the -Z or -perfmon-file options.

  • pktcnt - Adjusts the number of packets to process before checking for the time sample. This boosts performance, since checking the time sample reduces Snort's performance. By default, this is 10000.

  • time - Represents the number of seconds between intervals.

  • accumulate or reset - Defines which type of drop statistics are kept by the operating system. By default, accumulate is used.

  • atexitonly - Dump stats for entire life of Snort.



Subsections
next up previous contents
Next: Examples Up: Preprocessors Previous: Format   Contents
Steven Sturges 2007-05-11