presentación 01 - mpls base
TRANSCRIPT
![Page 2: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/2.jpg)
MPLS: Conceptos generales
2
![Page 3: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/3.jpg)
Razones para un paradigma MPLS
• IP
– El protocolo global para intercambiar información
en Internet
… pero tiene algunas desventajas
![Page 4: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/4.jpg)
Razones (continuación)
• Desventajas del paradigma de ruteo basado en IP
– Cada router debe tomar decisiones de ruteo
independiente, en base a la información IP de los
paquetes
– Header IP de gran tamaño
- No menos de 20 bytes
– La conmutación se hace a nivel IP
- suele ser menos óptimo que las técnicas de switching
![Page 5: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/5.jpg)
Razones (cont.)
• Switching (ej: ATM)– Orientado a conexión
– Conmutación veloz, basada en celdas de tamaño fijo
… Pero también tiene sus desventajas
![Page 6: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/6.jpg)
Razones (cont.)
• Desventajas de ATM
– Complejidad
– Pocas opciones a nivel de interfaces
– Saltos “discretos” a nivel velocidad (STM1,
STM4, …)
– No ha logrado imponerse globalmente
– Costoso
![Page 7: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/7.jpg)
Razones (cont.)
• Idea: Combinar la técnica de conmutación
de ATM en un ambiente IP.
![Page 8: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/8.jpg)
• Cómo funciona MPLS:
– El paquete IP se clasifica al entrar a la red MPLS
– Como resultado, se le incorpora un label
– En la nube MPLS, el paquete no vuelve a ser clasificado, y se lo conmuta simplemente por su label
Funcionamiento básicoFuncionamiento básico
![Page 9: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/9.jpg)
Idea general del paradigma MPLS
Protocolos interiores (ej: OSPF) “arman” el mapa de red IP
Un nuevo protocolo (LDP) fija el mapeo entre destinos IP y labels
Se recibe el paquete, se le aplican servicios de valor agregado, se lo etiqueta, y se lo incorpora al backbone equipos intermedios conmutan
en base a la etiqueta
Se elimina el label y se entrega el paquete original
![Page 10: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/10.jpg)
Labels
• Se permite incorporar más de un label al paquete– Label stack: conjunto ordenado de labels
• Los “routers de labels” (LSRs; Label Switch Routers) conmutan el paquete en base al label que está al tope del stack
![Page 11: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/11.jpg)
Labels
• Puede ser usado en cualquier medio: Ethernet, PPP, Frame Relay, ATM, etc.
• Nuevos Ethertypes/PPP PIDs/SNAPs/etc.
• 4 bytes (por tag)
Label = 20 bits
Exp = Experimental, 3 bits
S = Bottom of stack, 1bit
TTL = Time to live, 8 bits
0 1 2 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Label | Exp|S| TTL
![Page 12: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/12.jpg)
Labels
PPP
ATM
LAN
HECHEC DATODATOCLPCLPPTIPTIVCIVCIGFCGFC VPIVPI
Label
Header PPPHeader PPP Header L3Header L3Label
Label Header L3Header L3Header L2Header L2
![Page 13: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/13.jpg)
MPLS: Conceptos
El mapa de la red se sigue construyendo con
protocolos de routing existentes (ej: OSPF)
El mapeo de etiquetas a destinos IP pasa a
ser implementado con un nuevo protocolo
(LDP: Label Distribution Protocol)
![Page 14: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/14.jpg)
Label Switch Routers
• Edge-LSRs: colocan y retiran labels• Los colocan cuando el paquete entra a la red MPLS
• Los retiran cuando los paquetes dejan la red MPLS
• Los LSRs usan protocolos de ruteo IP para intercambiar información de routing
• Todos los LSRs usan un protocolo para distribuir rutas (LDP)
![Page 15: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/15.jpg)
LSRs: Planos de control y forwarding
Procesos
de routingTabla IP
conmutación
IP
Información
de routing
IP
Paquetes
IP
Tabla de
Labels
Proceso
MPLS
información
de labels
(LDP)
paquetes
MPLS
conmutación
de labels
![Page 16: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/16.jpg)
FEC
• Forwarding Equivalence Class(FEC)
– Grupo de paquetes IP con el mismo tratamiento
y siguiendo el mismo camino, no importando el
destino final
– Al paquete se le asigna un FEC según su
dirección de destino
![Page 17: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/17.jpg)
Concepto de FEC
• FEC198.10.0.0/16
140.10.1.1
140.10.1.2
H1
H2
![Page 18: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/18.jpg)
Asignación de labels
– Llevado a cabo por el equipo LSR más cercano
al destino
– El LSR le avisa a su vecino “upstream” cómo
relacionar labels (por ej: con direcciones IP)
![Page 19: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/19.jpg)
Distribución de labels con el protocolo LDP
• LSRs asignan un label a cada FEC
• LSRs pasan labels a los vecinos upstream
171.68.10/24
Rtr-BRtr-A Rtr-
C
171.68.40/24
NextNext--HopHop
In In
LabLab
--
......
Address Address
PrefixPrefix
171.68.10171.68.10
......
OutOut
I/FI/F
11
......
Out Out
LabLab
55
......
In In
I/FI/F
00
...... NextNext--HopHop
In In
LabLab
55
......
Address Address
PrefixPrefix
171.68.10171.68.10
......
OutOut
I/FI/F
11
......
Out Out
LabLab
77
......
In In
I/FI/F
00
......
NextNext--HopHop
In In
LabLab
77
......
Address Address
PrefixPrefix
171.68.10171.68.10
......
OutOut
I/FI/F
11
......
Out Out
LabLab
--
......
In In
I/FI/F
00
......
Use label 7 para ir a 171.68.10/24
Use label 5 para ir a 171.68.10/24
Rutas derivadas de IGPs
![Page 20: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/20.jpg)
NextNext--HopHop
Forwarding y FECs
171.68.10/240 1
Router-A pasa paquetes estiquetados mirando el valor del label en la tabla de labels. No se clasifica el paquete en un FEC.
Rtr-A
In In
LabLab
55
......
Address Address
PrefixPrefix
171.68.10171.68.10
......
OutOut
I/FI/F
11
......
Out Out
LabLab
33
......
In In
I/FI/F
00
......
IP packetD=171.68.10.12
Label = 5
NextNext--HopHop
In In
LabLab
xx
......
Address Address
PrefixPrefix
171.68.10171.68.10
......
OutOut
I/FI/F
33
......
Out Out
LabLab
55
......
In In
I/FI/F
44
......
34
IP packetD=171.68.10.12
Rtr-B
Router-B clasifica paquete IP en un FEC y asigna label que corresponde.
IP packetD=171.68.10.12
Label = 3
![Page 21: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/21.jpg)
Independencia
• MPLS se apoya en los protocolos IP
disponibles en el backbone para armar el
mapa de ubicación de los equipos PE y P
![Page 22: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/22.jpg)
Asignación/distribución de labels
• Labels tienen significado local• Cada LSR arma su tabla de mapeo de labels
• Cada LSR mapea labels a sus FECs
• Se intercambian asignaciones de labels entre LSRs adyacentes
• Downstream a Upstream
![Page 23: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/23.jpg)
Label Stack
• Cada paquete puede tener más de un label
• Los LSRs conmutan paquetes con labels mirando solamente el tope del stack de labels de los paquetes
![Page 24: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/24.jpg)
Label Stack
171.68.10/24
Rtr-A
NextNext--HopHop
In In
LabLab
55
......
Address Address
PrefixPrefix
171.68.10171.68.10
......
OutOut
I/FI/F
11
......
Out Out
LabLab
77
......
In In
I/FI/F
00
......
IP packetD=171.68.10.12
Label = 5
Label = 21
IP packetD=171.68.10.12
Label = 7
Label = 21
• A conmuta el paquete mirando el tope del stack
![Page 25: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/25.jpg)
Label Switched Path (LSP)
• LSP es la sucesión de LSRs que el paquete debe atravesar para poder salir de la nube MPLS
• El LSP de salida puede ser un punto de agregación de prefijos
![Page 26: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/26.jpg)
Label Switched Path (LSP)
• El path entre LSR de ingreso y de egreso es el mismo para una cierta FEC
• LSPs son unidireccionales• El tráfico inverso podría tomar otro camino
Ingress-LSR
Egress-LSR
![Page 27: Presentación 01 - MPLS base](https://reader033.vdocuments.pub/reader033/viewer/2022042608/55cf9d0b550346d033ac03cc/html5/thumbnails/27.jpg)
Configuración en equipos Cisco
• CEF
– (ip cef en modo global)
• Habilitar MPLS en las interfaces de interés
(las que apuntan a la nube MPLS)
– interface xxx• mpls ip