Download presentation
Presentation is loading. Please wait.
Published byMillicent Warner Modified over 9 years ago
1
IP Addressing
2
● IPv4 addresses… ■ Uniquely identify an interface ■ 32 bits long ■ Consist of a network identifier and a host identifier ● Routing outside of the destination host’s subnet is usually based on the network identifier, while the host identifier is only used within the destination’s subnet ● IPv6 uses 128-bit addresses Network IdentifierHost Identifier 031
3
Five Classes of IP Addresses ● IP addressing was originally based on five classes of addresses ■ A router can interpret the network and host fields by examining the first few bits of the IP address Class B 10netidhostid Class C 110hostidnetid Class D 1110multicast address Class E 1111reserved for future use Class A 0netid 012348162431 hostid
4
The address space is divided into five classes: A, B, C, D and E. Finding the classes in binary and dotted-decimal notation From Figure 19.2 of Data Communications and Networking by Forouzan, 4th Classful Addressing
5
CIDR ● Classless Inter-Domain Routing (CIDR) was introduced to remedy problems with the rigid classes of IP addresses ■ Defined in RFCs 1517-1520 ● Allows a flexible definition of the boundary between the network identifier and the host identifier ● Example ■ IP address:10.1.9.52 ■ Subnet mask:255.255.252.0(22-bit network identifier) ■ Network:10.1.8.0/22 ■ Packets with address in the range 10.1.8.0-10.1.11.255 will be routed to network 10.1.8.0/22 based on the first 22 bits
6
A Problem With IP Addressing ● An IP address serves two different functions… ■ The name for an interface (host) and ■ The location (subnet) of the interface (host) in the network ● The IP address is the only “name” carried in an IP datagram ■ DNS can be used to map one or more symbolic names to one or more IP addresses, but a symbolic name is not carried in the datagram and has no meaning once the DNS lookup is completed ● The network identifier in the IP address is used by routers to deliver to the destination subnet ■ The IP address is associated with the location or subnet of the destination host
7
IP Routing ● Router uses routing table to direct packets to the appropriate interface a b c 3.0.0.23.0.0.33.0.0.4 4.0.0.54.0.0.6 Router Dest = 3.0.0.4 TargetInterface 2.0.0.0/24 a 3.0.0.0/24 b 4.0.0.0/24 c
8
Traditional Routing for a Mobile Host ● Host moving to another network is unreachable a b c 3.0.0.23.0.0.33.0.0.4 4.0.0.54.0.0.6 Router Dest = 3.0.0.4 3.0.0.4 X Mobile Host TargetInterface 2.0.0.0/24 a 3.0.0.0/24 b 4.0.0.0/24 c
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.