Skip to main content
← PROBLEMS / SYSTEM-DESIGN
An end-to-end domain learning journey

Design an Enterprise Network Intrusion
Detection System (100 Gbps+).

Design an Enterprise Network Intrusion Detection System monitoring 100 Gbps+ across global data centers, detecting lateral movement and C2 beaconing in real time with automated SOAR containment.
Start the journey7 stages· Last modified Nov 24, 2026
FIRST PRINCIPLES. PRODUCTION SCALE.
The idea to keep with you

If credentials or tokens are verified at the edge, deploy DPDK/Suricata Edge Sensors at core optical TAPs, stream compact L7/flow telemetry over Kafka to Flink behavioral detectors, and archive to ClickHouse SIEM with CMDB-guarded SOAR.

TL;DR30-second simplified summary
▾

To scale NIDS past 100 Gbps, extract L7/NetFlow at the edge (50:1), match 5M IOCs via local Bloom+RocksDB in Flink, and archive 21 TB/day in 7:1 ZSTD ClickHouse.

Before you begin · Building blocksAlready know these? Jump to Stage 01 ↓
Network Intrusion Detection (NIDS), JA4 Fingerprinting & Flow Telemetry
Network Intrusion Detection & Flow Telemetry pairs L7 signature inspection (Suricata/Zeek with JA4 TLS fingerprinting) with NetFlow/IPFIX behavioral anomaly scoring to correlate multi-stage MITRE ATT&CK kill-chains.
Full walkthrough · 7 stages
01
foundation

100 Gbps+ Telemetry Reduction Math.

Why this matters: Avoid saturating WAN links by extracting metadata at edge sensors.

100 Gbps = 12.5 GB/s of raw packets (~15M packets/sec).

Shipping raw PCAPs centrally is infeasible.

Bandwidth Math

50:1 Edge Metadata Extraction (100 Gbps -> 250 MB/s)

Core Switch TAPs(100G)Mirror sourceDPDK/SuricataSensors50:1 reducerKafka Telemetry BusCentral streamFlink + ClickHouseSIEMAnalytics coreShips compact telemetry

1.Edge Reduction: Extracting L7 headers and flow summaries at the rack cuts WAN traffic by 98%.

2.Ring-Buffer PCAP: Sensors keep a 1-hour rolling raw PCAP ring on local NVMe for forensic pull-on-alert.

Edge metadata extraction shrinks 100 Gbps of wire traffic by 50x before central Kafka ingestion.

02
foundation

End-to-End Sensor-to-SOAR Architecture.

Why this matters: Connect edge capture, Kafka, Flink behavioral detection, ClickHouse SIEM, and SOAR.

Think of End-to-End Sensor-to-SOAR Architecture as the intuition layer for Design an Enterprise Network Intrusion Detection System (100 Gbps+): Connect edge capture, Kafka, Flink behavioral detection, ClickHouse SIEM, and SOAR.

Core Switch TAPs feed DPDK/Suricata Edge Sensors -> Kafka Telemetry Bus -> Flink Lateral Movement & C2 Beaconing Detector -> Threat Intel Bloom Filter + ML Anomaly Scorer -> ClickHouse SIEM Lake + SOAR Auto-Containment (Firewall/NAC Block).

System Blueprint

100G+ Edge Sensors -> Flink -> SIEM + SOAR

DPDK Edge SensorsWire parserKafka Telemetry BusEvent backboneFlink + TI Bloom +MLDetection coreClickHouse + SOARStorage & blockEnriches & scores

1.Src-IP Partitioning: Partitioning Kafka by internal src_ip keeps all host activity on one Flink worker.

2.Sub-10s Containment: High-confidence multi-stage alerts trigger NAC/Firewall isolation in <10s.

Partitioning Kafka by internal host IP lets Flink detect lateral movement and C2 beacons in one pass.

Engineering Decision Framework
Problem
How to implement Design an Enterprise Network Intrusion Detection System (100 Gbps+) without hitting unbounded tail latency, state divergence, or operational fragility.
Naive Solution
Use a single unpartitioned path with unbounded retries and synchronous global coordination.
Why It Fails
Global coordination serializes throughput under load, while unbounded retries amplify transient stalls into full outages.
Alternatives
Compare synchronous strict-consistency paths against bounded asynchronous replication, local caching, or partitioned ownership.
Engineering Decision
If credentials or tokens are verified at the edge, deploy DPDK/Suricata Edge Sensors at core optical TAPs, stream compact L7/flow telemetry over Kafka to Flink behavioral detectors, and archive to ClickHouse SIEM with CMDB-guarded SOAR.
Trade-Offs
Gains predictable p99 latency and fault isolation in exchange for explicit bounding, observability, and slightly higher implementation complexity.
Decision Exercise · Make the Call

When Design an Enterprise Network Intrusion Detection System (100 Gbps+) experiences a sudden 5x traffic spike alongside a slow downstream dependency, which engineering choice best protects system stability?

03
intermediate

Threat Intel Bloom Filters in Flink.

Why this matters: Match 5M+ malicious IPs, domains, and JA4 hashes at 500K events/sec.

Think of Threat Intel Bloom Filters in Flink as the intuition layer for Design an Enterprise Network Intrusion Detection System (100 Gbps+): Match 5M+ malicious IPs, domains, and JA4 hashes at 500K events/sec.

Querying an external Redis or SQL threat-intel database 500K times/sec adds latency. Flink broadcasts a 10 MB Counting Bloom Filter (5M IOCs at 0.1% FP) to every TaskManager's local RAM via a Kafka broadcast state stream, verifying matches against exact RocksDB/ClickHouse before alerting.

IOC Matching

Two-Stage Local Bloom + Exact IOC Confirmation

