Académique Documents
Professionnel Documents
Culture Documents
Presentation
Session
Basics
Transport
Four Subnetting Steps
Network
Data-Link & Practice Problems
Physical
By: Allan Johnson
Application
Presentation IP Addressing
Session
Transport
Subnetting a
Network
Data-Link Class A, B, and C
Physical
Logical Addressing
• At the network layer, we use logical,
hierarchical addressing.
• With Internet Protocol (IP), this address
is a 32-bit addressing scheme divided
into four octets.
• Do you remember the classes 1st octet’s
value?
Class A: 1 - 126
Class B: 128 - 191
Class C: 192 - 223
Class D: 224 - 239 (multicasting)
Class E: 240 - 255 (experimental)
Network vs. Host
Class A: 27 = 126 networks; 224 > 16 million hosts
N H H H
N N H H
N N N H
Why Subnet?
• Remember: we are usually dealing
with a broadcast topology.
• Can you imagine what the network
traffic overhead would be like on a
network with 254 hosts trying to
discover each others MAC
addresses?
• Subnetting allows us to segment
LANs into logical broadcast
domains called subnets, thereby
improving network performance.
Four Subnetting Steps
• To correctly subnet a given
network address into subnet
addresses, ask yourself the
following questions:
1. How many bits do I need to borrow?
2. What’s the subnet mask?
3. What’s the “magic number” or
multiplier?
4. What are the first three subnetwork
addresses?
• Let’s look at each of these
1. How many bits to
borrow?
• First, you need to know how many
bits you have to work with.
• Second, you must know either how
many subnets you need or how
many hosts per subnet you need.
• Finally, you need to figure out the
number of bits to borrow.
1. How many bits to
borrow?
• How many bits do I have to work
with?
Depends on the class of your network
address.
Class C: 8 host bits
Class B: 16 host bits
Class A: 24 host bits
Remember: you must borrow at least
2 bits for subnets and leave at least 2
bits for host addresses.
2 bits borrowed allows 22 - 2 = 2
subnets
1. How many bits to
borrow?
• How many subnets or hosts do I
need?
• A simple formula:
Host Bits = Bits Borrowed + Bits Left
HB = BB + BL
2 −2≥x
BB
• II need
need x
x hosts:
subnets: BL
• 2 −2≥x
• Remember: we need to subtract
two to provide for the subnetwork
and broadcast addresses.
1. How many bits to
borrow?
• Class C Example: 210.93.45.0
• Design goals specify at least 5
subnets so how many bits do we
borrow?
• How many bits in the host portion
do we have to work with (HB)?
• What’s the BB in our HB = BB + BL
formula? (8 = BB + BL)
• 2 to the what power will give us at
least 5 subnets?
3
2 - 2 = 6 subnets
1. How many bits to
borrow?
• How many bits are left for hosts?
HB = BB + BL
8 = 3 + BL
BL = 5
• So how many hosts can we assign
to each subnet?
5
2 - 2 = 30 hosts
1. How many bits to
borrow?
• Class B Example: 185.75.0.0
• Design goals specify no more than 126
hosts per subnet, so how many bits do
we need to leave (BL)?
• How many bits in the host portion do we
have to work with (HB)?
• What’s the BL in our HB = BB + BL
formula? (16 = BB + BL)
• 2 to the what power will insure no more
than 126 hosts per subnet and give us
the most subnets?
27 - 2 = 126 hosts
1. How many bits to
borrow?
• How many bits are left for subnets?
HB = BB + BL
16 = BB + 7
BL = 9
• So how many subnets can we
have?
9
2 - 2 = 510 subnets
2. What’s the subnet
mask?
• We determine the subnet mask by
adding up the decimal value of the bits
we borrowed.
• In the previous Class C example, we
borrowed 3 bits. Below is the host octet
showing the bits we borrowed and their
1
decimal1 values.
1
128 64 32 16 8 4 2 1
Bits Non-Zero
Borrowed Octet
1 128
2 192
3 224
4 240
6 252
7 254
8 255
Practice On Your Own
• Below are some practice problems.
Take out a sheet of paper and
calculate...
Bits borrowed
Last non-zero octet
Second subnet address and broadcast
address
• 192.168.15.0/26
• 220.75.32.0/30
• 200.39.79.0/29
• 195.50.120.0/27
• 202.139.67.0/28
• Challenge: 132.59.0.0/19
Answers
Don’t Cheat Yourself!!
Work them out before you check your answers.
Click the back button if you’re not done.
Otherwise, click anywhere else in the screen to
see the answers.