Escenario de pruebas básicas de MPLS
Fecha: 10 de diciembre del 2014
Escenario
En este escenario se comprueba el funcionamiento básico de una red MPLS mediante la utilización del
protocolo LDP (Label Distribution Protocol) para la convergencia de las tablas MPLS.
MPLS trabaja entre las capas 2 y 3, puede apreciarse la captura de tráfico más abajo y dentro de las pruebas
de performance, se desactivó CEF (Cisco Express Forwirding) para verificar que esta tecnología permite un
reenvío mas eficiente de los paquetes ya que MPLS tiene menos datos para analizar que las cabeceras IP
y CEF evita la constante consulta en la tabla de enrutamiento.
Test inicial para verificar conectividad
C:\Users\CIT>tracert 192.168.2.10
Traza a 192.168.2.10 sobre caminos de 30 saltos como máximo.
1 <1 ms <1 ms <1 ms 192.168.1.1 (trama nativa, sin etiqueta MPLS)
2 <1 ms 1 ms 1 ms 10.0.0.13 (trama con etiqueta MPLS 17 )
3 1 ms 1 ms 1 ms 10.0.0.9 (reemplaza etiqueta MPLS 17 por 19 )
4 1 ms 1 ms 1 ms 10.0.0.5 (mantiene etiqueta MPLS 19 )
5 1 ms 1 ms 1 ms 10.0.0.1 (retira etiqueta MPLS 19 por tratarse de PHP: Penultimate Hop PoP)
6 1 ms 1 ms 1 ms 192.168.2.10 (trama nativa, sin etiqueta MPLS)
Traza completa.
C:\Users\CIT>
Verificamos performance
CasaCentral#sh ip route (verificamos convergencia EIGRP)
---resumido---
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
D 10.0.0.0/30 [90/35840] via 10.0.0.13, 00:12:01, GigabitEthernet0/0
D 10.0.0.4/30 [90/33280] via 10.0.0.13, 00:15:16, GigabitEthernet0/0
D 10.0.0.8/30 [90/30720] via 10.0.0.13, 00:15:16, GigabitEthernet0/0
C 10.0.0.12/30 is directly connected, GigabitEthernet0/0
L 10.0.0.14/32 is directly connected, GigabitEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/1
L 192.168.1.1/32 is directly connected, GigabitEthernet0/1
D 192.168.2.0/24 [90/38400] via 10.0.0.13, 00:12:01, GigabitEthernet0/0
CasaCentral#
CasaCentral#sh mpls forwarding-table (verificamos convergencia MPLS)
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
16 Pop Label 10.0.0.8/30 0 Gi0/0 10.0.0.13 (no utiliza etiqueta para esta red ya que la alcanza en el próximo salto)
17 19 10.0.0.4/30 0 Gi0/0 10.0.0.13
18 16 10.0.0.0/30 0 Gi0/0 10.0.0.13
19 17 192.168.2.0/24 9706 Gi0/0 10.0.0.13
CasaCentral#
Captura de tráfico de distribución de etiquetas MPLS (LDP)
Teco3#sh ip route
---resumido---
10.0.0.0/30 is subnetted, 4 subnets
C 10.0.0.8 is directly connected, FastEthernet0/0
C 10.0.0.12 is directly connected, FastEthernet0/1
D 10.0.0.0 [90/33280] via 10.0.0.9, 00:13:11, FastEthernet0/0
D 10.0.0.4 [90/30720] via 10.0.0.9, 00:16:47, FastEthernet0/0
D 192.168.1.0/24 [90/30720] via 10.0.0.14, 00:16:26, FastEthernet0/1
D 192.168.2.0/24 [90/35840] via 10.0.0.9, 00:13:11, FastEthernet0/0
Teco3#
Teco3#sh mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 16 10.0.0.0/30 9138 Fa0/0 10.0.0.9
17 19 192.168.2.0/24 9704706 Fa0/0 10.0.0.9
18 Pop Label 192.168.1.0/24 1499134898 Fa0/1 10.0.0.14 (no utiliza etiqueta para esta red ya que la alcanza en el próximo salto)
19 Pop Label 10.0.0.4/30 0 Fa0/0 10.0.0.9 (no utiliza etiqueta para esta red ya que la alcanza en el próximo salto)
Teco3#
Teco2#sh ip route
---resumido---
10.0.0.0/30 is subnetted, 4 subnets
C 10.0.0.8 is directly connected, FastEthernet0/1
D 10.0.0.12 [90/30720] via 10.0.0.10, 01:01:10, FastEthernet0/1
D 10.0.0.0 [90/30720] via 10.0.0.5, 00:13:57, FastEthernet0/0
C 10.0.0.4 is directly connected, FastEthernet0/0
D 192.168.1.0/24 [90/33280] via 10.0.0.10, 00:17:12, FastEthernet0/1 (misma métrica, estamos a mitad de
D 192.168.2.0/24 [90/33280] via 10.0.0.5, 00:13:57, FastEthernet0/0 camino de ambos
extremos)
Teco2#
Teco2#sh mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 Pop Label 10.0.0.0/30 11597 Fa0/0 10.0.0.5 (no utiliza etiqueta para esta red ya que la alcanza en el próximo salto)
17 Pop Label 10.0.0.12/30 8303 Fa0/1 10.0.0.10 (no utiliza etiqueta para esta red ya que la alcanza en el próximo salto)
18 18 192.168.1.0/24 1345422922 Fa0/1 10.0.0.10
19 19 192.168.2.0/24 59393290 Fa0/0 10.0.0.5
Teco2#
Teco1#sh ip route
---resumido---
10.0.0.0/30 is subnetted, 4 subnets
D 10.0.0.8 [90/30720] via 10.0.0.6, 00:14:27, FastEthernet0/1
D 10.0.0.12 [90/33280] via 10.0.0.6, 00:14:27, FastEthernet0/1
C 10.0.0.0 is directly connected, FastEthernet0/0
C 10.0.0.4 is directly connected, FastEthernet0/1
D 192.168.1.0/24 [90/35840] via 10.0.0.6, 00:14:27, FastEthernet0/1
D 192.168.2.0/24 [90/30720] via 10.0.0.1, 01:07:14, FastEthernet0/0
Teco1#
Teco1#sh mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 Pop Label 10.0.0.8/30 0 Fa0/1 10.0.0.6 (no utiliza etiqueta para esta red ya que la alcanza en el próximo salto)
17 17 10.0.0.12/30 6425 Fa0/1 10.0.0.6
18 18 192.168.1.0/24 1122883094 Fa0/1 10.0.0.6
19 Pop Label 192.168.2.0/24 49773692 Fa0/0 10.0.0.1 (no utiliza etiqueta para esta red ya que la alcanza en el próximo salto)
Teco1#
Sucursal#sh ip route
---resumido---
10.0.0.0/30 is subnetted, 4 subnets
D 10.0.0.8 [90/33280] via 10.0.0.2, 00:14:56, FastEthernet0/1
D 10.0.0.12 [90/35840] via 10.0.0.2, 00:14:56, FastEthernet0/1
C 10.0.0.0 is directly connected, FastEthernet0/1
D 10.0.0.4 [90/30720] via 10.0.0.2, 00:18:35, FastEthernet0/1
D 192.168.1.0/24 [90/38400] via 10.0.0.2, 00:14:56, FastEthernet0/1
C 192.168.2.0/24 is directly connected, FastEthernet0/0
Sucursal#
Sucursal#sh mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 Pop Label 10.0.0.4/30 0 Fa0/1 10.0.0.2 (no utiliza etiqueta para esta red ya que la alcanza en el próximo salto)
17 16 10.0.0.8/30 0 Fa0/1 10.0.0.2
18 17 10.0.0.12/30 0 Fa0/1 10.0.0.2
19 18 192.168.1.0/24 0 Fa0/1 10.0.0.2
Sucursal#
Captura de tramas MPLS
Se capturaron tramas MPLS para verificar el etiquetado MPLS entre las capas 2 y 3.
Puede apreciarse que esta trama lleva el label 19 y con destino a la red 192.168.2.0 (ver tabla MPLS de Teco2)
Puede apreciarse que esta trama lleva el label 18 y con destino a la red 192.168.1.0 (ver tabla MPLS de Teco2)
Test sin CEF (Cisco Express Forwarding)
Sucursal#conf t
Sucursal(config)#no ip cef
Sucursal(config)#
Teco1#conf t
Teco1(config)#no ip cef
Teco1(config)#
Teco2#conf t
Teco2(config)#no ip cef
Teco2(config)#
Teco3#conf t
Teco3(config)#no ip cef
Teco3(config)#
CasaCentral#conf t
CasaCentral(config)#no ip cef
CasaCentral(config
Configuración de equipos
Sucursal#sh runn (sólo lo mas relevante)
Building configuration...
Current configuration : 1337 bytes
!
version 12.4
!
hostname Sucursal
!
ip cef
!
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
mpls ip
!
interface FastEthernet0/1
ip address 10.0.0.1 255.255.255.252
mpls ip
!
router eigrp 100
network 10.0.0.0 0.0.0.3
network 192.168.2.0
no auto-summary
!
end
Teco1# sh runn (sólo lo mas relevante)
Building configuration...
Current configuration : 1218 bytes
!
version 12.4
!
hostname Teco1
!
interface FastEthernet0/0
ip address 10.0.0.2 255.255.255.252
mpls ip
!
interface FastEthernet0/1
ip address 10.0.0.5 255.255.255.252
mpls ip
!
router eigrp 100
network 10.0.0.0 0.0.0.3
network 10.0.0.4 0.0.0.3
no auto-summary
!
control-plane
!
end
Teco2# sh runn (sólo lo mas relevante)
Building configuration...
Current configuration : 1286 bytes
!
version 12.4
!
hostname Teco2
!
ip cef
!
interface FastEthernet0/0
ip address 10.0.0.6 255.255.255.252
mpls ip
!
interface FastEthernet0/1
ip address 10.0.0.9 255.255.255.252
mpls ip
!
router eigrp 100
network 10.0.0.4 0.0.0.3
network 10.0.0.8 0.0.0.3
no auto-summary
!
control-plane
!
Teco3# sh runn (sólo lo mas relevante)
Building configuration...
Current configuration : 1155 bytes
!
version 12.4
!
hostname Teco3
!
ip cef
!
interface FastEthernet0/0
ip address 10.0.0.10 255.255.255.252
mpls ip
!
interface FastEthernet0/1
ip address 10.0.0.13 255.255.255.252
mpls ip
!
router eigrp 100
network 10.0.0.8 0.0.0.3
network 10.0.0.12 0.0.0.3
no auto-summary
!
control-plane
!
end
Teco3# sh runn (sólo lo mas relevante)
Building configuration...
Current configuration : 1155 bytes
!
version 12.4
!
hostname Teco3
!
ip cef
!
interface FastEthernet0/0
ip address 10.0.0.10 255.255.255.252
mpls ip
!
interface FastEthernet0/1
ip address 10.0.0.13 255.255.255.252
mpls ip
!
router eigrp 100
network 10.0.0.8 0.0.0.3
network 10.0.0.12 0.0.0.3
no auto-summary
!
control-plane
!
end
CasaCentral# sh runn (sólo lo mas relevante)
Building configuration...
Current configuration : 1000 bytes
version 15.0
!
hostname CasaCentral
!
ip cef
!
interface GigabitEthernet0/0
ip address 10.0.0.14 255.255.255.252
mpls ip
!
interface GigabitEthernet0/1
ip address 192.168.1.1 255.255.255.0
mpls ip
!
router eigrp 100
network 10.0.0.12 0.0.0.3
network 192.168.1.0
!
control-plane
!
end
(2014) MPLS may cause lonely
lives
Rosario, Argentina