Upload
osneider-acevedo-naranjo
View
21
Download
0
Embed Size (px)
Citation preview
TALLER DE TELEMATICA
ESTUDIANTE
Osneider Manuel Acevedo Naranjo
TUTOR
Jorge Gómez
FECHA
Lunes 18 De Mayo.
UNIVERSIDAD NACIONAL DE CÓRDOBA
FACULTAD DE INGENIERÍAS
PROGRAMA DE INGENIERÍA
DE SISTEMAS
AÑO 2015
Bueno Antes de iniciar la práctica debemos instalar PingPlotter un buen programa para trazar
rutas en Windows.
Inicie pingplotter e ingrese el nombre de un destino en la ventana Address to Trace, ponga 3 en
el campo # of times to trace, así no reúne demasiados datos. Seleccione el ítem de menú Edit-
>Advanced Options->Packet Options y entre un valor de 56 en el campo Packet Size y luego
presione OK. Luego presione el botón Trace. Usted verá una ventana de pingplotter como la
siguiente:
1- Select the first ICMP Echo Request message sent by your computer, and
expand the Internet Protocol part of the packet in the packet details window
What is the IP address of your computer?
Rta:
La dirección IP es: 192.168.1.1
2- Within the IP packet header, what is the value in the upper layer protocol
field?
Rta:
El valor de ICMP es 1 (en hexadecimal).
3- How many bytes are in the IP header? How many bytes are in the payload of
the IP datagram? Explain how you determined the number of payload bytes.
Rta:
En la cabecera IP hay 20 bytes.
En el payload del datagrama IP hay 28 bytes.
Explique cómo determinó el número de bytes de payload. El número de bytes de
payload es la información útil del mensaje, el cual estaba indicado en la cabecera.
4- Has this IP datagram been fragmented? Explain how you determined
whether or not the datagram has been fragmented.
Rta:
El paquete IP no ha sido fragmentado, porque en el campo Flags (More fragments)
tenemos Not set; y en Fragment offset está 0 (cero), entonces el datagrama IP no
ha sido fragmentado.
5- Which fields in the IP datagram always change from one datagram to the
next within this series of ICMP messages sent by your computer?
Rta:
En primer lugar obviamente cambia el valor de Frame. Cambia el valor de
Identification, el valor de checksum y el número de secuencia.
6- Which fields stay constant? Which of the fields must stay constant? Which
fields must change? Why?
Rta:
Los campos que permanecen constantes:
Header Length, Total Length, Protocol.
Donde:
Type Especifica el tipo del mensaje:
0 Echo reply
3 Destination unreachable
4 Source quench
5 Redirect
8 Echo
9 Router Advertisement
10 Router Solicitation
11 Time exceeded
12 Parameter Problem
13 Timestamp request
14 Timestamp reply
15 Information request(obsolete)
16 Information reply(obsolete)
17 Adress mask request
18 Adress mask reply
Code Contiene el código de error para el datagrama del que da parte el mensaje
ICMP. La interpretación depende del tipo de mensaje.
Checksum Contiene el complemento a 1 de 16 bits de la suma del "ICMP message
starting with the ICMP Type field".
Data Contiene información para el mensaje ICMP.
Los campos que deben cambiar:
El campo Type el valor TTL, porque el Protocolo de Mensajes de Control y Error
de Internet, ICMP, que es de características similares a UDP, pero con un formato
mucho más simple, y su utilidad no está en el transporte de datos de usuario, sino
en controlar si un paquete no puede alcanzar su destino, si su vida ha expirado, si
el encabezamiento lleva un valor no permitido, si es un paquete de eco o respuesta,
etc. Es decir, se usa para manejar mensajes de error y de control necesarios para
los sistemas de la red, informando con ellos a la fuente original para que evite o
corrija el problema detectado. ICMP proporciona así una comunicación entre el
software IP de una máquina y el mismo software en otra.
7- Describe the pattern you see in the values in the Identification field of the IP
datagram. Next (with the packets still sorted by source address) find the series
of ICMP TTLexceeded replies sent to your computer by the nearest (first
hop) router.
Rta:
Identificador: numero de secuencia. Es el mismo para todos los datagramas
generados al segmentar e igual al del datagrama original.
Con el primer mensaje ICMP tenemos en el campo Identification en hexadecimal
0x0dd5 (en decimal 3541):
En el siguiente mensaje tenemos en el campo Identification en hexadecimal
0x0dd6 (en decimal 3542):
Como vemos es un campo que tiene un número en secuencia.
La serie de respuestas ICMP TTL exceeded enviadas a su computadora por el
primer enrutador (primer salto) son:
8- What is the value in the Identification field and the TTL field?
Rta:
Teniendo en cuenta el gráfico anterior vemos que en el primer mensaje ICMP TTL
exceeded enviado al computador tenemos:
Identification: 0xcdab (52651)
Time to Live (TTL): 252
9- Do these values remain unchanged for all of the ICMP TTL-exceeded replies
sent to your computer by the nearest (first hop) router? Why?
Rta:
En cuanto al campo Identification, este cambia porque es el número de secuencias
de los mensajes (como se explica al comienzo de esta práctica).
Por otra parte el campo TTL tienen que cambiar, por la siguiente razón:
Los datagramas IP tienen un campo TTL (tiempo de vida) que impide que un
mensaje esté dando vueltas indefinidamente por la red de redes. El número
contenido en este campo disminuye en una unidad cada vez que el datagrama
atraviesa un router. Cuando el TTL de un datagrama llega a 0, éste se descarta y
se envía un mensaje ICMP de tipo 11 (Time Exceeded) para informar al origen.
Los mensajes ICMP de tipo 11 se pueden utilizar para hacer una traza del camino
que siguen los datagramas hasta llegar a su destino. ¿Cómo? Enviando una
secuencia de datagramas con TTL=1, TTL=2, TTL=3, TTL=4, etc.... hasta
alcanzar el host o superar el límite de saltos (30 si no se indica lo contrario). El
primer datagrama caducará al atravesar el primer router y se devolverá un mensaje
ICMP de tipo 11 informando al origen del router que descartó el datagrama. El
segundo datagrama hará lo propio con el segundo router y así sucesivamente. Los
mensajes ICMP recibidos permiten definir la traza.
Fragmentation
Sort the packet listing according to time again by clicking on the Time column
10- Find the first ICMP Echo Request message that was sent by your computer
after you changed the Packet Size in pingplotter to be 2000. Has that message
been fragmented across more than one IP datagram?
Rta:
Vemos que Total Length = 1500.
11- Print out the first fragment of the fragmented IP datagram. What
information in the IP header indicates that the datagram been fragmented?
What information in the IP header indicates whether this is the first fragment
versus a latter fragment? How long is this IP datagram?
Rta:
El campo Fragment offset: 1480; indica que el datagrama ha sido fragmentado.
Número de byte del datagrama (sí ha sido fragmentado). Si está en cero entonces
no ha sido fragmentado.
Los Flags son los siguientes O, DT Y MF:
El único que nos va a interesar es MF. Éste se pone a ´0´ si el datagrama es el
último fragmento de una segmentación. En caso contrario estará a ´1´ La longitud
del datagrama IP es de 520 bytes.
12- Print out the second fragment of the fragmented IP datagram. What
information in the IP header indicates that this is not the first datagram
fragment? Are the more fragments? How can you tell?
Rta:
En Flags el campo More fragments está en 0 (cero), indica que este no es el primer
fragmento del datagrama.
No hay más fragmentos de este mismo paquete IP, porque en Flags el campo More
fragments está como Not set.
13- What fields change in the IP header between the first and second
fragment?
Rta:
Ahora encuentre el primer mensaje ICMP Echo Request que fue enviado por su
computadora después que usted cambió el tamaño del paquete a 3500 bytes.
Primer fragmento de un paquete IP; en Flags el campo More fragments está en 1
(uno), lo cual indica que este es el primer fragmento del datagrama:
El siguiente fragmento es; en Flags el campo More fragments está en 0 (cero), indica
que este es el último fragmento del datagrama:
Cambian los campos: Total Length (tamaño del paquete); Flags (More fragments) y
Fragment offset. El primer mensaje ICMP Echo Request que fue enviado después
que se cambió el tamaño del paquete a 3500 bytes:
14- How many fragments were created from the original datagram?
Rta:
Fueron creados 2 fragmentos
El mensaje original es:
El primer fragmento es:
El segundo y último fragmento es:
Éste es último porque en Flags en More fragments se pone en cero si el datagrama
es el último fragmento de una segmentación.
15- What fields change in the IP header among the fragments?
Rta:
Observando los reportes anteriores, cambian los siguientes campos:
Total Length; Flags (More fragments) y Fragment offset.
GRACIAS…