Escenario de pruebas de balanceo de carga por enlaces WAN

Fecha: 24 de junio del 2015 Clase: Exploration 2

 

Escenario

 

 

En este escenario se intenta verificar el balanceo de carga de las interfaces serial de baja velocidad

mediante la técnica de round robin, enviando un paquete por vez por cada interface y por o tanto

duplicando o triplicando la velocidad entre sitios.

 

Verificación inicial

 

Router_2#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route

 

Gateway of last resort is not set

 

     172.16.0.0/24 is subnetted, 2 subnets

R       172.16.1.0 [120/1] via 10.0.0.5, 00:00:08, Serial0/0/1 (enlaces en paralelo)

                              [120/1] via 10.0.0.1, 00:00:08, Serial0/0/0

C       172.16.2.0 is directly connected, FastEthernet0/0

     10.0.0.0/30 is subnetted, 2 subnets

C       10.0.0.0 is directly connected, Serial0/0/0

C       10.0.0.4 is directly connected, Serial0/0/1

Router_2#

 

Desde el PC:

 

Se puede demostrar que por defecto, en los equipos reales, el balanceo de carga es por destino y no por

paquete (round robin), en Packet Tracer es a la inversa y no es posible desactivarlo (sólo round robin).

 

 

Se desactiva CEF para que el balanceo sea round robin:

 

Router_1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router_1(config)#no ip cef

Router_1(config)#^Z

Router_1#

 

Router_2#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router_2(config)#no ip cef

Router_2(config)#^Z

Router_2#

 

Verificamos que la velocidad de los vínculos se duplicó.

 

 

Verificación del balanceo mediante una ACL:

 

Router_1(config)#access-list 1 deny any

Router_1(config)#int s0/0/1

Router_1(config-if)#ip access-group 1 out

Router_1(config-if)#

 

Respuesta desde 172.16.2.1: bytes=32 tiempo=10ms TTL=254

Respuesta desde 172.16.2.1: bytes=32 tiempo=10ms TTL=254

Respuesta desde 172.16.2.1: bytes=32 tiempo=10ms TTL=254

Respuesta desde 172.16.2.1: bytes=32 tiempo=10ms TTL=254

Respuesta desde 172.16.1.1: Red de destino inaccesible.

Respuesta desde 172.16.2.1: bytes=32 tiempo=10ms TTL=254

Respuesta desde 172.16.1.1: Red de destino inaccesible.

Respuesta desde 172.16.2.1: bytes=32 tiempo=10ms TTL=254

Respuesta desde 172.16.1.1: Red de destino inaccesible.

Respuesta desde 172.16.2.1: bytes=32 tiempo=10ms TTL=254

Respuesta desde 172.16.1.1: Red de destino inaccesible.

Respuesta desde 172.16.2.1: bytes=32 tiempo=10ms TTL=254

Respuesta desde 172.16.1.1: Red de destino inaccesible.

 

Verificación mediante debug:

 

Se desactiva la ACL y se ejecuta el debug. Atención: el procesador llegó al 93% con esta opción, es mas

“sana la opción de la ACL” para verificar el round robin.

 

Router_1#debug ip packet

Packet debugging is on

Router_1#

IP: tableid=0, s=172.16.1.10 (FastEthernet0/0), d=172.16.2.10 (Serial0/0/0), routed via RIB

IP: s=172.16.1.10 (FastEthernet0/0), d=172.16.2.10 (Serial0/0/0), g=10.0.0.2, len 128, forward (1er ping)

IP: tableid=0, s=172.16.1.10 (FastEthernet0/0), d=172.16.2.10 (Serial0/0/1), routed via RIB

IP: s=172.16.1.10 (FastEthernet0/0), d=172.16.2.10 (Serial0/0/1), g=10.0.0.6, len 128, forward (2do ping)

IP: tableid=0, s=172.16.2.10 (Serial0/0/0), d=172.16.1.10 (FastEthernet0/0), routed via RIB

IP: s=172.16.2.10 (Serial0/0/0), d=172.16.1.10 (FastEthernet0/0), g=172.16.1.10, len 128, forward (rta. 1er ping)

IP: tableid=0, s=172.16.1.10 (FastEthernet0/0), d=172.16.2.10 (Serial0/0/0), routed via RIB (3er ping)

IP: s=172.16.1.10 (FastEthernet0/0), d=172.16.2.10 (Serial0/0/0), g=10.0.0.2, len 128, forward

IP: tableid=0, s=172.16.2.10 (Serial0/0/1), d=172.16.1.10 (FastEthernet0/0), routed via RIB

IP: s=172.16.2.10 (Serial0/0/1), d=172.16.1.10 (FastEthernet0/0), g=172.16.1.10, len 128, forward (rta. 2do ping)

IP: tableid=0, s=172.16.1.10 (FastEthernet0/0), d=172.16.2.10 (Serial0/0/1), routed via RIB (4to ping)

 

Router_1#sh proc

CPU utilization for five seconds: 93%/0%; one minute: 75%; five minutes: 29%

 PID QTy       PC Runtime (ms)    Invoked   uSecs    Stacks TTY Process

   1 Cwe 602D8B60            8         13     615 5416/6000   0 Chunk Manager

   2 Csp 60693258            4       2181       1 2548/3000   0 Load Meter

---resumido---

Router_1#und all

All possible debugging has been turned off

Router_1#

Router_1#sh proc

CPU utilization for five seconds: 2%/0%; one minute: 16%; five minu

 PID QTy       PC Runtime (ms)    Invoked   uSecs    Stacks TTY Pro

   1 Cwe 602D8B60            8         13     615 5416/6000   0 Chu

   2 Csp 60693258            4       2204       1 2548/3000   0 Loa

---resumido---

 

Agregado de una tercera interface:

 

Esto debería llevar el ancho de banda a 450 Kbps utilizando round robin entre las tres.

 

 

Router_1(config)#interface Serial0/1/0

Router_1(config-if)#ip address 10.0.0.9 255.255.255.252

Router_1(config-if)#exit

Router_1(config)#

 

Router_2(config)#interface Serial0/1/0

Router_2(config-if)#ip address 10.0.0.10 255.255.255.252

Router_2(config-if)#exit

Router_2(config)#

 

Verificación:

 

 

 Configuraciones de los equipos:

 

Router_1#sh runn

Building configuration...

 

Current configuration : 1035 bytes

!

version 12.4

!

hostname Router_1

!

!

ip cef

!

interface FastEthernet0/0

 ip address 172.16.1.1 255.255.255.0

!

interface Serial0/0/0

 ip address 10.0.0.1 255.255.255.252

 clock rate 125000

!

interface Serial0/0/1

 ip address 10.0.0.5 255.255.255.252

 clock rate 125000

!

interface Serial0/1/0

 ip address 10.0.0.9 255.255.255.252

!

router rip

 version 2

 network 10.0.0.0

 network 172.16.0.0

 no auto-summary

!

end

 

Router_1#

 

Router_2#sh runn

Building configuration...

 

Current configuration : 997 bytes

!

version 12.4

!

hostname Router_2

!

ip cef

!

interface FastEthernet0/0

 ip address 172.16.2.1 255.255.255.0

!

interface Serial0/0/0

 ip address 10.0.0.2 255.255.255.252

!

interface Serial0/0/1

 ip address 10.0.0.6 255.255.255.252

!

interface Serial0/1/0

 ip address 10.0.0.10 255.255.255.252

!

router rip

 version 2

 network 10.0.0.0

 network 172.16.0.0

 no auto-summary

!

end

 

Router_2#

 

(2014) Packet storms in my mind

Rosario, Argentina