Internal Data Transfer
In the system we distinguish between two different types of data: Realtime Data and Historical Data. Each of these data types has its own dedicated data transfer channel within the system, optimized for the specific requirements of the respective data type.
The Realtime Data Channel
The term Realtime can have different meanings in different industries or software systems. Within our system Realtime Data means the most current value of an entity only, while Historical Data is about a time range of data that typically includes data with timestamps from the past.
Before Realtime Data can be transferred, it has to be recognized, and thus can only be transferred after this recognition, even if this only refers to a fraction of a millisecond. Since for data transfer our system builds upon existing network infrastructure and the Internet in general, the speed of the data transfer is closely linked to the capabilities and limitations of this infrastructure. It’s due to limitations like these, that 'Realtime' is generally defined as 'as quickly as possible'.
When we speak about 'Realtime', we adhere to this definition. The system is optimized for the quickest data transfer possible, providing a special channel which is dedicated this single task, called the 'Realtime Data Channel'.
| The Realtime Channel is used for all data transfers within the system. |
The goal of the Realtime Data Channel is to always deliver the latest data, therefore this channel has the highest internal priority. This means that eventually 'slower' data (e.g. due to network problems) is discarded for the sake of more recent data. So the Realtime Channel does not guarantee full data integrity. Given the infrastructure supports it, under normal conditions the Realtime Channel transfers data from its source to its destination in one second or less - even from the other side of the globe.
|
The most current value of an entity can have a timestamp from the past, still it is falling into the Realtime category. |
The History Data Channel
| Transferring data via the History Data Channel is optional and has to be explicitly activated for each object that is meant to use it. To do so, enable Object Data Historization. |
Opposed to the Realtime Data Channel the system also provides the History Data channel which is dedicated to data integrity. This channel provides buffering mechanisms on multiple levels, for guaranteed delivery of all recognized data, using the Store and Forward (SaF) sub-system. The delivery is of lower priority than the Realtime data, and is a “best effort” transfer timewise. Means one can not rely on, when the data will be transferred exactly, but on the fact that it will be complete. Under normal conditions also History Data will be transferred from source to destination within 1-2 seconds. The SaF system can transfer VQT data, Log messages, and Alarms & Events (A&E).
| Historical Data can contain data with timestamps of the future. |
Performance
The SaF sub-system provides Performance Counters for monitoring the persistent buffer. For each data type (real-time data, log entries, and events) there are four different Performance Counters:
-
Buffer - The current number of items in the buffer for this data type.
-
Inserts - The item insertion rate (number of items per second) for this data type.
-
Sent (applies to Ingresss Node only) - The rate at which items for this data type are send to the Historian Node component.
-
Received (applies to Historian Nodes only) - The rate at which items for this data type are received from an Ingress Node with a persistent SaF sub-system configuration.
| On service start, the number of data items in the persistent buffer is counted. In case of a large buffer, the Buffer counters may show a steady increase until the initial counting is finished. Received only shows data forwarded from a remote component if that component uses a SaF sub-system with a persistent buffer. |
Both Channels working together
This diagram illustrates a common scenario where both channels work together.
Involved are:
-
A Historian System where the Node archives IO-Items, log messages and events to MongoDB
-
An Ingress System where Node brings external data tags and log messages into the system and forwards them to the Historian System
-
Some IO-Items on the Ingress System that are not meant to be archived