VPC SubNet
VPC SubNet
VPC SubNet
Page 1 of 7
VPC-Subnet Sudhakara Rao Chillara/cloud solutions
Subnetting Work:
The working of subnets starts in such a way that firstly it divides the subnets
into smaller subnets. For communicating between subnets, routers are used.
Each subnet allows its linked devices to communicate with each other.
Subnetting for a network should be done in such a way that it does not affect
the network bits.
In class C the first 3 octets are network bits so it remains as it is.
For Subnet-1:
The first bit which is chosen from the host id part is zero and the range will be
from (193.1.2.00000000 till you get all 1’s in the host ID part i.e,
193.1.2.01111111) except for the first bit which is chosen zero for subnet id
part.
Thus, the range of subnet 1 is: 193.1.2.0 to 193.1.2.127
Subnet id of Subnet-1 is : 193.1.2.0
The direct Broadcast id of Subnet-1 is: 193.1.2.127
The total number of hosts possible is: 126 (Out of 128,
2 id's are used for Subnet id & Direct Broadcast id)
The subnet mask of Subnet- 1 is: 255.255.255.128
For Subnet-2:
The first bit chosen from the host id part is one and the range will be from
(193.1.2.100000000 till you get all 1’s in the host ID part i.e,
193.1.2.11111111).
Thus, the range of subnet-2 is: 193.1.2.128 to 193.1.2.255
Subnet id of Subnet-2 is : 193.1.2.128
The direct Broadcast id of Subnet-2 is: 193.1.2.255
The total number of hosts possible is: 126 (Out of 128,
2 id's are used for Subnet id & Direct Broadcast id)
The subnet mask of Subnet- 2 is: 255.255.255.128
The best way to find out the subnet mask of a subnet
is to set the fixed bit of host-id to 1 and the rest to 0.
Page 2 of 7
VPC-Subnet Sudhakara Rao Chillara/cloud solutions
Finally, after using the subnetting the total number of usable hosts is reduced
from 254 to 252.
To divide a network into four (22) parts you need to choose two bits from the
host id part for each subnet i.e, (00, 01, 10, 11).
To divide a network into eight (23) parts you need to choose three bits from
the host id part for each subnet i.e, (000, 001, 010, 011, 100, 101, 110, 111)
and so on.
We can say that if the total number of subnets in a network increases the total
number of usable hosts decreases.
Along with the advantage, there is a small disadvantage to subnetting that is,
before subnetting to find the IP address first the network id is found then the
host id followed by the process id, but after subnetting first network id is found
then the subnet id then host id and finally process id by this the computation
increases.
Advantages of Subnetting:
The advantages of Subnetting are mentioned below:
It provides security to one network from another network.
For example: In an Organisation, the code of the Developer department must
not be accessed by another department.
It may be possible that a particular subnet might need higher network priority
than others.
For example: Sales department needs to host webcasts or video conferences.
In the case of small networks, maintenance is easy.
Disadvantages of Subnetting:
The disadvantages of Subnetting are mentioned below:
In the case of a single network, only three steps are required to reach a Process
i.e., Source Host to Destination Network, Destination Network to Destination
Host, and then Destination Host to Process.
Page 3 of 7
VPC-Subnet Sudhakara Rao Chillara/cloud solutions
In the case of a Single Network only two IP addresses are wasted to represent
Network Id and Broadcast address but in the case of Subnetting two IP
addresses are wasted for each Subnet.
The cost of the overall Network also increases. Subnetting requires internal
routers, Switches, Hubs, Bridges, etc. which are very costly.
IP Addressing vs Subnets
Parameters IP Addressing Subnetting
Assign unique
Divide a network into smaller subnetworks for
Purpose identifiers to devices on
better management and performance.
a network.
Page 4 of 7
VPC-Subnet Sudhakara Rao Chillara/cloud solutions
Parameters IP Addressing Subnetting
Dotted decimal
Subnet mask (e.g., 255.255.255.0) or CIDR
Notation notation (e.g.,
notation (e.g., /24)
192.168.0.1)
Number of header
12 8
fields
Length of header
20 40
filed
2001:0db8:0000:0000:0000:
Example 12.244.233.165
ff00:0042:7879
Type of Addresses Unicast, broadcast, and multicast. Unicast, multicast, and anycast.
Page 5 of 7
VPC-Subnet Sudhakara Rao Chillara/cloud solutions
Basis for
IPv4 IPv6
differences
IPv4 offers five different classes of IP lPv6 allows storing an unlimited number
Number of classes
Address. Class A to E. of IP Address.
Routing
RIP is a routing protocol supported by RIP does not support IPv6. It uses static
Information
the routed daemon. routes.
Protocol (RIP)
Packet
Allows from routers and sending host Sending hosts only
fragmentation
DNS records Address (A) records, maps hostnames Address (AAAA) records, maps hostnames
IP to MAC
Broadcast ARP Multicast Neighbour Solicitation
resolution
Local subnet
Internet Group Management Protocol
Group Multicast Listener Discovery (MLD)
GMP)
management
Dynamic host Clients have approach DHCS (Dynamic A Client does not have to approach any
configuration Host Configuration server) whenever such server as they are given permanent
Server they want to connect to a network. addresses.
Page 7 of 7
VPC-Subnet Sudhakara Rao Chillara/cloud solutions