0% found this document useful (0 votes)
18 views

EG066 - Lab 08 - IP Address Tutorial

This document contains details from a computer networks lab assignment submitted by a student. The assignment involves identifying IP address classes, differentiating network and host portions, writing subnet masks, and designing IP networks with specific requirements. It provides step-by-step working and answers for 12 questions related to IP addressing schemes, subnetting, and network design.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

EG066 - Lab 08 - IP Address Tutorial

This document contains details from a computer networks lab assignment submitted by a student. The assignment involves identifying IP address classes, differentiating network and host portions, writing subnet masks, and designing IP networks with specific requirements. It provides step-by-step working and answers for 12 questions related to IP addressing schemes, subnetting, and network design.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Department of Computer Science and Engineering

Faculty of Engineering, South Eastern University of Sri Lanka


Subject CS53001: Computer Networks
Batch E18 Semester 5

Lab no and title : Lab 08 : IP Address


Name : H.P.B.D.Hemapriya
Reg No : SEU/IS/18/EG/066
Submission Date : 01/26/2023

1. Identify the class of following IP addresses.

a) 150.10.15.0 = Class B
b) 126.8.156.0 = Class A
c) 249.240.80.78 = Class E
d) 117.89.56.45 = Class A

2. Differentiate the network portion and host portion of the following IP address.

a) 199.155.77.56 = Class C
b) 192.200.15.0 = Class C
c) 223.250.200.222 = Class C [ ] - Network portion
[ ] - Host portion
d) 117.89.56.45 = Class A
e) 198.125.87.177 = Class C
f) 17.45.222.45 = Class A
3. Using the IP address and subnet mask shown write out the network address.

IP Address Subnet mask Network Address

188.10.18.2 255.255.0.0 188.10.0.0

10.10.48.80 255.255.255.0 10.10.48.0

192.149.24.191 255.255.224.0 192.149.0.0

150.203.23.19 255.192.0.0 150.192.0.0

4. Write the correct default subnet mask for each of the following addresses.

a) 119.18.45.0 = 255.0.0.0
b) 191.249.234.191 = 255.255.0.0
c) 223.23.223.109 = 255.255.255.0
d) 10.10.250.11 = 255.0.0.0

5. Write the short form for the following IPV6 address

a) 21DA:00D3:0000:2F3B:02AA:00FF:FE28:9C5A
 21DA:D3::2F3B:2AA:FF:FE28:9C5A

b) 2001:0DA8:E800:0010208:0b2it6s0:3EFF:FE47:0001
 This is not a IPV6 address

c) 2001:0DA8:E800:0000:0000:0000:0000:0001
 2001:DA8:E800::1
6. Write the full form for the following IPV6 address

a) 21DA:DA::2F3B:2AA:FF:FE8:95A
 21DA:00DA:0000:2F3B:02AA:00FF:0FE8:095A

b) 2001:DA8::0b2it6s0:3EFF:FE47:1
 This is not a IPV6 address

c) 2001:0DA8:E800::0:1
 2001:0DA8:E800:0000:0000:0000:0000:0001

7. Design the network with following requirements.

a) Number of needed subnets - 1000 Network Address 165.100.0.0

Address class - Class B


Default subnet mask - 255.255.0.0
Custom subnet mask - 255.255.255.192
Total number of subnets - 210 = 1024
Total number of host per addresses - 1024 * 26 = 1024 * 64
= 65536
Number of usable addresses - (64 – 2) = 62
Number of bits borrowed - 10
b) Network Address 148.75.0.0/26

Address class - Class B


Default subnet mask - 255.255.0.0
Custom subnet mask - 255.255.255.192
Total number of subnets - 1024
Total number of host per addresses - 65536
Number of usable addresses - 62
Number of bits borrowed - 10

8. Design a network that require 500 hosts using B – class address network
172.16.0.0

Default subnet mask - 255.255.0.0


Custom subnet mask - 255.255.254.0
Total number of subnets - 27 = 128
Total number of host per addresses - 27 * 29 = 65536
Number of usable addresses - 510
Number of bits borrowed - 7

9. Design a network that require 15 000 hosts using A – class address network
10.16.0.0

Default subnet mask - 255.255.0.0


Custom subnet mask - 255.255.192.0
Total number of subnets - 22 = 4
Total number of host per addresses - 65536
Number of usable addresses - 16382
Number of bits borrowed - 2
10. An ISP is granted a block of addresses starting with 190.100.0.0/16. The ISP
needs to distribute these addresses to three groups of customers as follows:

1. The first group has 64 customers; each needs 256 addresses.


2. The second group has 128 customers; each needs 128 addresses.
3. The third group has 128 customers; each needs 64 addresses.

Design the sub blocks and give the slash notation for each sub block.
Find out how many addresses are still available after these allocations.

First Group :

There are 8 bit needs for 256 addresses.


32-8 = 24
So the new network ID is 192.100.0.0/24

No: Network ID Broadcast ID


1st 190.100.0.0/24 190.100.0.255/24
2nd 190.100.1.0/24 190.100.1.255/24
…. ….. …..
64th 190.100.63.0/24 190.100.63.255/24

So the available addresses = 64×256 = 16,384

Second Group :

There are 7 bit needs for 128 addresses.


32-7 = 25
So the new network ID is 192.100.0.0/25
No. Network ID Broadcast ID
1st 190.100.64.0/25 190.100.64.127/25
2nd 190.100.64.128/25 190.100.64.255/25
…. ….. …..
128th 190.100.127.128/25 190.100.127.255/25

So the available addresses = 128 × 128 = 16,384

Third Group :

There are 6 bit needs for 64 addresses.


32-6 = 26
So the new network ID is 192.100.0.0/26

No. Network ID Broadcast ID