STIX/TAXII TI FeedIntel source10MB Broadcast BloomFast negativeExact RocksDB SetZero-FP verifierVerified IOC AlertHigh-conf signalConfirms positive hits

1.99.9% Fast Path: Bloom filter rejects 99.9% of benign IPs in nanoseconds in local RAM.

2.Zero False Positives: Confirming Bloom positives against RocksDB prevents 0.1% FP noise.

A 10 MB in-RAM Bloom filter paired with RocksDB verification matches 5M IOCs at 500K events/sec.

04
intermediate

Flink Lateral Movement & East-West Fan-Out.

Why this matters: Catch compromised hosts scanning internal subnets over SMB, RDP, or SSH.

Think of Flink Lateral Movement & East-West Fan-Out as the intuition layer for Design an Enterprise Network Intrusion Detection System (100 Gbps+): Catch compromised hosts scanning internal subnets over SMB, RDP, or SSH.

Once an attacker lands on one laptop, they scan internal subnets for SMB (445), RDP (3389), or WinRM (5985). Flink maintains a 15-minute HyperLogLog / Set of distinct internal destination IPs per src_ip; if a workstation's distinct SMB/RDP fan-out exceeds 15 hosts in 5 minutes, it fires a Lateral Movement alert.

East-West Defense

Flink 5-Min Admin-Port Fan-Out Detector

East-West FlowsAdmin trafficFlink 5m DistinctDstScan trackerIT ScannerAllowlistNoise filterLateral MovementAlertBreach signalFilters authorized scanners

1.Scanner Allowlist: Always allowlist authorized vulnerability scanners (Nessus/Qualys) by static IP.

2.Failed Auth Boost: Correlating high fan-out with failed Kerberos/NTLM auths confirms active credential stuffing.

Tracking 5-minute distinct destination counts on admin ports catches east-west lateral movement early.

05
intermediate

ClickHouse SIEM Lake & Sub-Second Threat Hunting.

Why this matters: Store petabytes of network telemetry cheaply with <1s forensic search.

Think of ClickHouse SIEM Lake & Sub-Second Threat Hunting as the intuition layer for Design an Enterprise Network Intrusion Detection System (100 Gbps+): Store petabytes of network telemetry cheaply with <1s forensic search.

Legacy Splunk/Elasticsearch clusters cost millions at 250 MB/s (~21 TB/day). ClickHouse MergeTree tables partitioned by day and ordered by (src_ip, dst_ip, ts) with ZSTD compression shrink 21 TB/day down to ~3 TB/day on NVMe/S3 tiered storage while answering threat-hunting queries in <1s.

SIEM Storage

ClickHouse Hot NVMe + Cold S3 SIEM Tiering

250 MB/s Kafka SinkSIEM ingestHot NVMe (14 Days)Sub-second huntCold S3 Tier (1Year)Compliance archiveSOC Hunt ConsoleForensic queryAges out after 14d

1.7:1 ZSTD Compression: Sorting by (src_ip, dst_port, ts) achieves 7:1 compression and instant host pivots.

2.Hot-Cold Tiering: 14 days on NVMe + 365 days on S3 balances speed with 1-year compliance.

ClickHouse tiered storage cuts SIEM costs by 80% while delivering sub-second forensic pivots.

06
advanced

Sensor Health, Packet-Drop Telemetry & Auto-Bypass.

Why this matters: Detect sensor overload and keep edge nodes resilient under DDoS storms.

During a volumetric DDoS, 100G sensors can hit 100% CPU.

Sensors emit Prometheus metrics every 5s (af_packet_drops, mempool_usage).

Sensor Resilience

Self-Protecting eBPF Sampling Under DDoS

Volumetric UDPFloodOverload event5s Drop TelemetryHealth triggereBPF AdaptiveSamplerLoad shedderPreserved L7InspectionCritical visibilityActivates UDP sampling

1.Protect Control Flows: Never let noisy UDP floods blind inspection of TLS handshakes, DNS, and SMB.

2.Passive Safety: Because sensors sit on optical TAPs, sensor overload never drops production traffic.

Adaptive eBPF flood sampling preserves 100% L7 visibility on critical protocols during DDoS storms.

07
advanced

SOAR Auto-Containment & Firewall/NAC Orchestration.

Why this matters: Execute sub-10s endpoint isolation across heterogeneous firewalls and switches.

Think of SOAR Auto-Containment & Firewall/NAC Orchestration as the intuition layer for Design an Enterprise Network Intrusion Detection System (100 Gbps+): Execute sub-10s endpoint isolation across heterogeneous firewalls and switches.

When Flink confirms a high-confidence breach (e.g., C2 beacon + SMB lateral scan), SOAR executes an idempotent containment playbook: revoking the user's SSO session, pushing a NAC VLAN quarantine to the switch, and adding an ACL block on the perimeter firewall.

Automated SOAR

Idempotent NAC + SSO + Firewall Containment

Confirmed BreachSOAR triggerCMDB & Rate GuardSafety gateNAC + Firewall +SSOEnforcementImmutable Case LogSOC handoffExecutes <10s block

1.Multi-Layer Block: Pairing NAC switch isolation with SSO revocation stops both local and cloud pivots.

2.Idempotent APIs: Keying containment calls prevents playbook retries from thrashing firewall rules.

Guarded SOAR playbooks isolate compromised hosts across NAC, firewalls, and SSO in under 10 seconds.

Practice · Explain the consequences

Practice: Make the trade-off yourself.

Question 1 of 3
Score: 0/3

Why do 100 Gbps+ NIDS architectures deploy DPDK/Suricata Edge Sensors at data-center core switches instead of streaming raw PCAPs to a central cloud?

Recommended Learning Flow