Professional Documents
Culture Documents
. . .
11000011 11000011 01011100 10100001
Binary notation: 32 bits divided by decimal point into 4 parts of 8 bits each, hence octet.
192.195.92.161
Dotted-Decimal
Notation
IPV4:
32 bits address that uniquely universally identifies the connection of a device to the internet.
Separated into four 8 bit octets(hence 8 *4= 32 bits), each octet have a value ranging from 0 to
255
The address is logically separated into 2 distinct components:
Network ID
Host ID
Hence, 2^32=4.3 billion addresses, known as address space.
IPV4 addressing:
Classful addressing:
To make efficient use of 32-bit address space IPV4 defined several address classes and associated address formats.
Subnetting means dividing or separating the single network called subnets into
multiple networks to reduce load.
Example: Class B has approximately 65000 hosts and managing them is difficult,
a single broadcast can slow down the network.
Advantage:
Reduce traffic
Increases Performance
Easier to manage the smaller networks
Subnet Mask for Classful Address
Special IP Addresses:
Any packets sent to the loopback
address is looped back to the
sender
A network address is an IP address
where all host ids are set to 255.
Any data sent to this address will be A network address is an IP address
sent to all hosts of the network. where all host ids are set to 0
Number of networks and hosts per
subnet:
Number of networks:
=2^n-2
n is the number of unmasked bits (0’s)
1st address
last address
Number of networks:
=2^n
n is the number of masked bits(1’s)
IPV4 addressing:
Classless Inter-Domain Routing(CIDR):
To reduce IP address wastage, to manage them more efficiently, CIDR was introduced.
This retains the concept of a netlD and a hostlD but removes the rigid structure and allows the split
between the netlD and the hostlD to be varied to suit individual need.
Represented as A.B.C.D/n
n is the network prefix, used to identify the number of bits used to identify a network.
Example: 192.9.205.22/18:
first 18 bits are network bits
therefore, 32-18=14 bits are for host ids
hence, (2^18 )networks
((2^14)-2) hosts per network.
IPV6:
128 bit addressing, hence huge address space (2^128 addresses)
IPV4 has approximately 4 billion addresses, which is not enough and hence IPV6
is promising.
The addresses are written in a colon hexadecimal notation.
Very complex
The code is broken into 8 parts of 16-bits with each of these represented by four
hexadecimal characters.