IP Addresses and Subnetting
IP Addresses and Subnetting
IP Addresses and Subnetting
By
Kr. Rajeev Ranjan 07438
NIT Hamirpur, HP
Introduction
The Internet Protocol (IP) is a protocol used for communicating data across a
packet-switched internetwork using the Internet Protocol Suite.
Version of IP Addresses:
IPv0 to IPv15 (Only IPv4 and Ipv6 used in Networking)
172.16.20.143
Classification:
Classfull IP Address Classless IP Address
Public IP Private IP
Classfull IP address classes
IP Classes
A B C D E
Class A: (0-127).(0-255).(0-255).(0-255)
Class B: (128-191).(0-255).(0-255).(0-255)
Class C: (192-223).(0-255).(0-255).(0-255)
Class D: (224-239).(0-255).(0-255).(0-255)
Class E: (140-225). 0-255).(0-255).(0-255)
#Network, Host.
Class A IP Address
Identify :
N H H H
Features :
All Class A IP addresses use only the first 8 bits to identify the network part
of the address
The remaining three octets can be used for the host portion of the address
Class A network IP up to 2 to-the-power of 24 (224) (minus 2), or
16,777,214, possible IP addresses to devices that are attached to its
network
Valid Host Range 10.0.0.1 to 10.255.255.254
10.0.0.0 is Network address & 10.255.255.255 is Broadcast Address
Class B IP Address
Identify :
N N H H
The first 2 bits of a Class B address are always 10 (one and zero).
The first two octets identify the network number assigned by ARIN
The internal administrators of the network assign the remaining 16 bits
Class B IP addresses always have values ranging from 128 to 191 in their
first octet
Class B IP Address
Features :
All Class A IP addresses use only the first 16 bits to identify the network
part of the address
The remaining two octets can be used for the host portion of the address
A Class B IP address can have up to 2 to-the-power of 16 (216) (minus 2
again!), or 65,534, possible IP addresses to devices that are attached to its
network
Valid Host Range 172.16.0.1 to 172.16.255.254
172.16.0.0 is Network address & 172.16.255.255 is Broadcast Address
Class C IP Address
Identify :
N N N H
The first 3 bits of a Class C address are always 110 (one,one and zero).
The first three octets identify the network number assigned by ARIN
The internal administrators of the network assign the remaining 8 bits
Class c IP addresses always have values ranging from 192 to 223 in their
first octet
Class C IP Address
Features :
All Class C IP addresses use the first 24 bits to identify the network
part of the address
The remaining one octets can be used for the host portion of the
address
A Class C IP address can have up to 28 (minus 2), or 254,
possible IP addresses to devices that are attached to its network
Valid Host Range 192.168.100.1 to 192.168.100.254
192.168.100.0 is Network address & 192.168.100.255 is Broadcast
Address
IP Address Space
Originally, 3 Classes
– A, B, C
Problem
– Classes too rigid (C too small, B too big)
Solution
– Subnetting (e.g. within Stanford)
– Classless Interdomain Routing (CIDR)
Subnetting
What it is?
NETWORK SUBNET HOST
Important Decision
To determine the optimal number of subnets and hosts
Subnetting
Telephony
Subnetting
Real Purpose
Explanation
When broadcast traffic begins to consume too much of the available
bandwidth, network administrators may choose to reduce the size of the
broadcast domain.
Subnet Mask
What it is?
Not an address
It determines which part of an IP address is the network field and which
part is the host field.
A subnet mask is 32 bits long and has 4 octets, just like an IP address
Subnet Mask
Replace the network and subnet portion of the address with all 1s.
As the last step convert the binary expression back to dotted-
decimal notation.
Subnet Mask
Default :
Class B Address
172 16 20 143
255 255 0 0
8-bit Subnet Mask
For What ?
For routing a data packet, the router first determines the destination
network/subnet address by performing a logical AND using the
destination host's IP address and the subnet mask. The result will be
the network/subnet address.
Computer Centre