Professional Documents
Culture Documents
Chapter Objectives
N. Ganesan, All
Module
Introduction to Subnetting
Subnetting
Division of a network into subnets
For example, division of a Class B
address into several Class C
addresses
N. Ganesan, All
Subnetting Principle
Use parts of the host IDs for
subnetting purpose
A subnet mask is used to facilitate
the flow of traffic between the
different subnets and the outside
network (hops)
A hop is the distance a data packet
travels form one node to the other
N. Ganesan, All
15
140
15
Class B Network
140
15
0
Subnet 1
0
Subnet 2
140
15
Subnet 3
Subnet Configuration
Subnet ID
140
140
15
15
..
140
First Host ID
15
Last Host ID
N. Ganesan, All
254
Routing of Traffic
140.15.0.0
Routing
Outside world
N. Ganesan, All
140.15.1.0
140.15.2.0
140.15.3.0
Subnets
End of Module
N. Ganesan, All
Module
Subnetting Example
Subnetting Example
Consider the case of a class C
address 195. 175.25.0 assigned to
an organization
Subnets can be constructed by
allocating part of the higher-order
bits of the host ID
Assume that three of the higherorder bits of the host ID are to be
reserved for that purpose
N. Ganesan, All
Subnetting Structure
195 175
25
11100000
Subnet Mask
N. Ganesan, All
Usable
Subnets
(6)
Subnet 2
195.175.25.32
195.175.25.64
Router
195.175.25.33
195.175.25.65
.
.
30 hosts per subnet.
.
.
.
.
195.175.25.62
195.175.25.94
N. Ganesan, All
End of Module
N. Ganesan, All
Module
The Routing Process
ANDing Process
Similar to the AND Boolean
operator
Consider A = B and C
A is true only when B and C are true
Otherwise, A is false for all other
scenarios
N. Ganesan, All
ANDing Table
B
B AND C
N. Ganesan, All
Subnet Masking
AND host IP and subnet mask value
at startup to identify network ID
AND destination IP address and
subnet mask value determine
either of the following:
IP represents local host
IP represents remote host
N. Ganesan, All
Network Scenario
Outside
World
Local Host
195.175.25.40
Host
195.175.25.34
195.175.25.67
N. Ganesan, All
Computing Subnet ID at
Startup
Host ID
195
110000
11
Subnet 255
Mask
111111
11
ANDing 195
Result
110000
11
Yields subnet ID.
175
101011
11
255
111111
11
175
101011
11
N. Ganesan, All
25
000110
01
255
111111
11
25
000110
01
34
001000
10
224
111000
00
32
001000
00
TCP/IP
Properties
of the Host
N. Ganesan, All
Masking of Destination
Address:Case 1
Destinat 195
175
25
40
i-nation 110000 101011 000110 001010
IP
11
11
01
00
Subnet
Mask
255
255
255
224
111111 111111 111111 111000
11
11
11
00
ANDing 195
175
25
32
Result
110000
101011
000110
001000
Yields subnet
ID to be
that of the
local subnet.
All 01
11 N. Ganesan,
11
00
N. Ganesan, All
Masking of Destination
Address:Case 2
Destinat 195
175
25
67
i-nation 110000 101011 000110 010000
IP
11
11
01
11
Subnet
Mask
255
255
255
224
111111 111111 111111 111000
11
11
11
00
ANDing 195
175
25
64
Result
110000
101011
000110
010000
Yields subnet
ID to be
that of different
subnet.
All 01
11 N. Ganesan,
11
00
N. Ganesan, All
Gateway IP
address
specified
In TCP/IP
properties.
N. Ganesan, All
Summary of Transmission
and Routing of Data
Subnet at
Packets
Local
Host
195.175.25
.64
195.175.25.40
Subnet Mask
Subnet Hosts
s
255.255.255.1 2
62
92
255.255.255.2 6
30
24
255.255.255.2 14
14
40
255.255.255.2 30
6
48
N. Ganesan,
255.255.255.2 62
2 All
Host Total
124
180
196
180
124
End of Module
N. Ganesan, All
Module
Subnetting Convention
Subnet Convention
Consider the following Class C example
195.175.25.0/27
Subnet Convention
Illustrated
8 Bits
8 Bits
8 Bits
3 Bits
135.41.128.0./17
135.41.128.0.0/17
Subnet
135.41.128.0/21
135.41.248.0/21
135.41.248.0/24 135.41.255.0/21
8 Networks, 254 hosts per network
Source:
Microsoft
White Paper
N. Ganesan, All
End of Module
N. Ganesan, All
Module
Classless Inter-Domain
Routing (CIDR)
Classless Inter-Domain
Routing (CIDR)
To avoid the depletion of the class B
addresses, it is subnetted and
assigned as class C addresses
To avoid the proliferation of network
IDs that would complicate entries in
the routing tables, they were folded
for easing the routing process
The above is known as CIDR
N. Ganesan, All
Subnetting of Class B
Example
Consider the requirement of 2000 hosts
by a company
Allocation of one class B network ID
would yield 65,534 hosts
Far more than required
N. Ganesan, All
CIDR
CIDR enables the folding of network IDs
The Internet router tables will need one
entry for network ID with the use of a
subnet mask for supernetting
Otherwise, the table need to carry 8 entries
in the previous example
Classless Addressing
Fixed
Fixed
+ Zeros
Network ID
Variable
Fixed + Variables
N. Ganesan, All
Host IDs
End of Module
N. Ganesan, All
Module
Supernetting
220.78.168.0
Source: Microsoft
White Paper on
.
.
.
220.78.175.0
N. Ganesan, All
End of Module
End of Chapter