[Click] NAT Latency Measurement

Javier Sánchez javier.recacha at gmail.com
Fri Dec 18 06:06:21 EST 2009


Hi,

Maybe a simple method for detecting "slow" elements is to write a
simple print_time element

...
  StringAccum sa;
  Timestamp now = Timestamp::now();
  sa << _string_argument;
  sa << " ( " << now.sec() << " / " << now.usec() << " ) ";
  click_chatter ("%s",sa.c_str());
  return p;
...

And use it in your script, between the elemets of interest.

I think that avoiding packet clone - elements in your script will help.

Anyway, data packet reception (firmware - drivers -click) and packet
sending paths  introduces latency too.


More information about the click mailing list