2.1 Icmp
2.1 Icmp
Utilities / Tools
Query
a. Echo Request
i. Type = 8
ii. Code = 0
b. Echo Reply
i. Type = 0
ii. Code = 0
Error
o Destination Unreachable
type = 3 ( destination unreachable )
Code = 1 ( host unreachable)
o Request time out
types =11
If gateway ip is not assign on host.
Trace route
a. Tracing the path between Source and destination.
b. It is utility to check reach ability of destination.
c. Trace route (Cisco)
d. Tracert (window)
Data section = ICMP error messages including a copy of entire IPV4 header Plus at least
the first 8 bytes of data from IPV4 packet that caused the error.
Cisco
a. Timeout 2 sec
b. Packet 5 by default
c. Default per packet 100 bytes
Window
a. Timeout 5 sec
b. Packet 4 by default
c. Default per packet 32 bytes
Traceroute
UDP port number 33434 – 33534
Tracing the path from source to destination to know which path traffic will pass through.
Also the router’s IP through which the traffic is passing through.
How many routers are attached b/w source and destination?
Time to live to count the number of router b/w source and destination.
UDP doesn’t have reliability it will send 3 packet always
Traceroute send 30 msg
It will use TTL 1
ICMP reply
a. Type= 11 (Time-to-exceeded)
b. Code= 0 ( Time to live exceeded in transmit)
ICMP reply from last Hop
a. Type = 3 (Destination unreachable)
b. Code = 3 ( port unreachable)
ICMP Reply when you trace any ip which are not in network
a. type = 3 ( destination unreachable )
b. Code = 1 ( host unreachable)
When gateway is not assigned, system itself generates an error message for the user
which is R.T.O.
a. When the G/w is not having any route to reach destination, then it will
generate a new ICMP message with type 3 (destination unreachable) to notify
that destination is not reachable.
b. This identifies the network is working from source till gateway but not beyond
the gateway.
c. When the remote network is not having the route to reply back the source than
the source device generate RTO for the user itself every 5 sec in window and 2
sec in cisco.
d. Ping
1) ! Success
2) UUnreachable
3) . RTO
e. Trace route
1) Destination unreachable = U
2) Request timeout *
3) Successful = RTT (Round Trip timer)
a. Avg. Time b/w sending the request and getting reply in
reply in return.