Abstract
Recognizing complex temporal patterns, or "chronicles," in high-frequency data streams is a significant challenge for real-time monitoring systems. Traditional approaches often suffer from a combinatorial explosion of partial scenario instances, leading to excessive memory and CPU consumption. This paper proposes two primary optimizations: temporal focusing and hierarchization. By prioritizing rare events as triggers and sharing common sub-patterns across scenarios, the proposed system achieves dramatic performance gains. Evaluation on real-world network traffic logs demonstrates a 145x reduction in processing time and a 99% decrease in memory footprint.
Introduction
In fields such as telecommunications, healthcare, and network security, monitoring systems must recognize sequences of events bound by specific temporal constraints. For example, a scenario might require "Event B to occur 2-5 seconds after Event A." The standard approach, Store Partially Recognized Scenarios (SPRS), creates a new "partial instance" every time a potential starting event is observed. In high-frequency environments, this leads to a massive number of incomplete instances that exhaust system resources. Existing garbage collection methods, often based on simple global clocks, are frequently inefficient in the face of network jitter or distributed system delays.
Architectural Improvements
The authors introduce a redesigned Chronicle Recognition System (CRS) architecture that shifts from a purely proactive recognition logic to a more reactive, focused approach.
Temporal Focusing
Instead of allowing every frequent event to initiate a scenario, the system assigns "levels" to events based on their frequency. The system waits for an uncommon (high-level) event to occur. Once triggered, it "looks back" into a buffer of frequent (low-level) events to verify if the required precursors exist. This "temporal focusing" effectively ignores the noise of high-frequency data until it becomes relevant to a potential pattern match.
Hierarchization and the Collector
Complex scenarios are decomposed into a hierarchy of sub-chronicles. When multiple scenarios share a common sub-pattern, that pattern is recognized once and shared, rather than being re-calculated for every parent scenario. To manage this, a "Collector" component is introduced to handle event buffering and window management.
To replace blunt clock-based garbage collection, the authors introduced the AssertNoMore(event, interval) mechanism. This logic-based control message tells the engine exactly when it can stop waiting for a specific event type based on the temporal constraints of the chronicles themselves, allowing for aggressive and precise memory management.
Experimental Evaluation
The researchers evaluated their approach using real-world traffic logs from an IP network to detect Reflected Distributed Denial of Service (RDDoS) attacks. The dataset consisted of a 6-minute log containing approximately 240,000 events, categorized into high-level alarms (H) and low-level traffic indicators (L).
Key Results
The experimental results on the RDDoS detection task were dramatic, showing that the combination of hierarchization and focusing outperforms standard CRS methods by orders of magnitude:
| Method | Processing Time | Created Instances | Max Collector Size |
|---|---|---|---|
| Standard CRS (Clock) | 17 min | 236,600 | N/A |
| Hierarchical + Focusing | 7 seconds | 1,840 | 1,330 |
Key Insights
- The Power of Rarity: The most significant insight is that the rarest event is often the most informative. Treating rare events as primary triggers allows the system to ignore frequent "noise" until necessary.
- Bridging Past and Future: The method bridges proactive (predicting the future) and reactive (looking at the past) recognition styles by using buffers and temporal windows.
- Logic-Based Buffer Management: Instead of simple timeouts, the system uses the temporal logic of the scenarios to calculate "No Need Windows," precisely identifying which data points are no longer relevant.
Limitations and Future Work
While highly effective, the current approach has limitations. The mathematical conditions for factorizing sub-patterns are strict and may be too restrictive for patterns that are similar but not identical. Additionally, the "levels" for event frequency are currently set manually by experts; future work aims to automate this through online frequency analysis. Finally, extending the system to handle non-deterministic patterns remains a technical challenge.
Summary updated