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

Lab Lecture 2 IP_Addressing

The document outlines a lecture on Computer Networks focusing on IP Addressing II, covering topics such as classful addressing, network and host addresses, and broadcasting. It details the structure of IP addresses, including special purpose addresses and methods for determining network and broadcast addresses. Additionally, it discusses network masks and their implications for network and host capacity in different address classes.

Uploaded by

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

Lab Lecture 2 IP_Addressing

The document outlines a lecture on Computer Networks focusing on IP Addressing II, covering topics such as classful addressing, network and host addresses, and broadcasting. It details the structure of IP addresses, including special purpose addresses and methods for determining network and broadcast addresses. Additionally, it discusses network masks and their implications for network and host capacity in different address classes.

Uploaded by

blind98
Copyright
© © All Rights Reserved
Available Formats
Download as 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= 2𝑁𝑜.𝑜𝑓 𝑏𝑖𝑡𝑠 𝑖𝑛 𝑡ℎ𝑒 𝑛𝑒𝑡𝑤𝑜𝑟𝑘 𝐼𝐷

No. of hosts= 2𝑁𝑜.𝑜𝑓 𝑏𝑖𝑡𝑠 𝑖𝑛 𝑡ℎ𝑒 ℎ𝑜𝑠𝑡 𝐼𝐷 -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
oWhen a host of a network sends packet to all hosts of the same
network
oSends packet to 255.255.255.255 IP address
▪Direct Broadcast
oWhen a host of a network sends packet to all hosts of another
network.
oIf 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

Class n k No. of Networks No. of Host in


(Blocks) each Network
𝟐𝒏−𝐤 𝟐𝟑𝟐−𝒏
Class A 8 1 128 16,777,216
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