SlideShare a Scribd company logo
21.1
Chapter 21
Network Layer:
Address Mapping,
Error Reporting,
and Multicasting
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
21.2
21-1 ADDRESS MAPPING
The delivery of a packet to a host or a router requires
two levels of addressing: logical and physical. We need
to be able to map a logical address to its corresponding
physical address and vice versa. This can be done by
using either static or dynamic mapping.
Mapping Logical to Physical Address
Mapping Physical to Logical Address
Topics discussed in this section:
McGraw-Hill ©TheMcGraw-HillCompanies,Inc., 2000
Address Resolution
Protocol (ARP)
 ARP (Address Resolution Protocol) is a network protocol used
to find out the hardware (MAC) address of a device from an
IP address.
 It is used when a device wants to communicate with some
other device on a local network (for example on an Ethernet
network that requires physical addresses to be known before
sending packets).
 The sending device uses ARP to translate IP addresses to
MAC addresses.
 The device sends an ARP request message containing the IP
address of the receiving device.
 All devices on a local network segment see the message, but
only the device that has that IP address responds with the
ARP reply message containing its MAC address.
 The sending device now has enough information to send the
packet to the receiving device.
 ARP request packets are sent to the broadcast addresses
(FF:FF:FF:FF:FF:FF for the Ethernet broadcasts and
255.255.255.255 for the IP broadcast).
ARP broadcast explained:
 Let's say that Host A wants to communicate with host B.
 Host A knows the IP address of host B, but it doesn't know
the host B's MAC address.
 In order to find out the MAC address of host B, host A sends
an ARP request, listing the host B's IP address as the
destination IP address and the MAC address of
FF:FF:FF:FF:FF:FF (Ethernet broadcast).
 Switch will forward the frame out all interfaces (except the
incoming interface).
 Each device on the segment will receive the packet, but
because the destination IP address is host B's IP address,
only host B will reply with the ARP reply packet, listing its
MAC address.
 Host A now has enough information to send the traffic to host
B.
21.7
Figure 21.1 ARP operation
Mapping Physical to Logical Address:
RARP, BOOTP, and DHCP
 There are occasions in which a host knows its physical address, but needs
to know its logical address. This may happen in two cases:
 1. A diskless station is just booted. The station can find its physical address
by checking its interface, but it does not know its IP address.
 2. An organization does not have enough IP addresses to assign to each
station; it needs to assign IP addresses on demand. The station can send
its physical address and ask for a short time lease.
21.8
 RARP
 Reverse Address Resolution Protocol (RARP) finds the logical address for a
machine that knows only its physical address.
 The machine can get its physical address (by reading its NIC, for example),
which is unique locally. It can then use the physical address to get the
logical address by using the RARP protocol. A RARP request is created and
broadcast on the local network. Another machine on the local network that
knows all the IP addresses will respond with a RARP reply. The requesting
machine must be running a RARP client program; the responding machine
must be running a RARP server program.
 BOOTP
 The Bootstrap Protocol (BOOTP) is a client/server protocol designed to
provide physical address to logical address mapping
21.9
 DHCP
 BOOTP is not a dynamic configuration protocol. When a client requests its
IP address, the BOOTP server consults a table that matches the physical
address of the client with its IP address. This implies that the binding
between the physical address and the IP address of the client already
exists. The binding is predetermined. However, what if a host moves from
one physical network to another? What if a host wants a temporary IP
address? BOOTP cannot handle these situations because the binding
between the physical and IP addresses is static and fixed in a table until
changed by the administrator. BOOTP is a static configuration protocol. The
Dynamic Host Configuration Protocol (DHCP) has been devised to provide
static and dynamic address allocation that can be manual or automatic.
 Dynamic Address Allocation DHCP has a second database with a pool of
available IP addresses. This second database makes DHCP dynamic. When
a DHCP client requests a temporary IP address, the DHCP server goes to
the pool of available (unused) IP addresses and assigns an IP address for a
negotiable period of time.
21.10
21.11
An ARP request is broadcast;
an ARP reply is unicast.
Note
21.12
DHCP provides static and dynamic
address allocation that can be
manual or automatic.
Note
21.13
21-2 ICMP
The IP protocol has no error-reporting or error-correcting
mechanism. What happens if something goes wrong? What
happens if a router must discard a datagram because it cannot
find a router to the final destination?
These are examples of situations where an error has occurred
and the IP protocol has no built-in mechanism to notify the
original host. The IP protocol has no error-reporting or error-
correcting mechanism. The IP protocol also lacks a mechanism
for host and management queries. The Internet Control
Message Protocol (ICMP) has been designed to compensate for
the above two deficiencies. It is a companion to the IP protocol.
21.14
ICMP always reports error messages to
the original source.
Note
21.15
21-3 IGMP
The IP protocol can be involved in two types of
communication: unicasting and multicasting. The
Internet Group Management Protocol (IGMP) is one
of the necessary, but not sufficient, protocols that is
involved in multicasting. IGMP is a companion to the
IP protocol.

