NetAgent Functionality
How NetAgent captures, processes, and transmits network traffic data locally.
NetAgent Functionality#
The system is designed for efficient and real-time network traffic monitoring, processing, and transmission.
The NetAgent operates locally on the target server to minimize latency and optimize resource utilization. The flow involves capturing raw network data, processing it into KPIs, storing it, and transmitting it to ComponentAgent for further use.
Below are the benefits of the system:
1. Capture Thread: Captures real-time network traffic data.
- Continuously listens to the network interface and captures raw network traffic.
- Pushes the captured data into the Memory Queue for temporary processing.
2. Memory Queue: Temporary storage for raw network data.
- Acts as a buffer before the data is dispatched for processing.
- Data is held until retrieved by the Dispatcher Thread.
3. Dispatcher Thread: Distributes data to multiple processing queues.
- Fetches data from Memory Queue and distributes it to other Memory Queues using load balancing or specific rules.
- Data is pushed to Memory Queues.
4. Processing Threads: Processes the raw network data into KPIs.
- Also processes data from the Memory Queue (which may be shared by multiple threads to improve performance).
- Processed data (network KPIs) are pushed to the Network KPIs Data Storage.
5. Network KPIs Data Storage: Stores processed network KPIs.
- Aggregates and stores KPIs generated by the processing threads.
- Data is updated and maintained every minute for further use.
6. Statistics Module: Provide overall system statistics and insights.
- Gathers data from components such as the Dispatcher Thread and Processing Threads.
- Works with the Config Module to optimize settings based on statistical analysis.
- Compiled network statistics and actionable insights.
7. Config Module: Manages system configuration.
- Maintains configuration settings for the NetAgent system.
- Adjusts configurations dynamically in coordination with the Statistics Module, which updates system parameters to meet performance and operational requirements.
8. Output Queue: Temporarily holds processed data for transmission.
- Collects processed KPIs from network KPI data storage or directly from Processing Threads.
- Data is stored until retrieved by the Data Sender Thread.
9. Data Sender Thread: Transmits processed data to the named pipes.
- Retrieves data from the Output Queue.
- The data from named pipes will be consumed by ComponentAgent.
10. Pipes: Facilitate data transfer to the ComponentAgent.
- Act as conduits for transmitting data from the NetAgent to the ComponentAgent.
11. ComponentAgent: Reads the data from pipes and sends the data to HEAL backend services for further processing.
Benefits of Data Collection and Processing#
Below are the benefits of Data Collection and Processing:
1. Low Latency: All operations are performed locally, reducing the delay in data transmission and processing.
2. Resource Efficiency: By operating independently of external servers, the system conserves bandwidth and external processing power.
3. Simplified Architecture: Running all components on a single server simplifies deployment and maintenance.
Minutely Counter Resets#
Interval counters (newSessionCount, dupCount, retransCount, txBytes, rxBytes, etc.) are reset at each KPI push interval to support windowed/rate-based KPI reporting.