Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

COMSATS Institute of Information Technology (CIIT)

Wah Campus
Assignment Spring 2017
Program: BEE 6A Total Marks: 50
Instructor: Dr. Omer Chughtai Deadline: 28-April-2017
Course: Data Communication and Computer Networks

Instructions: To solve the following questions, you need to replace the question mark (?) with your
own ID (registration number). For example, the first registered student of your class, Mr. Ishtiaq Ali,
has the following identifier.
CIIT/FA12-BEE-047/WAH so he needs to replace the question mark (?) in the following questions
with 47. Each student must replace the question mark (?) with his or her own identifier. Each student
needs to submit the assignment in the form of hard copy.
Q. No. 1: Change the following IP addresses from dotted-decimal notation to binary notation.
a. 114 . 34 . 2 . ?
b. 129 . ? . 6 . 8
c. 208 . 34 . ? . 12
Q. No. 2: Find the class of the following IP addresses.
a. ? . 34 . 54 . 12
b. 238 . ? . 2 . 1
c. ? . 34 . ? . 8
Q. No. 3: Find the NetId and the HostId of the following IP addresses.
a. ? . 34 . 2 . 8
b. 132 . ? . 8 . ?
c. 208 . 34 . ? . ?
Q. No. 4: In a block of addresses, we know the IP address of one host is 25 . 34 . 12 . ?/16. What are
the first address (network address) and the last address (limited broadcast address) in this
block.
Q. No. 5: Write the following masks in slash notation. Make your own assumptions, if required.
a. 255 . ? . 0 . 0
b. 255 . 255 . ? . 0
c. 255 . ? . 240 . 0
Q. No. 6: Find the range of addresses in the following blocks.
a. 123 . 56 . 77 . ? /29
b. 200 . 17 . ? . 128/27
c. 17 . 34 . ? . 0/23
d. 180 . 34 . 64 . ? /30
Q. No. 7: Given the classful address as ? . 168 . ? . 0 , divide the network in to three parts, in such a
way that the first part and the second part contain 64 subnets each and the third subnet
contains 128 subnets. Assign IP addresses to each host (A, B, C, D, E, and F) shown in the
following figure. Furthermore, determine the first, the last, the Directed Broadcast address of
each subnet and populate the routing table given in the following figure.

Internet
Subnet # 1
Subnet # 3

A IP
IP
Addr:
Addr: E IP
IP
Addr:
Addr:
IP
IP
B Addr:
Addr:
F IP
IP
Addr:
Addr:
Switch 1 192
? .. 168
168 .. 2?..00 Switch 3

C IP
IP Network ID Subnet Mask Interface
Addr:
Addr:
Routing
Table

D IP
IP
Addr:
Addr: Switch 2

Subnet # 2

Subnet # First Address Last Address Directed Broadcast Address

Q. No. 8: In a block of addresses, we know the IP address of one host. Determine the first address, last
address and range of the block for the given host addresses.
Host IP address first address Last address Range of the block
179 . 182 . 15 . 36 / ?
209 . 154 . ? . ? / 26

Q. No. 9: Given the class less information as 20 . ? . 40 . ? /25, divide the network in to two subnets.
Furthermore, determine the block ID of each subnet, the last address of each subnet, and the
range of each subnet.
Q. No. 10: Calculate the checksum of the following Internet Protocol version 4 (IPv4) header.

?
? ?

You might also like