Lecture 4 - IP Addressing
Lecture 4 - IP Addressing
Principles of Networking
IP Addressing
1
IP Address
An Internet Protocol address is a numerical label
assigned to each device connected to a computer
network that uses the Internet Protocol for
communication.
An IP address serves two main functions:
host or network interface identification
location addressing
IPv4 Address
IPv6 Address
2
Base 2 Number System
101102 = (1 x 24 = 16) + (0 x 23 = 0) + (1 x 22 = 4) +
(1 x 21 = 2) + (0 x 20 = 0) = 22
3
Converting Decimal to
Binary
Convert 20110 to binary:
201 / 2 = 100 remainder 1
100 / 2 = 50 remainder 0
50 / 2 = 25 remainder 0
25 / 2 = 12 remainder 1
12 / 2 = 6 remainder 0
6 / 2 = 3 remainder 0
3 / 2 = 1 remainder 1
1 / 2 = 0 remainder 1
When the quotient is 0, take all the remainders in
reverse order for your answer: 20110 = 110010012
4
IPv4 Address Structure
An IPv4 address is a 32-bit hierarchical address that is
made up of a network portion and a host portion
Subnet Mask
Assigning an IPv4 address to a host requires:
IPv4 address - unique IPv4 address of the host
Subnet mask- used to identify the network/host
portion of the IPv4 address
Finding the Network Address with
ANDing
By ANDing the Host address of 192.168.10.2 with 255.255.255.0
(its network mask) we obtain the network address of
192.168.10.0
7
Network and Host Addressing
Using the IP address of the
destination network, a router
can deliver a packet to the
correct network.
9
Identifying Address Classes
10
Address Class Prefixes
To accommodate different size networks and aid in
classifying these networks, IP addresses are divided into
groups called classes. This is classful addressing.
11
Network and Host Division
Each complete 32-bit IP address is broken down into a
network part and a host part. A bit or bit sequence at the
start of each address determines the class of the address.
There are 5 IP address classes.
12
Class A Addresses
The Class A address was designed to support extremely
large networks, with more than 16 million host
addresses available.
Use only the first octet to indicate the network address
The remaining three octets provide for host addresses
13
Class B Addresses
The Class B address was designed to support the needs
of moderate to large-sized networks. A Class B IP
address uses the first two of the four octets to indicate
the network address. The other two octets specify host
addresses.
14
Class C Addresses
The Class C address space is the most commonly used
of the original address classes. This address space was
intended to support small networks with a maximum of
254 hosts.
15
Class D Addresses
The Class D address class was created to enable
multicasting in an IP address. A multicast address is a
unique network address that directs packets with that
destination address to predefined groups of IP addresses.
Therefore, a single station can simultaneously transmit a
single stream of data to multiple recipients.
16
Class E Addresses
A Class E address has been defined. However, the
Internet Engineering Task Force (IETF) reserves these
addresses for its own research. Therefore, no Class E
addresses have been released for use in the Internet.
17
IP Address Ranges
The graphic below shows the IP address range of the first
octet both in decimal and binary for each IP address
class.
18
IPv4
As early as 1992, the Internet Engineering
Task Force (IETF) identified two specific
concerns: Exhaustion of the remaining,
unassigned IPv4 network addresses and
the increase in the size of Internet routing
tables.
19
Network and Broadcast
Addresses
Within each network are three types of IP
addresses:
Network address
It represents a specific network
Host addresses
Host addresses are addresses that can be assigned to a device such as
a host computer, laptop, smart phone, router, etc
Broadcast address
A broadcast address is an address that is used when it is required to
reach all devices on the IPv4 network
Network Address
21
Broadcast Address
22
Network and Broadcast
Addresses
An IP address that has binary 0s in all host bit
positions is reserved for the network address, which
identifies the network.
An IP address that has binary 1s in all host bit
positions is reserved for the broadcast address,
which is used to send data to all hosts on the network.
A 100.0.0.0 100.255.255.255
B 150.75.0.0 150.75.255.255
C 200.100.50.0 200.100.50.255
23
Public IP Addresses
Unique addresses are required for each device on a
network.
24
Private IP Addresses
Private IP addresses are another solution to the problem
of the impending exhaustion of public IP addresses.
As mentioned, public networks require hosts to have unique
IP addresses.
However, private networks that are not connected to the
Internet may use any host addresses, as long as each host
within the private network is unique.
25
Mixing Public and Private IP
Addresses
Connecting a network using private addresses to the Internet
requires translation of the private addresses to public addresses.
This translation process is referred to as Network Address
Translation (NAT).
26
Static Assignment of an IP
Address
Static assignment works
best on small networks.
The administrator
manually assigns and
tracks IP addresses for
each computer, printer, or
server on the intranet.
Network printers,
application servers, and
routers should be
assigned static IP
addresses.
27
DHCP
Dynamic host configuration protocol (DHCP) allows a
host to obtain an IP address dynamically without the
network administrator having to set up an individual
profile for each device.