Assignment1 Sec1

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

Capital University of Science and Technology

Department of Computer Science


CS-3773 – Computer Networks (Sec-1)
ASSIGNMENT NO 1.
Semester: Fall 24 Max Marks: 10
Instructor: Dr. Muhammad Siraj Rathore

Assigned Date: 14-10-2024 Due Date: 18-10-2024 (in class, hard deadline)
Name: Reg. No.

IMPORTANT INSTRUCTIONS:
• ONLY HANDWRITTEN HARD COPY SOLUTION IS ACCEPTABLE
• Take print out of this assignment and write answers on the given space
• Write your name and roll number on the given space above
• Copied Assignments will receive zero marks.
• Please note CAREFULLY that all the numerical values of assignment questions are based on
your 6-digit CUST Reg# (bbbnnn), where first 3 digits represent your batch (e.g. 223), and last
three digits are your number (e.g. 068). Please carefully CALCULATE the numerical values
from your Reg#. ONLY the answers with correct values will be marked!!!
Question No. 1 [Marks= 2]

A network has a 2 km link, an intermediate switch and then a 10 km link (propagation speed is
2x10^8 m/sec). The waiting time at the intermediate switch is 20ms. The sender transmits at 1
Mbps and the intermediate switch transmits at 10 Mbps. Calculate the

(a) average end-end throughput (b)


(b) total end-to-end delay if the file of size bbbnnn bytes is sent from the source to destination,
where bbbnnn are the 6 digits of your Reg#. Assume that processing delay is zero.

Question No. 2 [Marks= 2]

Suppose you have a large file of bbbnnn MB of data (where bbbnnn are the 6 digits of your Reg#).
The file needs urgent transfer from one city to another city. Assume that between the two cities,
you have a n-Mbps dedicated link available for data transfer (where ‘n’ is the last digit of your
Reg#. If it is 0, assume link speed of 10 Mbps). Will you prefer data transfer over this provided
link, OR you will prefer another option of a one-day parcel delivery option, provided by a courier
service? Explain, and give proper reasoning.
Question No. 3 [Marks= 2]
Why all the layers of TCP/IP protocol suite are not present/implemented on the intermediate
nodes/routes/switches? Support your answer with logical reasoning.

Question No. 4 [Marks= 4]


Consider an application that transmits data at a steady rate (for example, the sender generates an
N-bit unit of data every k time units, where k is small and fixed). Also, when such an application
starts, it will continue running for a relatively long period of time. Answer the following questions.
Briefly justifying your answer:
(i). Would a packet-switched network or a circuit-switched network be more appropriate
for this application? Why?
(ii). Suppose that a packet-switched network is used and the only traffic in this network
comes from such applications as described above. Furthermore, assume that the sum of the
application data rates is less than the capacities of each and every link. Is some form of
congestion control needed? Why?

You might also like