5. Pre-Processing of Raw Statistical Data
5.1. Optimizing and Concentrating Data to Resources
To avoid redundant data being stored in commonly available storage there is a need for processing the raw data. For example if a link is down there is no need to continuous store a counter that is not changing. Using variables such as sysUpTime and Line Status there is the possibility of not continuously storing data collected from links and nodes where no traffic have been transmitted over some period of time.
Another aspect of processing is to decouple the data from the raw interface being polled. The intention should be to convert such data into the resource being of interest as for example the traffic on a given link. Changes of interface in a gateway for a given link should not be visible in the provided data.
5.2. Aggregation of Data
A polling period of 1 minute will create the need of aggregating stored data. Aggregation here means that over a period with logged entries, a new aggregated entry is created by taking the first and last of the previously logged entries over some aggregation period and compute a new entry.
Not to loose information on the peak values the aggregation also means that the peak value of the previous aggregation period is calculated and stored.
This gives below layout of aggregated entries
It is foreseen that over a relatively short period, polled data will be logged at the tightest polling period (1 minute). Regularly these data will be pre-processed into the actual files being provided.
Suggestions for aggregation periods:
Over a
24 hour period aggregate to 15 minutes,
1 month period aggregate to 1 hour,
1 year period aggregate to 1 day
Aggregation is the computation of new average and maximum values for the aggregation period based on the previous aggregation period data. For each aggregation period the maximum, and average values are computed and stored. Also other aggregation period could be chosen
when needed. The chosen aggregation period value will be stored together with the aggregated data as described below.