Alfonso Sánchez-Macián

NI
h-index3
10papers
13citations
Novelty25%
AI Score49

10 Papers

NIMay 7Code
SixGman: An Open-Source Planner for Fixed 6G Hierarchical Optical Access-Core Networks

Matin Rafiei Forooshani, Farhad Arpanaei, Hamzeh Beyranvand et al.

This paper introduces SixGman, an open-source optical network planning tool for evaluating access-metro-core aggregation network architectures. The framework integrates traffic generation, dual-homed routing, Quality of Transmission (QoT) estimation, spectrum and fiber assignment, techno-economic analysis, energy consumption evaluation, and visualization capabilities. Its modular design, based on standardized interfaces and clearly defined functions, enables flexible, transparent, and reproducible network simulations. SixGman is applied to the Telefónica MAN157 metro-urban topology, composed of 157 optical nodes, 220 links, and four hierarchical layers (HL1-HL4), to compare a conventional full hierarchical architecture with an HL3-bypassed architecture where electrical aggregation at HL3 nodes is removed. The analysis includes traffic distribution, IP router utilization, link congestion, latency, Total Cost of Ownership (TCO), and energy consumption. Results show that HL3 bypassing improves traffic distribution, reduces optical and electrical resource usage, lowers end-to-end latency, and decreases both capital and operational expenditures. Compared to the full hierarchical architecture, the HL3-bypassed scenario achieves reductions of up to 17.5% in TCO and 29.1% in cumulative energy consumption. These results demonstrate the potential of SixGman as a flexible planning platform for cost- and energy-efficient optical network design.

CRApr 27Code
GAMMAF: A Common Framework for Graph-Based Anomaly Monitoring Benchmarking in LLM Multi-Agent Systems

Pablo Mateo-Torrejón, Alfonso Sánchez-Macián

The rapid integration of Large Language Models (LLMs) into Multi-Agent Systems (MAS) has significantly enhanced their collaborative problem-solving capabilities, but it has also expanded their attack surfaces, exposing them to vulnerabilities such as prompt infection and compromised inter-agent communication. While emerging graph-based anomaly detection methods show promise in protecting these networks, the field currently lacks a standardized, reproducible environment to train these models and evaluate their efficacy. To address this gap, we introduce Gammaf (Graph-based Anomaly Monitoring for LLM Multi-Agent systems Framework), an open-source benchmarking platform. Gammaf is not a novel defense mechanism itself, but rather a comprehensive evaluation architecture designed to generate synthetic multi-agent interaction datasets and benchmark the performance of existing and future defense models. The proposed framework operates through two interdependent pipelines: a Training Data Generation stage, which simulates debates across varied network topologies to capture interactions as robust attributed graphs, and a Defense System Benchmarking stage, which actively evaluates defense models by dynamically isolating flagged adversarial nodes during live inference rounds. Through rigorous evaluation using established defense baselines (XG-Guard and BlindGuard) across multiple knowledge tasks (such as MMLU-Pro and GSM8K), we demonstrate Gammaf's high utility, topological scalability, and execution efficiency. Furthermore, our experimental results reveal that equipping an LLM-MAS with effective attack remediation not only recovers system integrity but also substantially reduces overall operational costs by facilitating early consensus and cutting off the extensive token generation typical of adversarial agents.

NIMay 7
Bridging the 6G Gap: Scaling Sustainable ROADM-Based IP-over-WDM via DSCM-Enabled Point-to-Multipoint Designs

Matin Rafiei Forooshani, Farhad Arpanaei, Hamzeh Beyranvand et al.

This study compares transponder-based, Point-to-Point, and DSCM-based Point-to-Multipoint (PtMP) access-metro architectures. Findings demonstrate that PtMP IPoWDM significantly optimizes efficiency across diverse geotypes, slashing CAPEX by 92.0% and power by 99.2% compared to the traditional benchmark over a ten-year horizon.

CRJul 3, 2025Code
Evaluating Language Models For Threat Detection in IoT Security Logs

Jorge J. Tejero-Fernández, Alfonso Sánchez-Macián

Log analysis is a relevant research field in cybersecurity as they can provide a source of information for the detection of threats to networks and systems. This paper presents a pipeline to use fine-tuned Large Language Models (LLMs) for anomaly detection and mitigation recommendation using IoT security logs. Utilizing classical machine learning classifiers as a baseline, three open-source LLMs are compared for binary and multiclass anomaly detection, with three strategies: zero-shot, few-shot prompting and fine-tuning using an IoT dataset. LLMs give better results on multi-class attack classification than the corresponding baseline models. By mapping detected threats to MITRE CAPEC, defining a set of IoT-specific mitigation actions, and fine-tuning the models with those actions, the models are able to provide a combined detection and recommendation guidance.

NIJun 18, 2024Code
Reinforcement-Learning based routing for packet-optical networks with hybrid telemetry

A. L. García Navarro, Nataliia Koneva, Alfonso Sánchez-Macián et al.

This article provides a methodology and open-source implementation of Reinforcement Learning algorithms for finding optimal routes in a packet-optical network scenario. The algorithm uses measurements provided by the physical layer (pre-FEC bit error rate and propagation delay) and the link layer (link load) to configure a set of latency-based rewards and penalties based on such measurements. Then, the algorithm executes Q-learning based on this set of rewards for finding the optimal routing strategies. It is further shown that the algorithm dynamically adapts to changing network conditions by re-calculating optimal policies upon either link load changes or link degradation as measured by pre-FEC BER.

