Chap-03 - ICMP
Chap-03 - ICMP
Protocol
Position of ICMP in the network layer
IP drawbacks:
• IP has no error reporting or error correction mechanism
• What happens if a router must discard a datagram because it cannot
find a router to destination?
• What happens if the final destination host must discard all fragments of a
datagram because it has not received all fragments within a predetermined
time limit?
• IP lacks in mechanism for host and management queries
host may want to know whether a router or another host is alive?
network manager may need information from another host or router
• ICMP is mainly used to determine whether or not data is reaching its intended
destination in a timely manner.
Destination Unreachable
Source Quench
Time Exceeded
Parameter Problem
Redirection
Note:
Destination-unreachable messages
with codes 2 or 3 can be created only
by the destination host.
Other destination-unreachable
messages can be created only by
routers.
Note:
Code 0: Error in one of the header fields, pointer points to the byte
having problem
Code 1: The required part of the option is missing
Figure 11 Redirection concept
Note:
Original timestamp: 46
Receive timestamp:59
Transmit timestamp: 60
Return time:67
Sending time=59-46=13ms
Receiving time=67-60=7ms
Round-trip time=13+7= 20ms
Figure 16 Mask-request and mask-reply message and Router advt.
DHCP
223.1.1.0/24
server
223.1.1.1 223.1.2.1
223.1.2.0/24
223.1.3.1 223.1.3.2
223.1.3.0/24
DHCP offer
src: 223.1.2.5, 67
Broadcast: I’m a DHCP
dest: 255.255.255.255, 68
server! Here’s an IP
yiaddrr: 223.1.2.4
address youID:can
transaction 654 use
lifetime: 3600 secs
DHCP request
src: 0.0.0.0, 68
Broadcast: OK. I’ll take
dest:: 255.255.255.255, 67
yiaddrr: 223.1.2.4
that IP address!
transaction ID: 655
lifetime: 3600 secs
DHCP ACK
src: 223.1.2.5, 67
Broadcast: OK. You’ve
dest: 255.255.255.255, 68
yiaddrr: 223.1.2.4
got that IPID:
transaction address!
655
lifetime: 3600 secs
Network Layer 4-46
DHCP: more than IP addresses
DHCP can return more than just allocated IP
address on subnet:
address of first-hop router for client
name and IP address of DNS sever
network mask (indicating network versus host portion
of address)