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

Tutorial1

The document is a tutorial for a Computer Networks course, containing questions and answers related to latency calculations, comparisons between circuit and packet switching, and data transmission scenarios. It includes specific examples of calculating delays, queuing times, and effective data rates in various network configurations. The tutorial also addresses the bandwidth-delay product and its implications for data transmission over a direct link.

Uploaded by

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

Tutorial1

The document is a tutorial for a Computer Networks course, containing questions and answers related to latency calculations, comparisons between circuit and packet switching, and data transmission scenarios. It includes specific examples of calculating delays, queuing times, and effective data rates in various network configurations. The tutorial also addresses the bandwidth-delay product and its implications for data transmission over a direct link.

Uploaded by

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

Computer Networks Course

Spring 2025
Tutorial 1

Q1- Compute the latency of sending a packet of size 12000 bits


from a remote server to a client as shown in figure below. The
server is connected to a router by a 30Mbps link with a 10ms
propagation delay. This router in turn is connected to anther
router over a 20Mbps link with a 50ms propagation delay,
while the client is connected to a router by a 10Mbps link with
a 0ms propagation delay. What is the queuing delay at each
router, if the traffic intensity at each router is 1 server and a
queue length of each router is 20 packets?

1
Tutorial 1

Answer:
Latency= Propagation time + transmission time + processing time + queuing
delay
Latency = (10 + 50 + 0) ms + (12000/30Mbps + 12000/20Mbps +
12000/10Mbps) + 0 + 0

Queuing delay for each router?


Given that the traffic intensity of each router = 1
Because the traffic intensity is 1 then queue is full
Queuing time of the router on the top = 20 * (12000/20Mbps)
Queuing time of the router on the bottom = 20 * (12000/10Mbps)
2
Tutorial 1

Q2- Compare between circuit switching and packet switching with


respect to the following: transmission time; occurrence of
congestion; order of arriving packets?

Answer:
Transmission time Occurrence of congestion Order of arriving
Circuit switching: Longer at setup time in order
Packet switching: Shorter on every packet out of order

Q3- In packet-switched networks, consider a message that is 50K


bits long that is to be sent from Host A to Host B pass through
routers between. The message is broken into packets each of
size 10K bits. Suppose each link is 2Mbps. Ignore propagation,
queuing, and processing delays. Calculate the latency of sending
the packets from host A to Host B.
B
3
Tutorial 1

Q4- Consider the figure below that represented network consisting of two
100 Mbps Ethernet LANs connected by Router. Assume each
Ethernet links introduces a propagation delay of 1 µsec. The
processing capacity of the router is 0.01 Packet/sec, but it introduces
no queue delay. Given that the size of each packet is 1500Byte.
A- Calculate total delay of sending a 1500 Byte from Host 1 to
Host 2
B- Calculate the effective data rate for sending a 1500 Byte?

Answer:
Latency = propagation delay + transmission time + processing time + queuing delay
= ( 1 + 1) µsec + (1500 *8 / 100Mbps + 1500 *8 / 100Mbps) + 0.01 s
(processing time of sending one packet (1500byte) + 0

The effective data rate = 1500 * 8/ latency


4
Tutorial 1

Q5- Suppose two hosts, A and B are separated by 100 km and are
connected by a direct link of R = 1Gbps. Suppose the propagation
speed over the link is 2.5 x 108 m/s.
A- Consider sending a file of 300 kbits from A to B. Suppose the file is
sent continuously as one big message. What is the maximum number
of bits that will be in the link at any given time?
B- How long does it take to send the above file if it is sent
continuously?

Answer:

A- Bandwidth-delay product = 1Gbps x 100km / 2.5 x108 m/s = 400kbits

What is the maximum number of bits that will be in the link =400kbits

B-The time required to send the file = 0.3Mbits/ 1Gbps + 100km/ 2.5 x108 m/s
5

You might also like