Just came across Keepalive timer: -22205673/60 Weird, isn't it? Arnold -- Arnold Nipper / nIPper consulting, Sandhausen, Germany email: arnold@nipper.de phone: +49 6224 9259 299 mobile: +49 152 53717690 fax: +49 6224 9259 333
On Sat, Nov 06, 2010 at 03:54:22PM +0100, Joakim Tjernlund wrote:
Just came across
Keepalive timer: -22205673/60
Weird, isn't it?
Does bird use gettimeofday() to drive its timers? If so it might be a time jump that caused that.
No, BIRD uses clock_gettime(CLOCK_MONOTONIC, ) if available, otherwise it uses time() (which isn't monotonic, but it is used in Linux 2.4.x (2.6.x has proper clock_gettime()) and there is a code around it that eliminates backward time jumps). I heard that some buggy virtualization software causes time jumps of monotonic timers (in quest system), but that probably is not Arnold Nipper's case. There might be related messages in BIRD log: "Monotonic timer is missing", "Monotonic timer is broken" -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Ondrej Zajicek <santiago@crfreenet.org> wrote on 2010/11/06 19:24:22:
On Sat, Nov 06, 2010 at 03:54:22PM +0100, Joakim Tjernlund wrote:
Just came across
Keepalive timer: -22205673/60
Weird, isn't it?
Does bird use gettimeofday() to drive its timers? If so it might be a time jump that caused that.
No, BIRD uses clock_gettime(CLOCK_MONOTONIC, ) if available, otherwise it uses time() (which isn't monotonic, but it is used in Linux 2.4.x (2.6.x has proper clock_gettime()) and there is a code around it that eliminates backward time jumps).
You can use ticks = times(NULL) instead of time() I do that in Quagga which runs on our 2.4 boards. You need to work around a bug though to make times() reliable on Linux
On Sat, Nov 06, 2010 at 03:27:06PM +0100, Arnold Nipper wrote:
Just came across
Keepalive timer: -22205673/60
Weird, isn't it?
It is in most BGP sessions or only in a few? -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On 06.11.2010 19:26 Ondrej Zajicek wrote
On Sat, Nov 06, 2010 at 03:27:06PM +0100, Arnold Nipper wrote:
Just came across
Keepalive timer: -22205673/60
Weird, isn't it?
It is in most BGP sessions or only in a few?
I only caught it once ... so what is the meaning of the value? Keepalive timer: time-until-next-keepalive/keepalive-timer-agreed upon ??? Arnold btw: yes, that is not a virtualized host. Native Debian Lenny 2.6.30-bpo.2-amd64 -- Arnold Nipper / nIPper consulting, Sandhausen, Germany email: arnold@nipper.de phone: +49 6224 9259 299 mobile: +49 152 53717690 fax: +49 6224 9259 333
On Sat, Nov 06, 2010 at 07:31:38PM +0100, Arnold Nipper wrote:
On 06.11.2010 19:26 Ondrej Zajicek wrote
On Sat, Nov 06, 2010 at 03:27:06PM +0100, Arnold Nipper wrote:
Just came across
Keepalive timer: -22205673/60
Weird, isn't it?
It is in most BGP sessions or only in a few?
I only caught it once ... so what is the meaning of the value?
Keepalive timer: time-until-next-keepalive/keepalive-timer-agreed upon ???
Yes. Negative value is definitely weird. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On 06.11.2010 20:59 Ondrej Zajicek wrote
On Sat, Nov 06, 2010 at 07:31:38PM +0100, Arnold Nipper wrote:
On 06.11.2010 19:26 Ondrej Zajicek wrote
On Sat, Nov 06, 2010 at 03:27:06PM +0100, Arnold Nipper wrote:
Just came across
Keepalive timer: -22205673/60
Weird, isn't it?
It is in most BGP sessions or only in a few?
I only caught it once ... so what is the meaning of the value?
Keepalive timer: time-until-next-keepalive/keepalive-timer-agreed upon ???
Yes. Negative value is definitely weird.
I guess small negative values may occur. Or not? admin1:~> ssh rs5 birdc show protocols all | grep alive | sed 's?/? /?' | awk '$3<0' Keepalive timer: -1 /30 Keepalive timer: -1 /30 Keepalive timer: -3 /60 Keepalive timer: -3 /60 Keepalive timer: -2 /60 Keepalive timer: -1 /60 Keepalive timer: -1 /60 Keepalive timer: -1 /30 Keepalive timer: -3 /60 Keepalive timer: -3 /30 Keepalive timer: -3 /30 Keepalive timer: -3 /6 Keepalive timer: -1 /30 Keepalive timer: -2 /15 Keepalive timer: -3 /60 Keepalive timer: -1 /60 Keepalive timer: -1 /30 Keepalive timer: -2 /60 Keepalive timer: -1 /10 Keepalive timer: -2 /60 Keepalive timer: -1 /60 admin1:~> ssh rs5 birdc show protocols all | grep alive | sed 's?/? /?' | awk '$3<0' admin1:~> ssh rs5 birdc show protocols all | grep alive | sed 's?/? /?' | awk '$3<0' admin1:~> ssh rs5 birdc show protocols all | grep alive | sed 's?/? /?' | awk '$3<0' Keepalive timer: -1 /60 Keepalive timer: -1 /6 Keepalive timer: -1 /60 Keepalive timer: -1 /6 Keepalive timer: -1 /60 Keepalive timer: -1 /6 Arnold -- Arnold Nipper / nIPper consulting, Sandhausen, Germany email: arnold@nipper.de phone: +49 6224 9259 299 mobile: +49 152 53717690 fax: +49 6224 9259 333
On Sat, Nov 06, 2010 at 09:05:38PM +0100, Arnold Nipper wrote:
I guess small negative values may occur. Or not?
Yes these may occur if the router is loaded. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (3)
-
Arnold Nipper -
Joakim Tjernlund -
Ondrej Zajicek