SlideShare a Scribd company logo
21.1
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:
21.3
Figure 21.1 ARP operation
21.4
Figure 21.2 ARP packet
21.5
Figure 21.3 Encapsulation of ARP packet
21.6
Figure 21.4 Four cases using ARP
21.7
An ARP request is broadcast;
an ARP reply is unicast.
Note
21.8
A host with IP address 130.23.43.20 and physical address
B2:34:55:10:22:10 has a packet to send to another host
with IP address 130.23.43.25 and physical address
A4:6E:F4:59:83:AB. The two hosts are on the same
Ethernet network. Show the ARP request and reply
packets encapsulated in Ethernet frames.
Solution
Figure 21.5 shows the ARP request and reply packets.
Note that the ARP data field in this case is 28 bytes, and
that the individual addresses do not fit in the 4-byte
boundary. That is why we do not show the regular 4-byte
boundaries for these addresses.
Example 21.1
21.9
Figure 21.5 Example 21.1, an ARP request and reply
Mapping Physical to Logical Address:
RARP
BOOTP
DHCP
21.10
21.11
Figure 21.7 BOOTP client and server on the same and different networks
21.12
DHCP provides static and dynamic
address allocation that can be
manual or automatic.
Note
Control Protocol
◼ IP provides unreliable and connectionless datagram
delivery
◼ What problem can arise which can go unattended?
◼ cannot find a router to the final destination
◼ time-to-live expired?
◼ What if the final destination host must discard all
fragments of a data gram?
21.13
21.14
21-2 ICMP
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.
Types of Messages
Message Format
Error Reporting and Query
Debugging Tools
Topics discussed in this section:
Types of Messages
◼ The error-reporting messages report problems that a
router or a host (destination) may encounter when it
processes an IP packet.
◼ The query messages, which occur in pairs, help a host
or a network manager get specific information from a
router or another host
21.15
21.16
Figure 21.8 General format of ICMP messages
8-byte header and a variable-size data section. Although the general
format of the header is different for each message type, the first 4
bytes are common to all.
The data section in error messages carries information for finding
the original packet that had the error. In query messages, the data
section carries extra information based on the type of the query.
21.17
ICMP always reports error messages to
the original source.
Note
21.18
Figure 21.9 Error-reporting messages
21.19
Important points about ICMP error messages:
❏ No ICMP error message will be generated in
response to a datagram carrying an ICMP error
message.
❏ No ICMP error message will be generated for a
fragmented datagram that is not the first fragment.
❏ No ICMP error message will be generated for a
datagram having a multicast address.
❏ No ICMP error message will be generated for a
datagram having a special address such as
127.0.0.0 or 0.0.0.0.
Note
Destination unreachable
◼ When a router cannot route a datagram
◼ Host cannot deliver a datagram
◼ Discard and inform
◼ Can be created by either a router or the
destination host
21.20
Source Quench
◼ IP is connectionless
◼ Lack of flow control
◼ Gives rise to congestion
◼ It informs the source that the datagram has been
discarded.
◼ It warns the source that there is congestion somewhere
in the path and that the source should slow down
(quench) the sending process
21.21
Time Exceeded
◼ Two cases:
◼ TTL expired
◼ Not all fragments arrived at host in time
of same massage
21.22
21.23
Figure 21.11 Redirection concept
21.24
Figure 21.12 Query messages
21.25
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.
Group Management
IGMP Messages and IGMP Operation
Encapsulation
Netstat Utility
Topics discussed in this section:
21.26
Figure 21.16 IGMP message types
21.27
Figure 21.17 IGMP message format
21.28
Table 21.1 IGMP type field
21.29
Figure 21.18 IGMP operation
21.30
In IGMP, a membership report is sent
twice, one after the other.
Note
21.31
The general query message does not
define a particular group.
Note

More Related Content

PPT
Computer Networks Week-11-12- ICMP-IGMP-Network Layer.ppt
DOCX
ICMP-IGMP protocols of Network Layer for ipv4
PPT
21 Network Layer_Address_Mapping_Error_Reporting_and_Multicasting
PPT
Chapter 21
PPT
mapping address.ppt
PPTX
Address Mapping includes ARP, RARP, ICMP
PPTX
Computer Networks Week-11-12- ICMP-IGMP-Network Layer.ppt
ICMP-IGMP protocols of Network Layer for ipv4
21 Network Layer_Address_Mapping_Error_Reporting_and_Multicasting
Chapter 21
mapping address.ppt
Address Mapping includes ARP, RARP, ICMP

