Sub Netting and Super Netting
Sub Netting and Super Netting
Sub Netting and Super Netting
Dept of E & E
CONTENTS
SUBNETTING SUPERNETTING
Dept of E & E
SUBNETTING
Dept of E & E
Dept of E & E
Dept of E & E
Dept of E & E
Dept of E & E
Dept of E & E
Dept of E & E
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.
Dept of E & E
11
Example 1
What is the subnetwork address if the destination address is 160.45.34.56 and the subnet mask is 255.255.240.0?
Dept of E & E
12
Solution
Dept of E & E
13
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.
Dept of E & E ELE 411F Computer Networks 14
Example 2
What is the subnetwork address if the destination address is 190.30.80.5 and the mask is 255.255.192.0?
Dept of E & E
15
Example 2 Solution
Dept of E & E
16
Dept of E & E
17
Dept of E & E
18
Example 3
A company is granted the site address 201.70.64.0 (class C). The company needs six subnets. Design the subnets.
Solution
in
the
default
19
Solution (Continued)
The company needs six subnets. This number 6 is not a power of 2. The next number that is a power of 2 is 8 (23). We need 3 more 1s in the subnet mask. The total number of 1s in the subnet mask is 27 (24 + 3). The total number of 0s is 5 (32 - 27). The mask is
Dept of E & E
20
Solution (Continued)
The number of subnets is 8. The number of addresses in each subnet is 25 (5 is the number of 0s) or 32.
Dept of E & E
21
Example 3
Dept of E & E
22
Example 4
A company is granted the site address 181.56.0.0 (class B). The company needs 1000 subnets. Design the subnets.
Solution
Solution (Continued)
The company needs 1000 subnets. This number is not a power of 2. The next number that is a power of 2 is 1024 (210). We need 10 more 1s in the subnet mask. The total number of 1s in the subnet mask is 26 (16 + 10). The total number of 0s is 6 (32 - 26).
Dept of E & E
24
Solution (Continued)
The mask is 11111111 11111111 11111111 11000000 or 255.255.255.192. The number of subnets is 1024. The number of addresses in each subnet is 26 (6 is the number of 0s) or 64.
Dept of E & E ELE 411F Computer Networks 25
Example 4
Dept of E & E
26
SUPERNETTING
Dept of E & E
27
A supernetwork
Dept of E & E
28
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.
Dept of E & E ELE 411F Computer Networks 29
Example 5
A company needs 600 addresses. Which of the following set of class C blocks can be used to form a supernet for this company?
198.47.32.0
198.47.32.0 198.47.31.0 198.47.32.0
198.47.33.0
198.47.42.0 198.47.32.0 198.47.33.0
198.47.34.0
198.47.52.0 198.47.33.0 198.47.34.0 198.47.62.0 198.47.52.0 198.47.35.0
Dept of E & E
30
Solution
1: No, there are only three blocks.
Dept of E & E
31
In subnetting, we need the first address of the subnet and the subnet mask to define the range of addresses.
Dept of E & E
32
In supernetting, we need the first address of the supernet and the supernet mask to define the range of addresses.
Dept of E & E
33
Dept of E & E
34