IPV4 and Subnetting Strategy
IPV4 and Subnetting Strategy
Public address:
This address considered as any valid address assigned to any
user, and the organization who is responsible for registering IP
ranges called Internet Service Providers (ISPs), and this address
will be unique.
Private Address:
Any number or address assigned to a device on a private TCP/IP
Local Area Network that is accessible only within the Local Area
Network.
Internet Protocol Version 6 (IPv6)
SIPP (Simple Internet Protocol Plus)
• Maintains good features of IPv4, discards bad ones.
• Main features:
Class E: reserved for future use. From 240 to 255 and the
255.255.255.255 used for broadcast to all the subnet.
Cont..
• One of the benefits of classful addresses is that they provide a hierarchy to
the network through the use of the network ID. This translates into an
efficient routing environment because it is easy for a router to determine
what networks can be grouped together and treated as a single routing entry.
Strategies to Conserve Addresses
•Several strategies have been developed and implemented to help
the Internet community on how provides a good managing of IP
addresses. These strategies help reduce the load on Internet
routers and help administrators use globally unique IP addresses
more efficiently. There are two common strategies, which are:
•Private Addressing
•Classless Inter-Domain Routing (CIDR)
Private Address
• It means If the internetwork is limited to one organization, the IP addresses
need only be unique within that organization. Only networks that interface
with public networks such as the Internet need public addresses. Using public
addresses on the outside and private addresses for inside networks is very
effective.
Private Addresses:-
RFC1918 designates three ranges of IP addresses as private:
• 10.0.0.0 through 10.255.255.255
• 172.16.0.0 through 172.31.255.255
• 192.168.0.0 through 192.168.255.255
Cont…
Cont...
• There are two ways to convert the private address to public address:
1. Network Address Translation (NAT).
• The port address will be any random number in the allowed range, that the
device created it when wants to access the internet.
• The packet will contain the port number that assign to the device that wants to
access the internet and through this port number, the router when get the
response message will translate it and make map this message to it is private
address based on the port number.
Addressing without Subnets
• If we have a class B with a Flat Network, the number of host will be more
than 216=65536 hosts,
• So the problem is here, that managing this network with this number of host
is too tricky and the performance of this network will get down because of
the heavy load. In other word, any single broadcast can slowdown the
network.
The first three octets represent the network part and the last octet represent the
host part.
Cont...
• There three important things that should be taken into our account when we
thinking about subnetting:-
As well as, to find the number of hosts per subnet. We can use formal 2x -2,
where (x) is the number of unmasked bits (0’s) .
Cont...
•
Reserved and Restricted Addresses
•In any subnet, there are certain addresses that cannot be assigned
to an individual device because they have a special purpose. The
subnet address is the first address in a range that identifies the
subnet. The broadcast address is the last address in the range, and
all hosts on the subnet receive traffic if anything is sent to it.
When you receive a block of addresses from an ISP, what you get will
look something like this: 192.168.10.32/28. This is telling you what your
subnet mask is. The slash notation (/) means how many bits are turned on
(1s).
The Class A default subnet mask, which is 255.0.0.0. This means that the
first byte of the subnet mask is all ones (1s), or 11111111. When referring
to a slash notation, you need to count all the 1s bits to figure out your mask.
The 255.0.0.0 is considered a /8 because it has 8 bits that are 1s—that is, 8
bits that are turned on
Subnetting Class C Addresses
✔In a Class C address, only 8 bits are available for defining the hosts
✔ that subnet bits start at the left and go to the right without skipping
bits. This means that the only Class C subnet masks can be the
following:
Question
• How many subnets/network can we create?
• Ans: Since 192 is 2 bits on (11000000)
22 =4
• How many hosts per network?
• Ans: 6 host bits
26=64 -2
62 hosts
Example
Question
• How many subnets/network can we create?
• Ans: Since 224 is 3 bits on (11100000)
23 =8
• How many hosts per network?
• Ans: 5 host bits
25=32 -2
30 hosts
Example 3
•A company is granted the site address 201.70.64.0 (class C).
The company needs six subnets. Design the subnets.
•Solution
• The default is 24 (11111111.11111111.11111111.00000000)
• The company needs six subnets. 23=8
11111111.1111111.1111111.11100000
Subnet mask 255.255.255.224
• Total # of subnets = 8
• Number of hosts is 25=32-2
Network Address mask Range Usable host Broadcast Id
No. Subnet address First valid address Last valid Address Broadcast address
1 216.21.5.0 216.21.5.1 216.21.5.30 216.21.5.31
2 216.21.5.32 216.21.5.33 216.21.5.62 216.21.5.63
3 216.21.5.64 216.21.5.65 216.21.5.94 216.21.5.95
4 216.21.5.96 216.21.5.97 216.21.5.126 216.21.5.127
5 216.21.5.128 216.21.5.129 216.21.5.158 216.21.5.159
6 216.21.5.160 216.21.5.161 216.21.5.190 216.21.5.191
7 216.21.5.192 216.21.5.193 216.21.5.222 216.21.5.223
8 216.21.5.224 216.21.5.225 216.21.5.254 216.21.5.255
Exercise
•A company is granted the site address 181.56.0.0(Class B).
The company needs 1000 networks. Design the subnets.
•Solution
210=1024 networks
We need to borrow 10 bits from the default
= 16 + 10
CIDR=26
11111111.11111111.11111111.11000000
Subnet Mask: 255.255.255.192
Hosts= 26=64-2
62 Addresses can be generated for each network
Address Range
181.56.0.0 --181.56.0.255 -- > 181.56.255.0 ----181.56.0.255
Exercise
•What is the network address if one of the addresses is
167.199.170.82/27?
•Solution
Prefix Length =27
11111111.11111111.11111111.11100000
The host bits affects only the last byte.
Since 82 is equivalent to 01010010, we need to change the last
5 bits to 0s
== 01000000 or 64
• network address is 167.199.170.64/27
Exercise
An ISP is granted a block of addresses starting with
190.100.0.0/16. The ISP needs to distribute these addresses
to 3 groups of customers as follows:
1. The first group has 64 customers; each needs 256
addresses.
2. The second group has 128 customers; each needs 128
addresses.
3. The third group has 128 customers, each needs 64
addresses.
Hosts 28=256
Subnet Mask
11111111.11111111.11111111.00000000
Addresses:
Customer
01: 190.100.0.0/24 190.100.0.255/24
02: 190.100.1.0/24 190.100.1.255/24
……….
64: 190.100.63.0/24 190.100.63.255/24