1st 190.100.128.0/26 190.100.128.63/26
2nd 190.100.128.64/26 190.100.128.127/26
…. ….. …..
128th 190.100.159.192/26 190.100.159.255/26

So the available addresses = 128 × 64 = 8192

Total usable addresses in the ISP = 65536


Number of Addresses in group 1 = 16384
Number of Addresses in group 2 = 16384
Number of Addresses in group 3 = 8192
Total addresses in all 3 groups = 40960
Number of available addresses = 65536 – 40960
= 24576
11. An ISP has been allocated a block of addresses starting with 170.200.0.0/16
(65,536 addresses).The ISP needs to distribute these addresses to four groups
of customers as follows:

a. The first group has 100 customers; each needs 256 addresses.
b. The second group has 80 customers; each needs 128 addresses.
c. The third group has 50 customers; each needs 64 addresses.
d. The fourth group has 25 customers; each needs 32 addresses.

Design the sub blocks and find out how many addresses are still available after
these allocations.

First Group :

There are 8 bit needs for 256 addresses.


32-8 = 24
So the new network ID is 192.100.0.0/24

No. Network ID Broadcast ID


1st 170.200.0.0/24 170.200.0.255/24
2nd 170.100.1.0/24 170.200.1.255/24
…. ….. …..
100th 170.200.99.0/24 170.200.99.255/24

So the available addresses = 256 × 100 = 25600

Second Group :

There are 7 bit needs for 128 addresses.


32-7 = 25
So the new network ID is 170.200.0.0/25
No. Network ID Broadcast ID
1st 170.200.100.0/25 170.200.100.127/25
2nd 170.200.100.128/25 170.200.100.255/25
…. ….. …..
80th 170.200.139.128/25 170.200.139.255/25

So the available addresses = 128 × 80 = 10240

Third Group :

There are 6 bit needs for 64 addresses.


32-6 = 26
So the new network ID is 170.200.0.0/26

No. Network ID Broadcast ID


1st 170.200.140.0/26 170.200.140.63/26
2nd 170.200.140.64/26 170.200.140.127/26
…. ….. …..
50th 170.200.152.64/26 170.200.152.127/26

So the available addresses = 64 × 50 = 3200

Fourth Group :

There are 5 bit needs for 32 addresses.


32-5 = 27
So the new network ID is 170.200.0.0/27
No. Network ID Broadcast ID
1st 170.200.152.128/27 170.200.152.159/27
2nd 170.200.152.160/27 170.200.152.191/27
…. ….. …..
25th 170.200.155.128/27 170.200.155.159/27

So the available addresses = 32 × 25 = 800

Total usable addresses in the ISP = 65536


Number of Addresses in group 1 = 25600
Number of Addresses in group 2 = 10240
Number of Addresses in group 3 = 3200
Number of Addresses in group 3 = 800
Total addresses in all 4 groups = 39840
Number of available addresses = 65536 – 39840
= 25696

12. An ISP is granted a block of addresses starting with 200.50.0.0/19 (8,192


addresses). The ISP needs to distribute these addresses to four groups of
customers as follows:

Group 1: 10 customers, each needs 512 addresses


Group 2: 15 customers, each needs 256 addresses
Group 3: 20 customers, each needs 128 addresses
Group 4: 25 customers, each needs 64 addresses

Design a detailed plan for how the ISP can divide the block of addresses into
subnets and allocate them to the four groups of customers while minimizing the
waste of addresses.
Specify the subnet masks, network addresses, and number of available
addresses for each group
First Group :

There are 9 bit needs for 512 addresses.


32-9 = 23
So the new network ID is 200.50.0.0/23 and the Subnet Mask is 255.255.254.0

No. Network ID Broadcast ID


1st 200.50.0.0/23 200.50.1.255/23
2nd 200.50.2.0/23 200.50.3.255/23
…. ….. …..
10th 200.50.18.0/23 200.50.19.255/23

So the available addresses = 10×512 = 5120

Second Group :

There are 8 bit needs for 256 addresses.


32-8 = 24
So the new network ID is 200.50.0.0/24 and the Subnet Mask is 255.255.255.0

No. Network ID Broadcast ID


1st 200.50.20.0/24 200.50.20.255/24
2nd 200.50.21.0/24 200.50.21.255/24
…. ….. …..
15th 200.50.34.0/24 200.50.34.255/24

So the available addresses = 15×256 = 3840


Third Group :

There are 7 bit needs for 128 addresses.


32-7 = 25
So the new network ID is 200.50.0.0/25 and the Subnet Mask is
255.255.255.128

No. Network ID Broadcast ID


1st 200.50.35.0/25 200.50.35.127/25
2nd 200.50.35.128/25 200.50.35.255/25
…. ….. …..
20th 200.50.44.0/25 200.50.44.255/25

So the available addresses = 20×128 = 2560

Fourth Group :

There are 6 bit needs for 64 addresses.


32-6 = 26
So the new network ID is 200.50.0.0/26 and the Subnet Mask is
255.255.255.192

No. Network ID Broadcast ID


1st 200.50.45.0/26 200.50.45.63/26
2nd 200.50.45.64/26 200.50.45.127/26
…. ….. …..
24th 200.50.50.192/26 200.50.50.255/26
25th 200.50.51.0/26 200.50.51.63/26

So the available addresses = 25×64 = 1600


Total usable addresses in the ISP = 8192
Number of Addresses in group 1 = 5120
Number of Addresses in group 2 = 3840
Number of Addresses in group 3 = 2560
Number of Addresses in group 3 = 1600
Total addresses in all 4 groups = 13120

Here Total usable addresses in ISP < Required number of addresses in all groups
Therefore can’t be allocated the addresses as per the requirement.

You might also like