Nothing Special   »   [go: up one dir, main page]

Icps

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

Source: https://slideplayer.

com/slide/3428428/
 ICMP
 ARP
 RARP
 DHCP

Source: https://slideplayer.com/slide/3428428/
 The IP (Internet Protocol) relies on several
other protocols to perform necessary control
and routing functions:

 Control functions (ICMP)


 Multicast signaling (IGMP)

Source: https://slideplayer.com/slide/3428428/
 The Internet Control Message Protocol (ICMP)
is a helper protocol that supports IP with
facility for
◦ Error reporting
◦ Simple queries

 ICMP messages are encapsulated as IP datagrams:

IP header ICMP message

IP payload

Source: https://slideplayer.com/slide/3428428/
ICMP query:
 Request sent by host to a router or host
 Reply sent back to querying host

Source: https://slideplayer.com/slide/3428428/
Type/Code: Description

8/0 Echo Request The ping command


uses Echo Request/
0/0 Echo Reply Echo Reply

Source: https://slideplayer.com/slide/3428428/
 Ping’s are handled directly by the kernel
 Each Ping is translated into an ICMP Echo
Request
 The Ping’ed host responds with an ICMP Echo
Reply

Host Host
or or
Router router

Source: https://slideplayer.com/slide/3428428/
 ICMP error messages report error conditions
 Typically sent when a datagram is discarded
 Error message is often passed from ICMP to
the application program
Source: https://slideplayer.com/slide/3428428/
 RFC 792: If, in the destination host, the IP module cannot deliver the 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.
 Scenario:

No process
is waiting
at port 80
Client Server

Source: https://slideplayer.com/slide/3428428/
TCP UDP Transport
Layer

ICMP IP IGMP Network


Layer

Network
ARP Access
RARP Link Layer

Media

Source: https://slideplayer.com/slide/3428428/
 Note:
◦ The Internet is based on IP addresses
◦ Data link protocols (Ethernet, FDDI, ATM) may have
different (MAC) addresses
 The ARP and RARP protocols perform the
translation between IP addresses and MAC layer
addresses

ARP Ethernet MAC


IP address
address
(32 bit)
(48 bit)
RARP

Source: https://slideplayer.com/slide/3428428/
ARP Request:
Argon broadcasts an ARP request to all
stations on the network: “What is the
hardware address of Router137?”
Argon Router137
128.143.137.144 128.143.137.1
00:a0:24:71:e4:44 00:e0:f9:23:a8:20

ARP Request:
What is the MAC address
of 128.143.71.1?

Source: https://slideplayer.com/slide/3428428/
ARP Reply:
Router 137 responds with an ARP Reply which
contains the hardware address
Argon Router137
128.143.137.144 128.143.137.1
00:a0:24:71:e4:44 00:e0:f9:23:a8:20

ARP Reply:
The MAC address of 128.143.71.1
is 00:e0:f9:23:a8:20

Source: https://slideplayer.com/slide/3428428/
 Dynamic assignment of IP addresses is
desirable for several reasons:
◦ IP addresses are assigned on-demand
◦ Avoid manual IP configuration
◦ Support mobility of laptops

 Three Protocols:
◦ RARP (until 1985, no longer used)
◦ BOOTP (1985-1993)
◦ DHCP (since 1993)
 Only DHCP is widely used today.

Source: https://slideplayer.com/slide/3428428/
 Dynamic Host Configuration Protocol (DHCP)
◦ Designed in 1993
◦ An extension of BOOTP (Many similarities to BOOTP)
◦ Same port numbers as BOOTP
◦ Extensions:
 Supports temporary allocation (“leases”) of IP
addresses
 DHCP client can acquire all IP configuration parameters

◦ DHCP is the preferred mechanism for dynamic


assignment of IP addresses
◦ DHCP can interoperate with BOOTP clients.

Source: https://slideplayer.com/slide/3428428/
Argon
128.143.137.144
00:a0:24:71:e4:44 DHCP Server
DHCP Response:
IP address: 128.143.137.144
Default gateway: 128.143.137.1
Netmask: 255.255.0.0

Source: https://slideplayer.com/slide/3428428/
DHCP Client
00:a0:24:71:e4:44 DHCP Server

DHCPDISCOVER

DCHP DISCOVER
Sent to 255.255.255.255

DHCP Server

DHCP Client
00:a0:24:71:e4:44 DHCPOFFER DHCP Server

DCHP OFFER
DHCPOFFER

DHCP Server

Source: https://slideplayer.com/slide/3428428/
DHCP Client
00:a0:24:71:e4:44 DHCP Server
DHCPREQUEST

 DCHP REQUEST DHCPACK

At this time, the DHCP DHCP Server

client can start to use


the IP address DHCP Client
00:a0:24:71:e4:44 DHCP Server
DHCPREQUEST

DHCPACK
 Renewing a Lease
(sent when 50% of lease
has expired)
DHCP Server
If DHCP server sends
DHCPNACK, then
address is released.
Source: https://slideplayer.com/slide/3428428/
DHCP Client
00:a0:24:71:e4:44 DHCP Server

 DCHP RELEASE DHCPRELEASE

At this time, the DHCP


client has released the IP
address DHCP Server

Source: https://slideplayer.com/slide/3428428/
IGMP is a protocol that manages group
membership. The IGMP protocol gives the
multicast routers information about the
membership status of hosts (routers) connected
to the network.

Source: https://slideplayer.com/slide/3428428/
A multicast router connected to a network has a
list of multicast addresses of the groups with at
least one loyal member in that network. For
each group, there is one router that has the duty
of distributing the multicast packets destined
for that group.

Source: https://slideplayer.com/slide/3428428/

You might also like