Professional Documents
Culture Documents
Alternative Methods of Teaching Subnet Mask Basics:: Subnet Masking Without Binary Math
Alternative Methods of Teaching Subnet Mask Basics:: Subnet Masking Without Binary Math
Alternative Methods of Teaching Subnet Mask Basics:: Subnet Masking Without Binary Math
Academy Affiliations:
Assistant Professor
Computer Science and Information Technology Dept.
Pierce College, Woodland Hills, CA
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 1
*Bogart: If youre the Cisco Kid, wheres your binary calculator?
Bedoya: Binary? Binary! We dont need no stinkin binary!
Click to play
Ref #3
*The Cisco Kid was not a character in The Treasure of the Sierra Madre with
Humphrey Bogart. So I have grossly mixed my movie metaphors here . Alfonso
Bedoya plays the Gold Hat character in this clip, and, while hard to believe, he
never said Binary? Binary! We dont need no stinkin binary! Ref #4
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 2
Introduction and Objectives
Group Activity: List Key Subnet Masking Tasks
For Each {Task} {
The Traditional Approach
The Decimal-Based Alternative
Group Activity}
Classroom Strategies
References and Resources
Questions and Answers
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 3
David Schamus (Pronounced Shay-Miss)
MA: Educational Technology, Pepperdine, 2005
CCNA
CCAI
Pierce College Academy
UCLA Extension Academy
Twenty + Years of Computer/Networking Experience
dschamus@bbtraining.com
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 4
Provide Alternatives to Binary-Based Subnet Masking Tasks
Focus on the Basic Tasks
Help Our Students !!!
Suitable for CCNA Discovery and Exploration Courses
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 5
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Quick Group Activity 10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Form Groups of Four People
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 7
1 Network Address
2 Are Hosts on Same Network
3 Broadcast Address
4 IP Address Range
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 8
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Some Quick Definitions 10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Network:
A collection of network nodes that can communicate at OSI
Layer 3 (IP, of course) without passing through a router
Subnet or Subnetwork
Identical to a Network for the purpose of this session*
Internetwork (or internet with a lower case i):
A collection of inter-connected networks
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 10
INT
11 / 4 = 2.75
INT(11 / 4) = 2
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 11
Binary to Decimal Equivalents
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 14
Definition: A network address is an address
where all of the host bits are binary zeros
Information Needed: IP and Mask
Steps to Calculate Network Address
Convert Source IP Address to Binary
Convert Source Mask to Binary
Calculate Binary AND Result
Convert Result Back to Decimal
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 15
Example 1: IP: 10.1.1.84 Mask: 255.255.255.224
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 16
Information Needed: IP and Mask
Decimal Alternative
In the Only Remaining Octet
256-Mask = Result (if 4th octet, this is also the network size)
INT(IP/Result) = Net
Result*Net = Network Address
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 17
Information: IP: 10.1.1.84
1st Example Mask: 255.255.255.224
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 18
Information: IP: 172.31.33.84
2nd Example Mask: 255.255.240. 0
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 19
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Activity: 10101010101010101010
10101010101010101010
Network Addresses 10101010101010101010
10101010101010101010
You Try It! 10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Each person picks one. Help Each Other if Needed
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 22
Tasks Binary Decimal
Decimal to Binary Conversions 2 0
Binary to Decimal Conversion 1 0
Total Number of Binary Digits Required 96 0
Grade School Arithmetic Calculations 0 3
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 23
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 24
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Task 2: 10101010101010101010
10101010101010101010
Are Hosts on Same Network?
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Traditional Binary Method
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 26
Information Needed: SrcIP, SrcMask, DstIP
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 27
Information Needed:
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 28
Information Needed:
Source IP: 10. 1. 1. 34
Source Mask: 255. 255. 255. 240
Dest IP: 10. 1. 1. 68
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 29
Information Needed
Source IP: 10. 1. 1. 34
Source Mask: 255. 255. 255. 240
Dest IP: 10. 1. 1. 68
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 31
Information Needed: SrcIP, SrcMask, DstIP
Decimal Alternative
In the Only Remaining Octet
256-Mask = Result
INT(SrcIP/Result) = SrcNet
INT(DstIP/Result) = DstNet
If SrcNet=DstNet Hosts are on the Same Network
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 32
Information Needed:
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 33
Information Needed:
SrcIP: 10. 5. 18. 25
SrcMask: 255. 255. 224. 0
DstIP: 10. 5. 36. 87
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 34
Gather Data
SrcIP: 10. 5. 18. 25
SrcMask: 255. 255. 224. 0
DstIP: 10. 5. 36. 87
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 36
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Activity: 10101010101010101010
10101010101010101010
Are Hosts on the 10101010101010101010
10101010101010101010
Same Network 10101010101010101010
10101010101010101010
Try it! 10101010101010101010
10101010101010101010
10101010101010101010
Example 1 Example 2
Last Names A to Q R to Z
Src IP Address 192.168.18.130 192.168.36.194
Src Mask 255.255.255.240 255.255.255.224
Dst IP Address 192.168.18.146 192.163.36.200
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 38
Example 1:
SrcIP: 192.168.18.130
SrcMask: 255.255.255.240
DstIP: 192.168.18.146
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 39
Example 1:
SrcIP: 192.168.18.130
SrcMask: 255.255.255.240
DstIP: 192.168.18.146
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 40
Example 1:
SrcIP: 192.168.18.130
SrcMask: 255.255.255.240
DstIP: 192.168.18.146
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 41
Example 1:
SrcIP: 192.168.18.130
SrcMask: 255.255.255.240
DstIP: 192.168.18.146
Check the Obvious In Octets with a 255 Mask Value
Octet 1: 192=192, Octet 2: 168=168, Octet 3: 18=18
Decimal Alternative
In the Only Remaining Octet
256-Mask = Result or 256-240=16
INT(SrcIP/Result) = SrcNet or 130/16 = 8
INT(DstIP/Result) = DstNet or 146/16 = 9
Hosts are NOT on the Same Network, 8 9
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 42
Example 2:
SrcIP: 192.168.36.194
SrcMask: 255.255.255.224
DstIP: 192.163.36.200
Check the Obvious In Octets with a 255 Mask Value
NOT ON THE SAME NETWORK: 192=192 but 168 163
STOP, Youre Done
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 43
Tasks Binary Decimal
Decimal to Binary Conversions 3 0
Binary to Decimal Conversion 0 0
Binary AND Operations 2 0
Total Number of Binary Digits Required 192 0
Grade School Arithmetic Calculations 0 3
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 44
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 45
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Task 3: 10101010101010101010
10101010101010101010
Calculating 10101010101010101010
10101010101010101010
Broadcast Addresses 10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Traditional Binary Method
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 47
Definition: A broadcast address is an
address where all of the host bits are binary
ones
Information Needed: (IP, Mask)
Binary Method:
Convert Source IP Address to Binary
Convert Source Mask to Binary
Convert All IP Host Bits to Binary Ones
(where mask bit=0 set host bit to 1)
Convert Result Back to Decimal
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 48
Example 1: Information Needed
IP and Mask IP: 10.1.1.84 Mask: 255.255.255.224
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 49
Gather Data (IP, Mask)
The Obvious (Octets That are Either Only Network or Only Host)
Octets with a 255 Mask Value The IP Address Octet Remains Unchanged
Octets with a Mask Value of Zero Change the IP Address to 255
Decimal Alternative
In the Only Remaining Octet
256-Mask = Result (if 4th octet, this is also the network size)
INT(IP/Result) = Net
Result*Net = NetAddr
NetAddr + Result - 1 = Broadcast
Logic
NetAddr+Result = Network Address for Next Higher Network
Subtracting 1 Gives Us the Broadcast Address
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 50
What About NetAddr+Size+1 Should We Do It As
(NetAddr+Size)-1, or
NetAddr+(Size-1)
Answer:
(NetAddr+Size)-1: Works in most cases, a bit painful for last network
NetAddr+(Size-1): Works all of the time
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 51
Information: IP: 10.1.1.84
2nd Example Mask: 255.255.255.224
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 53
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Activity: 10101010101010101010
10101010101010101010
Broadcast Addresses 10101010101010101010
10101010101010101010
Try it! 10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Information: IP: 172.31.130.84
2nd Example Mask: 255.255.248. 0
Broadcast Address =
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 55
Information: IP: 172.31.130.84
2nd Example Mask: 255.255.248. 0
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 56
Tasks Binary Decimal
Decimal to Binary Conversions 2 0
Binary to Decimal Conversion 1 0
Binary: Host Bit Conversion 1 0
Total Number of Binary Digits Required 96 0
Grade School Arithmetic Calculations 0 5
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 57
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 58
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Task 4: 10101010101010101010
10101010101010101010
Range of IP (usable) 10101010101010101010
10101010101010101010
Addresses on Same 10101010101010101010
10101010101010101010
Network 10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Traditional Binary Method
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 60
Information Needed: IP, Mask
Find, then add 1 to network address:
Convert IP to Binary
Convert Mask to Binary
Perform AND operation (to get network address)
Convert the 32nd bit in the network address to 1 (first usable
address)
Convert IP back to decimal
Find, then subtract 1 from broadcast address
Use binary conversion results from first two steps above
Set all host bits to 1, except the 32nd bit (make it zero)
Convert the IP back to decimal
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 61
Gather Data (IP: 10.1.4.26 Mask: 255.255.248.0)
IP: 00001010.00000001.00000100.00011010
Mask: 11111111.11111111.11111000.00000000
NetAddr: 00001010.00000001.00000000.00000000
NetAddr+1: 00001010.00000001.00000000.00000001
1st IP *: 10.1.0.1
Bcast: 00001010.00000001.00000111.11111111
Bcast-1: 00001010.00000001.00000111.11111110
Last IP *: 10.1.7.254
Wow, lots of digits and lots of room for error!
* First and last usable IPs
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 62
Gather Data (IP, Mask)
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 63
Gather Data (IP: 10.1.4.26 Mask: 255.255.248.0)
NetAddr: Do the obvious first: 10.1.???.0
256-248=8
4/8=0
8*0=0
Network address = 10.1.0.0
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 64
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Activity: 10101010101010101010
10101010101010101010
Addresses Ranges 10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Form Groups of 4 People (help each other if needed)
IP Mask
10.1.24.78 255.255.252.0
192.168.3.130 255.255.255.192
172.31.86.54 255.255.224.0
66.124.12.12 255.255.255.248
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 66
Ex1: IP:10.1.24.78 Ex3: IP=172.31.86.54
Mask:255.255.252.0 Mask=255.255.224.0
256-252=4 256-224=32
INT(54/32)=1
INT(24/4)=6 1*32=32
4*6=24 Net Address = 172.31.86.32
Net Address = 10.1.24.0 32+32-1=63
24+4-1=27 Bcast Address = 172.31.86.63
Bcast Address = 10.1.27.255 Range: 172.31.86.1 to 172.31.86.62
Range: 10.1.24.1 to 10.1.27.254
Ex4 : IP=66.124.12.12
Ex2: IP:192.168.3.130 Mask=255.255.255.248
Mask=255.255.255.192 256-248=8
256-192=64 INT(12/8)=1
INT(130/64)=2 8*1=8
64*2=128 Net Address = 66.124.12.8
Net Address = 192.168.3.128 8+8-1=15
128+64-1=191 Bcast Address = 66.124.12.15
Bcast Address = 192.168.3.195 Range:
66.124.12.9 to 66.124.12.14
Range:
192.168.3.129 to 192.168.3.190
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 67
Tasks Binary Decimal
Decimal to Binary Conversions 2 0
Binary to Decimal Conversion 2 0
Binary: Host Bit Conversions 3 0
Total Number of Binary Digits Required 192 0
Grade School Arithmetic Calculations 0 8
Note: There is a hybrid binary/decimal method that would slightly simplify the
binary method by adding two grade school math operations and reducing the
number of host bit conversions. But whos counting?
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 68
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 69
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Strategies for the 10101010101010101010
10101010101010101010
Classroom (or Virtual 10101010101010101010
10101010101010101010
Classroom) 10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
10101010101010101010
Prerequisite Knowledge
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 71
Basic IP Address Structure
What is an Octet
Number of Octets In an IPv4 Address
Number of Bits in an Octet
Values of 0-255 for a total of 256 possible values
First Octet Values =>224 are Not Assigned to Hosts
IP Addresses are Hierarchical
Network portion contained on left
Host portion contained on right
Mask is used to determine the boundary between them
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 72
An Octet with a Zero Value = 00000000 in Binary
Optional:
Prefix Length
CIDR
VLSM
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 73
256 Mask
In 4th Octet: Produces the Total Number of IPs Per
Network (Network Size)
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 74
Start with Group Activities
Keeps Students Involved
Students Who Learn Faster Will Help Others
Students Feel Obligated to Participate (this is good!)
Individual Activities
Good Tool to Assess Individuals Understanding
Online and Hybrid/Blended Courses
Group Activities are Viable Via
Discussion Forums
WIKIs
Chat
Web-Cam/Video
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 75
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 76
Questions?
PowerPoint Slide Templates:
2011 Cisco Systems, Inc. All rights reserved.
Originally from the 1948 Film, The Treasure of the Sierra Madre, Released by
Warner Bros.
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 78
Thank You for Attending.
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 79
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 80
Thank you for your time.
Cisco Networking Academy, US/Canada 2011 Cisco Systems, Inc. All rights reserved. Cisco confidential. 81