Addressing Network v1
Addressing Network v1
Addressing Network v1
IP Addressing
Subnetting
CIDR
VLSM
IP Addresses
• An IP address is an address used to uniquely identify a device on an
IP network.
• The address is made up of 32 binary bits which can be divisible into
a network portion and host portion with the help of a subnet mask.
• 32 binary bits are broken into four octets (1 octet = 8 bits)
• Dotted decimal format (for example, 172.16.81.100)
IP Address Classes
• Class A: The first octet is the network portion. Octets 2, 3, and 4 are
for subnets/hosts
• Class B: The first two octets are the network portion. Octets 3 and 4
are for subnets/hosts
• Class C: The first three octets are the network portion. Octet 4 is for
subnets/hosts
Network Masks
• Distinguishes which portion of the address identifies the network
and which portion of the address identifies the node.
• Default masks:
Class A: 255.0.0.0
Class B: 255.255.0.0
Class C: 255.255.255.0
Private Address Range
Dotted-decimal notation
Example 1
Solution
129.11.11.239
Example 2
Solution
Solution
• Find the largest segment. Segment which need largest number of hosts
address.
• Do subnetting to fulfill the requirement of largest segment.
• Assign the appropriate subnet mask for the largest segment.
• For second largest segments, take one of these newly created subnets
and apply a different, more appropriate, subnet mask to it.
• Assign the appropriate subnet mask for the second largest segment.
• Repeat this process until the last network.
VLSM Example
• Now you know the steps of VLSM Subnetting. Let's understand it with
above example. Our company requires 6 subnets and 160 hosts.
• Step 1 :- Oder all segments according the hosts requirement (Largest
to smallest).
1 Development 74
2 Production 52
3 Administrative 28
4 Wan link 1 2
5 Wan link 2 2
6 Wan link 3 2
• Step 2 :- Do subnetting for largest segment. Our largest segment
needs 74 host addresses. /25 provide us two subnets with 128 hosts
in each subnet.
• 192.168.1.0/25
Segment Development
Requirement 74
CIDR /25
Network ID 192.168.1.0
Broadcast ID 192.168.1.127
• Step 4 :- Do subnetting for second largest segment from next available
subnet. Next segment requires 52 host addresses. Subnetting of /25 has
given us two subnets with 128 hosts in each, from that we have assigned
first subnet to development segment. Second segment is available, we
would do subnetting of this.
• /26 provide us 4 subnets with 64 hosts in each subnet
• 192.168.1.0/26
Segment Production
Requirement 52
CIDR /26
Network ID 192.168.1.128
Broadcast ID 192.168.1.191
• Step 5 :- Our next segment requires 28 hosts. From above subnetting
we have subnet 3 and subnet 4 available. Do subnetting for the
requirement of 28 hosts.
• 192.168.1.0/27
Broadcast
31 63 95 127 159 191 223 255
ID
Subnets 1 to 6 [ address from 0 to 191] are already occupied by
previous segments. We can assign subnet 7 to this segment.
Segment Administrative
Requirement 28
CIDR /27
Network ID 192.168.1.192
Broadcast ID 192.168.1.223
• Step 6 :- Our last three segments require 2 hosts per subnet. Do
subnetting for these.
• 192.168.1.0/30
• Valid subnets are:-
• 0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,9
2,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156
,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220
,224,228,232,236,240,244,248,252,256
• From these subnets, subnet 1 to subnet 56 ( Address from 0 - 220) are
already assigned to previous segments. We can use 224,228, and 232
for wan links.
Subnet Subnet 57 Subnet 58 Subnet 59
Requirement 2
CIDR /30
Network ID 192.168.1.224
Broadcast ID 192.168.1.227
Wan Link 2
Requirement 2
CIDR /30
Network ID 192.168.1.228
Broadcast ID 192.168.1.231
Wan link 3
Requirement 2
CIDR /30
Network ID 192.168.1.232
Broadcast ID 192.168.1.235
• We have assigned IP addresses to all segments, still we have 20
addresses available. This is the magic of VLSM.
CIDR
• Classless Interdomain Routing
• Improve address space utilization
• Routing scalability in the Internet
• For example, if an ISP owns network 172.16.0.0/16, then the ISP can
offer 172.16.1.0/24, 172.16.2.0/24,and so on to customers. Yet, when
advertising to other providers, the ISP only needs to advertise
172.16.0.0/16
The TCP/IP Protocol Suite
TCP/IP Protocol Suite
ARP IGMP
Internet IPv4 ICMP
IPv6
Mobile
Network Interface Ethernet Wi-Fi broadband
Protocols in the TCP/IP Suite
OSI TCP/IP TCP/IP Protocol Suite
Application
Presentation Application
Session
TCP/UDP
IPv4 IPv6
SOMNOG5