IPRateMonitor
's method
(given in pseudo-code in
Algorithm 5.1) implements the functionality represented by
Figure 1. It is, together with method ,
responsible for implementing the algorithm described in
Section 4.4.
IPRateMonitor
's 2 input ports should each be logically connected to one
of the network interfaces. Port 0 connects to the interface for forward
packets, port 1 connects to the interface for reverse packets. (This is
achieved through Click configuration.) is the input of the
IPRateMonitor
element that packet arrived on. This information
is passed to using its parameter.