Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Computer Networks CS301

Network Layer
Module 3

Dr. Sunandita Debnath, IIIT Vadodara


IPV4 Address
 IPV4 addresses are 32 bits long that uniquely and universally defines the
connection of a device on the internet.
 IPV6 addresses are 128 bits long.
 Two devices on the internet can never have the same addresses at the same
time.
 The addresses range of IPV4 addresses are 232 i.e. more than 4 billions
 But we have more devices, the NAT (network address translation) technology
will resolve this.
IPV4 Address
 IPV4 addresses have two notations
 Binary notations.
 Dotted Decimal notations.

Binary notations: 01110101 10010101 00011101 00000010


Dotted Decimal notations: 117.149.29.2

 IPV4 addresses consist of four octets each octet consists of 8 binary bits.
 Each octet ranges from 0 to 28 − 1 = 255
IPV4 Address Conversion
 Binary to Dotted Decimal conversion
 Dotted Decimal to Binary Conversion

𝟐𝟕 𝟐𝟔 𝟐𝟓 𝟐𝟒 𝟐𝟑 𝟐𝟐 𝟐𝟏 𝟐𝟎

128 64 32 16 8 4 2 1
Binary Notation Decimal Notation
Subnet Mask (Slash Notation)

Class Subnet Mask Subnet Mask (in Binary) Slash


(in Dotted Notation
Decimal)
A 255.0.0.0 11111111.0000000.00000000.0000000 /8
B 255.255.0.0 11111111.11111111.00000000.0000000 /16
C 255.255.255.0 11111111.11111111.111111111.0000000 /24
Network Host
portion of portion of
IP address IP address

IP address 192.168.10.2

Subnet Mask 255.255.255.0

You might also like