







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








1
Relates to Lab 2:
A short module on the Internet Control Message Protocol (ICMP).
2
Control
Routing
ICMP IGMP
RIP OSPF BGP PIM
4
additional information or 0x
type code checksum
bit # 0 7 8 15 16 23 24 31
If there is no additional data, there are 4 bytes set to zero. each ICMP messages is at least 8 bytes long
5
Example of a Query: Echo Request and Reply
Request
Reply
7
Host or Router
Host or router
Example of a Query:
ICMP Timestamp
8
Type (= 17 or 18)
Code (=0) Checksum
32-bit sender timestamp
identifier sequence number
32-bit receive timestamp 32-bit transmit timestamp
Sender
Receiver
Timestamp Request
Timestamp Reply
10
Unused (0x00000000)
IP header ICMP header IP header 8 bytes of payload
ICMP Message from IP datagram that triggered the error
type code checksum
Type Code Description
3 0–15 Destination unreachable
Notification that an IP datagram could not be forwarded and was dropped. The code field contains an explanation. 5 0–3 Redirect Informs about an alternative route for the datagram and should result in a routing table update. The code field explains the reason for the route change. 11 0, 1 Time exceeded
Sent when the TTL field has reached zero (Code 0) or when there is a timeout for the reassembly of segments (Code 1) 12 0, 1 Parameter problem
Sent when the IP header is invalid (Code 0) or when an IP header option is missing (Code 1)
datagram because the indicated protocol module or process port is not active, the destination host may send a destination unreachable message to the source host.
13
Client (^) Server
No process is waiting at port 80