Companion paper, submitted to IEEE INFOCOM 2027 Apache-2.0 Structural simulator, real trial data
CausalNetTwin logo

CausalNetTwin

A Counterfactual Network Digital Twin for Safe Agentic Remediation in Multi-Tenant AI Data-Center Fabrics

An autonomous controller can detect congestion and recommend a routing, queue, marking, or rate-control change, but a predicted improvement doesn't establish that the change is safe. CausalNetTwin estimates the counterfactual outcome of a candidate action under do(A=a) before it touches production, rejects any candidate that violates configured tail-latency, loss, fairness, churn, or SLO limits, and automatically rolls back when the observed outcome diverges from what was approved.

Causal inference Counterfactual reasoning Safety-constrained agents P4 telemetry Automatic rollback
1,080
Method-scenario trials
6 × 6
Methods × scenarios
61.4%
P99 FCT cut vs. ECMP
0.03%
Harmful accepted actions
The gap

Detecting congestion isn't the same as knowing an action is safe

Modern AI data centers mix synchronized AllReduce bursts, storage replication, Kafka, Spark shuffle, and latency-sensitive traffic on the same leaf-spine paths. Moving an elephant flow off one congested uplink can overload another tenant's path. Network digital twins support planning and what-if analysis, and recent work adds AI-driven management, closed-loop SLA assurance, and causal optimization, but no reviewed system jointly reports action-level causal testing, explicit multi-tenant safety limits, post-deployment verification, and automatic rollback.

What a correlation-only controller does

Attributes a workload-phase transition to its own intervention, because it only conditions on A=a as observed historically; it never asks what would have happened under the intervention specifically.

What CausalNetTwin does

Estimates Y(t;a) under an explicit do(A(t)=a) intervention on a temporal structural causal model, rejects the candidate if any predicted safety bound is violated, and verifies + rolls back after deployment.

Closest related work

No located system combines all five properties

Condensed from the paper's Table I. Full reference list and discussion in the companion manuscript.

WorkAction-conditioned causal modelMulti-tenant AI fabricExplicit safety gatePost-action verificationAutomated rollback
CiiNetYesNot evaluatedNot reportedIterative evaluationNot reported
Trustworthy NDTWhat-if validationNot evaluatedNot reportedYesNot reported
Adaptive NDTPredictive modelNot evaluatedNot reportedDrift synchronizationNot reported
C-RAN DTNNot reportedNoSLA logicYesNot reported
CausalNetTwinYesYesYesYesYes
How it works

Six planes, none of which can touch production directly

Telemetry and context feed a causal world model; the counterfactual engine screens candidate actions against the safety gate before anything is deployed; the verifier watches the outcome and restores the previous state on material deviation.

CausalNetTwin safety-validated remediation workflow: production fabric to telemetry plane to causal world model to counterfactual intervention engine to safety-constrained agent to verified deployment and rollback, with measured outcome feedback closing the loop.
Fig. 1: Safety-validated remediation workflow (six stages, closed-loop verification).
Structural causal graph: workload phase and storage I/O pressure as parent context variables feeding path load and queue occupancy, which drive ECN marking, packet loss, P99 FCT, and SLO risk; candidate action is an intervention variable on path load and queue occupancy.
Fig. 2: Structural causal graph used for action-conditioned intervention testing. Workload phase and storage pressure are retained as explicit parents so a correlation model can't mistake a phase transition for an intervention effect.
1. Generate candidatesBounded routing, queue-weight, ECN-threshold, and rate-control actions, each with scope, expiry, and a captured rollback command.
→
2. Estimate Y(a) under do(A=a)The counterfactual engine clones current state, applies the intervention, and rolls forward with uncertainty intervals and a causal attribution trace.
3. Safety gateReject any candidate whose predicted confidence bound violates P99 FCT, loss, fairness, churn, or SLO limits, even if its expected mean is better. No-action is a valid result.
→
4. Deploy, verify, rollbackCanary the approved action; if observed P99 latency or loss exceeds its predicted value by more than 20% and the deviation is harmful, restore the previous configuration and flag model review.
Real simulator output: 1,080 trials, 30 seeds

Lower tail latency, and far fewer harmful accepted actions

