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

Sajjad Qureshi 2k19/SWE/93: Name: Roll No

This document provides instructions for Assignment 1 of the course COMPUTER COMMUNICATION AND NETWORKS. It is due on February 27, 2021 and is worth 40% of the student's grade. The assignment contains 5 questions - a scenario based question worth 20 marks, a conceptual matching question worth 8 marks, a routing table question worth 5 marks, a subnetting question worth 5 marks, and a subnet/host bit question worth 2 marks. Late submissions will be marked as zero.

Uploaded by

Sajjad Qureshi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Sajjad Qureshi 2k19/SWE/93: Name: Roll No

This document provides instructions for Assignment 1 of the course COMPUTER COMMUNICATION AND NETWORKS. It is due on February 27, 2021 and is worth 40% of the student's grade. The assignment contains 5 questions - a scenario based question worth 20 marks, a conceptual matching question worth 8 marks, a routing table question worth 5 marks, a subnetting question worth 5 marks, and a subnet/host bit question worth 2 marks. Late submissions will be marked as zero.

Uploaded by

Sajjad Qureshi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Course Name: COMPUTER COMMUNICATION AND NETWORKS

Course Code: SENG-428

Assignment No: 1
Date: 08-January-2021
Due On: 27-February-2021
Course Instructor: Dr. Abdul Waheed Mahesar

INSTRUCTION(S) TO CANDIDATES:

This assignment is due on February 5th, 2021 and is worth 40% of your grade. You must
complete it without group. The late submitted assignments will be marked as zero.

Name: Roll No:


Sajjad Qureshi 2k19/SWE/93

GRADING SUMMARY
QUESTIONS OBTAINED MAXIMUM
POINTS POINTS

1 20

2 08

3 05

4 05

5 02

TOTAL 40

Q.1 SCENARIO BASED QUESTION (20 marks)

1. Use the figure below to answer the questions 1a to 1g. (20 marks)

1
1a. Use 192.168.41.0 as the network address of the figure above, and provide its subnet
mask. Show your calculations if needed. (1 Mark)

Network Address Default Subnet Mask

192.168.41.0 255.255.255.0

Using the given network address in question (1a), Extract 8 subnet addresses that will be
assign to each subnet in the following ways:

1 Number of bits required/borrowed for


b 8 sub networks are (1 Mark) 3 bits

1 New subnet masks and the new


c address (2 Marks)
255.255.255.224

1 Network address ranges within each Subnet Ranges


d subnet. (4 Marks) Subnet_1 192.168.41.0 to
192.168.41.31
Subnet_2 192.168.41.32 to
2
192.168.41.63
Subnet_3 192.168.41.64 to
192.168.41.95
Subnet_4 192.168.41.96 to
192.168.41.127
Subnet_5 192.168.41.128 to
192.168.41.159
Subnet_6 192.168.41.160 to
192.168.41.191
Subnet_7 192.168.41.192 to
192.168.41.223
Subnet_8 192.168.41.224 to
192.168.41.255

1e Network IP address of each subnet Subnet Network IP address


(4 Marks) Subnet_1 192.168.41.0
Subnet_2 192.168.41.32
Subnet_3 192.168.41.64
Subnet_4 192.168.41.96
Subnet_5 192.168.41.128
Subnet_6 192.168.41.160
Subnet_7 192.168.41.192
Subnet_8 192.168.41.224

1f Broadcast IP address of each subnet Subnet Broadcast IP address


(4 Marks) Subnet_1 192.168.41.31
Subnet_2 192.168.41.63
Subnet_3 192.168.41.95
Subnet_4 192.168.41.127
Subnet_5 192.168.41.159
Subnet_6 192.168.41.191
Subnet_7 192.168.41.223
Subnet_8 192.168.41.255

1 Number of Usable Network IP Subnet Number of IP addresses


g addresses that will be assign to hosts that will be assign to
within each subnet. (4 Marks) hosts
Subnet_1 30
Subnet_2 30
Subnet_3 30
Subnet_4 30
Subnet_5 30
3
Subnet_6 30
Subnet_7 30
Subnet_8 30

