0% found this document useful (0 votes)
13 views16 pages

Lecture 16 IP Addressing

The document provides information about the course "Computer Communication and Networks" with course code BCAC0011. It discusses basics of IPv4 addressing including how IPv4 addresses are unique and 32 bits long. It also covers converting between binary and dotted decimal notation of IPv4 addresses, classifying addresses as class A, B, C, D or E, and examples of addressing calculations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views16 pages

Lecture 16 IP Addressing

The document provides information about the course "Computer Communication and Networks" with course code BCAC0011. It discusses basics of IPv4 addressing including how IPv4 addresses are unique and 32 bits long. It also covers converting between binary and dotted decimal notation of IPv4 addresses, classifying addresses as class A, B, C, D or E, and examples of addressing calculations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Course Name: Introduction of Logic Circuit & Digital Design

Course Code: BCAC0003

BCA IVth Semester


Computer Communication and Networks
Course Code: BCAC0011
Presented by:
Mr Anuj Mangal
Assistant Professor, Dept. Of CEA
GLA University, Mathura
-
Basics

• The IPv4 addresses are unique and universal.


• An IPv4 address is 32 bits long.
• The address space of IPv4 is 232 (4,294,967,296)
• 32 bit address is divided into 4 octet ( also known as
byte)
• To connect on internet each device requires a unique
IP address
IPv4 Addressing

IP Address as a 32-Bit Binary Number ( Four Octet )

3
Binary to DDN conversion
Example 1

Change the following IPv4 addresses from binary notation to dotted-


decimal notation.
a. 10000001 00001011 00001011 11101111
b. 11000001 10000011 00011011 11111111
c. 11100111 11011011 10001011 01101111
d. 11111001 10011011 11111011 00001111
Example 1 Solution

Change the following IPv4 addresses from binary notation to dotted-


decimal notation.
a. 10000001 00001011 00001011 11101111
b. 11000001 10000011 00011011 11111111
c. 11100111 11011011 10001011 01101111
d. 11111001 10011011 11111011 00001111

Solution
We replace each group of 8 bits with its equivalent decimal number
(see Appendix B) and add dots for separation:
a. 129.11.11.239
b. 193.131.27.255
c. 231.219.139.111
d. 249.155.251.15
Example 2

Change the following IPv4 addresses from dotted-decimal notation to


binary notation.
a. 111.56.45.78
b. 221.34.7.82
c. 241.8.56.12
d. 75.45.34.78
Example 2 Solution

Change the following IPv4 addresses from dotted-decimal notation to


binary notation.
a. 111.56.45.78
b. 221.34.7.82
c. 241.8.56.12
d. 75.45.34.78

Solution
We replace each decimal number with its binary equivalent:
a. 01101111 00111000 00101101 01001110
b. 11011101 00100010 00000111 01010010
c. 11110001 00001000 00111000 00001100
d. 01001011 00101101 00100010 01001110
Example 3

Find the error, if any, in the following IPv4 addresses:


a. 111.56.045.78
b. 221.34.7.8.20
c. 75.45.301.14
d. 11100010.23.14.67
Example 3

Find the error, if any, in the following IPv4 addresses:


a. 111.56.045.78
b. 221.34.7.8.20
c. 75.45.301.14
d. 11100010.23.14.67

Solution
a. There should be no leading zeroes (045).
b. We may not have more than 4 bytes in an IPv4 address.
c. Each byte should be less than or equal to 255.
d. A mixture of binary notation and dotted-decimal notation.
IPv4 Addressing Classification

IPv4 addresses can be classified on 2 ways:

• Classful Addressing
• Classless Addressing

In classful addressing, the address space is divided into five classes:


A, B, C, D, and E.
Classful Addressing
• In classful addressing, the address space is
divided into five classes: A, B, C, D, and E.

19.12
Class Net ID Host ID Binary DDN No of No of Default CIDR
bits bits networ host/N mask
ks w
A 8 24 0 0-127 2^7=12 2^24 255.0.0 /8
(2^31) 8 .0
B 16 16 10 128- 2^14 2^16 255.25 /16
(2^30) 191 5.0.0
C 24 8 110 192- 2^21 2^8 255.25 /24
(2^29) 223 5.255.0
D NA NA 1110 224- NA NA NA NA
(2^28) 239
E NA NA 1111 240- NA NA NA NA
(2^28) 255

CIDR = classless Interdomain Routing Notation


DDN = Dotted Decimal Notation
Example 19.4

Find the class of each address.


a. 00000001 00001011 00001011 11101111
b. 11000001 10000011 00011011 11111111
c. 14.23.120.8
d. 252.5.15.111

19.14
Solution
a. The first bit is 0. This is a class A address.
b. The first 2 bits are 1; the third bit is 0. This is a
class C
address.
c. The first byte is 14; the class is A.
d. The first byte is 252; the class is E.
• Thank You
• Discussion & Doubt session will be in
lecture.

Important terms to keep in mind


1. IP Address
2. IPv4 Binary and DDN notation
3. Classful Addressing

You might also like