Professional Documents
Culture Documents
IP Classes
0
16
Net-id
Class A
Class B
1 0
Class C
1 1 0
Class D
1 1 1 0
Class E
1 1 1 1 0
24
31
Host-id
Net-id
Host-id
Net-id
Host-id
Multicast
Reserved
IP Classes
Special IP Addresses
Network address
Direct broadcast address
Limited broadcast address
Loop back address
Network Address
Subnetting
In subnetting, a network is divided into smaller
subnets with each subnet having its own
subnet address.
10
11
Benefits of subnetting
Reduced network traffic
Simplified management
Smaller broadcast domains
12
Subnetting
13
14
15
Subnet Mask
Question is: how do we determine the
entire subnets inside our network?
Subnet mask is used to distinguish
the network ID from the host ID
Example
Dot-decimal Address
Binary
192.168.5.10
11000000.10101000.00000101.00001010
Subnet Mask
255.255.255.0
11111111.11111111.11111111.00000000
Network Portion
192.168.5.0
11000000.10101000.00000101.00000000
Host Portion
0.0.0.10
00000000.00000000.00000000.00001010
16
Subnet Mask
Example
11000000.10101000.00000101.10000010
Subnet Mask
255.255.255.192
11111111.11111111.11111111.11000000
Network Portion
192.168.5.128
11000000.10101000.00000101.10000000
17
IP Address: 192.168.2.1
Subnet Mask: 255.255.255.0
With Prefix Notation: 192.168.2.1/24
18
Prefix Notation
IP Address: 132.168.64.3/18
Subnet Mask: 255.255.192.0
19
20
21
Example
Network
Network (binary)
Broadcast address
192.168.5.0/26
11000000.10101000.00000101.00000000 192.168.5.63
192.168.5.64/26
11000000.10101000.00000101.01000000 192.168.5.127
22
255.255.255.0
254
254
/25
255.255.255.128 2
126
252
/26
255.255.255.192 4
62
248
/27
255.255.255.224 8
30
240
/28
255.255.255.240 16
14
224
/29
255.255.255.248 32
192
/30
255.255.255.252 64
128
/31
255.255.255.254 128
2*
256
23
Another Example
Network ID: 191.168.0.0
Use 3 bits
Subnet Mask: 255.255.224.0
24
25
26
Variable Subnetting
Subnets use different subnet masks
Real world environments
No wasting of IP addresses
27
28
Subnet ID (Binary)
Subnet Mask
135.41.0.0/17
10000111.00101001.00000000.00000000
255.255.128.0
135.41.128.0/17
10000111.00101001.10000000.00000000
255.255.128.0
29
Subnet ID (Binary)
Subnet Mask
135.41.128.0/21
10000111.00101001.10000000.00000000
255.255.248.0
135.41.136.0/21
10000111.00101001.10001000.00000000
255.255.248.0
135.41.144.0/21
10000111.00101001.10010000.00000000
255.255.248.0
135.41.240.0/21
10000111.00101001.11110000.00000000
255.255.248.0
30
Subnet ID (Binary)
Subnet Mask
135.41.248.0/24
10000111.00101001.11111000.00000000
255.255.255.0
135.41.249.0/24
10000111.00101001.11111001.00000000
255.255.255.0
135.41.250.0/24
10000111.00101001.11111010.00000000
255.255.255.0
135.41.251.0/24
10000111.00101001.11111011.00000000
255.255.255.0
135.41.255.0/24
10000111.00101001.11111111.00000000
255.255.255.0
31
32
Exercise
33