Professional Documents
Culture Documents
University of Engineering & Technology (UET) Taxila Computer Communication Networks LAB
University of Engineering & Technology (UET) Taxila Computer Communication Networks LAB
University of Engineering & Technology (UET) Taxila Computer Communication Networks LAB
Taxila
Computer Communication Networks LAB
Marks: ……………………………………
Remarks……………………………………
Signature………………………….………
2. Recourses Required:
Computer
Packet Tracer (version 5 or higher)
3. Introduction
Ping program is simple tool that allows anyone (for example, a network
administrator) to verify if a host is live or not. The Ping program in the source host
sends a packet to the target IP address; if the target is live, the Ping program in the
target host responds by sending a packet back to the source host and both of these
Ping packets are ICMP packets.
Header checksum – 16 bit 1’s compliment value designed to indicate errors in the
header only. Every node in the network has to check and re-insert a new checksum as
the header changes at every node (TTL value is decremented)
Destination address – 32 bit value representing the IP address of the packets final
destination.
Padding -Variable size bit field. These bits are used to ensure a 32 bit boundary for
the header is achieved.
ICMP Header Checksum (16 bits): When the data packet is transmitted, the checksum
is computed and inserted into this field. When the data packet is received, the
checksum is again computed and verified against the checksum field. If the two
checksums do not match then an error has occurred.
An IP TTL is set initially by the system sending the packet. It can be set to any value
between 1 and 255; different operating systems set different defaults. Each router that
receives the packet subtracts at least 1 from the count; if the count remains greater
than 0, the router forwards the packet, otherwise it discards it and sends an Internet
Control Message Protocol (ICMP) message back to the originating host, which may
trigger a resend.
The point of the TTL/hop limit is to keep streams of undeliverable packets stuck in
routing loops (perhaps due to incorrect routing tables) from circulating forever and
clogging up the networks in question.
Header checksum node in the network has to check and re-insert a new checksum as
the header changes at every node (TTL value is decremented)
Based on the type field, the message types are categorized into different groups. Each
of these messages carries different fields with respect to ICMP over the network. The
summary of these messages and the type is tabularized below.
Type/Code Description
8/0 Echo Request Ping Command uses Echo
0/0 Echo Reply Request and Reply
4. Procedure
Send a PDU from one host to another. And analyse the following in the packet
format.
Analyse the IP datagram packet and compare it to the format given above.
Analyse the type and code of ICMP packet. What are the types and code used
and why?
_______________________________________________________________
_______________________________________________________________
______________________________________________________________
The Identifier and Sequence Number can be used by the client to match the
reply with the request that caused the reply. Send another PDU message and
analyse the sequence number. Add another PDU and analyse the sequence
number again. What do you analyse from the sequence number pattern of
consecutive ping messages.
_______________________________________________________________
_______________________________________________________________
______________________________________________________________
What is TTL before and after passing the router interface in echo message?
_______________________________________________________________
_______________________________________________________________
______________________________________________________________
_______________________________________________________________
_______________________________________________________________
______________________________________________________________
_______________________________________________________________
_______________________________________________________________
_______________________________________________________________
______________________________________________________________