Uninett / zino

Zino 2.0 - Network state monitor for research networks
Apache License 2.0
3 stars 5 forks source link

zino1 protocol: rechability events is missing the ac-down parameter #332

Closed runborg closed 1 month ago

runborg commented 2 months ago

It looks like the reachability(and portstates? haven't checked) events are missing the ac-down parameter. This parameter is a shorthand for accumulated downtime for a event and counts seconds of downtime for the port/device for the life of that event.

runborg commented 2 months ago

i would note that this is calclated not based on the interval between the first down and the last up but should only count the actual downtime. This means that if a link is down for 1minute then its up for 10h, then again a new minute down. ac-down should count as 2minutes downtime.

i've not looked into the zino1 source, but looking into zinolib (https://github.com/Uninett/zinolib/blob/stable/0.x/src/zinolib/ritz.py#L314-L319) it looks like this value does not count the current downtime period if the port is down, it only counts the periods that have been restored to up state.