SlidePub
Home
Categories
Login
Register
Home
General
Subnetting supernetting
Subnetting supernetting
wacasr12
894 views
59 slides
Nov 04, 2021
Slide
1
of 59
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
About This Presentation
Networking
Size:
1.2 MB
Language:
en
Added:
Nov 04, 2021
Slides:
59 pages
Slide Content
Slide 1
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Subnetting/Supernetting
and
Classless Addressing
Slide 2
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
CONTENTS
•SUBNETTING
•SUPERNETTING
•CLASSLESS ADDRSSING
Slide 3
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
SUBNETTING
5.1
Slide 4
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
IP addresses are designed with
two levels of hierarchy.
Slide 5
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-1
A network with two levels of
hierarchy (not subnetted)
Slide 6
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-2
A network with three levels of
hierarchy (subnetted)
Slide 7
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-3
Addresses in a network with
and without subnetting
Slide 8
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-4
Hierarchy concept in a telephone number
Slide 9
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-5
Default mask and subnet mask
Slide 10
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Finding the Subnet Address
Given an IP address, we can find the
subnet address by applying the mask to the
address. We can do this in two ways:
straight or short-cut.
Slide 11
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Straight Method
In the straight method, we use binary
notation for both the address and the
mask and then apply the AND operation
to find the subnet address.
Slide 12
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 1
Whatisthesubnetworkaddressifthe
destinationaddressis200.45.34.56andthe
subnetmaskis255.255.240.0?
Slide 13
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution
11001000 00101101 00100010 00111000
11111111 11111111 1111000000000000
11001000 00101101 0010000000000000
The subnetwork address is 200.45.32.0.
Slide 14
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Short-Cut Method
**If the byte in the mask is 255, copy
the byte in the address.
**If the byte in the mask is 0, replace
the byte in the address with 0.
**If the byte in the mask is neither 255
nor 0, we write the mask and the address
in binary and apply the AND operation.
Slide 15
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 2
Whatisthesubnetworkaddressifthe
destinationaddressis19.30.80.5andthe
maskis255.255.192.0?
Solution
See Figure 5.6
Slide 16
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-6
Example 2
Slide 17
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-7
Comparison of a default mask and
a subnet mask
Slide 18
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
The number of subnets must be
a power of 2.
Slide 19
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 3
Acompanyisgrantedthesiteaddress
201.70.64.0(classC).Thecompanyneeds
sixsubnets.Designthesubnets.
Solution
Thenumberof1sinthedefault
maskis24(classC).
Slide 20
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution (Continued)
Thecompanyneedssixsubnets.Thisnumber
6isnotapowerof2.Thenextnumberthatis
apowerof2is8(2
3
).Weneed3more1sin
thesubnetmask.Thetotalnumberof1sin
thesubnetmaskis27(24+3).
Thetotalnumberof0sis5(32-27).The
maskis
Slide 21
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution (Continued)
11111111 11111111 1111111111100000
or
255.255.255.224
Thenumberofsubnetsis8.
Thenumberofaddressesineachsubnet
is2
5
(5isthenumberof0s)or32.
SeeFigure5.8
Slide 22
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-8
Example 3
Slide 23
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 4
Acompanyisgrantedthesiteaddress
181.56.0.0(classB).Thecompanyneeds
1000subnets.Designthesubnets.
Solution
Thenumberof1sinthedefaultmaskis16
(classB).
Slide 24
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution (Continued)
Thecompanyneeds1000subnets.This
numberisnotapowerof2.Thenextnumber
thatisapowerof2is1024(2
10
).Weneed10
more1sinthesubnetmask.
Thetotalnumberof1sinthesubnetmaskis
26(16+10).
Thetotalnumberof0sis6(32-26).
Slide 25
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution (Continued)
Themaskis
11111111111111111111111111000000
or
255.255.255.192.
Thenumberofsubnetsis1024.
Thenumberofaddressesineachsubnetis2
6
(6isthenumberof0s)or64.
SeeFigure5.9
Slide 26
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-9
Example 4
Slide 27
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-10
Variable-length subnetting
Slide 28
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
SUPERNETTING
5.2
Slide 29
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-11
A supernetwork
Slide 30
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Rules:
**The number of blocks must be a power of 2 (1,
2, 4, 8, 16, ...).
**The blocks must be contiguous in the address
space (no gaps between the blocks).
**The third byte of the first address in the
superblock must be evenly divisible by the number
of blocks. In other words, if the number of blocks is
N, the third byte must be divisible by N.
Slide 31
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 5
Acompanyneeds600addresses.Whichof
thefollowingsetofclassCblockscanbe
usedtoformasupernetforthiscompany?
198.47.32.0198.47.33.0198.47.34.0
198.47.32.0198.47.42.0198.47.52.0198.47.62.0
198.47.31.0198.47.32.0198.47.33.0198.47.52.0
198.47.32.0198.47.33.0198.47.34.0198.47.35.0
Slide 32
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution
1:No,thereareonlythreeblocks.
2:No,theblocksarenotcontiguous.
3:No,31inthefirstblockisnotdivisibleby4.
4:Yes,allthreerequirementsarefulfilled.
Slide 33
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
In subnetting,
we need the first address of the
subnet and the subnet mask to
define the range of addresses.
Slide 34
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
In supernetting,
we need the first address of
the supernet
and the supernet mask to
define the range of addresses.
Slide 35
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-12
Comparison of subnet, default,
and supernet masks
Slide 36
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 6
Weneedtomakeasupernetworkoutof16
classCblocks.Whatisthesupernetmask?
Solution
Weneed16blocks.For16blocksweneedto
changefour1sto0sinthedefaultmask.Sothe
maskis
11111111 11111111 1111000000000000
or
255.255.240.0
Slide 37
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 7
Asupernethasafirstaddressof205.16.32.0anda
supernetmaskof255.255.248.0.Arouterreceivesthree
packetswiththefollowingdestinationaddresses:
205.16.37.44
205.16.42.56
205.17.33.76
Whichpacketbelongstothesupernet?
Slide 38
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution
Weapplythesupernetmasktoseeifwecanfind
thebeginningaddress.
205.16.37.44AND255.255.248.0205.16.32.0
205.16.42.56AND255.255.248.0205.16.40.0
205.17.33.76AND255.255.248.0205.17.32.0
Onlythefirstaddressbelongstothissupernet.
Slide 39
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 8
Asupernethasafirstaddressof205.16.32.0anda
supernetmaskof255.255.248.0.Howmanyblocksarein
thissupernetandwhatistherangeofaddresses?
Solution
Thesupernethas211s.Thedefaultmaskhas24
1s.Sincethedifferenceis3,thereare2
3
or8
blocksinthissupernet.Theblocksare205.16.32.0
to205.16.39.0.Thefirstaddressis205.16.32.0.
Thelastaddressis205.16.39.255.
Slide 40
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
CLASSLESS
ADDRESSING
5.3
Slide 41
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-13
Variable-length blocks
Slide 42
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Number of Addresses in a Block
There is only one condition on the number
of addresses in a block; it must be a power
of 2 (2, 4, 8,...). A household may be given
a block of 2 addresses. A small business
may be given 16 addresses. A large
organization may be given 1024 addresses.
Slide 43
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Beginning Address
The beginning address must be evenly divisible
by the number of addresses. For example, if a
block contains 4 addresses, the beginning
address must be divisible by 4. If the block has
less than 256 addresses, we need to check only
the rightmost byte. If it has less than 65,536
addresses, we need to check only the two
rightmost bytes, and so on.
Slide 44
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 9
Whichofthefollowingcanbethebeginningaddressofa
blockthatcontains16addresses?
205.16.37.32
190.16.42.44
17.17.33.80
123.45.24.52
Solution
Theaddress205.16.37.32iseligiblebecause32is
divisibleby16.Theaddress17.17.33.80iseligible
because80isdivisibleby16.
Slide 45
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 10
Whichofthefollowingcanbethebeginningaddressofa
blockthatcontains1024addresses?
205.16.37.32
190.16.42.0
17.17.32.0
123.45.24.52
Solution
Tobedivisibleby1024,therightmostbyteofan
addressshouldbe0andthesecondrightmostbyte
mustbedivisibleby4.Onlytheaddress17.17.32.0
meetsthiscondition.
Slide 46
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-14
Slash notation
Slide 47
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Slash notation is also called
CIDR
notation.
Slide 48
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 11
Asmallorganizationisgivenablockwiththebeginning
addressandtheprefixlength205.16.37.24/29(inslash
notation).Whatistherangeoftheblock?
Solution
Thebeginningaddressis205.16.37.24.Tofindthe
lastaddresswekeepthefirst29bitsandchangethe
last3bitsto1s.
Beginning:11001111 00010000 00100101 00011000
Ending : 11001111 00010000 00100101 00011111
There are only 8 addresses in this block.
Slide 49
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 12
WecanfindtherangeofaddressesinExample11by
anothermethod.Wecanarguethatthelengthofthesuffix
is32-29or3.Sothereare2
3
=8addressesinthisblock.
Ifthefirstaddressis205.16.37.24,thelastaddressis
205.16.37.31(24+7=31).
Slide 50
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
A block in classes A, B, and C
can easily be represented in slash
notation as
A.B.C.D/ n
where nis
either 8 (class A), 16 (class B), or
24 (class C).
Slide 51
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 13
Whatisthenetworkaddressifoneoftheaddressesis
167.199.170.82/27?
Solution
Theprefixlengthis27,whichmeansthatwemust
keepthefirst27bitsasisandchangetheremaining
bits(5)to0s.The5bitsaffectonlythelastbyte.
Thelastbyteis01010010.Changingthelast5bits
to0s,weget01000000or64.Thenetworkaddress
is167.199.170.64/27.
Slide 52
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 14
Anorganizationisgrantedtheblock130.34.12.64/26.
Theorganizationneedstohavefoursubnets.Whatarethe
subnetaddressesandtherangeofaddressesforeach
subnet?
Solution
Thesuffixlengthis6.Thismeansthetotalnumber
ofaddressesintheblockis64(2
6
).Ifwecreate
foursubnets,eachsubnetwillhave16addresses.
Slide 53
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution (Continued)
Letusfirstfindthesubnetprefix(subnetmask).
Weneedfoursubnets,whichmeansweneedtoadd
twomore1stothesiteprefix.Thesubnetprefixis
then/28.
Subnet1:130.34.12.64/28to130.34.12.79/28.
Subnet2:130.34.12.80/28to130.34.12.95/28.
Subnet3:130.34.12.96/28to130.34.12.111/28.
Subnet4:130.34.12.112/28to130.34.12.127/28.
SeeFigure5.15
Slide 54
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 5-15
Example 14
Slide 55
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 15
AnISPisgrantedablockofaddressesstartingwith
190.100.0.0/16.TheISPneedstodistributethese
addressestothreegroupsofcustomersasfollows:
1.Thefirstgrouphas64customers;eachneeds256addresses.
2.Thesecondgrouphas128customers;eachneeds128addresses.
3.Thethirdgrouphas128customers;eachneeds64addresses.
Designthesubblocksandgivetheslashnotationforeach
subblock.Findouthowmanyaddressesarestillavailable
aftertheseallocations.
Slide 56
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution
Group1
Forthisgroup,eachcustomerneeds256addresses.
Thismeansthesuffixlengthis8(2
8
=256).The
prefixlengthisthen32-8=24.
01:190.100.0.0/24190.100.0.255/24
02:190.100.1.0/24190.100.1.255/24
………………………………… ..
64:190.100.63.0/24190.100.63.255/24
Total=64256=16,384
Slide 57
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution (Continued)
Group2
Forthisgroup,eachcustomerneeds128addresses.
Thismeansthesuffixlengthis7(2
7
=128).The
prefixlengthisthen32-7=25.Theaddresses
are:
001:190.100.64.0/25190.100.64.127/25
002:190.100.64.128/25190.100.64.255/25
003:190.100.127.128/25190.100.127.255/25
Total=128128=16,384
Slide 58
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution (Continued)
Group3
Forthisgroup,eachcustomerneeds64addresses.
Thismeansthesuffixlengthis6(2
6
=64).The
prefixlengthisthen32-6=26.
001:190.100.128.0/26190.100.128.63/26
002:190.100.128.64/26190.100.128.127/26
…………………………
128:190.100.159.192/26190.100.159.255/26
Total=12864=8,192
Slide 59
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Solution (Continued)
Numberofgrantedaddresses:65,536
Numberofallocatedaddresses:40,960
Numberofavailableaddresses:24,576
Tags
ip
Categories
General
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
894
Slides
59
Favorites
1
Age
1496 days
Related Slideshows
22
Pray For The Peace Of Jerusalem and You Will Prosper
RodolfoMoralesMarcuc
35 views
26
Don_t_Waste_Your_Life_God.....powerpoint
chalobrido8
38 views
31
VILLASUR_FACTORS_TO_CONSIDER_IN_PLATING_SALAD_10-13.pdf
JaiJai148317
34 views
14
Fertility awareness methods for women in the society
Isaiah47
31 views
35
Chapter 5 Arithmetic Functions Computer Organisation and Architecture
RitikSharma297999
30 views
5
syakira bhasa inggris (1) (1).pptx.......
ourcommunity56
31 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-59)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better