Professional Documents
Culture Documents
PROTOCOLO IPv6
ddiaz@inictel-uni.edu.pe
Lima, Abril-Diciembre de 2013
Palacio Real-Espaa
IntServ. MPLS/DiffServ
Las redes IP deben ofrecer una adecuada QoS.
Porque todo esto?
ddiaz@inictel-uni.edu.pe
Las
Las aplicaciones
aplicaciones de
de tiempo
tiempo real
real exigen
exigen cada
cada vez
vez
ms
ms recursos
recursos de
de la
la red
red
Direccin IP de destino
Propiedad intelectual de Daniel Daz @ 2013
Cabecera extensin 1
Cabecera extensin 2
.
ddiaz@inictel-uni.edu.pe
.
.
Cabecera extensin n
CAMPOS DE IPv6
0 4 8 12 16 24 31
Versin
Ver DS Etiqueta de flujo Indica la versin del protocolo.
Longitud de carga tilCabe.sigte Lmite
Lmite salto
salto Valor en 6=0110
Longitud de carga til
40 bytes
Direccin
DireccinIPdedeorigen
origen
Indica el tamao de la carga til en
bytes (cabecera de extensin +
Propiedad intelectual de Daniel Daz @ 2013
Cabecera de extensin
Se disminuye en la unidad en
ddiaz@inictel-uni.edu.pe
cada nodo.
PDU de la capa superior Si Hop Limit llega a cero, el
router descarta el paquete
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
CAMPOS DE IPv6-Campo DS
0 4 8 12 16 24 31
Asigna prioridad a cada
Ver DS Etiqueta de flujo
paquete, aun si es de la
Longitud de carga tilCabe.sigte Lmite salto
misma fuente.
40 bytes
Direccin
DireccinIPdedeorigen
origen
Define la arquitectura
Propiedad intelectual de Daniel Daz @ 2013
Direccin IP de destino
DiffServ
Opcional
Cabecera de extensin
ddiaz@inictel-uni.edu.pe
Cuando est en 0000 0000,
PDU de la capa superior corresponde al best effort.
CAMPO DS-DIFFERENTED
SERVICE
En la RFC 2474 Definition of the Differentiated
Services Field in IPv4 and IPv6 Headers se define
este campo.
0 1 2 3 4 5 6 7
Propiedad intelectual de Daniel Daz @ 2013
Bits ms DSCP
DSCP CU
CU RFC 2474
significativo
ddiaz@inictel-uni.edu.pe
Unused notificar congestin
Direccin
DireccinIPdedeorigen
origen
Propiedad intelectual de Daniel Daz @ 2013
ddiaz@inictel-uni.edu.pe
PDU de la capa superior
Flujo
Asignar Asignar
calidad calidad calidad
Q1 Q1 Q1
ddiaz@inictel-uni.edu.pe
Flujo 1
Flujo 1 con Q1
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
Direccin
DireccinIPdedeorigen
origen
tambin tienen este campo.
Propiedad intelectual de Daniel Daz @ 2013
ddiaz@inictel-uni.edu.pe
PDU de la capa superior Las cabeceras de extensin
son procesadas en orden.
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
VALORES DE CABECERA
SIGUIENTE
Propiedad intelectual de Daniel Daz @ 2013
ddiaz@inictel-uni.edu.pe
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
DIRECCIONES DEL
PROTOCOLO
Propiedad intelectual de Daniel Daz @ 2013
IPv6
ddiaz@inictel-uni.edu.pe
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
DIRECCIONES EN IPv6
0 4 8 12 16 24 31 En la RFC 3513 se define
la Arquitectura de las
Ver DS Etiqueta de flujo
Longitud de carga til Cabe.sigte Lmite salto
Direcciones IPv6
(Abril de 2003).
40 bytes
Direccin
DireccinIPdedeorigen
origen
En la RFC 4291 se define
Propiedad intelectual de Daniel Daz @ 2013
Direccin IP de destino
la Arquitectura de las
Direcciones IPv6
(Febrero de 2006) y
Opcional
Cabecera de extensin
ddiaz@inictel-uni.edu.pe
actualiza a la RFC 3513.
PDU de la capa superior
bbbb
bbbbbbbb
bbbbbbbb
bbbbbbbb
bbbb
16 bits
ddiaz@inictel-uni.edu.pe
Ejemplo de una direccin IPv6
2001 : 1a13 : 0000 : 0000 : 12bc : 0045 : fe00 : 0001
CONVENCIONES EN DIRECCIONES
IPv6
Los bits en 0 a la izquierda se pueden comprimir.
2001 : 1a13 : 0000 : 0000 : 12bc : 0045 : 0fe0 : 0001
Se puede escribir como:
2001 : 1a13 : 0 : 0 : 12bc : 45 : fe0 : 1
ddiaz@inictel-uni.edu.pe
una direccin
Otro ejemplo:
FF02:0:0:0:0:0:0:1 = FF02::1
Direccin
DireccinIPv6
IPv6/ /longitud
longitudde
deprefijo
prefijo
RAAP es:
2001 : 13a0 :: / 32
ddiaz@inictel-uni.edu.pe
Esto quiere decir que :
2001 : 13a0 : 0000 :0000 : 0000: 0000: 0000 : 0000
Identifica Para ser distribuido
la RAAP dentro de la RAAP
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
DIRECCIONES EN IPv6
(Segn la RFC 3513-Abril de 2003)
Prefijo de red
LINK LOCAL FE80::/10
03 tipos de direcciones UNICAST
Prefijo de red
UNICAST SITE - LOCAL FECO::/10
ADDRESS UNICAST
Prefijo de red
Propiedad intelectual de Daniel Daz @ 2013
Es una direccin
ANYCAST Global unicast
ddiaz@inictel-uni.edu.pe
ADDRESS
Prefijo de red
MULTICAST FF00::/8
ADDRESS
DIRECCIONES EN IPv6
(Segn la RFC 4291-Febrero de 2006)
Prefijo de red
LINK LOCAL FE80::/10
03 tipos de direcciones UNICAST
UNICAST
ADDRESS
Prefijo de red
Propiedad intelectual de Daniel Daz @ 2013
Es una direccin
ANYCAST Global unicast
ddiaz@inictel-uni.edu.pe
ADDRESS
Prefijo de red
MULTICAST FF00::/8
ADDRESS
El prefijo es FE80::/10
Propiedad intelectual de Daniel Daz @ 2013
0 ID Interfaz
ddiaz@inictel-uni.edu.pe
1111 1110 10
FE80::/10
ddiaz@inictel-uni.edu.pe
24 bits 24 bits
64 bits
u es complementado
Direccin EUI-64
0000 0000
ddiaz@inictel-uni.edu.pe
0000 0010
ENCADENAMIENTO DE LAS
CABECERAS DE EXTENSION
Ver Pri Etiqueta de flujo
Longitud de carga til Cab sigte=0 Lmite salto
Direccin origen
Direccin destino
Cab sigte=43
Opcin salto-a-asalto
Propiedad intelectual de Daniel Daz @ 2013
Cab sigte=44
Informacin de encaminamiento
Cab sigte=51
Informacin de fragmentacin
ddiaz@inictel-uni.edu.pe
Cab sigte=6
Autenticacin de datos
Informacin de encaminamiento
Cab sigte=51
Informacin de fragmentacin
Cab sigte=6
Autenticacin de datos
ddiaz@inictel-uni.edu.pe
Cabecera TCP y datos
CABECERA DE
0
FRAGMENTACION
8 16 24
(2/2) 31
Cabecera siguiente
Campo de 08 bits, indica el tipo de cabecera que sigue.
Desplazamiento de fragmento
Propiedad intelectual de Daniel Daz @ 2013
ddiaz@inictel-uni.edu.pe
M=1 indica ms (More) fragmento. M=0 es el ltimo fragmento.
Identificador de fragmento
Campo de 32 bits e indica a que datagrama IP original pertenece
el fragmento.
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
PROCESO DE LA
FRAGMENTACION
No
Nofrag.
frag. Parte
Partefragmentable
fragmentable
No
Nofrag.
frag. Frag.
Frag.11 Frag.
Frag.22 ..
.. Frag.
Frag.nn
Propiedad intelectual de Daniel Daz @ 2013
Cabecera de
Cabecera de Frag. 1
No
Nofrag.
frag. fragmentacin
fragmentacin Frag. 1
Cabecera de
Cabecera de Frag. 2
No
Nofrag.
frag. fragmentacin
fragmentacin Frag. 2
.. PROCESO DE
ddiaz@inictel-uni.edu.pe
FRAGMENTACIN
..
Cabecera de
Cabecera de Frag. n
No
Nofrag.
frag. fragmentacin Ms detalle en la
fragmentacin Frag. n
RFC 2460
DUAL STACK
Los routers de la red soportan ambos protocolos IP:
IPv4 e IPv6.
Ambos protocolos tienen independiente
enrutamiento, QoS, seguridad, multicast, entre otros.
Se comparten los recursos de la red.
Propiedad intelectual de Daniel Daz @ 2013
IPv6 IPv6
Red IPv4/IPv6
ddiaz@inictel-uni.edu.pe
IPv4 IPv4
Host Host
IPv4/IPv6 IPv4/IPv6
DUAL STACK
2001:13A0:1234::1/64
200.1.1.1/30
S1 APLICACIN
APLICACIN
S0
200.1.1.2/30
2001:13A0:1234::2/64
TCP/UDP
TCP/UDP
IPv6
IPv6 IPv4
IPv4
Propiedad intelectual de Daniel Daz @ 2013
ddiaz@inictel-uni.edu.pe
Opciones-relleno
Cabecera de extensin
R1>enable R1>enable
R1#configure terminal R1#configure terminal
R1(config)#interface serial 0 R1(config)#ipv6 unicast-routing
R1(config-if)#ip address 200.1.1.1 255.255.255.252 R1(config)#interface serial 0
Propiedad intelectual de Daniel Daz @ 2013
R2>enable R2>enable
R2#configure terminal R2#configure terminal
R2(config)#interface serial 1 R2(config)#ipv6 unicast-routing
R2(config-if)#ip address 200.1.1.2 255.255.255.252 R2(config)#interface serial 1
ddiaz@inictel-uni.edu.pe
R2(config-if)#no shutdown R2(config-if)#ipv6 address 2001:13a0:1234::2/64
R2(config-if) #ipv6 enable
Lo_61
2001:13a0:777:1/64
R1 R2 2001:13A0:999::2/64
2001:13A0:1234::1/64
S1
S0
2001:13A0:1234::2/64
ddiaz@inictel-uni.edu.pe
R1>enable
R1#configure terminal
R1(config)#ipv6 route 2001:13a0:999::/64
2001:13a0:1234::2
R1>enable R2>enable
R1#configure terminal R2#configure terminal
R1(config)#ipv6 router rip inictel R2(config)#ipv6 router rip inictel
R1(config-rtr)#exit R2(config-rtr)#exit
R1(config)#interface serial 0 R2(config)#interface serial 1
R1(config-if)#ipv6 rip inictel R2(config-if)#ipv6 rip inictel enable
ddiaz@inictel-uni.edu.pe
enable R2(config-if)#exit
R1(config-if)#exit
R1(config)#interface loopback 61
R1(config-if)#ipv6 rip inictel
enable
R1(config-if)#exit
R1>enable R2>enable
Propiedad intelectual de Daniel Daz @ 2013
ddiaz@inictel-uni.edu.pe
61
R1(config)#ipv6 enable
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
http://ironbark.bendigo.latrobe.edu.au/subjects/INW/lectures/15/
8/126
Fa2/0
R1(config-if)#
R1(config-if)#ipv6
ipv6ospf
ospfcost
cost55
30.3.3.8 1
/30
Costo
R1(config-if)#
R1(config-if)#ipv6
ipv6ospf
ospf11area
area11
osto R1(config-if)# exit
C 0 R1(config-if)# exit
RIPv2 1 / 30
3. 4 R1(config)#
R1(config)#interface
interfaceFastEthernet2/0
3
3. FastEthernet2/0
1
30. .6
a
255.255.255.252
1
R1(config-if)#
R1(config-if)#ipipospf
ospfcost
cost11
0
.129 .5
20
ddiaz@inictel-uni.edu.pe
R1(config-if)#
R1(config-if)#ipv6
ipv6address
address2001:1A13:4CF::6009/126
2001:1A13:4CF::6009/126
R1(config-if)# ipv6 enable
R1(config-if)# ipv6 enable
PCb R2
R1(config-if)#
R1(config-if)#ipv6
R1(config-if)#
ipv6ospf
ospfcost
cost11
R1(config-if)#ipv6
ipv6ospf
ospf11area
area11
R1#configure
R1#configureterminal
terminal R1#configure
R1#configureterminal
terminal
R1(config)#ipv6
R1(config)#ipv6router
routerrip
riplima
lima R1(config)#ipv6
R1(config)#ipv6router
routerospf
ospf11
R1(config-rtr)#
R1(config-rtr)#redistribute
redistributeospf
ospf11metric
metric11match
matchinternal
internalexternal
external11 R1(config-rtr)#redistribute
R1(config-rtr)#redistributerip
riplima
limainclude-connected
include-connected
external
external 2 include-connected
2 include-conne cted R1(config-rtr)#exit
R1(config-rtr)#exit
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
TUNEL
Propiedad intelectual de Daniel Daz @ 2013
ddiaz@inictel-uni.edu.pe
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
Existe
Existe una
una variedad
variedad de
de tipo
tipo de
de tnel
tnel que
que son
son usados
Propiedad intelectual de Daniel Daz @ 2013
Direccin IP de origen
Direccin IP de destino usados
Ver DS Etiqueta de flujo
Opciones-relleno
Longitud de carga til Cabe.sigteLmite salto
para
para diferentes
diferentespropsitos:
propsitos:
Manually
ManuallyConfigured
ConfiguredTunnel
Tunnel(MCT)
(MCT)
Direccin
DireccinIPdedeorigen
origen
PDU de la capa superior
IPv6-over-IPv4
IPv6-over-IPv4generic
genericrouting
routingencapsulation
encapsulation(GRE)
(GRE)tunnel
tunnel
Direccin IP de destino
Tunnel Broker
Tunnel Broker
ddiaz@inictel-uni.edu.pe
6to4
6to4Tunnel
Tunnel
Cabecera de extensin Intra-Site
Intra-SiteAutomatic
AutomaticTunnel
TunnelAddressing
AddressingProtocol
Protocol(ISATAP)
(ISATAP)Tunnel
Tunnel
IPv6
IPv6over
overMPLS
MPLS(6PE)
(6PE)
PDU de la capa superior
Fa
0/
.9
0/
Propiedad intelectual de Daniel Daz @ 2013
1
/0
1
Co
30
3
30
/0
/0
1 Fa0
0
o
1
6/
st
Co
0/ 3
0
10
Fa
st
.2
.1
o
Fa0/
Co
st .2
. 7.
.7
1 .
. 2.
o .1
7.
.7
.17
o
Costo 2 1
.2
10
8/
10
st
.13 .14
Fa
AREA 2
20
30
Co
Fa0/
0/
Fa
1
/0
1
/1
Fa1/1
Fa1/1
1
/0
10.7.7.12/30
.1
0
Fa
.1
Fa
R7
ddiaz@inictel-uni.edu.pe
AREA 1 R5 RED DE ACCESO R6
R1 Sub red del Tunel: 2001:97ab:1::/64 con IPv4
Dual Dual
stack RED DE ACCESO stack
con IPv4
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
200
s
C o . 7. 0 / 30
2001:1234:1::/64
1
.7 AREA 0
:97a
10 Fa R4
64
0/ 1
b:1:
R2 Fa .6
.1 PROVEEDOR DE INTERNET .1
7ab:
:2/6
PC1 .18 30
. .2
Red con IPv4 Fa 3.
4
3.
.2
:9
Fa
0/
.9
0/
Propiedad intelectual de Daniel Daz @ 2013
1
/0
1
Co
2001
30
3
30
/0
/0
1 Fa0
0
o
1
6/
st
Co
0/ 3
0
10
Fa
st
.2
.1
o
Fa0/
Co
st .2
. 7.
.7
1 .
. 2.
o .1
7.
.7
.17
o
Costo 2 1
.2
10
8/
10
st
.13 .14
Fa
AREA 2
20
30
Co
Fa0/
0/
Fa
1
/0
1
/1
Fa1/1
Fa1/1
1
/0
10.7.7.12/30
.1
0
Fa
.1
Fa
R7
ddiaz@inictel-uni.edu.pe
AREA 1
R1(config)#interface tunnelR5
0 R6
R7(config)#interface
RED DE tunnel 0
ACCESO
R1 R1(config-if)#tunnel mode ipv6ip R7(config-if)#tunnel mode ipv6ip
con IPv4
R1(config-if)#tunnel source 20.2.2.1 R7(config-if)#tunnel source 30.3.3.2
Dual R1(config-if)#tunnel destination 30.3.3.2 Dual
R7(config-if)#tunnel destination 20.2.2.1
stack RED DE ACCESO stack
R1(config-if)#ipv6 address 2001:97ab:1::1/64 R7(config-if)#ipv6 address 2001:97ab:1::2/64
con IPv4 enable
R1(config-if)#ipv6 R7(config-if)#ipv6 enable
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
200
s
C o . 7. 0 / 30
2001:1234:1::/64
1
.7 AREA 0
:97a
10 Fa R4
64
0/ 1
b:1:
R2 Fa .6
.1 PROVEEDOR DE INTERNET .1
7ab:
:2/6
PC1 .18 30
. .2
Red con IPv4 Fa 3.
4
3.
.2
:9
Fa
0/
.9
0/
Propiedad intelectual de Daniel Daz @ 2013
1
/0
1
Co
2001
30
3
30
/0
/0
1 Fa0
0
o
1
6/
st
Co
0/ 3
0
10
Fa
st
.2
.1
o
Fa0/
Co
st .2
. 7.
.7
1 .
. 2.
o .1
7.
.7
.17
o
Costo 2 1
.2
10
8/
10
st
.13 .14
Fa
AREA 2
20
30
Co
Fa0/
0/
Fa
1
/0
1
/1
Fa1/1
Fa1/1
1
/0
10.7.7.12/30
.1
0
Fa
.1
Fa
R7
ddiaz@inictel-uni.edu.pe
AREA 1 R5 R6 RED DE ACCESO
R1 con IPv4
Dual Dual
stack RED DE ACCESO stack
con IPv4
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
200
s 0/3 . 4/
R1(config)#interface CofastEthernet
. 7 . 0/0 R7(config-if)#interface
30 fastEthernet 0/0
2001:1234:1::/64
1
. 7 AREA 0
:97a
10 2001:1234:1::1/64 R7(config-if)#ipv6 Fa address
0/0 R4
2001:1234:2::1/64
64
/ 1 R7(config-if)#ipv6 enable
b:1:
0 enable
R1(config-if)#ipv6 .6
R2 Fa R7(config-if)#ipv6 ospf 1 .area 0
1
. PROVEEDOR
R1(config-if)# ipv6 ospf 1 area 0 DE INTERNET 1
7ab:
:2
PC1 R7(config-if)#exit .18 30.
R1(config-if)#exit
/64
.2
Red con IPv4 R7(config)#interfacea0tunnel 0 3.3.
F
.2
:9
Fa
R1(config)#interface tunnel 0
.9
/1 0/
Propiedad intelectual de Daniel Daz @ 2013
/0
1/
Co
2001
30
3
R7(config-if)# ipv6 ospf 1 area 0 30
/0
1 Fa0
0
R1(config-if)# ipv6 ospf 1 area 0
0
o
1
6/
st
C
0/ 3
0
10
Fa
st
.2 os
.1
o
Fa0/
Co
.2
. 7.
.7
1 .
. 2.
to .1
7.
.7
.17
o
Costo 2 1
.2
10
8/
10
st
.13 .14
Fa
AREA 2
20
30
Co
Fa0/
0
Fa
/1
/0
1
/1
Fa1/1
Fa1/1
1
/0
10.7.7.12/30
.1
0
Fa
.1
Fa
R7
ddiaz@inictel-uni.edu.pe
AREA 1 R5 R6 RED DE ACCESO
R1 con IPv4
Dual Ping desde PC1 a PC 2 y Dual
stack RED DE ACCESO viceversa stack
con IPv4
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
LABORATORIOS
Propiedad intelectual de Daniel Daz @ 2013
ddiaz@inictel-uni.edu.pe
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
ddiaz@inictel-uni.edu.pe
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI
PROTOCOLO IPv6
MUCHAS
GRACIAS
Propiedad intelectual de Daniel Daz @ 2013
ddiaz@inictel-uni.edu.pe
INSTITUTO NACIONAL DE INVESTIGACION Y CAPACITACION DE TELECOMUNICACIONES, INICTEL-UNI