unit-IV IP Address
unit-IV IP Address
IP Address Class
192.168.1.10 C
10.10.200.6 A
172.15.165.1 B
230.10.65.30 D [Multi Cast]
1st No.of
octal 1st octal Network (n) possible
Address Default
range bits(blue dots and host (H) Network and
Class subnet mask
in don't change) position host per
decimal network
00000000 - N-> 27
A 0 -127 N.H.H.H 255.0.0.0
01111111 H-> 224-2
IPV4 address having 2 portions. Network portion and host portion. The subnet
mask tells the neighbours in the network. Every class has its own subnet mask.
Subnet mask:-
To define the network and host portion of an address, a device use a separate
32-bit pattern called a subnet mask.
The subnet mask does not actually contain the network or host portion of an
IPV4 address , If just says where to look for these portions in a given IPV4
address .
Example 1:-
Let us assume Device A use address 10.10.10.1 and
Device B use address 10.10.20.16.can these two devices are
communicated with each other with the help of switch or same network. We can
predict this without subnet mask.
If Device A use class A subnet mask like 255.0.0.0 then both devices are in the
same network because 1st byte match for both devices.
Example 2:-
Let us assume Device A use address 10.10.10.1 and
Device B use address 10.10.20.16.can these two devices are
communicated with each other with the help of switch or same network. We can
predict this without subnet mask.
If Device A use class C subnet mask like 255.255.255.0 then both devices are
not in the same network because 3rd octa didn’t match for both devices.
Note:- for class A,B subnet mask are used in Class C, but Class C subnet mask
can’t use for Class B and A.
Example 3:-
Let us assume Device A use address 172.16.200.1 and
Device B use address 172.16.165.2 can these two devices are
communicated with each other with the help of switch or same network. We can
predict this without subnet mask.
If Device A use class B subnet mask like 255.255.0.0 then both devices are in
the same network because 1 and 2rd octa match for both devices.
Subnetting & Supernetting
Subnetting:-
It is the procedure to divide the network into sub-networks or small
networks. i.e A network inside a network. It makes networks more efficient. It
can travel a shorter distance without passing through unnecessary routers to
reach its destination.
It is a logical sub division of an IP network.
The process of dividing a network into two or more networks is called
subnetting.
An internal address is made up of a combination of the small networks
segment and host segment.
1. Identify the class of the ip address and note the default subnet mask.
2. Convert default subnet mask into binary
3. Note the no.of hosts required per subnet and find the subnet generator (SG)
and octet position
4. Generate new subnet mask
5. Use the SG and generate the network range in the appropriate octet position.
Advantages:
It allows more efficient routing and reduces the size of the routing table.
It is to improve the efficiency of routing in large-scale networks.
The process of dividing a network into subnetwork is called as subnetting,
and the process of combining small networks into a large network is called
supernetting.
The Internet Protocol (IP) is the method for sending data from one computer
to another over the internet.
In subnetting, the numbers of bits of network addresses are increased, and in
supernetting the number of bits of host addresses is increased.
Advantages: -
It reduces the traffic of the network over the internet.
It increases the speed of routing table lookup.
As it is summarized the number of routing information entries into a single
entry, the size of the router’s memory table decreased, hence saving the
memory space.
It Provides the router to separate the topology changes from the other
routers.
Disadvantages: -
The combination of blocks should be made in power 2 alternatively; if the
three blocks are required, and then there must be assigned four blocks.
While merging several entries into one, it lacks covering different areas.
The whole network must exist in the same class.
Difference between Subnetting and Supernetting
Subnetting Supernetting
It is the procedure to divide the Itis the procedure of combining small
network into sub-networks. networks.
Network addresses’ bits are increased. Host addresses’ bits are increased.
The mask bits are moved towards the The mask bits are moved towards the
right. left.
It is implemented via Variable-length It is implemented via Class less
subnet masking. interdomain routing.
Address depletion is reduced or It is used for simplifying the routing
removed. process.
2. Inside global address – IP address that represents one or more inside local
IP addresses to the outside world. This is the inside host as seen from the
outside network.
3. Outside local address – This is the actual IP address of the destination host
in the local network aftertranslation.
4. Outside global address – This is the outside host as seen from the outside
network. It is the IP address of the outside destination host before
translation.
For example a computer on an internal address of 192.168. 1.10 wanted to
communicate with a web server somewhere on the internet, NAT would translate
the address 192.168. 1.10 to the company's public address, lets call this 1.1.