Professional Documents
Culture Documents
Chapter Objectives
Module
Introduction to Subnetting
Subnetting
Division of a network into subnets
For example, division of a Class B address into several Class C addresses
Some of the host IDs are used for creating subnet IDs
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
Subnet Configuration
Subnet ID
140 15 1 0
140
15
..
140
15
254
First Host ID
Last Host ID
Routing of Traffic
140.15.1.0 1
140.15.0.0
Routing
140.15.2.0
Outside world
140.15.3.0
Subnets
End of Module
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 higher-order bits of the host ID are to be reserved for that purpose
N. Ganesan, All rights reserved.
Subnetting Structure
195 175 25 0
11100000
Subnet Mask
Sub Net
Last Octet
Subnet ID
1 2
3
Usable Subnets (6)
00000000 00100000
01000000 01100000 10000000 10100000 11000000 11100000
N. Ganesan, All rights reserved.
195.175.25.0 195.175.25.32
195.175.25.64 195.175.25.96 195.175.25.128 195.175.25.160 195.175.25.192 195.175.25.224
4 5 6 7 8
Router
195.175.25.33 195.175.25.65 . . 30 hosts per subnet. . . . . 195.175.25.62 195.175.25.94
N. Ganesan, All rights reserved.
Total number of subnets is 6 Number of hosts per subnet is 30 Subnet mask is 255.255.255.224
255.255.255.11100000
End of Module
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
ANDing Table
B
0 0 1 1
C
0 1 0 1
B AND C
0 0 0 1
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 rights reserved.
Network Scenario
Outside World Local Host 195.175.25.40
Router
Host 195.175.25.34
ANDing Result
ANDing Result
195
ANDing Result
195
Router
Host 195.175.25.34
Subnets Hosts 2 6 14 30 62 62 30 14 6 2
End of Module
Module
Subnetting Convention
Subnet Convention
Consider the following Class C example
195.175.25.0/27
In the above case, the first three octets and the first three higher-order bits of the fourth octet are used in subnet masking
3*8+3 = 27 bits from the beginning of the 32 bit IP address
N. Ganesan, All rights reserved.
135.41.128.0/21
15 Networks, 2046 hosts per network
135.41.248.0/24
Source: Microsoft White Paper
135.41.255.0/21
End of Module
Module
Classless Inter-Domain Routing (CIDR)
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
RIP for IP version 2, OSPF and BGPv2 are protocols that support CIDR
N. Ganesan, All rights reserved.
Classless Addressing
Fixed + Zeros Network ID
Fixed
Variable
Host IDs
Fixed + Variables
End of Module
Module
Supernetting
8 Network IDs
Network ID 220.78.168.0 220.778.168.0 Subnet Mask 255.255.248.0 Network ID (For supernetting) 220.78.168.0
. . .
220.78.175.0
End of Module
End of Chapter