Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 20

Network Layer:

IP Addressing-Part II

Mr. Vipul H. Kondekar


(vhkondekar@witsolapur.org)
Assistant Professor,
Electronics & Telecommunication Engineering

Walchand Institute of Technology, Solapur


(www.witsolapur.org)

Walchand Institute of Technology, Solapur 1


Learning Outcomes
At the end of this session, students will be able to

1) Explore the concept of classless addressing.


2) Compare classful and classless IP Addressing
3) Identify the class of an IP address and special IP Address.
4) Differntiate the network address and host address given a classless IP
address.

Walchand Institute of Technology, Solapur 2


Contents

 Introduction
 Address blocks and Addresses per block for each class.
 Special IP Addresses
 Classless IP Addressing(CIDR)
 Network ID and Host ID representation with CIDR

Walchand Institute of Technology, Solapur 3


Introduction:
Classful addressing Lack of address class to support medium size
company
-- Class B: 65534 hosts/network, too big!
-- Class C: 254 hosts/network, too small!

Classful addressing Two-layer hierarchy is not appropriate for large


networks with Class A and Class B addresses. Hence we use
Subnetting

Walchand Institute of Technology, Solapur 4


Introduction:
Classful addressing Inflexible. Assume a company requires 2,000 addresses
–Class A and B addresses are overkill
–Class C address is insufficient (requires 8 Class C addresses) hence we use Classless
Interdomain Routing (CIDR)

• Classful addressing is a special case of classless addressing.

• In classful addressing, a large part of the available addresses were wasted.


Classful addressing, which is almost obsolete, is replaced with classless addressing.

• Address allocation is the responsibility of a global authority called the Internet Corporation for
Assigned Names and Addresses (ICANN). It usually assigns a large block of addresses to an
ISP to be distributed to its Internet users.

Walchand Institute of Technology, Solapur 5


Classwise No. of blocks and Addresses in each block

Walchand Institute of Technology, Solapur 6


Millions of class A addresses are wasted.

Many class B addresses are wasted.


The number of addresses in class C is
smaller than the needs of most
organizations.

Class D addresses are used for


multicasting; there is only one block in
this class.

Class E addresses are reserved for future


purposes; most of the block is wasted

Walchand Institute of Technology, Solapur 7


Table 1 Special addresses

Table 2 Addresses for private networks

Walchand Institute of Technology, Solapur 8


Network address

Walchand Institute of Technology, Solapur 9


Example of direct broadcast address

Walchand Institute of Technology, Solapur 10


Example of limited broadcast address

Walchand Institute of Technology, Solapur 11


Examples of “this host on this network”

Walchand Institute of Technology, Solapur 12


Example of “specific host on this network”

Walchand Institute of Technology, Solapur 13


Example of loopback address

Walchand Institute of Technology, Solapur 14


Classless Addressing:
In classless addressing variable-length blocks are assigned that belong to no
class. In this architecture, the entire address space (232 addresses) is divided
into blocks of different sizes.

It supports VLSM(Variable length subnet Mask)

Figure 1 Format of classless addressing address

Walchand Institute of Technology, Solapur 15


Table 3 Prefix lengths

Walchand Institute of Technology, Solapur 16


Think!!
Can you
What is the first address in the block if one of the
solve?
addresses is 167.199.170.82/27?

Solution
The prefix length is 27, which means that we must keep
the first 27 bits as is and change the remaining bits (5)
to 0s. The following shows the process:
Address in binary: 10100111 11000111 10101010 01010010
Keep the left 27 bits: 10100111 11000111 10101010 01000000
Result in CIDR notation: 167.199.170.64/27

Walchand Institute of Technology, Solapur 17


Find the number of addresses in the block if one of the
addresses is 140.120.84.24/20.

Solution
The prefix length is 20. The number of addresses in the
block is 232−20 or 212 or 4096. Note that
this is a large block with 4096 addresses.

Walchand Institute of Technology, Solapur 18


References
• Data communication- B.A. Forouzan 4th Edition Tata Mc Graw hill
Publication.
• TCP/IP protocol suit- B.A. Forouzan 4th Edition Tata Mc Graw hill
Publication.
• Computer Networking, J. Kurose & K. Ross
• Computer networks- Andrew S.Tanenbaum
• Internetworking TCP/IP Principal, Protocol and Architecture -Douglas Comer-
Addision -Wesley
• TCP/IP Illustrated, The Protocols – W. Richard Slevens, G.Gabrani –PE pub.
• Data and computer communication – William Stallings. - PE pub.

Walchand Institute of Technology, Solapur 19


Thanks!!

Walchand Institute of Technology, Solapur 20

You might also like