Net Lec7
Net Lec7
Net Lec7
IP
Addressing
ICMP
Overview
IP Addressing
Introduction
Hierarchical Addressing
IP Address Format
IP Address Component Field
Requesting an IP Address
IP Address Class
IP Address Bit Pattern
Network Address
Broadcast Address
Private Address
ICMP (Internet Control Message
Protocol)
Introduction
127 does start with a 0 bit, but has been reserved for special purposes
Hosts for Classes of IP Address
• Every network that uses a Class A IP address
can have assigned up to 2 to-the-power of 24
(224) (minus 2), or 16,777,214, possible IP
addresses to devices that are attached to its
network
Example
• In a Class A network, 113.0.0.0 is the network address
containing the host 113.1.2.3
Example
• In a Class B network, 176.10.255.255 would be the
broadcast address to reach all the host on the network
176.10.0.0 (since 255 is the decimal value of an octet
containing 11111111)
Example
• Banks may use TCP/IP to connect to Automatic Teller
Machines (ATMs). These machines do no connect to the
public network, so private addresses are ideal for them
processing.
ICMP messages are carried in IP datagram
Example
Destination Unreachable
Router sends this message to the source if it is unable
to deliver a packet to the final destination
Echo Reply
128 191
10000000 10111111
First three
Last three
11100010
Class B
142.226.0.0
Yes
254
16382
65534
Four Eight
Problems
No
Yes
No
Yes
No
No
No