Docsity

Subnets, Classless Addressing - Computer Network - Lecture Slides, Slides of Computer Networks

Partial preview of the text

Download Subnets, Classless Addressing - Computer Network - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

COMPUTER

NETWORKS

Lecture-

Review Lecture 25

Computing The Class of An Address

Dotted Decimal Notation

Division of Address Space

A Classful Addressing Example

Subnets and Classless Addressing

 Two new mechanisms were invented to overcome the limitations:

  • Subnet addressing
  • Classless addressing

Subnets and Classless Addressing

 Instead of having three distinct address classes, allow the division between prefix and suffix to occur on an arbitrary boundary.

 The classless addressing scheme solves the problem by allowing an ISP to assign a prefix that is 28 bits long (allowing the host to have up to 14 hosts).

Subnet/Address Mask

  • 32-bit network prefix

10000000 00001010 00000000 00000000

Denoted in dotted decimal value as 128.10.0.

32-bit destination address 128.10.2.

Binary equivalent:

10000000 00001010 00000010 00000011

Subnet/Address Mask

A logical ‘and’ between D and M produces the

binary result

10000000 00001010 00000000 00000000

Which is equal to prefix 128.10.0.

CIDR Notation

 Inside a computer, each address mask is stored as a 32-bit value.

 When we enter a prefix and an address mask they use a modified form of dotted decimal addressing called CIDR addressing.

 Known as CIDR notation

CIDR Notation

 As an example of how CIDR adds flexibility, suppose a single class B prefix (e.g. 128.211.0.0) i.e. 2 16 host addresses  16-bit CIDR mask denoted as: 128.211.0.0 / 16 That is, by making CIDR mask correspond exactly to the old classful interpretation.

CIDR Notation

 For example:-

  • One customer can be assigned 128.211.0.16 /
  • And the other customer can be assigned 128.211.0.32 / Both customers have same mask size, the prefix differs. i.e. each customer has a unique prefix.

CIDR Host Addresses

Summary

Subnet and Classless Addressing

Subnet/Address Mask

CIDR Notation

Special IP Addresses