Govt. S.K.S.J. T. Institute: Department of Electronics and Communication Computer Communication Networks
Govt. S.K.S.J. T. Institute: Department of Electronics and Communication Computer Communication Networks
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 1
Computer communication networks-17ec64/15ec64
CONTENT
INTRODUCTION TO ICMPv4
MESSAGES
ERROR REPORTING MESSAGES
QUERY MESSAGES
DEBUGGING TOOLS
PING
TRACEROUTE (OR) TRACERT
ICMP CHECKSUM
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 2
Computer communication networks-17ec64/15ec64
INTRODUCTION TO ICMPv4
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 3
Computer communication networks-17ec64/15ec64
INTRODUCTION TO ICMPv4
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 4
Computer communication networks-17ec64/15ec64
MESSAGES
ICMP messages are divided into two broad
categories.
• Error reporting messages: Report problems that
a router or a host (destination) may encounter
when it processes in IP packet.
• Query messages: Messages, which help a host
or a network manager, get specific information
from a router or another host.
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 5
Computer communication networks-17ec64/15ec64
MESSAGES
An ICMP message has an 8-byte header and a
variable-size data section.
Type, defines the type of the message. Code
field specifies the reason for the particular
message type.
The last common field is the checksum field.
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 6
Computer communication networks-17ec64/15ec64
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 7
Computer communication networks-17ec64/15ec64
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 8
Computer communication networks-17ec64/15ec64
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 9
Computer communication networks-17ec64/15ec64
QUERY MESSAGES
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 10
Computer communication networks-17ec64/15ec64
QUERY MESSAGES
Pair of messages are used by a host or a router to test the
liveliness of another host or router.
A host or router sends an echo request message to
another host or router; if the latter is alive, it responds
with an echo reply messages.
The timestamp request (type 13) and the timestamp reply
(type 14) pair of messages are used to find the round-trip
time between two devices or to check whether the clocks
in two devices are synchronised.
The timestamp request message sends a 32-bit number,
which defines the time that the message is sent.
The timestamp reply resends that number, but also
includes two new 32-bit numbers representing the time
the request was received and the time the response was
sent.
If all the timestamps represent universal time, the sender
can calculate the one-way and round-trip time.
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 11
Computer communication networks-17ec64/15ec64
DEBUGGING TOOLS
There are several tools that can be used in the internet
for debugging; we introduce two tools that use ICMP:
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 12
Computer communication networks-17ec64/15ec64
TRACEROUTE OR TRACERT
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 13
Computer communication networks-17ec64/15ec64
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 14
Computer communication networks-17ec64/15ec64
ICMP CHECKSUM
In ICMP the checksum is calculated over the
entire message (header and data).
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 15
Computer communication networks-17ec64/15ec64
Compiled by: Prof. Krishnanada L, Dept of ECE, Govt SKSJTI, Bengaluru Page 16