0% found this document useful (0 votes)
20 views3 pages

Lab Handout Solution # 01 Roll - No: 22sw076

Uploaded by

Hira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views3 pages

Lab Handout Solution # 01 Roll - No: 22sw076

Uploaded by

Hira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

DEPARTMENT OF SOFTWARE ENGINEERING

MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO


COMPUTER COMMUNICATION & NETWORKING
(4 TH Semester, 2 ND Year)
LAB HANDOUT SOLUTION # 01
Roll.no: 22sw076

OBJECTIVES
#. Of
# Topic CLO Taxonomy level
Lectures
To become familiar with subnetting concepts.
1 3 1,2 C3, P5

TASK:1
Use the following information and the previous examples to answer the following subnet-related
questions
A company has applied for and received a Class C network address of 197.15.22.0.
The physical network is to be divided into 4 subnets, which will be interconnected by
routers. At least 25 hosts will be needed per subnet. A Class C custom subnet mask
needs to be used and a router is needed between the subnets to route packets from
one subnet to another. Determine the number of bits that need to be borrowed from
the host portion of the network address and the number of bits that will be left for
host addresses.

Solution:
Fill in the following table and answer the following questions:
Subnet Subnet Bits Subnet Bits Host Bits Subnet/ho Use?
No. Borrowed Decimal and Possible st Decimal
Binary Subnet No. Binary Range
Value Values(Range)
(5 Bits )
0 subnet 000 0 00001 – 11111 0 -31 Network Address
1st 001 1 00001 – 11111 32 -63 To create Hosts
subnet
2nd 010 2 00001 – 11111 64 – 95 To create Hosts
subnet
3rd 011 3 00001 – 11111 96 – 127 To create Hosts
subnet
4th 100 4 00001 – 11111 128 – 159 To create Hosts
subnet
5th 101 5 00001 – 11111 160 – 191 To create Hosts
subnet
6th 110 6 00001 – 11111 192 – 223 To create Hosts
subnet
7th 111 7 00001 – 11111 224 – 254 Broadcast Address
subnet
Use the table just developed to help answer the following questions:

1. Which octet(s) represent the network portion of a Class C IP address?


- The first three octets (24 bits) represent the network portion.

2. Which octet(s) represent the host portion of a Class C IP address?


- The fourth octet (last 8 bits) represents the host portion.

3. What is the binary equivalent of the Class C network address in the scenario?
- For the address `197.15.22.0`, the binary form is
`11000101.00001111.00010110.00000000`.

4. How many high-order bits were borrowed from the host bits in the fourth octet?
- Three bits were borrowed from the host portion.

5. What subnet mask must be used? Show the subnet mask in decimal and binary.
- The subnet mask in binary: `11111111.11111111.11111111.11100000`
- Decimal: `255.255.255.224`
6. What is the maximum number of subnets that can be created with this subnet
mask?
- \ (2^3 = 8\) subnets.

7. What is the maximum number of usable subnets that can be created with this
mask?
- Generally, 6 subnets are usable (excluding the first and last for network and
broadcast).

8. How many bits were left in the fourth octet for host IDs?
- Five bits remain for host IDs.

9. How many hosts per subnet can be defined with this subnet mask?
- \ (2^5 - 2 = 30\) hosts per subnet (excluding network and broadcast addresses).

10. What is the maximum number of hosts that can be defined for all subnets with this
scenario?
- \ (6 \times 30 = 180\) hosts.

11. Is 197.15.22.63 a valid host IP address with this scenario?


- No, `197.15.22.63` is the broadcast address for the 197.15.22.32 subnet.

12. Why or why not?


- Broadcast addresses are reserved and cannot be assigned to hosts.

13. Is 197.15.22.160 a valid host IP address with this scenario?


- Yes, `197.15.22.160` is a valid host address within the `197.15.22.128` subnet.

14. Why or why not?


- It falls within the usable range (128-159) and is neither a network nor a broadcast
address.

You might also like