Escolar Documentos
Profissional Documentos
Cultura Documentos
UTN-FRM
Capa de Red/Transporte
PROTOCOLOS TCP/IP
Gustavo Mercado
gmercado@frm.utn.edu.ar
Patricia Clrigo
pclerigo@frm.utn.edu.ar
LIREDAT UTN FRM
http://web.frm.utn.edu.ar/teleinformatica/
http://web.frm.utn.edu.ar/liredat/
Capa de Red/Transporte
PROTOCOLOS TCP/IP
Introduccin
La capa de red: Internetworking (IP)
La capa de transporte: TCP/UDP
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
CODAREC
UTN-FRM
Bibliografa
Los principales textos de estudio son:
Redes Gobales de Informacin con Internet y
TCP/IP, Douglas Comer, Pearson
TCP/IP Illustrated Vol 1 The Protocols, W. Richard
Stevens, Addison Wesley
PROTOCOLOS TCP/IP
Bibliografa cont
Para estudiar como se implementa la pila de
protocolos:
Interconectividad de Redes TCP/IP Vol II Diseo e
Implementacin, Douglas Comer, Pearson
TCP/IP Illustrated Vol 2 The Implementation, W.
Richard Stevens, Addison Wesley
G. Mercado
PROTOCOLOS TCP/IP
CODAREC
UTN-FRM
Introduccin
La capa de red: Internetworking (IP)
La capa de transporte: TCP/UDP
Teleinformtica
PROTOCOLOS TCP/IP
Protocolo TCP/IP
Es un conjunto de protocolos, aplicaciones y
servicios para administrar y explotar redes.
Est desarrollado para mltiples plataformas.
Es un sistema abierto, sus protocolos son de
dominio pblico.
Permite interconexin de redes (interredes).
Es la base de la Internet.
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
CODAREC
UTN-FRM
Historia
1969: ARPANET: red experimental del proyecto
de investigacin de DARPA (Defense Advanced
Research Projects Agency). Es la primera red
de conmutacin de paquetes.
1975: se transforma en una red operacional.
1979: se forma el primer comit informal para
guiar y coordinar los protocolos y arquitectura
de la red. (ICCB) Internet Control and
Configuration Board.
Teleinformtica
PROTOCOLOS TCP/IP
Historia
1983: se adopta el conjunto de protocolos
TCP/IP como el standard de la red, y su uso
obligatorio para conectarse a la red.
Se parte en 2 redes: una para investigacin
(ARPANET), y otra para fines militares (MILNET).
1983:
Comienzan los desarrollos universitarios en UNIX:
Berkeley Software Distribution.
Red de investigacin, por la accin de National
Science Foundation.
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
CODAREC
UTN-FRM
Historia
1986: Se transforma en el backbone NFSNET
1987: de unas 20.000 computadoras
conectadas desde su creacin se estima un
crecimiento mensual del 15% y superior.
1990: unas 10.000 redes activas y ms de
200.000 computadoras en todo el mundo
1997: 1.000.000 redes activas y ms de
10.000.000 computadoras en todo el mundo
Teleinformtica
PROTOCOLOS TCP/IP
Organizacin de la IAB
La Junta
IETF
IRTF
IRSG
IESG
Grupos de investigacin
Teleinformtica
G. Mercado
Grupos de trabajo
PROTOCOLOS TCP/IP
10
CODAREC
UTN-FRM
Glosario
IAB: Internet Architecture (Activities) Board
IRTF: Internet Research Task Force
IERG: Internet Researh Steering Group
PROTOCOLOS TCP/IP
11
Internet RFCs
La DCA (Defense Communication Agency) (1983)
funda el grupo SRI International para mantener y
distribuir la informacin y documentacin sobre
TCP/IP y de la Internet. Se conoce como el NIC
(Network Information Center).
Standards de protocolos, documentacin y mejoras
futuras se distribuyen por medio de las RFCs
(Requests for Comments).
El editor de las RFCs es el Deputy Internet Architect,
que es miembro del IAB (Internet Activities Board).
Las RFCs se numeran secuencialmente en orden
cronolgico a como fueron escritas
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
12
CODAREC
UTN-FRM
Protocolo TCP/IP y el
modelo OSI
Teleinformtica
PROTOCOLOS TCP/IP
13
Aplicacin
TCP
UDP
Kernel
IPv4, IPv6
Driver
y
Hardware
Detalles
de
Comunicacin
Conjunto de
Protocolos de Internet
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
14
CODAREC
UTN-FRM
Definiciones
Host:
Computadora del usuario final que se conecta a la
red
Gateway o IP router:
Computadora dedicada al ruteo de paquetes
Multihomed host
Anfitrin que tiene conexiones a dos o ms redes
fsicas
Teleinformtica
PROTOCOLOS TCP/IP
15
Arquitectura Interredes
(Internet)
G. Mercado
PROTOCOLOS TCP/IP
16
CODAREC
UTN-FRM
Arquitectura Interredes
(Internet)
Teleinformtica
PROTOCOLOS TCP/IP
17
Arquitectura Interredes
(Internet)
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
18
CODAREC
UTN-FRM
Arquitectura Interredes
(Internet)
PROTOCOLOS TCP/IP
19
Cliente
Web
Servidor
Web
Protocolo TCP
TCP
TCP
ROUTER
IP
Ethernet
Driver
Protocolo
IP
Protocolo
Ethernet
Protocolo
IP
IP
Ethernet
Driver
Token Ring
Driver
IP
Protocolo
Token Ring Token Ring
Driver
Ethernet
Token Ring
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
20
10
CODAREC
UTN-FRM
Detalle de los
protocolos TCP/IP
Aplicaciones de IPv6
Aplicaciones de IPv4
tcpdump
mrouted
traceroute
ping
aplic.
aplic.
aplic.
TCP
aplic.
traceroute
ping
IPv6
ICMP
v6
UDP
ICMP
IGMP
IPv4
Direccin
32bits
Direccin
128 bits
ARP
RARP
BPF
DLPI
Data
Link
IEEE 802.X - X.25 - SNA - Decnet - SLIP - PPP - Frame Relay - ATM
Teleinformtica
PROTOCOLOS TCP/IP
21
Demultiplexado
aplic.
aplic.
aplic.
TCP
IGMP
ICMP
Demultiplex basado en el
valor de protololo del
header IP
RARP
ARP
Ethernet
G. Mercado
Demultiplex basado en el
puerto de destino del
header TCP o UDP
UDP
IP
Teleinformtica
aplic.
Demultiplex basado en el
campo tipo de Ethernet
PROTOCOLOS TCP/IP
22
11
CODAREC
UTN-FRM
Protocolos en TCP/IP
Procesos Usuarios:
aplicaciones standards
aplicaciones desarrolladas en ambiente clienteservidor
PROTOCOLOS TCP/IP
23
Protocolos en TCP/IP
ICMP: Internet Control Message Protocol
IGMP: Internet Group Management Protocol
ARP: Address Resolution Protocol
RARP: Reverse Address Resolution Protocol
ICMP v6: Internet Control Message Protocol
(combina la funcionalidad de ICMPv4, IGMP y
ARP)
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
24
12
CODAREC
UTN-FRM
Encapsulamiento de
protocolos
Teleinformtica
PROTOCOLOS TCP/IP
25
Aplicaciones Standard
Login remoto: Permite acceder a un host
remoto en la red, tal como si la terminal
fuese local a ese host. Utilizan TCP.
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
26
13
CODAREC
UTN-FRM
Aplicaciones Standard
Transferencia de archivos: Transferir y
administrar archivos y directorios en la red.
Teleinformtica
PROTOCOLOS TCP/IP
27
Aplicaciones Standard
Otras aplicaciones: Para mostrar informacin
sobre la red y para comunicarse sobre la red:
finger: lista informacin de usuarios remotos y
locales. (TCP).
rwho: lista usuarios en la red.(TCP).
ruptime: muestra el estado de un host (TCP).
talk: charla con un usuario de la red (UDP).
Comandos de administracin y configuracin:
ifconfig: para configurar interfaces de red
netconfig: para administracin de la red
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
28
14
CODAREC
UTN-FRM
Aplicaciones Standard
SMTP (Simple Mail Transfer Protocol): Correo
electrnico (TCP).
SNMP (Simple Network Management Protocol):
Para administracin de redes. (UDP).
NFS (Network File System): Sistema de
archivos sobre la red. (UDP).
X Windows: Sistema de terminales remotas
(TCP).
DHCP y Bootp: Carga de sistema operativo
para hosts sin disco.(UDP).
Traceroute: Determinar rutas (IP).
Teleinformtica
PROTOCOLOS TCP/IP
29
Aplicaciones Standard
Herramientas para bsqueda de recursos en
la Internet:
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
30
15
CODAREC
UTN-FRM
Nuevas Aplicaciones
Telefonia IP
Gateways &Gatekeeper
Teleconferencias
Otras
Multicasting
Educacin a Distancia
Telemedicina
Teleinformtica
PROTOCOLOS TCP/IP
31
Introduccin
La capa de red: Internetworking (IP)
La capa de transporte: TCP/UDP
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
32
16
CODAREC
UTN-FRM
Tecnologa de subredes
LAN:
Punto a Punto:
SLIP
CSLIP
Multipunto:
Ethernet
CSMA/CD
Token Ring
Token Bus
FDDI
Fast Ethernet
Wireless
PPP
Teleinformtica
PDN:
X.25
Dial up IP
Packet Radio AX.25
ATM
Frame Relay
ISDN
ADSL
WAN:
SNA
Decnet
Tunneling
PROTOCOLOS TCP/IP
33
PROTOCOLOS TCP/IP
34
IEEE 802
Teleinformtica
G. Mercado
17
CODAREC
UTN-FRM
Arquitectura Internet
SERVICIOS DE APLICACIN
SERVICIOS DE TRANSPORTE CONFIABLE
SERVICIOS DE ENTREGA DE PAQUETES SIN CONEXIN
Teleinformtica
PROTOCOLOS TCP/IP
35
Operacin
IP
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
36
18
CODAREC
UTN-FRM
Requerimientos de IP
Para un router:
Para un host:
IP: RFC-791
ICMP: RFC-792
Subnetting: RFC-950
IGMP: RFC-1112
Teleinformtica
IP: RFC-791
ICMP: RFC-792
Subnetting: RFC-950
IP Broadcast: RFC922
CIDR: RFC-1519
PROTOCOLOS TCP/IP
37
Funciones de IP en un
Host
Datagramas
entrantes:
Datagramas
salientes:
Verificar formato
Verificar destino
Procesar opciones
Reensamblar
Mensaje a capa sup
Teleinformtica
G. Mercado
Completar campos
Rutear
Fragmentar
Pasar a capa inferior.
PROTOCOLOS TCP/IP
38
19
CODAREC
UTN-FRM
Parmetros y primitivas
de servicio IP
Dos primitivas de servicio con la capa superior
Send (envo) Solicitar transmisin
Deliver (entrega) Notificar al usuario de arribo de
datos
Send(
Deliver(
Direccin de Origen
Direccin de Destino
Protocolo
Indicadores de tipo de servicio
Identificador
Indicador de no fragmentacin
Tiempo de vida
Longitud de datos
Datos de opcin
Datos
)
Teleinformtica
Direccin de Origen
Direccin de Destino
Protocolo
Indicadores de tipo de servicio
Longitud de datos
Datos de opcin
Datos
PROTOCOLOS TCP/IP
39
Datagrama IP
0
Versin Long Header
(4 bits)
(4 bits)
15 16
31
Tipo de Servicio
Longitud total en bytes (16 bits)
(TOS) (8 bits)
Flags
(3 bits)
Protocolo
(8 bits)
20
bytes
<
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
40
20
CODAREC
UTN-FRM
Datagrama IP (cont)
0
Versin Long Header
(4 bits)
(4 bits)
15 16
31
Tipo de Servicio
Longitud total en bytes (16 bits)
(TOS) (8 bits)
PROTOCOLOS TCP/IP
41
Datagrama IP (cont)
0
Versin Long Header
(4 bits)
(4 bits)
15 16
31
Tipo de Servicio
Longitud total en bytes (16 bits)
(TOS) (8 bits)
Tipo de Servicio:
Precedence (3 bits) (Prioridad)
TOS: Minimize delay (1 bit) (Retardo)
TOS: Maximize troughput (1 bit) (Desempeo)
TOS: Minimize reliability (1 bit) (Confiabilidad)
TOS: Minimize monetary cost (1 bit) (Costo)
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
42
21
CODAREC
UTN-FRM
Datagrama IP (cont)
0
15 16
Flags
(3 bits)
31
PROTOCOLOS TCP/IP
43
Datagrama IP (cont)
0
Time to Live (TTL)
(8 bits)
15 16
Protocolo
(8 bits)
31
G. Mercado
PROTOCOLOS TCP/IP
44
22
CODAREC
UTN-FRM
Datagrama IP (cont)
0
<
15 16
31
Datos
Teleinformtica
PROTOCOLOS TCP/IP
45
Datagrama IP (cont)
0
15 16
31
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
46
23
CODAREC
UTN-FRM
Direcciones IP
1 BYTE
CLASE A
CLASE B
1 0
CLASE C
1 1 0
CLASE D
1 1 1 0
CLASE E
1 1 1 1 0
1 BYTE
1 BYTE
Dir. de Red
1 BYTE
Direccin de hosts
Direccin de hosts
Dir. de Red
Direccin de hosts
Dir. de Red
Clase
A
B
C
D
E
Rango
0.0.0.0 a 127.255.255.255
128.0.0.0 a 191.255.255.255
192.0.0.0 a 223.255.255.255
224.0.0.0 a 239.255.255.255
240.0.0.0 a 247.255.255.255
Redes
126*
16.384
2.097.152
-
Hosts
16.777.216
65.535
254
-
Teleinformtica
PROTOCOLOS TCP/IP
47
Direcciones Broadcast
BROADCAST
nnn.255.255.225
nnn.nnn.255.225
nnn.nnn.nnn.225
255.255.255.225
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
48
24
CODAREC
UTN-FRM
ALFA (host)
128.10.2.6
BETA (host)
128.10.1.1
192.5.48.1
GAMMA (gw)
192.5.48.11
OMEGA (host)
192.5.48.112
EPSILON (host)
Teleinformtica
R
E
D
2
192.5.48.5
DELTA (host)
PROTOCOLOS TCP/IP
49
Ejemplo de traduccin de
direcciones
ALFA (host)
128.10.2.6
BETA (host)
128.10.1.1
GAMMA (gw)
192.5.48.1
192.5.48.5
DELTA (host)
192.5.48.11
OMEGA (host)
192.5.48.112
EPSILON (host)
D ire c c i n O rig e n
1 2 8 .1 0 .2 .3
D ire c c i n D e s tin o
1 2 8 .1 0 .2 .3
D a to s
Long Proto
Dir Dertino
ff:ff:ff:ff:ff:ff
Dir Origen
8:0:39:0:3c:4
Tipo
0806
R
E
D
2
Tipo
Dir Ethernet
Proto
Emisor
1 0800 6 4 1 8:0:39:0:3c:4
Dir IP
Emisor
128.10.2.3
Dir Ethernet
Buscada
Dir IP
Destino
128.10.2.6
Dir Dertino
8:0:39:0:3c:4
Dir Origen
8:0:39:0:2:1
Tipo
0806
Long Hard
Tipo
Proto
1 0806
Operacin
Dir Ethernet
Emisor
6 4 2 8:0:39:0:2:1
Dir IP
Emisor
128.10.2.6
Dir Ethernet
Buscada
8:0:39:0:3c:4
Dir IP
Destino
128.10.2.6
G. Mercado
PROTOCOLOS TCP/IP
50
25
CODAREC
UTN-FRM
Ejemplo de traduccin de
direcciones
ALFA (host)
128.10.2.6
BETA (host)
128.10.1.1
GAMMA (gw)
DELTA (host)
Direccin Ethernet
8:0:39:0:2:1
8:0:39:0:2f:26
Paquete IP
Dir Dertino
8:0:39:0:2:1
Dir Origen
8:0:39:0:3c:4
Tipo
0800
OMEGA (host)
EPSILON (host)
192.5.48.1
192.5.48.5
192.5.48.11
R
E
D
2
192.5.48.112
Dir Origen
Dir Destino
128.10.2.3
128.10.2.6
Header IP
Datos
128.10.2.3
Datos
128.10.2.6
Frame Ethernet
Teleinformtica
PROTOCOLOS TCP/IP
51
ARP
Para ver o modificar el ARP Cache, se utiliza
el comando arp.
Ejemplo para ver el contenido:
arp -a
BETA(128.10.2.6) at 8:0:39:0:2:1
GAMMA(128.10.1.1) at 8:0:39:0:2f:26
G. Mercado
PROTOCOLOS TCP/IP
52
26
CODAREC
UTN-FRM
Funciones de IP en un ROUTER
Unicast:
local
remoto
local y remoto
Ruteo
Permiso de forwarding
Decrementar TTL
Procesa Opciones
Fragmentar
Procesar segn interface
Pasar a capa inferior
ICMP Redirect
Broadcast:
Directed Broadcasts
Teleinformtica
PROTOCOLOS TCP/IP
53
Ejemplo de traduccin de
direcciones
ALFA (host)
128.10.2.6
BETA (host)
Gateway
Subnet
128.10.2.3 255.255.0.0
128.10.1.1 255.255.255.0
127.0.0.1 255.0.0.0
GAMMA (gw)
DELTA (host)
Metric
Int
0
1
0
eth0
eth0
l0
128.10.1.1
Gateway
Subnet
Metric
Int
128.10.1.1
192.5.48.1
127.0.0.1
16
24
8
0
0
0
eth0
eth1
l0
OMEGA (host)
EPSILON (host)
192.5.48.1
R
E
D
2
192.5.48.5
192.5.48.11
192.5.48.112
Direccin Ethernet
8:0:39:0:2:1
8:0:39:0:2f:26
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
54
27
CODAREC
UTN-FRM
Ejemplo de traduccin de
direcciones
Paquete IP
Dir Origen
128.10.2.3
Dir Destino
192.5.48.5
Datos
FRAME DE
RED 1
Dir Dertino
8:0:39:0:2f:26
Dir Origen
8:0:39:0:3c:4
Tipo
0800
128.10.2.3
192.5.48.5
Datos
Dir Origen
8:0:39:0:2f:26
Tipo
0800
128.10.2.3
192.5.48.5
Datos
FRAME DE
RED 2
Dir Dertino
8:0:39:7:5:1
Teleinformtica
PROTOCOLOS TCP/IP
55
Ruteo
Para ver las tablas de ruteo, se usa el comando
netstat -rn
Ejemplo en ALFA:
netstat -rn
Routing tables
Destination Gateway
Flags Refcnt Use Interface
128.10.0.0 128.10.2.3 UGH
0
140 eth0
192.5.48.0 128.10.1.1 UG
0
123 eth0
127.0.0.1
127.0.0.1
UH
1
0
l0
G. Mercado
PROTOCOLOS TCP/IP
56
28
CODAREC
UTN-FRM
Internet Control
Message Protocol ICMP
Comunica mensajes de error y otras
condiciones que requieren atencin
Mensaje de ICMP
Header IP
Datagrama IP
Teleinformtica
PROTOCOLOS TCP/IP
57
ICMP cont
Tipo
0
3
Cdigo
0
0
1
2
3
4
5
6
7
8
9
10
11
12
Teleinformtica
G. Mercado
Descripcin
Respuesta de eco
Destino inaccesible: red inaccesible
Anfitrin inaccesible
Protocolo inaccesible
Puerto inaccesible
Se necesita fragmentacin
Falla en la ruta de origen
Red de destino desconocido
Anfitrin de origen aislado
Anfitrin de origen aislado
Comunicacin con la red de destino
administrativamente prohibida
Comunicacin con el anfitrin de destino
administrativamente prohibida
Red inaccesible para el tipo de servicio
Anfitrin inaccesible por el tipo de servicio
PROTOCOLOS TCP/IP
58
29
CODAREC
UTN-FRM
ICMP cont
Tipo
4
5
12
Cdigo
0
0
1
2
3
0
0
1
0
13
14
17
18
1
0
0
0
0
8
11
Teleinformtica
Descripcin
Disminucin de origen (source quench)
Redireccionar: para la red
Para el anfitrin
Para el tipo de servicio y la red
Para el tipo de servicio y anfitrin
Solicitud de eco
Tiempo excedido: Conteo de tiempo de vida
Tiempo para reensablado de fragmento
Problema de parmetro: Encabezamiento IP
errneo
Falta opcin requerida
Solicitud de timestamp
Respuesta de timestamp
Solicitud de mscara de direccin
Respuesta de mscara de direccin
PROTOCOLOS TCP/IP
59
Introduccin
La capa de red: Internetworking (IP)
La capa de transporte: TCP/UDP
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
60
30
CODAREC
UTN-FRM
Transporte en TCP/IP
CON CONEXIN: TCP (Transmission Control
Protocol) Similar a TP4 del modelo OSI
SIN CONEXIN: UDP (User Datagram
Protocolo).
Modelo Cliente Servidor
Cliente
Servidor
Request enviado al port y
direccin de IP del servidor
Port
(TCP/UDP) + IP
Port
PROTOCOLOS TCP/IP
61
G. Mercado
PROTOCOLOS TCP/IP
62
31
CODAREC
UTN-FRM
Header UDP
0
15 16
31
UDP
Header
Datos
PROTOCOLOS TCP/IP
63
Header UDP
0
15 16
31
G. Mercado
PROTOCOLOS TCP/IP
64
32
CODAREC
UTN-FRM
Transmission Control
Protocol (TCP) RFC 793
Es un servicio con conexin, byte stream
La conexin requiere de las tres etapas:
Establecimiento de la conexin
Transferencia de datos
Liberacin de la conexin
Datos TCP
Datagrama TCP
Datagrama IP
Teleinformtica
PROTOCOLOS TCP/IP
65
Servicios de TCP
Establece la conexin de extremo-a-extremo
entre dos usuarios o hosts en la Internet
Transfiere datos fiablemente a travs de
cualquier nmero de subnets algunas de las
cuales puede ser de calidad pobre o
inconstante
Otra funcin de la capa de transporte es
superar los fracasos de una red pobre
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
66
33
CODAREC
UTN-FRM
Puertos de TCP
Servidor
10.150.56.52
Cliente
192.168.210.1
Capa de Aplicacin
Arbitrary
port
FTP
telnet
SMTP
1520
1563
1541
Capa de Aplicacin
Well know
port
FTP
telnet
SMTP
23
25
21
TCP
TCP
IP
IP
Enlace y Fsico
Enlace y Fsico
cliente
FTP
Telnet
SMTP
port
1520
1563
1541
servidor
IP
192.168.210.1
192.168.210.1
192.168.210.1
Teleinformtica
port
21
23
25
IP
10.150.56.52
10.150.56.52
10.150.56.52
PROTOCOLOS TCP/IP
67
Segmento TCP
0
15 16
31
<
S F
Y I
N N
TCP
HEADER
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
68
34
CODAREC
UTN-FRM
Segmento TCP
0
15 16
31
PROTOCOLOS TCP/IP
69
Segmento TCP
0
15 16
31
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
70
35
CODAREC
UTN-FRM
Segmento TCP
0
15 16
31
Teleinformtica
PROTOCOLOS TCP/IP
71
Segmento TCP
0
15 16
U A P P
R C S S
G K H T
31
S F
Y I
N N
G. Mercado
PROTOCOLOS TCP/IP
72
36
CODAREC
UTN-FRM
Segmento TCP
0
15 16
<
31
PROTOCOLOS TCP/IP
73
Establecimiento y
Terminacin de una conexin
Establecimiento :
three-way
handshake
Open Activo
Open Pasivo
Nde secuencia inicial
Negociacin de MSS
Open simultneo
Backlog
Timeout
Teleinformtica
G. Mercado
Liberacin :
Half Close
Estado 2MSL Wait
Estados FIN_WAIT
Close simultneo
Timeout
PROTOCOLOS TCP/IP
74
37
CODAREC
UTN-FRM
Establecimiento y
Terminacin de una conexin
Establecimiento
Segmento
1
Segmento
3
ACK= 8301
Segmento
2
Segmento
2
Terminacin
Segmento
1
Segmento
4
Teleinformtica
Segmento
2
Segmento
3
ACK= 8302
PROTOCOLOS TCP/IP
75
Diagrama de Transicin
de Estados de TCP
Transiciones de clientes
Transiciones de servidores
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
76
38
CODAREC
UTN-FRM
Establecimiento y
Terminacin de una conexin
Cliente
Servidor
(active open)
SYN_SENT
(passive open)
LISTEN
SYN j
SYN_RCVD
ESTABLISHED
ESTABLISHED
(active close)
FIN_WAIT_1
FIN m
(passive close)
CLOSE_WAIT
ACK m+1
FIN_WAIT_2
LAST_ACK
FIN n
TIME_WAIT
ACK n+1
CLOSE
Teleinformtica
PROTOCOLOS TCP/IP
77
Transferencia de datos
Flujo de datos interactivo
Telnet y Rlogin. Por cada tecla apretada se genera
un paquete TCP
Teleinformtica
G. Mercado
PROTOCOLOS TCP/IP
78
39
CODAREC
UTN-FRM
Algoritmo de Nagle
Deshabilitacin del Algoritmo de Nagle
Teleinformtica
PROTOCOLOS TCP/IP
79
Control de congestin:
Slow start:
ventana del receptor (wnd)
ventana de congestin (cwnd)
G. Mercado
PROTOCOLOS TCP/IP
80
40
CODAREC
UTN-FRM
Timers
Retransmision timer
Jacobson, 1988:
RTT = a RTT + (1-a) M
TCP usa b RTT
Algoritmo de Karn
Persist timer
Keepalive timer
Time Wait State timer
Teleinformtica
G. Mercado
RTT: timeout
M: tiempo ltimo ACK
a : factor de suavizado
(smooting) = 7/8
b: Proporcional al desvo
standard del arrivo de los
ACK
PROTOCOLOS TCP/IP
81
41