More Related Content

PPT
Address resolution protocol and internet control message protocol
PDF
Arp config-arp
PPT
Nnnnnn
PPTX
Computer networks protocols
PPT
Arp and rarp
PPTX
Address resolution protocol (ARP)
PDF
Communication networks_ARP
Address resolution protocol and internet control message protocol
Arp config-arp
Nnnnnn
Computer networks protocols
Arp and rarp
Address resolution protocol (ARP)
Communication networks_ARP

What's hot (20)

PPTX
Arp and rarp
PPT
Address Resolution Protocol
PPTX
PPT
Bootp and dhcp
PPTX
Arp (address resolution protocol)
PPT
Address resolution protocol
PPTX
Presentation on arp protocol
PDF
RARP, BOOTP, DHCP and PXE Protocols
PPT
Internet control message protocol
PPT
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
PDF
Bgp attribute-case study
PPTX
PPTX
Network layer Part 5
PPTX
Arp (address resolution protocol)
PPT
PPT
Arp and rarp
PPTX
Static NAT
PPT
4c Address Mapping, Error Reporting and Multicasting
Arp and rarp
Address Resolution Protocol
Bootp and dhcp
Arp (address resolution protocol)
Address resolution protocol
Presentation on arp protocol
RARP, BOOTP, DHCP and PXE Protocols
Internet control message protocol
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
Bgp attribute-case study
Network layer Part 5
Arp (address resolution protocol)
Arp and rarp
Static NAT
4c Address Mapping, Error Reporting and Multicasting
Ad

Similar to Ch21 network layer final (20)

PPT
Addressing mapping protocol_ARPandRARP.ppt
PPT
Computer Networks Week-11-12- ICMP-IGMP-Network Layer.ppt
PPTX
DHCP basics
PDF
Web technology and commerce unit 1
PPT
ARP DHCP ICMP Protocols for computer network
PDF
Lecture 5.address mapping on data communication pdf
PPTX
PPT
mapping address.ppt
PDF
Networking.pdf
PPTX
ARP,RARP,DHCP,ICMP NETWORKING PROTOCOLS INTERNET
PPT
Tcp ip protocol
PPT
Ccna1v3 mod09
PPTX
Networking with tcp ip Proficiency.pptx
PPTX
Cours de réseau internet sur les protocoles et technologies réseaux arp
PPTX
Support-Protocols ARP, RARP tcp tcmp .pptx
PDF
Device replacement in eip with lldp
PPT
Ccna1v3 Mod09
PPT
Basic networking course
PDF
DHCP (dynamic host configuration protocol)
PPT
I Pv6 Nd
Addressing mapping protocol_ARPandRARP.ppt
Computer Networks Week-11-12- ICMP-IGMP-Network Layer.ppt
DHCP basics
Web technology and commerce unit 1
ARP DHCP ICMP Protocols for computer network
Lecture 5.address mapping on data communication pdf
mapping address.ppt
Networking.pdf
ARP,RARP,DHCP,ICMP NETWORKING PROTOCOLS INTERNET
Tcp ip protocol
Ccna1v3 mod09
Networking with tcp ip Proficiency.pptx
Cours de réseau internet sur les protocoles et technologies réseaux arp
Support-Protocols ARP, RARP tcp tcmp .pptx
Device replacement in eip with lldp
Ccna1v3 Mod09
Basic networking course
DHCP (dynamic host configuration protocol)
I Pv6 Nd
Ad

Recently uploaded (20)

PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
Testing WebRTC applications at scale.pdf
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
presentation_pfe-universite-molay-seltan.pptx
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PDF
Paper PDF World Game (s) Great Redesign.pdf
PPTX
Internet___Basics___Styled_ presentation
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
E -tech empowerment technologies PowerPoint
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
international classification of diseases ICD-10 review PPT.pptx
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Testing WebRTC applications at scale.pdf
Unit-1 introduction to cyber security discuss about how to secure a system
presentation_pfe-universite-molay-seltan.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
Paper PDF World Game (s) Great Redesign.pdf
Internet___Basics___Styled_ presentation
Design_with_Watersergyerge45hrbgre4top (1).ppt
Introuction about WHO-FIC in ICD-10.pptx
Introuction about ICD -10 and ICD-11 PPT.pptx
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PptxGenJS_Demo_Chart_20250317130215833.pptx
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Slides PDF The World Game (s) Eco Economic Epochs.pdf
E -tech empowerment technologies PowerPoint
introduction about ICD -10 & ICD-11 ppt.pptx

