next up previous
Next: About this document ...

RTACCT Utility

Robert Olsson

some_negative_number, 20 Dec 2001

Here is some code for monitoring the route cache. For systems handling high network load, servers, routers, firewalls etc the route cache and its garbage collection is crucial. Linux has a solid implementation.

The kernel patch (not required since linux-2.4.7) adds statistics counters from route cache process into /proc/net/rt_cache_stat. A companion user mode program presents the statistics in a vmstat or iostat manner. The ratio between cache hits and misses gives the flow length.

Hopefully it can help understanding performance and DoS and other related issues.

An URL where newer versions of this utility can be (probably) found is ftp://robur.slu.se/pub/Linux/net-development/rt_cache_stat/

Description

The format of the command is:


\begin{tscreen}
\begin{verbatim}rtstat [ OPTIONS ]\end{verbatim}
\end{tscreen}

OPTIONS are: