Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Tema3 2324
Tema3 2324
https://prado.ugr.es/
TEMA 3 - DDR 2023/2024
BIBLIOGRAFÍA
Mínima
Apuntes de Clase
Extender
CONTENIDOS
Aprenderemos
El contexto de las redes autónomas
La utilidad de la Optimización Matemáticas en problemas OdR
Cómo resolver un problema de OdR
Los requisitos prácticos en un problema OdR
Distintas formulaciones OdR de utilidad
TEMA 3 - DDR 2023/2024
ÍNDICE
REDES AUTÓNOMAS
Zero X experience
TEMA 3 - DDR 2023/2024
REDES AUTÓNOMAS
Redes autónomas
Operación con mínima interacción humana: In/On/Off the loop
Automatización basada en el lazo cerrado: control automático
Requisito de sensores y actuadores avanzados: Inteligencia artificial / Machine Learning
TEMA 3 - DDR 2023/2024
REDES AUTÓNOMAS
Closed loop
“Unlike traditional
automation which relies on
the fixed, rule-based policy,
the new automation
concept is able to support
the service environment
with the application of AI-
based algorithms as the
foundation, to enable
continuous machine
learning and closed-loop
automation.”
TEMA 3 - DDR 2023/2024
REDES AUTÓNOMAS
Automatización basada de IA
TEMA 3 - DDR 2023/2024
PARALELISMO CONTROLADOR
Program-
Controller Actuator Process ML / AI mability
Network
Sensor Telemetry
TEMA 3 - DDR 2023/2024
REDES AUTÓNOMAS
Redes autónomas
Operación con mínima interacción humana: In/On/Off the loop
Automatización basada en el lazo cerrado: control automático
Requisito de sensores y actuadores avanzados: Inteligencia artificial / Machine Learning
REDES AUTÓNOMAS
Network Telemetry
“Get enough high-quality data efficiently, timely and flexibly”
Use Cases:
Security, Policy and Intent Complicance, SLA Compliance, Root Cause Analysis, Network Optimization, Event
Tracking and Prediction, …
V’s Big Data
Velocity: Real Time
Suscription mejor pooling (pull)
OAM push (traps, NETFLOW) insuficiente
Volume: Comprehensive data
Variability: Data fusion
TEMA 3 - DDR 2023/2024
REDES AUTÓNOMAS
REDES AUTÓNOMAS
Network Programability
https://developer.cisco.com/video/net-prog-basics/
https://developer.cisco.com/video/net-prog-basics/00-intro
TEMA 3 - DDR 2023/2024
REDES AUTÓNOMAS
REDES AUTÓNOMAS
REDES AUTÓNOMAS
RESUMEN (TAKEAWAY)
“ELEMENTOS: CLOSED
LOOP, INTENT, PROG. &
TELEMETRY”
TEMA 3 - DDR 2023/2024
ÍNDICE
Metodologías Analíticas
Teoría de Colas (SC)
Probabilidad Aplicada
Captura la naturaleza estocástica de enlaces, interfaces,…y permite la deriva teórica del rendimiento
(capacidades, retardos)
La optimización de la red (network-wide) es, muchas veces, intratable
Teoría de Colas:
Ej. establecer capacidad en un enlace / segmento a partir de estadísticas de tráfico
1/2(1−𝐻)
𝐿 𝜌𝑒
𝑇𝑒𝑏 ≈ · 𝐻 ∈ 0.5, 1 , 𝜌𝑒 = 𝑥𝑒 /𝑦𝑒
𝑦𝑒 (1−𝜌𝑒 )𝐻/(1−𝐻)
TEMA 3 - DDR 2023/2024
Optimización Matemática:
Ej. establecer capacidad en un todos los enlaces de la red a partir de la matriz de tráfico y
un criterio de optimalidad
EJERCICIOS
Referencia [2]
∗
𝑥 = arg min 𝑓(𝑥) 𝑔𝑖 𝑥 ≤ 0, 𝑖 = 1 … 𝑚, 𝑎𝑛𝑑 ℎ𝑗 𝑥 = 0, 𝑗 = 1 … 𝑝
𝑥Є𝑆
TEMA 3 - DDR 2023/2024
2+ 2
✓ Restricciones 𝑔1 𝑥 = 𝑥1 𝑥2 −1 0.5
𝑥3 0
ℎ1 𝑥 = 𝑥3 -0.5
-1
1
0.5 1
0 0.5
𝑥1 -1 -1
𝑥2
✓ Solución ➔ ??
TEMA 3 - DDR 2023/2024
EJERCICIOS
RESUMEN (TAKEAWAY)
ÍNDICE
EJEMPLO DE ROUTING
10 15
10
Matriz de tráfico
0 5 7
𝐻𝑡 = 5 0 8
7 8 0
TEMA 3 - DDR 2023/2024
EJEMPLO DE ROUTING
𝑥12 + 𝑥132 = 5
0 5 7
𝐻𝑡 = 5 0 8 𝑥13 + 𝑥123 = 7
7 8 0
𝑥23 + 𝑥213 = 8
TEMA 3 - DDR 2023/2024
EJEMPLO DE ROUTING
𝑥𝑖 ≥ 0
TEMA 3 - DDR 2023/2024
EJEMPLO DE ROUTING
𝑥13 + 𝑥123 = 7
✓ Restricciones
𝑥23 + 𝑥213 = 8
✓ Espacio de Búsqueda 𝑥12 + 𝑥123 +𝑥213 ≤ 10
(feasible solutions)
𝑥13 + 𝑥132 +𝑥213 ≤ 10
1
0.5
-0.5
𝑥23 + 𝑥123 +𝑥132 ≤ 15
-1
1
0.5 1
0
-0.5 -0.5
0
0.5
𝑥𝑖 ≥ 0
-1 -1
TEMA 3 - DDR 2023/2024
EJEMPLO DE ROUTING
✓ Función de coste
EJEMPLO DE ROUTING
0.5
𝑠. 𝑎. 𝑥12 + 𝑥132 = 5 0
-0.5
𝑥13 + 𝑥123 = 7 -1
1
0.5 1
✓ Solución ???
-1 -1
EJERCICIOS
Diseñe la formulación completa para la siguiente red y cada matriz de tráfico, para
minimizar el número de saltos promedio
2
0 3 4 6
10 10 𝐻1 = 3 0 5 7
4 5 0 8
6 7 8 0
1 10 3
0 14 3 6
10 10 𝐻2 = 3 0 5 12
4 4 27 0 11
0 7 9 0
TEMA 3 - DDR 2023/2024
RESUMEN (TAKEAWAY)
“LAS VARIABLES SE
“FORMULACIÓN
DEFINES SEGÚN
MÁS SIMPLE EN
LOS CAMINOS”
ODR”
- TAKEAWAYs
“LAS CAPACIDADES SE
TRANSFORMAN EN
“EL TRÁFICO EN
RESTRICCIONES DE RESTRICCIONES DE
DESIGUALDAD” IGUALDAD”
“LA FUNCIÓN OBJETIVO
ADMITE INGENIO Y
AFECTA A LA
SOLUCIÓN”
TEMA 3 - DDR 2023/2024
ÍNDICE
LB = zeros(6,1) UB = Inf*ones(6,1)
✓ Solución: x* = [5 0 0 7 0 8], factible & única
CTYPE = ‘SSSUUU’
TEMA 3 - DDR 2023/2024
EJERCICIOS
Considerar una demanda full dúplex, capacidad establecida por sentido (por ej. 10 es
para cada sentido) y min #saltos para ambos casos
0 7 12 0 7 10
𝐻𝑡 = 5 0 8 𝐻𝑡 = 5 0 8
2 17 0 2 17 0
RESUMEN (TAKEAWAY)
ÍNDICE
REQUISITOS DE ENTRADA
▪ Optimización matemática
▪ Compacta y no ambigua
▪ Permite conocer el problema de forma incremental
▪ Permite diferentes descripciones (formulaciones) ➔ diferentes soluciones
REQUISITOS DE ENTRADA
Entrada Salida
Tráfico (medido) La matriz de tráfico siempre
será una entrada independientemente
o del tipo de ejercicio que tengamos
Demandas Siempre
(simulado/teórico)
Dimensionamiento,
Capacidades Enrutamiento
de los enlaces Diseño Topológico
Enrutamiento,
Topología " Diseño Topológico"
Dimensionamiento
Criterio de Optimalidad
Siempre
(Rendimiento)
TEMA 3 - DDR 2023/2024
REQUISITOS DE ENTRADA
Routers 3
2 3
Paquetes
REQUISITOS DE ENTRADA
REQUISITOS DE ENTRADA
6
Flujo medio
1 Puede estar en
varias posiciones
𝒉𝑡 = 102 23 54 102 … 114 73 Flujo pico
Flujo efectivo
5
4 0 102 23 54 102 804
100 0 44 46 22 55
𝑯𝑡 = 12 34 0 130 12 12
60 32 204 0 32 45
Sensor Netflow 120 28 103 5 0 82
1005 34 54 114 73 0
TEMA 3 - DDR 2023/2024
EJERCICIOS
REQUISITOS DE ENTRADA
Criterio de Optimalidad:
Métricas de Rendimiento requisito de entrada
[2] Tema 3
RMA: MTBF, MTTR, Uptime disponibilidad
Capacidad (capacity): PDR, SDR, MDR, MBS throughput
REQUISITOS DE ENTRADA
Criterio de Optimalidad
Para toda la red
Derivar desde rendimiento local
Idealmente métrica única (escalar)
Simplifica la optimización
Podemos ponderar múltiples criterios
𝐶𝑇 = 1000 · 𝐶1 + 10 · 𝐶2 + 𝐶3
Intuitiva
Fácil entender sus implicaciones
TEMA 3 - DDR 2023/2024
REQUISITOS DE ENTRADA
Métricas de Rendimiento
Retardo
𝑝𝑐 𝑝𝑝
Enlace e: 𝑇𝑒 = 𝑇𝑒 + 𝑇𝑒𝑏 + 𝑇𝑒𝑡 + 𝑇𝑒
Opción 1: Medir (ej. Ping/2)
Opción 2: Estimar
REQUISITOS DE ENTRADA
Métricas de Rendimiento
σ𝑒 𝑥𝑒
Saltos promedio (Average number of hops): 𝑛ത =
σ𝑑 ℎ𝑑
Congestión:
𝑥𝑒
𝑐𝑔 = max 𝜌𝑒 = max ➔ Bottleneck link: utilización
𝑒 𝑒 𝑦𝑒
Coste:
𝑓 𝑓
𝑐 = σ𝑒 𝑐𝑒 + 𝑐𝑒𝑣 (𝑦𝑒 ) + σ𝑛 𝑐𝑛 + 𝑐𝑛𝑣 (𝑦𝑛 )
TEMA 3 - DDR 2023/2024
EJERCICIOS
4.a 4.b
REQUISITOS DE ENTRADA
Métricas de Rendimiento
Asignación de recursos (Resource allocation):
𝑥𝑎 : asignación al usuario a-ésimo
Network Utility Maximization
𝑈𝑎 ( 𝑥𝑎 ) : utilidad
max σ𝑎 𝑈𝑎 ( 𝑥𝑎 )
𝑥
Equidad [2] Pg 45
Max-min fairness
∗
𝑥𝑎 −𝑥𝑎
Proportionally fair: σ𝑎 𝑥 ∗ ≤ 0, ∀𝑥 𝑓𝑎𝑐𝑡𝑖𝑏𝑙𝑒
𝑎
TEMA 3 - DDR 2023/2024
EJERCICIOS
EJERCICIOS
Considerar una demanda full dúplex, capacidad establecida por sentido (por ej. 10 es
para cada sentido) y min #saltos para ambos casos
0 7 12 0 7 10
𝐻𝑡 = 5 0 8 𝐻𝑡 = 5 0 8
2 17 0 2 17 0
RESUMEN (TAKEAWAY)
“MEDIR EL ESTADO
DE LA RED ES
NECESARIO PARA
APLICAR ODR”
“DISTINTAS
APLICACIONES TIENEN
DISTINTOS
REQUISITOS”
“LA PRECISIÓN EN LA
MEDIDA DEL ESTADO
INFLUYE EN LA CONFIANZA
DEL RESULTADO”
TEMA 3 - DDR 2023/2024
ÍNDICE
FORMULACIONES
2 ℎ3 = 10
ℎ1 = 15 Referencia [1]
ℎ𝑑 : demanda (tráfico) d-ésima
1 3
ℎ2 = 20
𝑃𝑑𝑝 : camino (path) p-ésimo para ℎ𝑑
2 2
𝑥𝑑𝑝 : flujo de tráfico en 𝑃𝑑𝑝
𝑦2 = 20 𝑦1 = 30
𝑃31
𝑃11 𝑃32 𝑦𝑒 : capacidad del enlace e-ésimo
4 4
𝑦4 = 30 𝜉𝑑𝑝 : coste asociado al flujo 𝑥𝑑𝑝
𝑃22 𝑦3 = 20
1 3 1 3
𝑃21 𝑦5 = 30
TEMA 3 - DDR 2023/2024
FORMULACIONES
2 ℎ3 = 10
ℎ1 = 15
ℎ𝑑 : demanda (tráfico) d-ésima
1 3 𝑥𝑑𝑝 = ℎ𝑑
ℎ2 = 20
𝑃𝑑𝑝 : camino (path) p-ésimo para ℎ𝑑 𝑝
2
𝑥𝑑𝑝 : flujo de tráfico en 𝑃𝑑𝑝 𝑥11 = ℎ1
𝑃31
𝑃32 𝑦𝑒 : capacidad del enlace e-ésimo 𝑥21 + 𝑥22 = ℎ2
𝑃11
4 𝑥31 + 𝑥32 = ℎ3
𝑃22
𝜉𝑑𝑝 : coste asociado al flujo 𝑥𝑑𝑝
1 3
𝑃21
TEMA 3 - DDR 2023/2024
FORMULACIONES
𝑦2 = 20 𝑦1 = 30
𝑃31
𝑃11 𝑃32
4 4
𝑦4 = 30
𝑃22 𝑦3 = 20
1 3 1 3
𝑃21 𝑦5 = 30
TEMA 3 - DDR 2023/2024
FORMULACIONES
FORMULACIONES
FORMULACIONES
FORMULACIONES
Entrada Salida
Tráfico (medido)
o
Demandas Siempre
(simulado/teórico)
Dimensionamiento,
Capacidades Enrutamiento
Diseño Topológico
Enrutamiento,
Topología Diseño Topológico
Dimensionamiento
Criterio de Optimalidad
Siempre
(Rendimiento)
TEMA 3 - DDR 2023/2024
FORMULACIONES
Ctes (entradas)
Tráfico
ℎ𝑑 : demanda (tráfico) d
Capacidades
𝑦𝑒 : capacidad del enlace e
Topología 𝛿𝑒𝑑𝑝 : 1 si 𝑥𝑑𝑝 pasa por el enlace e, 0 sino
Criterio de Optimalidad 𝜉𝑑𝑝 : coste asociado al flujo 𝑥𝑑𝑝
TEMA 3 - DDR 2023/2024
EJERCICIOS
EJERCICIOS
2 ℎ3 = 10
ℎ1 = 15
OPEX mensual:
1 3
ℎ2 = 20 Unidades: Gbps
𝑓
𝑐𝑒 =1K€
2 2
𝑦2 = 20 𝑦1 = 30
𝑐𝑒𝑣 =[50 100 50 200 50] €/Gbps
𝑃31
𝑃11 𝑃32
4 4
𝑦4 = 30
𝑃22 𝑦3 = 20
1 3 1 3
𝑃21 𝑦5 = 30
TEMA 3 - DDR 2023/2024
FORMULACIONES
d2
𝑥𝑑23
𝑥𝑑𝑒 : flujo en enlace e para ℎ𝑑
d1 d1+ d2
TEMA 3 - DDR 2023/2024
FORMULACIONES
𝑥𝑑1 𝑥𝑑2
1 2 3
𝒂𝒆𝒗 𝑠𝑑 𝑡𝑑 𝒃𝒆𝒗
𝑎11 =1 d d 𝑏11 =0
𝑎12 =0 𝑏12 =1
𝑎13 =0 𝑏13 =0
𝑎21 =0 𝑏21 =0
𝑎22 =1 𝑏22 =0
𝑎23 =0 𝑏23 =1
TEMA 3 - DDR 2023/2024
FORMULACIONES
𝑥𝑑1 𝑥𝑑2
1 2 3
𝑠𝑑 𝑡𝑑
ℎ𝑑 , 𝑠𝑖 𝑣 = 𝑠𝑑
𝒂𝒆𝒗 𝒃𝒆𝒗
σ𝑒 𝑎𝑒𝑣 𝑥𝑑𝑒 − σ𝑒 𝑏𝑒𝑣 𝑥𝑑𝑒 = ቐ−ℎ𝑑 , 𝑠𝑖 𝑣 = 𝑡𝑑 , 𝑣 = 1, … , 𝑉 𝑑 = 1, … , 𝐷
0, 𝑜𝑡𝑟𝑜
𝑎11 = 1 𝑏12 = 1
𝑥𝑑1 = ℎ𝑑
𝑎22 = 1 𝑥𝑑2 − 𝑥𝑑1 = 0 𝑏23 = 1
− 𝑥𝑑2 = −ℎ𝑑
TEMA 3 - DDR 2023/2024
FORMULACIONES
𝑣 = 1, … , 𝑉 𝑑 = 1, … , 𝐷
𝜉𝑑𝑒 : coste asociado al flujo 𝑥𝑑𝑒
Vars (salidas)
𝑥𝑑𝑒 ≤ 𝑦𝑒 , 𝑒 = 1, … , 𝐸
𝑑 𝑥𝑑𝑒 : flujo en enlace e para ℎ𝑑
TEMA 3 - DDR 2023/2024
FORMULACIONES
FORMULACIONES
Formulación FED: ℎ𝑑 , 𝑠𝑖 𝑣 = 𝑠𝑑
σ𝑒 𝑎𝑒𝑣 𝑥𝑑𝑒 − σ𝑒 𝑏𝑒𝑣 𝑥𝑑𝑒 = ቐ−ℎ𝑑 , 𝑠𝑖 𝑣 = 𝑡𝑑 , 𝑣 = 1, … , 𝑉 𝑑 = 1, … , 𝐷
0, 𝑜𝑡𝑟𝑜
a = [ …. ; … ]; % orígenes [ExV]
b = [ …. ; … ]; % destinos [ExV]
c = [ …. ; … ]'; % demandas [VxD]
A = [];
B = [];
for v=1:V, % restricciones de igualdad
for d=1:D
xcoef = zeros(E,D);
xcoef(:,d) = a(:,v)-b(:,v);
A = [A;[xcoef(:)' zeros(1,E)]];
B = [B;c(v,d)];
end
end
TEMA 3 - DDR 2023/2024
EJERCICIOS
2 ℎ3 = 10
ℎ1 = 15
OPEX mensual:
1 3
ℎ2 = 20 Unidades: Gbps
𝑓
𝑐𝑒 =1K€
2 2
𝑦2 = 20 𝑦1 = 30
𝑐𝑒𝑣 =[50 100 50 200 50] €/Gbps
4 4
𝑦4 = 30
𝑦3 = 20
1 3 1 3
𝑦5 = 30
TEMA 3 - DDR 2023/2024
FORMULACIONES
d2
𝑥𝑑23
FORMULACIONES
𝑥33
FORMULACIONES
𝑥31 𝑥32
1 2 3
𝑡
ℎ𝑣𝑡 , 𝑠𝑖 𝑣 ≠ 𝑡
𝒂𝒆𝒗 𝒃𝒆𝒗
𝑎𝑒𝑣 𝑥𝑡𝑒 − 𝑏𝑒𝑣 𝑥𝑡𝑒 = − ℎ , 𝑠𝑖 𝑣 = 𝑡 , 𝑡, 𝑣 = 1, … , 𝑉
𝑠𝑡
𝑒 𝑒
𝑠
𝑎11 = 1 𝑏12 = 1
𝑥31 = ℎ13
𝑎22 = 1 𝑏23 = 1
𝑥32 − 𝑥31 = ℎ23
−𝑥32 = −ℎ13 −ℎ23
TEMA 3 - DDR 2023/2024
FORMULACIONES
Vars (salidas)
𝑥𝑣𝑒 ≤ 𝑦𝑒 , 𝑒 = 1, … , 𝐸
𝑣 𝑥𝑡𝑒 : flujo en enlace e con destino t
TEMA 3 - DDR 2023/2024
FORMULACIONES
FORMULACIONES
a = [ … ; … ]; % orígenes [VxE]
b = [ … ; … ]; % destinos [VxE]
c = [ … ; … ]; % destinos routing [VxV]
A = [];
B = [];
for v=1:V, % restricciones de igualdad
for t=1:V
xcoef = zeros(E,V);
xcoef(:,t) = a(v,:)'-b(v,:)';
A = [A;[xcoef(:)' zeros(1,E)]];
B = [B;c(v,t)];
end
end
TEMA 3 - DDR 2023/2024
EJERCICIOS
2 ℎ3 = 10
ℎ1 = 15
OPEX mensual:
1 3
ℎ2 = 20 Unidades: Gbps
𝑓
𝑐𝑒 =1K€
2 2
𝑦2 = 20 𝑦1 = 30
𝑐𝑒𝑣 =[50 100 50 200 50] €/Gbps
4 4
𝑦4 = 30
𝑦3 = 20
1 3 1 3
𝑦5 = 30
TEMA 3 - DDR 2023/2024
FORMULACIONES
Comparativa
FCD ➔ P x D variables,
La complejidad crece con el número de caminos
Cuando hay un subconjunto de caminos admisibles
Cuando el número de caminos es limitado
FED ➔ E x D variables
La complejidad suele ser menor que FCD, en # vars y # restricciones
Pero no necesariamente + rápido
FED2 ➔ E x V variables
Cuando el enrutamiento se hace por destino
La complejidad suele ser menor que FED , en # vars y # restricciones
A menudo + rápido
TEMA 3 - DDR 2023/2024
RESUMEN (TAKEAWAY)
Optimization of Computer Networks: Modeling and Algorithms: A Hands-On Approach, Wiley, 2016.
Section 4.6. Variantes de problemas de routing
Appendix IV: Net2Plan
Part II: Algorithms
Network programmability
IA en problemas de OdR
TEMA 3 - DDR 2023/2024
https://prado.ugr.es/