MAESTRIA EN TELECOMUNICACIONES
TEMA: CAPA DE RED
Profesor Daniel Daz A.
ddiaz@inictel.gob.pe
Profesor de Telecomunicaciones
Miembro del Comit Tcnico de la Red CLARA
Director de Investigacin y Desarrollo Tecnolgico, INICTEL-UNI
Copyright @ 2008
UNMSM-FACULTADLima-Per
DE INGENIERA ELECTRNICA
ddiaz@inictel.gob.pe
Router
Router
Red
Enlace de datos
Red
Enlace de datos
Red
Enlace de datos
Router
Router
Red
Enlace de datos
Red
Enlace de datos
Router
Aplicacin
final
Red
Enlace de datos
Aplicacin
Transporte
Red
Enlace de datos
CAPA
CAPADE
DE RED
RED
Es
Es responsable
responsable del
del
envo
envo de
de datos
datos desde
desde
el
origen
al
destino
el origen al destino
Aplicacin
final
Aplicacin
Transporte
Red
Enlace de datos
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
Aplicacin
Llamada
conectada
Transporte
Red
Enlace de datos
Envo de
datos
Red
4
Enlace de datos
Red
Enlace de datos
1
Inicio de
llamada
Red
Enlace de datos
Aplicacin
Transporte
Red
Enlace de datos
6
Aceptacin de
llamada
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
2
Ingreso de
llamada
ddiaz@inictel.gob.pe
Mensajes de
sealizacin
Recepcin de
datos
Aplicacin
Red
Enlace de datos
Transporte
Red
Enlace de datos
Red
Enlace de datos
Red
Enlace de datos
Aplicacin
Servicio datagrama
Transporte
Arquitectura
de Red
Modelo de
servicio
Garanta de
Ancho de banda
Garanta de
No-prdida
Orden
Internet
Best Effort
No
No
No
Indica
congestin
No
Red
Enlace de datos
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
PROTOCOLO
PROTOCOLO IPv4
IPv4
ddiaz@inictel.gob.pe
16 19
31
Longitud total
Identificador
20 bytes
Cabecera
IP
TTL
Direccin de destino
Opciones-relleno
Carga til
ddiaz@inictel.gob.pe
Cabecera
40 bytes
max
16 19
31
Longitud total
Identificador
20 bytes
TTL
HLEN o Longitud de
encabezado: Mide la
longitud del encabezado
en grupo de 04 bytes.
Valor inicial 05.
ddiaz@inictel.gob.pe
Cabecera
40 bytes
max
16 19
31
Longitud total
Identificador
20 bytes
TTL
Carga til
Inicialmente se define:
Prioridad D T R Sin uso
Tipo de transporte
A fines de 1998 se ha
definido, para
IPv4/IPv6:
DSCP
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
CU
ddiaz@inictel.gob.pe
Cabecera
40 bytes
max
FRAGMENTACION
8
16 19
31
Longitud total
Identificador
TTL
Protocolo
Suma de chequeo
Direccin de origen
40 bytes
max
Direccin de destino
Opciones-relleno
Carga til
Identificador
Flag de MAS
fragmentos (el
ltimo fragmento en 0)
x
DM
FF
Desplazamiento
Expresado en unidades
de 8 bytes la posicin
de los datos.
213 8192 fragmentos
8192x8bytes=64Kbytes.
ddiaz@inictel.gob.pe
Cabecera
20 bytes
Flag de NO
fragmentacin
EJEMPLO DE FRAGMENTACION
Servidor web
Router
Cab.
60
Datos 6000
Cab. Cab.
20
60
Datos 6000
Datos 6000
HTTP
Calcular
las tramas
Cliente A
recibe pgina web
TCP
IP
INTERNE
INTERNE
TT
Cab.
20
Datos 6080
Cab.
Datos 1480
20
Cab.
Datos 1480
20
Cab.
Datos 1480
20
Cab.
Datos 1480
20
1500 bytes
1500 bytes
1500 bytes
1500 bytes
Cab. Cab.
Datos
1480
Datos
1500
26 20
1526 bytes
Cab. Cab.
Datos
1480
Datos
1500
26 20
Cab. Cab.
Datos
1480
Datos
1500
26 20
Cab. Cab.
Datos
1480
Datos
1500
26 20
1526 bytes
1526 bytes
1526 bytes
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
ddiaz@inictel.gob.pe
6000 bytes
Cab.
Datos 160
20
180 bytes
Cab. Cab.
Datos
160
Datos
180
26 20
206 bytes
16 19
31
Longitud total
Identificador
20 bytes
TTL
Identificador:
Identifica a un paquete de
datos IP.
Indicador o Flags:
No
Fragmentar.
En 1 no se debe fragment
More fragments.
Indica que no es el final
Desplaz. de fragmento:
Carga til
Especifica el desplazamiento
en el paquete de datos
original.
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
ddiaz@inictel.gob.pe
Cabecera
40 bytes
max
16 19
31
Longitud total
Identificador
20 bytes
TTL
Carga til
Protocolo:
Indica que protocolo de
nivel superior se us.
http://www.iana.org/assignments/protocol-numbers
Suma de Chequeo de
cabecera o Header
Checksum: Asegura la
integridad de la cabecera.
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
ddiaz@inictel.gob.pe
Cabecera
40 bytes
max
17
41
46
58
134
135~254
255
IPv6 Hop-by-Hop
ICMP
IGMP
IP en IP
TCP
UDP
IPv6
RSVP
ICMPv6
RSVP-E2E-IGNORE
No asignado
Reservado
ddiaz@inictel.gob.pe
00
4 F 00
20
01
Complemento a 1
00 00
74 E3
Complemento a 1
Complemento a 1
00 3C
C8 25 23 4F
C8 25 23 44
El campo CheckSum
debe ser colocado en
0000 inicialmente, para
calcular el CheckSum
del Protocolo IPv4.
Complemento a 1
Complemento a 1
74E1 +
2
74E3
Valor al campo
Check Sum
BAC3
B0FF
DFFE
148B
1496
274E1
ddiaz@inictel.gob.pe
DIRECCIONES
DIRECCIONES
EN
EN IPv4
IPv4
ddiaz@inictel.gob.pe
Longitud total
Identificador
TTL
Protocolo
Suma de chequeo
Direccin de origen
Opciones-relleno
Carga til
Direccin
de red
netid
31
Direccin host
hostid
Red
Red
Host
Host
ddiaz@inictel.gob.pe
40 bytes
max
Direccin de destino
0
Cabecera
20 bytes
7 8
Clase A 0
15
0-127
Clase C 1 1 0
Clase D 1 1 1 0
Clase E 1 1 1 1
31
Direccin host
27-2=126 redes
Clase B 1 0
23
128-191
214-2=16 382 redes
Direccin host
216-2=65 534 host
192-223
221-2=2 097 150 redes
IDlos
de routers
grupo multicast
En
actuales se puede
habilitar la direccin
de
red extremas
Reservado
para uso futuro
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
Direccin host
28-2=254 host
ddiaz@inictel.gob.pe
DIRECCIONES
IP PRIVADAS
(RFC 1918, http://www.ietf.org/rfc/rfc1918.txt)
La RFC 1918 describe la asignacin de
direcciones IP para redes privadas.
El objetivo es re-usar direcciones
ddiaz@inictel.gob.pe
SUBREDES
SUBREDES YY
VLSM
VLSM
ddiaz@inictel.gob.pe
0-127
Direccin host
27-2=126 redes
7 bits
Clase A 0
n bits
24-n bits
0-127
Direccin de Subnet
Direccin host
27-2=126 redes
2n-2 subredes
224-n-2 host
ddiaz@inictel.gob.pe
Clase A 0
n bits
0-127
24-n bits
Direccin de Subnet
Direccin host
Direccin local
Mscara 1 1 1 1 1 1 1 1
Indica el nmero
de red
1 1 1 1..1 1 1 1 0 0 0 0 0 0 . 0 0 0 0 0 0
Indica que bits de la Direccin Local
son usados para identificar una sub-red
AND
ddiaz@inictel.gob.pe
EJEMPLO DE SUBNETEO
200.1.2.0/27
....
Subred 0
200.1.2.xxxx xxxx
25-2 = 30
direcciones IP
Broadcast 200.1.2.31
LAN
200.1.2.1
F0
200.1.2.33
F1
INTERNET
INTERNET
Broadcast 200.1.2.63
Subred 1
....
200.1.2.32/27
255
255
224
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
IDENTIFICANDO EL PROBLEMA
Subred 4
S0
.....
30 Direcciones
IP como mximo
Subred 1
S1
S1
S0
Subred 5
Prefijo de red:
207.7.7.0/24
ID Host debe
contener 05
bits:
25-2=30
S0
Subred 6
S1
.....
30 Direcciones
IP como mximo
Subred 2
Subred ID host
207.7.7.xxxx xxxx
.....
30 Direcciones
IP como mximo
Subred 3
ddiaz@inictel.gob.pe
IDENTIFICANDO EL PROBLEMA
Subred 4
30 Direcciones
IP como mximo
207.7.7.32/27
Subred 5
27
0/
16
7.
Subred 1
207.7.7.128/27
S0
Subred 6
S1
30 IP, pero
slo se necesita
02 IP
.....
207.7.7.96/27
S0
20
7.
7.
7.
19
2/
27
S1
.....
S1
30 Direcciones
IP como mximo
.....
30 Direcciones
IP como mximo
Subred 2
207.7.7.64/27
Subred 3
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
ddiaz@inictel.gob.pe
S0
.
7.7
20
RESOLVIENDO EL PROBLEMA
Subred 4
0
/3
12
7.2
Subred 1
Subred 5
207.7.7.32/27
S0
Subred 6
S1
207.7.7.192/27 VLSM
ID host
S0
20
7.
7.
7.
21
6/
30
30 Direcciones
IP como mximo
207.7.7.208/30
S1
.
7.7
20
.....
S1
.....
30 Direcciones
IP como mximo
.....
30 Direcciones
IP como mximo
Subred 2
207.7.7.64/27
Subred 3
ddiaz@inictel.gob.pe
S0
SUPER-REDES O AGREGACIN
200.10.4.0/24
200.10.4.0/24
200.10.6.0/24
200.10.6.0/24
200.10.4.0
200.10.5.0
200.10.6.0
200.10.7.0
255.255.255.0
255.255.255.0
255.255.255.0
255.255.255.0
S0
S0
S0
S0
255.255.252.0
S0
S0
200.10.5.0/24
200.10.5.0/24
200.10.7.0/24
200.10.7.0/24
200.10.4.0
200.10.0000 0100.0/24
200.10.0000 0101.0/24
200.10.0000 0110.0/24
200.10.0000 0111.0/24
summarization
200.10.0000 0100.0/22
200.10.4. 0/22
ddiaz@inictel.gob.pe
TABLA
TABLA DE
DE
ENRUTAMIENTO
ENRUTAMIENTO
ddiaz@inictel.gob.pe
TABLA DE ENRUTAMIENTO
Tambin se puede
especificar la interfaz
de salida del router
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
ddiaz@inictel.gob.pe
TABLA DE ENRUTAMIENTO:
Distancia Administrativa
10.1.1.6/30
Red
de
destino
212.3.4.0/2
6
Ma
yo
rc
10.1.1.10/30
on
fia
bil
ida
d
Red de destino
Mscara
212.3.4.0
255.255.255.192
10.1.1.6
178
212.3.4.0
255.255.255.192
10.1.1.10
77
Primera opcin
ddiaz@inictel.gob.pe
EJEMPLO
PC 2
210.9.8.64/26
S0/0
LAN 210.9.8.0/24
con 62 IP mximo
en cada LAN
.2 S0/1
200.1.2.0/30
0
.1
210.9.8.192/26
PC 4
S0/1
.18
R3
S0/0 .25
200.1.2.24/30
6
R4
.26
S0/0
S0/1
Fa0/0 .29
200.1.2.28/30
7
Fa0/1 .30
Fa0/0
R8
.21
R7
PC 3
.22
210.9.8.128/26
ddiaz@inictel.gob.pe
210.9.8.0/26
.5
WAN 200.1.2.0/27
Fa0/0
.6
R1.9
Fa0/0
R5
200.1.2.4/30
PC 1
Fa0/1
Fa0/1
.14
200.1.2.12/30
3
.13 Fa0/0
S0/1
S0/0
.10 R2 .17
200.1.2.8/30
200.1.2.16/30
2
4
Fa0/0
Fa0/0
R6
Fa0/1
Red
Redde
dedestino
destino Mscara
Mscara Salto
Saltosiguiente
siguiente
200.1.2.12
255.255.255.252
200.1.2.10
200.1.2.12 255.255.255.252 200.1.2.10
200.1.2.16
200.1.2.16 255.255.255.252
255.255.255.252 200.1.2.10
200.1.2.10
200.1.2.20
255.255.255.252
200.1.2.10
200.1.2.20 255.255.255.252 200.1.2.10
200.1.2.24
200.1.2.24 255.255.255.252
255.255.255.252 200.1.2.1
200.1.2.1
200.1.2.28
255.255.255.252
200.1.2.28 255.255.255.252 200.1.2.1
200.1.2.1
210.9.8.0
255.255.255.192
200.1.2.6
210.9.8.0 255.255.255.192 200.1.2.6
210.9.8.64
210.9.8.64 255.255.255.192
255.255.255.192 200.1.2.10
200.1.2.10
210.9.8.128
210.9.8.128 255.255.255.192
255.255.255.192 200.1.2.10
200.1.2.10
210.9.8.192
255.255.255.192
200.1.2.1
210.9.8.192 255.255.255.192 200.1.2.1
200.1.2.20/30
Router R1
Fa0/0
Red LAN
S0
10.0.56.4/30
10.0.56.5/30
S1
RED
RED
11
10.0.56.6/30
......
RED
RED
nn
RED
RED
22
Red de destino Mscara
Salto siguiente
ddiaz@inictel.gob.pe
CONFIGURACION
CONFIGURACION DE
DE
ROUTERS
ROUTERS
ddiaz@inictel.gob.pe
SWITCH
Ethernet
FastEthernet
GigaEthernet
ROUTER Serial o
Tecnologa Ethernet
WAN
WAN
Configuracin de
router
Consola
ddiaz@inictel.gob.pe
Serie M
http://www.juniper.net/
Serie J
Serie T
Serie E320
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
Router
Interfaz Serial
(WAN)
MODEM
Conector DCE
Conector DTE
ddiaz@inictel.gob.pe
DTE
DCE
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
INTERCONEXION DE DISPOSITIVOS
Cable cruzado o
E0 Crossover E0
Cable directo o
Straight-through
SWITCH
ROUTER A
S0
E0
ROUTER B
Cable serial
S1
Cable cruzado o
Crossover
E0
Cable directo o
Straight-through
E1
HUB
Cable directo o
Straight-through
Cable directo o
Straight-through
Cable cruzado o
Crossover
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
ddiaz@inictel.gob.pe
Interfaz LAN
Interfaz WAN
Interfaz Consola/AUX
Tablas de enrutamiento
Cach ARP
Colas de espera de paquetes
Espacio para ejecutar IOS
Diagnstico de encendido
Software del sistema operativo
operativo
ddiaz@inictel.gob.pe
running-config
running-config
startup-config
startup-config
flash
flash
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
ddiaz@inictel.gob.pe
Router> enable
Router#
MODO
MODOEXEC
EXEC
PRIVILEGIADO
PRIVILEGIADO
Router(config)#
Router(config)# router
MODO
MODOEXEC
EXEC
CONFIGURACION
CONFIGURACION
GLOBAL
GLOBAL
Router(config)# interface
Modos especficos
MODO
MODODE
DE
CONFIGURACION
CONFIGURACION
DEL
DELROUTER
ROUTER
MODO
MODODE
DE
CONFIGURACION
CONFIGURACION
DE
DEINTERFAZ
INTERFAZ
Router(config-router)#
Router(config-if)#
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
Comando hostname
Router(config)#hostname LIMA
LIMA(config)#hostname
Asigna nombre a un router.
Depende de cada
Comando interface
router
LIMA(config)#interface serial 0/0
LIMA(config-if)#
Ingresa a la interface serial 0 del router.
Comando ip address <direccin IP> <mascara>
LIMA(config-if)#ip address 10.1.2.1 255.255.255.252
Asigna una direccin IP a la interfaz seleccionada
ddiaz@inictel.gob.pe
CONFIGURACION
CONFIGURACION
DEL
DEL ROUTER
ROUTER
ddiaz@inictel.gob.pe
EJEMPLO DE CONFIGURACION
.14 R6
Fa0/1
Fa0/0
210.9.8.64/26
PC 2
.65
200.1.2.12/30
3
.13 Fa0/0
R2
S0/1
.10
.17S0/0
S0/1
LAN 210.9.8.0/24
con 62 IP mximo
en cada LAN
200.1.2.0/30
0
S0/0
R3
.21
.25
200.1.2.24/30
6
.1
S0/0
R4
.26
S0/1
Fa0/0.29
200.1.2.28/30
7
210.9.8.192/26
PC 4
.193
Fa0/0
Fa0/1.30
R8
.22
R7
Fa0/0
S0/1
Fa0/1
.18
PC 3
.129
210.9.8.128/26
ddiaz@inictel.gob.pe
210.9.8.0/26
.2
S0/0
WAN 200.1.2.0/27
200.1.2.20/30
.5
R1
200.1.2.16/30
4
Fa0/0
.6
.9
Fa0/0
.1
R5
200.1.2.4/30
PC 1
Fa0/1
200.1.2.8/30
2
Fa0/0
EJEMPLO DE CONFIGURACION
Algunos
IOS no
requieren
configurar
clock rate
ddiaz@inictel.gob.pe
VERIFIQUE!
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
EJEMPLO DE CONFIGURACION
Es recomendable analizar la tabla de
enrutamiento del router.
El comando es show ip route.
En el ejemplo se observar los enlaces directos.
ddiaz@inictel.gob.pe
EJEMPLO DE CONFIGURACION
ddiaz@inictel.gob.pe
EJEMPLO DE CONFIGURACION
ddiaz@inictel.gob.pe
INTERFACES LOOPBACK
Lo_2
R1
interface loopback 1
R2
ddiaz@inictel.gob.pe
CONTRASEA DE CONSOLA
Router1(config)#line console 0
Router1(config-line)#password
inictel
Router1(config-line)#login
Router1(config-line)#exit
S0
172.16.1.9/30
Router 1
172.16.1.8/30
S1
172.16.1.10/30
Router 2
CONSOLA
ddiaz@inictel.gob.pe
Se debe ingresar
el password:
inictel
Ver CCNA 2,
Mdulo 3.1.3
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
172.16.1.8/30
172.16.1.9/30
172.16.1.10/30
Router 1
Router 2
CONSOLA
3
Ingresar
cisco
Observar que
est en el
Router2
Ver CCNA 2, Mdulo 3.1.3
ddiaz@inictel.gob.pe
S1
172.16.1.8/30
172.16.1.9/30
Router 1
CONSOLA
S1
172.16.1.10/30
Router 2
Restringe al modo EXEC
Privilegiado
ddiaz@inictel.gob.pe
172.16.1.8/30
172.16.1.9/30
Router 1
S1
172.16.1.10/30
Router 2
CONSOLA
Router1(config)#enable secret lima
No acepta peru!!
Ingresar lima
UNMSM-FACULTAD DE INGENIERA ELECTRNICA
Est encriptado
ddiaz@inictel.gob.pe
ddiaz@inictel.gob.pe
MUCHAS
MUCHAS GRACIAS
GRACIAS
ddiaz@inictel.gob.pe