Ch21 network layer final

  • 1. 21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
  • 2. 21.2 21-1 ADDRESS MAPPING The delivery of a packet to a host or a router requires two levels of addressing: logical and physical. We need to be able to map a logical address to its corresponding physical address and vice versa. This can be done by using either static or dynamic mapping. Mapping Logical to Physical Address Mapping Physical to Logical Address Topics discussed in this section:
  • 4.  ARP (Address Resolution Protocol) is a network protocol used to find out the hardware (MAC) address of a device from an IP address.  It is used when a device wants to communicate with some other device on a local network (for example on an Ethernet network that requires physical addresses to be known before sending packets).  The sending device uses ARP to translate IP addresses to MAC addresses.  The device sends an ARP request message containing the IP address of the receiving device.  All devices on a local network segment see the message, but only the device that has that IP address responds with the ARP reply message containing its MAC address.  The sending device now has enough information to send the packet to the receiving device.  ARP request packets are sent to the broadcast addresses (FF:FF:FF:FF:FF:FF for the Ethernet broadcasts and 255.255.255.255 for the IP broadcast).
  • 6.  Let's say that Host A wants to communicate with host B.  Host A knows the IP address of host B, but it doesn't know the host B's MAC address.  In order to find out the MAC address of host B, host A sends an ARP request, listing the host B's IP address as the destination IP address and the MAC address of FF:FF:FF:FF:FF:FF (Ethernet broadcast).  Switch will forward the frame out all interfaces (except the incoming interface).  Each device on the segment will receive the packet, but because the destination IP address is host B's IP address, only host B will reply with the ARP reply packet, listing its MAC address.  Host A now has enough information to send the traffic to host B.
  • 8. Mapping Physical to Logical Address: RARP, BOOTP, and DHCP  There are occasions in which a host knows its physical address, but needs to know its logical address. This may happen in two cases:  1. A diskless station is just booted. The station can find its physical address by checking its interface, but it does not know its IP address.  2. An organization does not have enough IP addresses to assign to each station; it needs to assign IP addresses on demand. The station can send its physical address and ask for a short time lease. 21.8
  • 9.  RARP  Reverse Address Resolution Protocol (RARP) finds the logical address for a machine that knows only its physical address.  The machine can get its physical address (by reading its NIC, for example), which is unique locally. It can then use the physical address to get the logical address by using the RARP protocol. A RARP request is created and broadcast on the local network. Another machine on the local network that knows all the IP addresses will respond with a RARP reply. The requesting machine must be running a RARP client program; the responding machine must be running a RARP server program.  BOOTP  The Bootstrap Protocol (BOOTP) is a client/server protocol designed to provide physical address to logical address mapping 21.9
  • 10.  DHCP  BOOTP is not a dynamic configuration protocol. When a client requests its IP address, the BOOTP server consults a table that matches the physical address of the client with its IP address. This implies that the binding between the physical address and the IP address of the client already exists. The binding is predetermined. However, what if a host moves from one physical network to another? What if a host wants a temporary IP address? BOOTP cannot handle these situations because the binding between the physical and IP addresses is static and fixed in a table until changed by the administrator. BOOTP is a static configuration protocol. The Dynamic Host Configuration Protocol (DHCP) has been devised to provide static and dynamic address allocation that can be manual or automatic.  Dynamic Address Allocation DHCP has a second database with a pool of available IP addresses. This second database makes DHCP dynamic. When a DHCP client requests a temporary IP address, the DHCP server goes to the pool of available (unused) IP addresses and assigns an IP address for a negotiable period of time. 21.10
  • 11. 21.11 An ARP request is broadcast; an ARP reply is unicast. Note
  • 12. 21.12 DHCP provides static and dynamic address allocation that can be manual or automatic. Note
  • 13. 21.13 21-2 ICMP The IP protocol has no error-reporting or error-correcting mechanism. What happens if something goes wrong? What happens if a router must discard a datagram because it cannot find a router to the final destination? These are examples of situations where an error has occurred and the IP protocol has no built-in mechanism to notify the original host. The IP protocol has no error-reporting or error- correcting mechanism. The IP protocol also lacks a mechanism for host and management queries. The Internet Control Message Protocol (ICMP) has been designed to compensate for the above two deficiencies. It is a companion to the IP protocol.
  • 14. 21.14 ICMP always reports error messages to the original source. Note
  • 15. 21.15 21-3 IGMP The IP protocol can be involved in two types of communication: unicasting and multicasting. The Internet Group Management Protocol (IGMP) is one of the necessary, but not sufficient, protocols that is involved in multicasting. IGMP is a companion to the IP protocol.