You are on page 1of 4

Assignment No.

1(Graded) Total Marks: 20


Semester Fall 2021
Marks for IP Class: 4 Due Date: 13-Dec-2021
IT430: E-Commerce
Marks for Conversion: 4

Marks for Network IDs: 4

Question # 2: Conversion
steps are missing

Comment: Check solution


file for clarification

================
================
=============

Instructions

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

o The assignment is submitted after due date.


o The submitted assignment does NOT open or file is corrupted.
o The assignment is copied (from other student or ditto copy from handouts or internet).

Uploading instructions
o For clarity and simplicity, you are required to Upload/Submit only .doc.

Objective

The objective of this assignment is:


o To understand the basics of IP Address
o To understand the basics of Subnet Mask
For any query about the assignment, contact at it430@vu.edu.pk
Note:

No assignment will be accepted after the due date via email in any case (whether it is the case of
load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the
last hour of deadline. It is recommended to upload solution file at least two days before its
closing date.

How to submit

 Submit only word file (bc12345689.doc) through LMS.

We know that IP addressing is the logical addressing scheme used to identify computer machines
on the internet. IP is a unique address assigned to each computing device over a network.
Computing devices use IP Address to identify and communicate with other devices. An IP
address consist of FOUR (4) decimal numbers (192.168.10.100) where each decimal number is
separated by a dot (.). Computer interpret an IP Address as a 32-bit number where each part
(decimal number) occupy 8 bits.

You are required to answer the below questions, for the following IP addresses
1. 6.7.8.9
2. 132.1.2.3
3. 220.15.1.10
4. 250.0.1.2

Question 1 Identify the network class of each IP address. [4 marks]


Question 2 Convert each IP address into its binary form with proper steps. [12 marks]
Question 3 Count total number of network IDs available in each class. [4 marks]

Answer 1: Class A networks have their first octet in the range 0 – 127, Class B networks 128 –
191, Class C networks 192 – 254. Using this information, we have:

1. 6.7.8.9 : Class A
5. 132.1.2.3 : Class B
6. 220.15.1.10 : Class C
7. 250.0.1.2 : Class C

Answer 2: Using the following table for Decimal to Binary conversion


128 64 32 16 8 4 2 1

1. 6 = 4 + 2 = 0110, 7 = 4+2+1 = 0111, 8 = 1000, 9 = 1001


6.7.8.9 in binary = 0110.0111.1000.1001

2. 132.1.2.3

128 64 32 16 8 4 2 1

1 0 0 0 0 1 0 0

132 = 10000100

Repeating above step for other octets, we have:

1 = 0001, 2 = 0010, 3 = 0011

Hence 132.1.2.3 in binary is 10000100.0001.0010.0011

3. 220.15.1.10

128 64 32 16 8 4 2 1

1 1 0 1 1 1 0 0

220 = 128 + 64 + 16 + 8 + 4 = 11011100

Repeating above step for other octets we have:

15 = 8+4+2+1 = 1111, 1 = 0001, 10 = 1010

Hence 220.15.1.10 in binary is 11011100.1111.0001.1010

4. 250.0.1.2

128 64 32 16 8 4 2 1

1 1 1 1 1 0 1 0

250 = 128 + 64 + 32 + 16 + 8 + 2 = 11111010


Repeating above step for other octets we have:

0 = 0000, 1 = 0001, 2 = 0010

Hence 250.0.1.2 in binary is 11111010.0000.0001.0010

Answer 3: Class A networks have 128 available networks, Class B has 16,384, and Class C has 2,097,152
available networks. Using this information, we have:

1. 6.7.8.9 (Class A) : 128 available network IDs


8. 132.1.2.3 (Class B) : 16,384 available network IDs
9. 220.15.1.10 (Class C) : 2,097,152 available network IDs
10. 250.0.1.2 (Class C) : 2,097,152 available network IDs

You might also like