0% found this document useful (0 votes)
2 views

Lab Lecture 2 IP_Addressing II

The document outlines a lecture on IP Addressing II in a Computer Networks course, covering topics such as classful addressing, network and host addresses, and broadcast addresses. It details the structure of IP addresses, including special purpose addresses and how to identify network and broadcast IP addresses. Additionally, it includes references and resources for further reading on the subject.

Uploaded by

blind98
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Lab Lecture 2 IP_Addressing II

The document outlines a lecture on IP Addressing II in a Computer Networks course, covering topics such as classful addressing, network and host addresses, and broadcast addresses. It details the structure of IP addresses, including special purpose addresses and how to identify network and broadcast IP addresses. Additionally, it includes references and resources for further reading on the subject.

Uploaded by

blind98
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Course Title: Computer Networks

IP Addressing II

Dr. Md. Sohidul Islam


Associate Professor
Department of Computer Science and Engineering
Daffodil International University
Email: [email protected]
Room# 732
Lecture Outline

• Classful Address
• Network and Host Address
• Broadcast
Classful Addressing

Address
1. Class A
2. Class B
3. Class C
4. Class D
5. Class E
Recognizing Class
Recognizing Class (contd…)
Address Space
Address Space (contd…)
Problem

Solution
Address Space (contd…)

Solution
Few of the special purpose IP
addresses
IP address Purpose
0.0.0.0 For several reasons*
10.0.0.0 to 10.255.255.255, 8-bits mask Private IP address
172.16.0.0 to 172.31.255.255, 12-bits mask Private IP address
192.168.0.0 to 192.168.255.255, 16-bits mask Private IP address
255.255.255.255 Limited Broadcast IP address
127.0.0.0 Loopback address
Network address and Host
address (contd…)

The network ID (or network address)


Identifies the network on which a host computer can be found
The host ID (or host address)
Identifies a specific device on the network indicated by the network
ID

Analogy:
network address------>Postcode of an area
Host address---------> House number of a person in that area
Network address and Host
address (contd…)
Network ID length: 8 bits
Host ID length: 24 bits

Network ID length: 16 bits


Host ID length: 16 bits

Network ID length: 24 bits


Host ID length: 8 bits
Network address and Host
address (contd…)

No. of Networks=

No. of hosts= -2
Extracting Information in a
Block

How many addresses are there in a block?


What is the first address?
What is the last address?
Broadcast

Broadcast1
Sending packet to all hosts of a network
 Limited Broadcast
o When a host of a network sends packet to all hosts of the same
network
o Sends packet to 255.255.255.255 IP address
 Direct Broadcast
o When a host of a network sends packet to all hosts of another
network.
o If the network address of the target network is 20.0.0., the packet is
sent to 20.255.255.255

1 E. Conrad, S. Misenar and J. Feldman, CISSP Study Guide, 3rd ed., Elsevier Inc., 2016
Broadcast (contd…)

A network has three kinds of IP addresses


 Network IP address
 Lowest IP address of the network
 Broadcast IP address
 Highest IP address of the network
 Host IP addresses
 All IP addresses of the network except the lowest and
highest IP address
Broadcast (contd…)

How to get network IP address and broadcast IP address?

Network IP address: Replace all host bits by zeroes (0) of any IP address of the
network

Broadcast IP address: Replace all host bits by ones of any IP address of the
network
Broadcast (contd…)

What is the network and broadcast IP addresses of the network which uses
192.100.12.110 as a host address?

192.100.12.110 is a class C address


192.100.12 is the network part and 110 is the host part
Network IP address: 192.100.12.0
Broadcast IP address: 192.100.12.255

No. of usable host IP address: No. of addresses-2


Broadcast (contd…)
Example
An address in a block is given as 73.22.17.25. Find the number of addresses in
the block, the first address, and the last address.

Number of bits in Netid


Interconnections of multiple
networks
Network Mask/Subnet Mask
A network mask or a default mask in classful addressing is a 32-bit number with n leftmost
bits all set to 1s and (32 - n) rightmost bits all set to 0s
Network Mask/Subnet Mask

s
se s
re
s s ad d
ll dd f IP
es
o
Class n k No. of Networks No. of Host in

re
tio fo IP age
(Blocks) each Network

ni ug e ast
ns r a a
ga o ag w
or en ast ge
za h of
Class A 8 1 128 16,777,216

No W Hu
Class B 16 2 16,384 65,536
Class C 24 3 2,097,152 256
References

1. Official Cert Guide CCNA 200-301 , vol. 1, W. Odom, Cisco Press,


First Edition, 2019, USA.

2. CCNA Routing and Switching, T. Lammle, John Wily & Sons, Second
Edition, 2016, USA.

3. Cisco IOS Configuration Fundamentals Command Reference.


http://www.cisco.com
Books

1. Official Cert Guide CCNA 200-301 , vol. 1, W. Odom, Cisco Press,


First Edition, 2019, USA.

2. CCNA Routing and Switching, T. Lammle, John Wily & Sons, Second
Edition, 2016, USA.

You might also like