LGJul 19, 2024
A Comprehensive Guide to Combining R and Python code for Data Science, Machine Learning and Reinforcement Learning

Alejandro L. García Navarro, Nataliia Koneva, Alfonso Sánchez-Macián et al.

Python has gained widespread popularity in the fields of machine learning, artificial intelligence, and data engineering due to its effectiveness and extensive libraries. R, on its side, remains a dominant language for statistical analysis and visualization. However, certain libraries have become outdated, limiting their functionality and performance. Users can use Python's advanced machine learning and AI capabilities alongside R's robust statistical packages by combining these two programming languages. This paper explores using R's reticulate package to call Python from R, providing practical examples and highlighting scenarios where this integration enhances productivity and analytical capabilities. With a few hello-world code snippets, we demonstrate how to run Python's scikit-learn, pytorch and OpenAI gym libraries for building Machine Learning, Deep Learning, and Reinforcement Learning projects easily.

NIApr 27
Optimizing power by selective IP card shutdown using transport slicing

Alfonso Sánchez-Macián, Óscar González de Dios, José Alberto Hernández et al.

The increasing energy demands of upcoming sixth-generation (6G) mobile networks and networks supporting AI applications pose significant challenges for network operators in terms of operational costs and environmental impact. To address these challenges, this paper proposes a novel IP-based network slicing strategy that optimizes energy efficiency through a dual-slice approach. The proposed solution consists of a Day Slice, designed to meet high-performance requirements during peak traffic hours, and a Night Slice, optimized for energy savings by deactivating excess line-cards in card-based routers during periods of low traffic demand. The traffic is switched between the Day and Night Slices at predefined times, assuming appropriate traffic engineering mechanisms are in place to minimize disruption and support session continuity. We apply Pareto-based evolutionary algorithms (NSGA-II, CTAEA, and AGE-MOEA) to jointly optimize energy consumption and latency. Experiments conducted on the SNDlib india35 topology demonstrate that multi-objective optimization can deactivate over 40% of line cards during low-traffic periods, providing significant energy savings while maintaining acceptable performance. Additionally, a multi-service extension using AGE-MOEA introduces differentiated QoS constraints, maintaining latency below 7 ms for premium traffic while preserving substantial energy savings.

CVFeb 8, 2024
Deepfake Detection and the Impact of Limited Computing Capabilities

Paloma Cantero-Arjona, Alfonso Sánchez-Macián

The rapid development of technologies and artificial intelligence makes deepfakes an increasingly sophisticated and challenging-to-identify technique. To ensure the accuracy of information and control misinformation and mass manipulation, it is of paramount importance to discover and develop artificial intelligence models that enable the generic detection of forged videos. This work aims to address the detection of deepfakes across various existing datasets in a scenario with limited computing resources. The goal is to analyze the applicability of different deep learning techniques under these restrictions and explore possible approaches to enhance their efficiency.

CRSep 20, 2025
Design and Development of an Intelligent LLM-based LDAP Honeypot

Javier Jiménez-Román, Florina Almenares-Mendoza, Alfonso Sánchez-Macián

Cybersecurity threats continue to increase, with a growing number of previously unknown attacks each year targeting both large corporations and smaller entities. This scenario demands the implementation of advanced security measures, not only to mitigate damage but also to anticipate emerging attack trends. In this context, deception tools have become a key strategy, enabling the detection, deterrence, and deception of potential attackers while facilitating the collection of information about their tactics and methods. Among these tools, honeypots have proven their value, although they have traditionally been limited by rigidity and configuration complexity, hindering their adaptability to dynamic scenarios. The rise of artificial intelligence, and particularly general-purpose Large Language Models (LLMs), is driving the development of new deception solutions capable of offering greater adaptability and ease of use. This work proposes the design and implementation of an LLM-based honeypot to simulate an LDAP server, a critical protocol present in most organizations due to its central role in identity and access management. The proposed solution aims to provide a flexible and realistic tool capable of convincingly interacting with attackers, thereby contributing to early detection and threat analysis while enhancing the defensive capabilities of infrastructures against intrusions targeting this service.

AINov 11, 2024
Designing Reliable Experiments with Generative Agent-Based Modeling: A Comprehensive Guide Using Concordia by Google DeepMind

Alejandro Leonardo García Navarro, Nataliia Koneva, Alfonso Sánchez-Macián et al.

In social sciences, researchers often face challenges when conducting large-scale experiments, particularly due to the simulations' complexity and the lack of technical expertise required to develop such frameworks. Agent-Based Modeling (ABM) is a computational approach that simulates agents' actions and interactions to evaluate how their behaviors influence the outcomes. However, the traditional implementation of ABM can be demanding and complex. Generative Agent-Based Modeling (GABM) offers a solution by enabling scholars to create simulations where AI-driven agents can generate complex behaviors based on underlying rules and interactions. This paper introduces a framework for designing reliable experiments using GABM, making sophisticated simulation techniques more accessible to researchers across various fields. We provide a step-by-step guide for selecting appropriate tools, designing the model, establishing experimentation protocols, and validating results.