Optimizing the ordering of packet-filtering firewalls is crucial to ensure high packet classification efficiency. In this perspective, the literature has investigated the problem either in a static or batch fashion, by estimating traffic statistics and then computing a new rule ordering offline or on demand, or through dynamic approaches following an estimate-and-optimize paradigm and relying on ad-hoc heuristics based on hand-crafted metrics and tuning choices. Therefore, there is a need for novel algorithms that can learn adaptive rule prioritization strategies directly from experience, possibly in a separate environment from the one responsible for decision making. To this aim, this paper presents TwinWall, a digital-twin-based firewall architecture in which a digital optimizer uses reinforcement learning to derive adaptive rule orderings based on the observed traffic, and periodically exports them to the real firewall. In this way, TwinWall reframes the rule-ordering problem as a continuous learning process, where prioritization emerges directly from traffic interaction rather than from predefined optimization algorithms. A prototype implementation of TwinWall was developed and validated on three datasets with different traffic characteristics, including two real packet traces and one synthetic workload generated with the ClassBench benchmarking tools. The obtained results show that the proposed approach can significantly reduce both the number of rule checks and the corresponding packet processing time, and that it outperforms static and frequency-based baseline strategies.
TwinWall: A digital twin-driven firewall architecture for adaptive rule ordering optimization / Bringhenti, D., Valenza, F.. - In: COMPUTER NETWORKS. - ISSN 1389-1286. - ELETTRONICO. - 292:(2027), pp. 1-16. [10.1016/j.comnet.2026.112911]
TwinWall: A digital twin-driven firewall architecture for adaptive rule ordering optimization
Daniele Bringhenti;Fulvio Valenza
2027
Abstract
Optimizing the ordering of packet-filtering firewalls is crucial to ensure high packet classification efficiency. In this perspective, the literature has investigated the problem either in a static or batch fashion, by estimating traffic statistics and then computing a new rule ordering offline or on demand, or through dynamic approaches following an estimate-and-optimize paradigm and relying on ad-hoc heuristics based on hand-crafted metrics and tuning choices. Therefore, there is a need for novel algorithms that can learn adaptive rule prioritization strategies directly from experience, possibly in a separate environment from the one responsible for decision making. To this aim, this paper presents TwinWall, a digital-twin-based firewall architecture in which a digital optimizer uses reinforcement learning to derive adaptive rule orderings based on the observed traffic, and periodically exports them to the real firewall. In this way, TwinWall reframes the rule-ordering problem as a continuous learning process, where prioritization emerges directly from traffic interaction rather than from predefined optimization algorithms. A prototype implementation of TwinWall was developed and validated on three datasets with different traffic characteristics, including two real packet traces and one synthetic workload generated with the ClassBench benchmarking tools. The obtained results show that the proposed approach can significantly reduce both the number of rule checks and the corresponding packet processing time, and that it outperforms static and frequency-based baseline strategies.| File | Dimensione | Formato | |
|---|---|---|---|
|
COMNET2027_VoR.pdf
accesso aperto
Tipologia:
2a Post-print versione editoriale / Version of Record
Licenza:
Creative commons
Dimensione
1.68 MB
Formato
Adobe PDF
|
1.68 MB | Adobe PDF | Visualizza/Apri |
Pubblicazioni consigliate
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.
https://hdl.handle.net/11583/3017692