Generated by experiments/run_benchmark.py against the reproducible structural simulator; every number below is read directly from results/*.csv in the repository, not hand-picked. Six control methods, six workload/failure scenarios, common random numbers across all methods.

ECMP
21.23 ms
Static-TE
23.30 ms
Correlation-ML
29.02 ms
DRL
24.98 ms
Twin (no causal)
15.03 ms
CausalNetTwin
8.19 ms

Aggregate P99 flow completion time across all scenarios and seeds. Lower is better.

MethodP95 msP99 msSLO %Loss %Fairness
ECMP18.9121.2335.870.2320.884
Static-TE16.8323.3026.530.1460.890
Correlation-ML20.4829.0223.640.1690.883
DRL15.3624.9814.020.0910.889
Twin (no causal)8.3615.034.790.0250.903
CausalNetTwin4.508.191.970.0090.910
MethodSource loc. %Success %Harmful %Rollback %Churn %
Static-TE82.0682.0617.940.003.05
Correlation-ML72.0572.0527.950.0014.06
DRL79.1679.1620.840.0017.88
Twin (no causal)85.1685.7610.303.9411.52
CausalNetTwin94.0399.350.030.625.25

Diagnostic accuracy and action safety. CausalNetTwin localizes the simulated congestion source correctly in 94.03% of intervention windows and accepts a harmful action in only 0.03% of decisions, down from 10.30% for a non-causal twin and 27.95% for correlation-based ML, while keeping a 99.35% success rate among accepted interventions.

Bar chart: aggregate P99 flow completion time in milliseconds by control method: ECMP 21.2, Static-TE 23.3, Correlation-ML 29.0, DRL 25.0, Twin-No-Causal 15.0, CausalNetTwin 8.2.
Fig. 3: Aggregate P99 FCT by control method, as generated directly from the trial CSVs.
ScenarioECMP msTwin (no causal) msCausalNetTwin ms
Mixed leaf-spine13.837.502.19
Fat-tree AllReduce16.4210.092.49
Oversubscribed 4:124.3917.7412.18
Link failure23.8414.766.56
Elephant arrival23.1313.166.17
Backup + AI collision25.7926.9019.58

P99 FCT by stress scenario. The hardest case (backup replication colliding with AI collective traffic in an oversubscribed fabric) exceeds the nominal 12 ms target for every method, because demand exceeds safe capacity. CausalNetTwin still lowers the tail and rejects unsafe route migration rather than fabricating spare capacity.

Cost of causal adjustment

7.19 ms inference, 2.65% telemetry overhead

The counterfactual MAPE is 7.78% for CausalNetTwin versus 13.49% for the non-causal twin and above 18% for correlation-ML/DRL. The additional 1.49 ms over the non-causal twin is the measured cost of causal adjustment, candidate screening, and uncertainty checks, well below the control-window duration used in the experiments.

MethodCounterfactual MAPE %Telemetry overhead %Inference ms
Correlation-ML22.311.462.90
DRL18.701.774.80
Twin (no causal)13.492.105.70
CausalNetTwin7.782.657.19
Reproduce it yourself

Every table above regenerates from a fixed seed

Structural, event-driven simulator (not a packet-level substitute for ns-3 or a P4 testbed). Six automated tests verify deterministic reproduction, safety rejection, rollback behavior, and tail-latency improvement.

# clone, install, and reproduce
git clone https://github.com/sunilgentyala/CausalNetTwin.git
cd CausalNetTwin_Repo
python -m venv .venv && source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
python -m pytest -q
python -m causalnettwin.cli --output results --seeds 30 --steps 600
Stated honestly

Limitations and the evidence boundary

What's next

Packet-level and hardware validation roadmap

A model version is accepted into the next validation stage only after calibrated intervals on held-out conditions, a low harmful-action rate under real packet scheduling and controller delay, and bounded rollback recovery without a second congestion event.

LayerPlanned implementationRequired evidence
Topology & trafficContainerlab / Mininet; leaf-spine & fat-tree; AllReduce, Kafka, Spark, storage replicationPer-flow traces, topology files, workload manifests
Programmable data planeBMv2/P4 INT, ECN marking, queue & path telemetrySwitch resource cost, timestamp accuracy, telemetry loss
Control planeONOS / Ryu, scoped canary deployment, stored rollback stateAction latency, policy conflicts, rollback completion
Scale & failuresns-3 and hardware trials with link failure, stale telemetry, oversubscriptionCalibration, recovery time, tail latency, safety violations
Citation

Companion manuscript: IEEE INFOCOM 2027 (submitted)

The manuscript itself is intentionally not stored in this repository, in line with IEEE's prior-publication policy. Cite the software artifact via CITATION.cff until the paper is accepted.

@software{causalnettwin2026,
  author = {Gentyala, Sunil and Darisi, Suresh Kumar and Martin, John and Caprio, Floriano},
  title  = {CausalNetTwin: A Counterfactual Network Digital Twin for Safe Agentic Remediation},
  year   = 2026,
  url    = {https://github.com/sunilgentyala/CausalNetTwin}
}
Who built this

Authors

Sunil Gentyala
HCLTech
Corresponding author
Suresh Kumar Darisi
Rocket Software
John Martin
HCLTech, Auckland, New Zealand
Floriano Caprio
Università Campus Bio-Medico di Roma