Ejercicio: QoS y Diseño de Red
Séptima parte de la serie. La red del edificio es funcional, redundante, segura, inalámbrica y tiene servicios IP. Ahora le das calidad de servicio al tráfico y documentas toda la infraestructura. Al terminar, la voz y el video funcionan correctamente incluso bajo carga, y tienes un registro completo de la red.
graph LR
subgraph Piso1["Piso 1"]
SW1[SW1] --> R1[R1 - QoS + Doc]
SW2[SW2]
end
subgraph Piso2["Piso 2"]
SW3[SW3]
end
R1 --- SW2
R1 --- SW3
R1 ---|"WAN"| ISP[(ISP)]
Requisitos
Section titled “Requisitos”- Red completa del ejercicio anterior: VLANs, routing, redundancia, seguridad, WLANs y servicios IP (DHCP, NAT, ACLs, NTP).
- R1 ya tiene configuración de NAT, DHCP y ACLs.
Objetivos
Section titled “Objetivos”- Configurar QoS en R1 para priorizar VoIP sobre datos.
- Habilitar CDP/LLDP en todos los switches.
- Documentar la topología, tablas de IPs y puertos.
- Verificar que la voz funciona bajo congestión.
1. QoS en R1 (LLQ para VoIP)
Section titled “1. QoS en R1 (LLQ para VoIP)”Prioriza el tráfico VoIP (DSCP EF) con cola estricta y garantiza ancho de banda para datos.
La teoría completa está en Algoritmos de Encolamiento y Calidad de Transmisión.
R1(config)# class-map match-any VOZR1(config-cmap)# match dscp efR1(config-cmap)# exit
R1(config)# class-map match-any VIDEOR1(config-cmap)# match dscp af41R1(config-cmap)# exit
R1(config)# policy-map WAN-QOSR1(config-pmap)# class VOZR1(config-pmap-c)# priority 256R1(config-pmap-c)# exitR1(config-pmap)# class VIDEOR1(config-pmap-c)# bandwidth percent 30R1(config-pmap-c)# exitR1(config-pmap)# class class-defaultR1(config-pmap-c)# bandwidth percent 20R1(config-pmap-c)# fair-queueR1(config-pmap-c)# exit
R1(config)# interface Serial0/0/0R1(config-if)# service-policy output WAN-QOS2. QoS en switches (confianza de CoS)
Section titled “2. QoS en switches (confianza de CoS)”Configura los switches para que confíen en la marca CoS de los teléfonos IP.
SW1(config)# mls qosSW1(config)# interface range FastEthernet0/1 - 23SW1(config-if-range)# mls qos trust cosSW1(config-if-range)# exit3. CDP y LLDP en switches
Section titled “3. CDP y LLDP en switches”Habilita ambos protocolos de descubrimiento para documentar la topología.
SW1(config)# cdp runSW1(config)# lldp run
SW1(config)# interface range FastEthernet0/1 - 24SW1(config-if-range)# cdp enableSW1(config-if-range)# lldp enableSW1(config-if-range)# exit4. Verificar descubrimiento de vecinos
Section titled “4. Verificar descubrimiento de vecinos”SW1# show cdp neighborsSW1# show cdp neighbors detailSW1# show lldp neighborsSW1# show lldp neighbors detail5. Documentar la red
Section titled “5. Documentar la red”Crea los siguientes documentos:
Topología:
- Diagrama con todos los dispositivos, enlaces y puertos.
- Incluir VLANs y direcciones IP de cada interfaz.
Tabla de IPs:
| Dispositivo | Interfaz | IP | Máscara | VLAN |
|---|---|---|---|---|
| R1 | Gi0/0.10 | 192.168.10.1 | /24 | 10 |
| R1 | Gi0/0.20 | 192.168.20.1 | /24 | 20 |
| R1 | Gi0/0.30 | 192.168.30.1 | /24 | 30 |
| R1 | Gi0/0.99 | 192.168.99.1 | /24 | 99 |
| SW1 | VLAN 99 | 192.168.99.10 | /24 | 99 |
| SW2 | VLAN 99 | 192.168.99.11 | /24 | 99 |
| SW3 | VLAN 99 | 192.168.99.12 | /24 | 99 |
Tabla de puertos:
| Switch | Puerto | Dispositivo | VLAN | Tipo |
|---|---|---|---|---|
| SW1 | Fa0/1 | PC Ventas | 10 | Acceso |
| SW1 | Fa0/2 | Teléfono IP | 20 | Acceso (Voice) |
| SW1 | Fa0/24 | Impresora | 30 | Acceso |
| SW1 | Gi0/1 | R1 | Trunk | Todas |
6. Verificar QoS bajo congestión
Section titled “6. Verificar QoS bajo congestión”Genera tráfico de datos y verifica que la voz mantiene prioridad:
R1# show policy-map interface Serial0/0/0Verificar que la cola VOZ tiene más paquetes transmitidos y cero drops mientras que la cola de datos puede tener drops aceptables.
7. Verificación de extremo a extremo
Section titled “7. Verificación de extremo a extremo”R1# show policy-map interface Serial0/0/0 # QoS activoR1# show ip route # Rutas completasR1# show access-lists # Contadores ACLSW1# show mls qos interface FastEthernet0/1 # Confianza CoSSW1# show cdp neighbors # Topología descubiertaSW1# show vlan brief # VLANs activasResultado esperado
Section titled “Resultado esperado”Al completar este ejercicio:
- La voz (VoIP) tiene prioridad sobre datos en el enlace WAN.
- Los switches descubren vecinos con CDP/LLDP.
- Tienes documentación completa de la red: topología, IPs, puertos.
- La red está lista para ser monitoreada y troubleshooting.