Documentos de Académico
Documentos de Profesional
Documentos de Cultura
TraspSITR TCP-IP PDF
TraspSITR TCP-IP PDF
TCP/IP
Modelo
Direccionamiento
Direccionamiento
IPv4
IPv4
Modelo
Modelo
General
General
Orgenes
Orgenes
Clases de
Clases de
Redes
Redes
Mscara
Mscara
de Subred
de Subred
CIDR
CIDR
Estudio de
Estudio de
Protocolos
Protocolos
ICMP
ICMP
ARP
ARP
IPv4
IPv4
UDP
UDP
TCP
TCP
Direccionamiento
Direccionamiento
MAC
MAC
Formato
Formato
Mensaje
Mensaje
Formato
Formato
Datagrama IP
Datagrama IP
Caractersticas y
Caractersticas y
funcionalidad
funcionalidad
Caractersticas y
Caractersticas y
funcionalidad
funcionalidad
Tramas
Tramas
Ethernet
Ethernet
Cdigos
Cdigos
de error
de error
Encaminamiento
Encaminamiento
de Datagramas
de Datagramas
Formato
Formato
Datagrama UDP
Datagrama UDP
Formato
Formato
Segmento TCP
Segmento TCP
Tabla
Tabla
ARP
ARP
Cdigos
Cdigos
Solicitud /
Solicitud /
Respuesta
Respuesta
Establecimiento
Establecimiento
Conexin
Conexin
Desconexin
Desconexin
1
Arquitectura TCP/IP
NDICE
Objetivo:
{
Qu vamos a estudiar?
{
{
{
{
{
Direccionamiento MAC/IP.
Protocolos ARP, RARP
Protocolo de sealizacin ICMP
Protocolo de red IP.
Protocolos de transporte TCP/UDP.
Documentacin adicional
{
{
SITR: TCP/IP
PING
Telnet
FTP
Capa
Transporte
SMTP
HTTP
ICMP
Capa
Enlace
ARP
BOOTP
NFS/RPC
DNS
UDP
TCP
Capa
Red
SNMP
IP
Enlace
IGMP
RARP
Medio
Fsico
SITR: TCP/IP
Protocolos (1)
SITR: TCP/IP
Protocolos (2)
Capa de Red:
{
{
{
{
SITR: TCP/IP
Protocolos (3)
La capa de transporte:
{
Protocolos (4)
SITR: TCP/IP
Parte de red
Parte de subred/nodo
Clases de direcciones:
{
Clase A
Subred/Nodo
Red
0xxx xxxx
Clase B
Clase C
xxxx xxxx
1111 1111 .
xxxx xxxx
xxxx xxxx
xxxx xxxx
Red
110x xxxx
Mscara
Subred/Nodo
Red
10xx xxxx
xxxx xxxx
xxxx xxxx
Mscara
Subred/Nodo
xxxx xxxx
xxxx xxxx
xxxx xxxx
Mscara
8
Clase D
Clase E
1110 xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
Clase
xxxx xxxx
xxxx xxxx
Rangos de direcciones
IP Mscara
Nodos por
Dir.
clase
Comienzo
A
B
C
D
E
16.777.214
255.0.0.0
65534
255.255.0.0
254 255.255.255.0
-
0.0.0.0
128.0.0.0
192.0.0.0
224.0.0.0
240.0.0.0
xxxx xxxx
Dir. final
127.255.255.255
191.255.255.255
223.255.255.255
239.255.255.255
255.255.255.255
Mscara
255.0.0.0
255.255.0.0
255.255.255.0
Dir. Comienzo
10.0.0.0
172.16.0.0
192.168.0.0
SITR: TCP/IP
Dir. Final
10.255.255.2555
172.31.255.255
192.168.255.255
Mscara de Subred:
{
{
Clase B
10xx xxxx
Nodo
Subred
xxxx xxxx
xxxx xxxx
Ejemplo:
147. 125.
3.
xxxx xxxx
Mscara
Mscara de Subred (permite calcular
si un paquete debe ser enviado fuera
de la subred)
Mquina 5
Red clase
147.125
SITR: TCP/IP
Subred 3
10
Direccin IP destino
Mscara
11111111 .11111111.11111111 . 0
147.123.3.5
AND
147.123.6.67
AND
147.123.6.0
147.123.3.0
XOR
Si el resultado es 0 pertenecen a
la misma subred.
0. 0. 5 .0
El valor 5 indica que pertenecen a
subredes diferentes
SITR: TCP/IP
11
Direccionamiento de mquina
{
Mscara de Subred
Identificador de la subred 147.125.3
Paquete de broadcast a toda la subred 147.125.3
Subred
SITR: TCP/IP
12
{
{
{
Mensaje destino
194.136.32.1
IP
Mensaje
127.0.0.1
Mensaje a
Loopback Driver
SITR: TCP/IP
13
169
Nodo
1000 10xx
xxxx xxxx
Dir. Comienzo
194.0.0.0
198.0.0.0
200.0.0.0
202.0.0.0
204.0.0.0
SITR: TCP/IP
Mscara
Bits CIDR
Unin de
redes Clase C
Dir. final
195.255.255.255
199.255.255.255
201.255.255.255
203.255.255.255
205.255.255.255
14
Ejemplo Direccionamiento IP
15
RED
INTERNET
GATEWAY
PUENTE/ROUTER
SITR: TCP/IP
16
{
{
MAC Fuente
6
Long.
2
DSAP SSAP
1
Cntl
Org.
Code
Tipo
Datos: Datagrama IP
38-1492
CRC
4
Cabecera
Encapsulacin Ethernet (RFC 894)
MAC Destino
6
MACFuente
6
Cabecera
Tipo
2
Datos: Datagrama IP
46 - 1500
SITR: TCP/IP
CRC
4
20
$ netstat -i
Name
lo0
Mtu Net/Dest
8232 loopback
Address
localhost
hme0
1500 lorca
lorca
7246270 70
SITR: TCP/IP
6586492 1
619142 0
21
Direccionamiento MAC
{
{
{
{
{
SITR: TCP/IP
22
Direccionamiento MAC
{
Windows 95:
Windows NT/2000/XP:
UNIX/Linux:
SITR: TCP/IP
winipcfg
ipconfig
ifconfig
23
PING
Telnet
FTP
Capa
Transporte
SMTP
HTTP
ICMP
Capa
Enlace
ARP
BOOTP
NFS/RPC
DNS
UDP
TCP
Capa
Red
SNMP
IP
Enlace
IGMP
RARP
Medio
Fsico
SITR: TCP/IP
24
25
02:60:8C:0D:0A:5D
02:60:8C:0D:0A:5E
192.147.136.7
192.147.136.8
192.147.136.9
ARP Reply(02:60:8C:0D:0A:5E)
Cabecera Ethernet
TRAMA ARP
Prot Size
MAC
DST
6
MACSRC
6
Type
2
Hard
type
Prot
type
OP
1
Snd
MAC Addr
6
Snd
IP Addr
Target
MAC Addr
Target
IP Addr
26
$ arp -a
Net to Media Table
Device
IP Address
------ -------------------hme0
193.147.136.216
hme0
193.147.136.1
hme0
192.168.2.20
hme0
lorca
hme0
Mask
Flags
Phys Addr
--------------- ----- --------------255.255.255.255
00:60:08:64:39:07
255.255.255.255
00:e0:1e:3d:fe:83
255.255.255.255
00:a0:c9:78:75:bb
255.255.255.255 SP
08:00:20:a2:55:fe
BASE-ADDRESS.MCAST.NET 240.0.0.0
SM
01:00:5e:00:00:00
27
28
SITR: TCP/IP
29
SITR: TCP/IP
30
PING
Telnet
FTP
Capa
Transporte
SMTP
HTTP
ICMP
Capa
Enlace
ARP
BOOTP
NFS/RPC
DNS
UDP
TCP
Capa
Red
SNMP
IP
Enlace
IGMP
RARP
Medio
Fsico
SITR: TCP/IP
31
Protocolo IPv4
HL 4 bits
TOS 8 bits
TTL 8 bits
bits
Identificacin 16 bits
Cabecera
31
15 16
Protocolo 8 bits
Datos
SITR: TCP/IP
32
SITR: TCP/IP
33
Asegura la secuenciacin
El tercer bit indica (si est a uno) que hay fragmentacin more
fragments (se fragmenta si se ha superado el MTU)
SITR: TCP/IP
34
{
{
SITR: TCP/IP
35
Ejemplo: Protocolo IP
Fragmentacin IP
36
Ejemplo: Protocolo IP
SITR: TCP/IP
37
SITR: TCP/IP
38
Enrutamiento IP (1)
Si
Mecanismo:
Mantenerlo
Para mi ?
Host local
No
Si
Para mi red ?
Enviar a travs
de ARP
Host conectado
directamente
Enviar al Gateway
Host
remoto
No
Tengo ruta
especfica?
Si
No
Tengo ruta por
omisin?
Si
Enviar al Gateway
Ruta al host
remoto
No
Sin ruta
$ netstat -rn
Routing Table:
Destination
-------------------193.147.136.0
224.0.0.0
default
Gateway
Flags Ref
Use
Interface
-------------------- ----- ----- ------ --------193.147.136.16
U
3
2619 hme0
193.147.136.16
U
3
0 hme0
193.147.136.1
UG
0 12386
127.0.0.1
127.0.0.1
UH
SITR: TCP/IP
01300499
lo0
39
Enrutamiento IP (2)
Tabla de Rutas:
{
{
{
SITR: TCP/IP
40
Enrutamiento IP (3)
Algoritmos de enrutamiento:
{
SITR: TCP/IP
41
Ejemplo Enrutamiento IP
42
RED
Red
IP: 194.100.100.0
M: 255.255.255.0
INTERNET
IP: 194.100.100.1
M: 255.255.255.192
Subred 1
IP: 194.100.100.0
M: 255.255.255.192
GATEWAY
IP: 194.100.100.65
M: 255.255.255.192
IP: 194.100.100.3
M: 255.255.255.192
Subred 2
IP: 194.100.100.64
M: 255.255.255.192
PUENTE/ROUTER
IP: 194.100.100.66
M: 255.255.255.192
IP: 194.100.100.81
M: 255.255.255.192
IP: 194.100.100.2
M: 255.255.255.192
Subred 3
IP: 194.100.100.128
M: 255.255.255.128
IP: 194.100.100.129
M: 255.255.255.128
IP: 194.100.100.34
M: 255.255.255.192
IP: 194.100.100.130
M: 255.255.255.128
IP: 194.100.100.191
M: 255.255.255.128
SITR: TCP/IP
43
PING
Telnet
FTP
Capa
Transporte
SMTP
HTTP
ICMP
Capa
Enlace
ARP
BOOTP
NFS/RPC
DNS
UDP
TCP
Capa
Red
SNMP
IP
Enlace
IGMP
RARP
Medio
Fsico
SITR: TCP/IP
45
Cabecera IP
Tipo (Solicitud):
20
(20-64 Grabacin de ruta)
Tipo
Cdigo
SVT
Checksum
Mensaje ICMP
Tipo (Error):
Cdigo:
3: Destino Inaccesible
0: Solicitud
X:
Especifica
tipos de errores
5: Redireccin
diferentes
SITR: TCP/IP
46
SITR: TCP/IP
47
Solicitud ICMP:
48
SITR: TCP/IP
49
50
SITR: TCP/IP
51
SITR: TCP/IP
52
PING
Telnet
FTP
Capa
Transporte
SMTP
HTTP
ICMP
Capa
Enlace
ARP
BOOTP
NFS/RPC
DNS
UDP
TCP
Capa
Red
SNMP
IP
Enlace
IGMP
RARP
Medio
Fsico
SITR: TCP/IP
53
SITR: TCP/IP
54
Datagrama UDP
Datagrama IP
Cabecera IP
20
Cabecera
UDP
Datos UDP
variable
Datagrama UDP
0
Cabecera
UDP
31
15 16
Nmero Puerto Fuente 16 bits
bits
Datos
SITR: TCP/IP
55
Solicitud DNS:
Conversin de nombre simblico a direccin IP
56
SITR: TCP/IP
57
SITR: TCP/IP
58
PING
Telnet
FTP
Capa
Transporte
SMTP
HTTP
ICMP
Capa
Enlace
ARP
BOOTP
NFS/RPC
DNS
UDP
TCP
Capa
Red
SNMP
IP
Enlace
IGMP
RARP
Medio
Fsico
SITR: TCP/IP
59
{
{
{
{
{
SITR: TCP/IP
61
{
{
SITR: TCP/IP
61
{
{
{
Intervalo Temporizador
Error
Almacenados en el buffer
de la ventana del receptor
Paquetes 2 a 8 pasados
a nivelSITR:
aplicacin
TCP/IP
AC
K
10
9
AC
K
8
AC
K
AC
K
10
AC
K
9
8
AC
K
AC
K
AC
K
AC
K
8
1
AC
K
AC
K
AC
K
3
1
2
0
AC
K
10
Paquetes
duplicados
62
Segmento TCP
Datagrama IP
Cabecera
TCP
Cabecera IP
20
Datos TCP
20
variable
Segmento TCP
0
Cabecera
31
15 16
bits
TCP
Reservado
6 bits
U A P R S F
R C S S Y I
G K H T N N
SITR: TCP/IP
63
Cabecera TCP
Tipos de trama:
{
{
{
{
{
{
SITR: TCP/IP
64
Opciones TCP
Opciones:
Fin de lista de
opciones
Tipo=0
Operacin nula
Tipo=1
1 byte
1 byte
Tamao mximo
de segmento
Tipo=2
long=4
Tamao mximo
segmento (MSS)
1 byte
1 byte
2 bytes
Factor de escala
de la ventana
Tipo=3
long=3
valor
1 byte
1 byte
1 byte
Grabacin de
Tiempo
Tipo=8
long =
10
Valor tiempo
1 byte
1 byte
4 bytes
SITR: TCP/IP
tiempo respuesta
de eco
4 bytes
65
Conexin-Desconexin TCP
Equipo A
Establecimiento
conexin TCP
Equipo B
Peticin Conexin
Segmento 1
Confirmacin Conexin
Segmento 3
SYN, ISN1
,
ss
SN1+1), m
(I
K
C
A
,
2
SYN, ISN
ISN1+1, AC
K(I
Datos
Peticin Desconexin
Confirmacin Desconexin
Indicacin Desconexin
Aceptacin Desconexin
mss
Indicacin Conexin
Segmento 2
Aceptacin Conexin
SN2+1),
datos
Datos
FIN, ISN1+
X, ACK(ISN
2+Y)
X+1)
CK(ISN1+
A
,
Y
+
2
N
IS
X+1)
CK(ISN1+
A
,
1
+
Y
+
FIN, ISN2
ACK(ISN2
+Y+1)
SITR: TCP/IP
Indicacin Desconexin
Aceptacin Desconexin
Peticin Desconexin
Confirmacin
Desconexin
66
SITR: TCP/IP
68
02:60:8C:0D:0A:5C
192.147.135 .7
HOST A
255.255.255.128
02:60:8C:0D:0A:5E
192.147.135.1
255.255.255.128
02:60:8C:0F:0A:5D
192.147.135.140
255.255.255.128
HOST B
02:60:8C:0D:0A:5D
192.147.135. 129
255.255.255.128
69