Similar to Module 4 part 2.pdf this is computer networs module for cse students for study (20)

PPT
PPT
It 3-icmp-igmp
PPT
4c Address Mapping, Error Reporting and Multicasting
PPT
5. icmp
PPT
ICMP.ppt
PPTX
icmp , igmp
PPTX
Ch 19 Network-layer protocols - section 2
PPT
ARP DHCP ICMP Protocols for computer network
PPT
(Icmp) internet control message protocol version 4
PPTX
Et3003 sem2-1314-8 network layers v (icmpv4)
PPT
Transport Layer
PPT
Tcp Udp Icmp And The Transport Layer
PPT
New Creators
PPTX
05 coms 525 tcpip - icmp
PPT
Nnnnnn
PDF
IP has no mechanism for error reporting or error-correcting. ICMPv4 .pdf
PPT
Lecture 5 internet-protocol_assignments
PPTX
Network Layer Part 6
It 3-icmp-igmp
4c Address Mapping, Error Reporting and Multicasting
5. icmp
ICMP.ppt
icmp , igmp
Ch 19 Network-layer protocols - section 2
ARP DHCP ICMP Protocols for computer network
(Icmp) internet control message protocol version 4
Et3003 sem2-1314-8 network layers v (icmpv4)
Transport Layer
Tcp Udp Icmp And The Transport Layer
New Creators
05 coms 525 tcpip - icmp
Nnnnnn
IP has no mechanism for error reporting or error-correcting. ICMPv4 .pdf
Lecture 5 internet-protocol_assignments
Network Layer Part 6
Ad

Recently uploaded (20)

PDF
Insitu conservation seminar , national park ,enthobotanical significance
PPTX
structure and components of Environment.pptx
PDF
Urban Hub 50: Spirits of Place - & the Souls' of Places
PPTX
Biodiversity.udfnfndrijfreniufrnsiufnriufrenfuiernfuire
DOCX
Epoxy Coated Steel Bolted Tanks for Farm Digesters Supports On-Farm Organic W...
PPTX
Plant_Cell_Presentation.pptx.com learning purpose
PDF
Effects of rice-husk biochar and aluminum sulfate application on rice grain q...
PPTX
ser tico.pptxXYDTRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRY
DOCX
D-360 ESG Series: Sustainable Hospitality Strategies for a Greener Future
PPTX
Conformity-and-Deviance module 7 ucsp grade 12
PPTX
Environmental Ethics: issues and possible solutions
PPTX
Green Modern Sustainable Living Nature Presentation_20250226_230231_0000.pptx
DOCX
Epoxy Coated Steel Bolted Tanks for Dairy Farm Water Ensures Clean Water for ...
DOCX
Epoxy Coated Steel Bolted Tanks for Leachate Storage Securely Contain Landfil...
PDF
Lecture 2 investigation of renal diseses.pdf
PPTX
sustainable-development in tech-ppt[1].pptx
PDF
Tree Biomechanics, a concise presentation
PPTX
NOISE-MITIGATION.-pptxnaksnsbaksjvdksbsksk
PDF
Effective factors on adoption of intercropping and it’s role on development o...
PDF
Blue Economy Development Framework for Indonesias Economic Transformation.pdf
Insitu conservation seminar , national park ,enthobotanical significance
structure and components of Environment.pptx
Urban Hub 50: Spirits of Place - & the Souls' of Places
Biodiversity.udfnfndrijfreniufrnsiufnriufrenfuiernfuire
Epoxy Coated Steel Bolted Tanks for Farm Digesters Supports On-Farm Organic W...
Plant_Cell_Presentation.pptx.com learning purpose
Effects of rice-husk biochar and aluminum sulfate application on rice grain q...
ser tico.pptxXYDTRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRY
D-360 ESG Series: Sustainable Hospitality Strategies for a Greener Future
Conformity-and-Deviance module 7 ucsp grade 12
Environmental Ethics: issues and possible solutions
Green Modern Sustainable Living Nature Presentation_20250226_230231_0000.pptx
Epoxy Coated Steel Bolted Tanks for Dairy Farm Water Ensures Clean Water for ...
Epoxy Coated Steel Bolted Tanks for Leachate Storage Securely Contain Landfil...
Lecture 2 investigation of renal diseses.pdf
sustainable-development in tech-ppt[1].pptx
Tree Biomechanics, a concise presentation
NOISE-MITIGATION.-pptxnaksnsbaksjvdksbsksk
Effective factors on adoption of intercropping and it’s role on development o...
Blue Economy Development Framework for Indonesias Economic Transformation.pdf
Ad

