arXiv:2611.04973cs.PFNov 2026

Manuscript Offprint

arXiv:2611.04973

Software Design Patterns for Latency Measurements with eBPF in SDN Environments

Pedro Lucas M. S. Rosa, Bruno L. Dalmazo, Leticia S. Machado, Jéferson Campos Nobre

Pedro Lucas M. S. Rosa*, Bruno L. Dalmazo†, Leticia S. Machado*, Jeferson Campos Nobre*

  • Institute of Informatics

Federal University of Rio Grande do Sul, Porto Alegre–RS, Brazil

pedro.sousa@ufgrs.br, leticia.machado@inf.ufrgs.br, jcnobre@inf.ufrgs.br

† Computing Science Center

Federal University of Rio Grande, Rio Grande–RS, Brazil

dalmazo@furg.br

Abstract—This work proposes, implements, and evaluates a modular architecture based on software design patterns applied to latency measurement in Software-Defined Networks (SDN) using the Extended Berkeley Packet Filter (eBPF) and the Express Data Path (XDP). Unlike approaches that focus solely on measurement precision, this study examines how design patterns can structure observability systems in an extensible and maintainable way while preserving data-plane efficiency. The proposed architecture applies the Observer, Strategy, and Factory Method patterns to modularize the metric collection and analysis pipeline, allowing dynamic integration of policies and data sinks. The experimental environment was implemented with Mininet, Python agents, and eBPF/XDP programs, and was evaluated in terms of processing time, overhead, and evolution effort. The results show that the introduction of design patterns show no clear evidence of measurable degradation or performance, maintaining continuous measurements with a minimum of 5% overhead. The findings suggest that software engineering practices may be applied to the construction of eBPF-based monitoring and observability systems.

Index Terms—eBPF, XDP, One-Way Delay, Network Observability, Software Design Patterns, Kernel-Level Monitoring.

I. INTRODUCTION

The advancement of communication technologies and the growing demand for distributed, latency-sensitive applications have motivated the exploration of new approaches to network monitoring. In particular, the Extended Berkeley Packet Filter (eBPF) and the Express Data Path (XDP) have emerged as useful tools for kernel-level instrumentation, enabling relatively precise measurements with modest overhead [1]. These mechanisms have been applied in different domains, from cloud systems and microservices [2], [3] to software-defined networking (SDN), providing improved visibility of traffic and programmable network functions [4].

Although eBPF/XDP enable highly efficient and precise latency measurements, existing solutions often treat the software architecture of the collection pipeline as a secondary concern. As a result, many approaches prioritize data-plane instrumentation while neglecting architectural aspects such as modularity, extensibility, and controlled evolution, leading to

tightly coupled and hard-to-evolve systems. This lack of architectural guidance constitutes a recurring software engineering problem that hinders maintainability, long-term reuse, and experimental reproducibility of eBPF/XDP-based observability solutions [5].

However, most existing studies focus on point solutions for observability without adopting software design patterns that promote reuse and modular organization [6]. This limitation makes eBPF/XDP-based monitoring solutions harder to maintain and extend, and reduces their experimental reproducibility [7]. Thus, the main issue explored in this work is not latency measurement itself, but the lack of structured guidelines to support the development of measurement systems based on eBPF/XDP. We therefore investigate how design patterns can be applied to structure and evaluate latency measurement architectures in a systematic, sustainable, and extensible way. To the best of our knowledge, prior works evaluate eBPF-based latency measurement primarily from a dataplane optimization perspective, without explicitly formalizing the collector architecture using software design patterns.

Recent research demonstrates eBPF efficiency in real-time metric collection, highlighting its precision and scalability [8]–[10]. Other works address its integration with security and observability mechanisms in containerized and cloud environments [11]–[13]. Nonetheless, these approaches emphasize dataplane aspects while neglecting the underlying software design. In the SDN context, studies such as [14], [15] reinforce the need for modular architectures that reconcile performance with design clarity, a gap this article aims to fill by formalizing the use of design patterns applied to latency measurement.

Based on this gap, this work proposes a modular and standardized architecture for one-way delay (OWD) measurements in programmable networks, integrating eBPF/XDP with a software layer structured around classic engineering patterns. The architecture comprises three layers: (i) the data plane, implemented in the kernel via XDP; (ii) the user-space control plane, with Python agents; and (iii) a modular HTTP collector structured with the Observer, Strategy, and Factory Method patterns. This integration enables continuous measurements with reasonable accuracy with minimal overhead and supports dynamic reconfiguration of the observability pipeline.

This manuscript has been accepted for presentation at the IEEE International Symposium on Computers and Communications (ISCC 2026).

The contributions of this article include: (i) the design of an architectural model that applies software design patterns to latency monitoring using eBPF/XDP, targeting higher-speed dataplane environments; (ii) the implementation and experimental validation of this model in an SDN setting using Mininet; and (iii) a quantitative and qualitative analysis of the impact of modularity and abstraction on extensibility and dataplane performance. The results demonstrate that continuous latency monitoring can be achieved with software modularization while maintaining dataplane overhead below 5%.

The remainder of this article is organized as follows: Section II presents theoretical foundations and related work; Section III describes the methodology and proposed architecture; Section IV details the experimental environment and results; Section V discusses observations and threats to validity; and Section VI concludes and outlines future directions.