Professional Documents
Culture Documents
Addressing Subnetting 1512
Addressing Subnetting 1512
for Exploration-S1
1
Addressing
2
Addressing
3
IP Address (IPv4)
4
http://www.iana.org
5
http://www.iana.org
6
IP Addressing Structure
7
IP Addressing Structure
• 32-bit address
is expressed in
Dotted decimal
• Network portion
• Host portion
• Octet
8
Subnet Mask
9
Defining the Network and Host Portions
10
Defining the Network and Host Portions
11
Example 1:
SM : 255.255.255.0
Net/host id: N.N.N.H
Net E1 (Net-ID): 192.168.11.0 Number of broadcast domain ?
Net E2 : 192.168.10.0
Net E3 : 192.168.12.0
12
Example 2:
H: hhhhhhhh
00000000
00000001
00000010
SM: 255.255.255.0 00000011
Net address: 192.168.10.0 00000100
Net/host id: N.N.N.H …
11111110
11111111
13
Example 3:
• IP address: 192.168.100.1
• Subnet mask: 255.255.255.0
• Net address: 192.168.100.0
• Net/Host ID: N.N.N.H
• IP address : 11000000.10101000.01100100.00000001
• SM : 11111111.11111111.11111111.00000000
• Net address : 11000000.10101000.01100100.00000000
14
Example 4:
• IP address: 96.168.100.1
• Subnet mask: 255.255.224.0
• Net address: ?
• IP address : 01100000.10101000.01100100.00000001
• SM : 11111111.11111111.11100000.00000000
• Net address : 01100000.10101000.01100000.00000000
15
Hierachical addressing scheme
16
Classes of IP Addresses
17
Classes of IP Addresses
18
Classes of IP Addresses
19
Type of Address in an IPv4 Network
20
Network Address
• When all host-bits are zeros (0), we have a number that represents network
address. This address is reserved, namely it cannot be assigned to any host.
21
Network Address
22
Broadcast Address
• When host-bits are all one (1), we have a number that represents broadcast
address. This address is also reserved, namely it cannot be assigned to any host.
• Exp:
– ping 10.0.6.255
– ping 255.255.255.255
23
Broadcast Address
24
Extra: Broadcast Address
25
Host address
26
27
Calculating Network, Hosts & Broadcast Addresses
• Practice 6.2.2.2
28
Type of Communication
29
Unicast
30
Broadcast
• The process of sending a packet from one host to all hosts in the
network
• Host processes a broadcast address destination packet like unicast
address.
– A directed broadcast is sent to all hosts on a specific network.
– The limited broadcast is used for communication that is limited to
the hosts on the local network. 31
Multicast
33
Public and Private addresses
34
Public IP Addresses
• Public Addresses: are designed to be used in the hosts that are publicly
accessible from the Internet.
•Public IP addresses are unique.
•No two machines that connect to a public network can have the same IP
address. (X#Y#Z )
• Public IP addresses must be obtained from an Internet service provider (ISP) or a
registry at some expense.
• With the rapid growth of the Internet, public IP addresses were beginning to run out
(IP address depletion).
35
Private IP Addresses
36
Private IP Addresses
10.0.0.0 /8
172.16.0.0 /12
192.168.0.0 /16
• RFC 1918 sets aside three blocks of IP addresses for private, internal use.
These three blocks consist of one Class A, a range of Class B addresses, and a
range of Class C addresses.
• Addresses that fall within these ranges are not routed on the Internet
backbone. Internet routers immediately discard private addresses.
37
Using Private Addresses
38
Special IPv4 Addresses
• Network Addresses
• Broadcast Addresses
• Default Route
– 0.0.0.0/0
• Loopback: 127.0.0.0/8
• Link-Local Addresses
– 169.254.0.0 to
169.254.255.255
(169.254.0.0 /16)
– These addresses can be
automatically assigned
– APIPA ( Automatic Private IP
Addressing )
• TEST-NET Addresses
– The address block 192.0.2.0 to 192.0.2.255 (192.0.2.0 /24) is set aside for
teaching and learning purposes. These addresses can be used in
documentation and network examples. Unlike the experimental
addresses, network devices will accept these addresses in their
configurations
39
Extra: Reserved IP Address
40
Legacy IPv4 Addressing
41
Legacy IPv4 Addressing
42
IP addressing crisis
• Address Depletion
• Internet Routing Table Explosion
43
44
45
46
Subnetting
• Net 1: 172.16.0.0
• Net 2: 172.17.0.0
• Net 3: 172.18.0.0
• Net 4: 172.19.0.0
• Usable hosts per network : 2^16-2= 65534 !!!
49
Subnetting
50
Establishing SM address
51
Applying the Subnet Mask
• 192.168.10.001hhhhh
• .00100000
• .00100001 (33)
• Exp: subnet
• .00100010
192.168.10.32/27 • .00100011
• Host Range ??? •…
• 192.168.10.00111110 (62)
• .00111111
52
Other: Basic subnetting
53
Other: Basic subnetting
54
Other: Basic subnetting
55
Example 5:
4 subnets of 62 hosts
4 links of 2 hosts
57
Calculating subnets with VLSM
172.16.0010hhhh.hhhhhhhh/20
172.16.0010xxxx.xxhhhhhh/26
58
Calculating subnets with VLSM
• 4 subnets of 62 hosts:
– 172.16.32.0/26
– 172.16.32.64/26
– 172.16.32.128/26
– 172.16.32.192/26
• 4 links of 2 hosts:
– 172.16.33.0/26 is further subnetted with a prefix of
/30.
59
Calculating subnets with VLSM
60
Calculating subnets with VLSM
61
Example 2
62
Example 2
• 172.16.32.0/19
• 172.16.00100000.00000000
• Subnets of 1000 hosts: need 10 host bits
– 172.16.001xxxhh.hhhhhhhh/22
– 172.16.001000hh.hhhhhhhh172.16.32.0
– 172.16.001001hh.hhhhhhhh172.16.36.0
– 172.16.001010hh.hhhhhhhh172.16.40.0
– 172.16.001011hh.hhhhhhhh172.16.44.0
– 172.16.001100hh.hhhhhhhh172.16.48.0
– 172.16.001101hh.hhhhhhhh172.16.52.0
– 172.16.001110hh.hhhhhhhh172.16.56.0
– 172.16.001111hh.hhhhhhhh172.16.60.0
63
Example 2
64
Example 2
• 172.16.44.0/22
• 172.16.001011xx.hhhhhhhh/24
• 172.16.00101100.hhhhhhhh172.16.44.0
• 172.16.00101101.hhhhhhhh172.16.45.0
• 172.16.00101110.hhhhhhhh172.16.46.0
• 172.16.00101111.hhhhhhhh172.16.47.0
65
Example 2
66
Example 2
• 172.16.47.0/24
• 172.16.47.xxxxxxhh/30
• 172.16.47.000000hh172.16.47.0/30
• 172.16.47.000001hh172.16.47.4
• 172.16.47.000010hh172.16.47.8
• 172.16.47.000011hh172.16.47.12
• …
67
Other: Subnetting a Subnet
68
Other: Subnetting a Subnet
69
Other: Subnetting a Subnet
70
Other: Subnetting a Subnet
71
Other: Subnetting a Subnet
72
Other: Subnetting a Subnet
73
Other: Subnetting a Subnet
74
Other: Subnetting a Subnet
75
Other: Subnetting a Subnet
76
Other: Subnetting a Subnet
77
Other: Subnetting a Subnet
78
Other: Subnetting a Subnet
79
Other: Subnetting a Subnet
• Practice 6.5.4-6
80
Example 3
81
2 subnets: 1000 hosts
• 133.33.0.0/22
• 133.33.4.0
• 133.33.8.0
• 133.33.12.0
• 133.33.16.0
• 133.33.20.0
• …….
82
3 subnets: 500 hosts
• 133.33.8.0/23
• 133.33.10.0/23
• 133.33.12.0/23
• 133.33.14.0/23
83
4 subnets: 200 hosts
• 133.33.14.0/24
• 133.33.15.0/24
• 133.33.16.0/24
• 133.33.17.0/24
• 133.33.18.0
• 133.33.19.0
84
5 subnets: 50 hosts
• 133.33.18.0/26
• 133.33.18.64
• 133.33.18.128
• 133.33.18.192
• 133.33.19.0/26
• 133.33.19.64
• 133.33.19.128
• 133.33.19.192
85