Module 4 part 2.pdf this is computer networs module for cse students for study

  • 1. 21.1 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:
  • 6. 21.6 Figure 21.4 Four cases using ARP
  • 7. 21.7 An ARP request is broadcast; an ARP reply is unicast. Note
  • 8. 21.8 A host with IP address 130.23.43.20 and physical address B2:34:55:10:22:10 has a packet to send to another host with IP address 130.23.43.25 and physical address A4:6E:F4:59:83:AB. The two hosts are on the same Ethernet network. Show the ARP request and reply packets encapsulated in Ethernet frames. Solution Figure 21.5 shows the ARP request and reply packets. Note that the ARP data field in this case is 28 bytes, and that the individual addresses do not fit in the 4-byte boundary. That is why we do not show the regular 4-byte boundaries for these addresses. Example 21.1
  • 9. 21.9 Figure 21.5 Example 21.1, an ARP request and reply
  • 10. Mapping Physical to Logical Address: RARP BOOTP DHCP 21.10
  • 11. 21.11 Figure 21.7 BOOTP client and server on the same and different networks
  • 12. 21.12 DHCP provides static and dynamic address allocation that can be manual or automatic. Note
  • 13. Control Protocol ◼ IP provides unreliable and connectionless datagram delivery ◼ What problem can arise which can go unattended? ◼ cannot find a router to the final destination ◼ time-to-live expired? ◼ What if the final destination host must discard all fragments of a data gram? 21.13
  • 14. 21.14 21-2 ICMP 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. Types of Messages Message Format Error Reporting and Query Debugging Tools Topics discussed in this section:
  • 15. Types of Messages ◼ The error-reporting messages report problems that a router or a host (destination) may encounter when it processes an IP packet. ◼ The query messages, which occur in pairs, help a host or a network manager get specific information from a router or another host 21.15
  • 16. 21.16 Figure 21.8 General format of ICMP messages 8-byte header and a variable-size data section. Although the general format of the header is different for each message type, the first 4 bytes are common to all. The data section in error messages carries information for finding the original packet that had the error. In query messages, the data section carries extra information based on the type of the query.
  • 17. 21.17 ICMP always reports error messages to the original source. Note
  • 19. 21.19 Important points about ICMP error messages: ❏ No ICMP error message will be generated in response to a datagram carrying an ICMP error message. ❏ No ICMP error message will be generated for a fragmented datagram that is not the first fragment. ❏ No ICMP error message will be generated for a datagram having a multicast address. ❏ No ICMP error message will be generated for a datagram having a special address such as 127.0.0.0 or 0.0.0.0. Note
  • 20. Destination unreachable ◼ When a router cannot route a datagram ◼ Host cannot deliver a datagram ◼ Discard and inform ◼ Can be created by either a router or the destination host 21.20
  • 21. Source Quench ◼ IP is connectionless ◼ Lack of flow control ◼ Gives rise to congestion ◼ It informs the source that the datagram has been discarded. ◼ It warns the source that there is congestion somewhere in the path and that the source should slow down (quench) the sending process 21.21
  • 22. Time Exceeded ◼ Two cases: ◼ TTL expired ◼ Not all fragments arrived at host in time of same massage 21.22
  • 25. 21.25 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. Group Management IGMP Messages and IGMP Operation Encapsulation Netstat Utility Topics discussed in this section:
  • 26. 21.26 Figure 21.16 IGMP message types
  • 27. 21.27 Figure 21.17 IGMP message format
  • 28. 21.28 Table 21.1 IGMP type field
  • 30. 21.30 In IGMP, a membership report is sent twice, one after the other. Note
  • 31. 21.31 The general query message does not define a particular group. Note