How nandini905/dpi-engine works
DPI Engine reads PCAP traffic, parses packets, classifies flows and enforces blocking rules, then writes forwarded packets to an output PCAP. The documented scalable path dispatches packets through load balancers to fast-path workers, with per-worker flow tracking and a queued writer. The graph also includes the available DNS/QUIC extraction capability. Some runtime wiring is unsampled; edges are limited to README statements and shown references/calls.
Main entry points: dpi_engine.cpp DPI Engine · fast_path.cpp Fast Path Workers · load_balancer.cpp Load Balancers · thread_safe_queue.h Packet Queues
Components 12
Capture and Parsing
- PCAP Reader
src/pcap_reader.cpp - Packet Parser
src/packet_parser.cpp
Classification and Policy
- Protocol Extractors
src/sni_extractor.cpp - Blocking Rules
src/rule_manager.cpp - Flow Tracking
src/connection_tracker.cpp
Threaded Processing
- Load Balancers
src/load_balancer.cpp - Fast Path Workers
src/fast_path.cpp - Packet Queues
include/thread_safe_queue.h
Engine and Output
- DPI Engine
src/dpi_engine.cpp - PCAP Output Writer
src/dpi_engine.cpp
Other components
- Operator
- Output PCAP
Connections 16
- Operator → DPI Engine: configures and runs
README.md - DPI Engine → PCAP Reader: reads input
README.md - PCAP Reader → Packet Parser: provides packets
README.md - DPI Engine → Packet Parser: creates packet jobs
src/dpi_engine.cpp - DPI Engine → Load Balancers: dispatches by hash
README.md - Load Balancers → Fast Path Workers: dispatches by flow hash
README.md - Load Balancers → Packet Queues: passes packets
- Fast Path Workers → Packet Queues: receives packets
- Fast Path Workers → Flow Tracking: tracks flows
- Fast Path Workers → Protocol Extractors: inspects payload
- Fast Path Workers → Blocking Rules: checks policy
- Fast Path Workers → DPI Engine: reports packet action
- DPI Engine → Packet Queues: queues output
src/dpi_engine.cpp - DPI Engine → PCAP Output Writer: handles output
src/dpi_engine.cpp - PCAP Output Writer → Output PCAP: writes packets
README.md - Operator → Blocking Rules: sets blocking rules
README.md