CONCEPTUAL QUESTION:
Q2. Match the OSI model layers with their appropriate functions. (08 marks)
1. Defines higher-level structure of data (packets)
2. Defines representation of data on the medium
3. Defines the type of media to be used
4. Defines “physical” address structure for hosts
5. Provides a portal for the application to access the network
6. Defines the network representation of data
7. Provides a logically persistent connection between processes
8. Provides process-to-process data transfer

Answer:

1. Defines higher- level structure of data


(packets):
4
This matches to “Network layer” in OSI model because Network layer in
OSI model deals with packets only.

2. Defines representation of data on the medium:


This matches to “Physical Layer” in OSI model because only physical layer
deals with the medium of data.

3. Defines the type of media to be used:


This matches to “physical Layer” in OSI model because Physical Layer
defines which medium should be used.

4. Defines “physical” address structure for hosts:


This matches to “Data Link Layer” in OSI model because Data link Layer
deals with the Physical Address (MAC Address).

5. Provides a portal for the application to access the network:


This matches to “Transport Layer” in OSI model because Transport Layer
in OSI model deals with the port numbers.

6. Defines the network representation of data:


Sorry sir, I don’t know.

7. Provides a logically persistent connection between processes:


This matches to “Network Layer” in OSI model because Network layers
deals with the logical addresses (IP Address).

8. Provides process-to-process data transfer:


This matches to “Transport Layer” in OSI model because Transport Layer
deals with port numbers which is actually number to send the data to the right
process/Application.

Q3. Answer the question based on the given diagram: (05 marks)

5
Please enter the values of the following routing table based on the above network diagram:

Router R1 R2 R3 R4
Number of logical interfaces 3 3 4 2
Logical Interface addresses
Next addresses

Q4. Consider the scenario as follows: (5 marks)


Network 172.16.0.0 (Class B)
6
Mask 255.255.255.0 (for all subnets)
With some math, the facts about each subnet that exists in this Class B network can be
calculated.
a) How many valid subnets can be formed?
b) How many valid hosts in each subnet can be assigned?
c) Write down the first 4 and last 4 subnet addresses.

ANSWER:
a) How many valid subnets can be formed?
2^8 = 256 valid subnets can be formed because there are 8 1’s in Host ID part.

b) How many valid hosts in each subnet can be assigned?


(2^8) -2 = 254 valid host can be assigned to each subnet in the network.

c) Write down the first 4 and last 4 subnet addresses.

First 4 Subnet Addresses Last 4 Subnet Addresses

172.16.0.0 172.16.252.0

172.16.1.0 172.16.253.0

172.16.2.0 172.16.254.0

172.16.3.0 172.16.255.0

Q5. A Class B network needs to be subnetted such that it supports 100 subnets and 100
hosts/subnet. Which of the following answers list a workable combination for the number
of networks, subnet, and host bits? (Select two answers.) (2 marks)
7
a. Network = 16, subnet = 7, host = 7
b. Network = 16, subnet = 8, host = 8
c. Network = 16, subnet = 9, host = 7
d. Network = 8, subnet = 7, host = 17

Option B and C are correct

 Answer B:
 B should be correct: N = 16, S = 8, H = 8 bits, Because an IPv4
address contain 32 bits in this option Total bits become 16+8+8=32
and because this is class B network in class B network 16 bits are for
network id and 2^8 = 256 subnets can be formed and (2^8)-2 = 254
host can be formed so it can support 100 subnets as well as 100 hosts.

 Answer C: 
 C should be correct: N = 16, S = 9, H = 7, Because an IPv4 address
contain 32 bits in this option Total bits become 16+9+7=32 and
because this is class B network in class B network 16 bits are for
network id and 2^9 = 512 subnets can be formed and (2^7)-2 = 126
host can be formed so it can support 100 subnets as well as 100 hosts.

THE END

You might also like