Computer Networks and Network Security: Lab Assignment One
Due Sep. 30, 2025 in class or by email to the TA. This assignment gives you a chance to analyze communication systems.
[P1 (5 points)] Try to use traceroute and other tools to find:
A destination host on the Internet so that
the route from your laptop/desktop to the destination has
the largest number of hops that you can find. Please
list the hops.
What is your strategy to find such a host?
A destination host on the Internet so that
the route from your laptop/desktop to the destination
traverses the largest number of ISPs. You can get
full credit if it has at least 5 different ISPs,
but we encourage you to try to find a longer one.
What is your strategy to find such a host?
[P2 (10 points)] Suppose the number of people at XMU is
78000. Determine the number of external phone lines that XMU
will need in order to achieve a call blocking percentage of 0.01%.
Assume that each person at XMU makes five external phone call
per day, and each such phone call lasts on average 90 seconds,
with the memoryless distribution.
[P3 (10 points)] Suppose that you are designing a Web server for your
startup. You have acquired a single machine with a quad-core
processor. Assume that CPU is the bottleneck. You anticipate
that Web requests arrive (memoryless) at a rate of 15
requests/second, and benchmarking shows that it takes a core on
average 200 ms to serve a Web request. What is the average
service time that each Web request experiences? If it is a
dual-core processor, what happens? You need to draw the state
diagram when working on this problem.
[P4 (5 points)] This elementary problem explores propagation delay and
transmission delay, two central concepts in data
networking. Consider two hosts, A and B, connected by a single
link of rate R bps. Suppose that the two hosts are
separated by m meters, and suppose the propagation speed
along the link is s meters/sec. Host A is to send a packet
of size L bits to Host B.
Express the propagation delay, dprop,
in terms of m and s.
Determine the transmission time of the packet,
dtrans, in terms of L and
R.
Ignoring processing and queuing delays, obtain an
expression for the end-to-end delay.
Suppose Host A begins to transmit the packet at time
t = 0. At time t = dtrans,
where is the last bit of the packet?
Suppose dprop is greater than
dtrans. At time t =
dtrans, where is the first bit of the
packet?
Suppose dprop is less than
dtrans. At time t =
dtrans, where is the first bit of the
packet?
Suppose s = 2.5 x 108, L = 120
bits, and R = 56 kbps. Find the distance m so
that dprop equals
dtrans.
[P5 (10 points)] Suppose two hosts, A and B, are separated by 20,000
kilometers and are connected by a direct link of R = 2
Mbps. Suppose the propagation speed over the link is 2.5
· 108 meters/sec.
Calculate the bandwidth-delay product, R
· dprop.
Consider sending a file of 800,000 bits from Host A to
Host B. Suppose the file is sent continuously as one large
message. What is the maximum number of bits that will be in
the link at any given time?
Provide an interpretation of the bandwidth-delay
product.
What is the width (in meters) of a bit in the link? Is
it longer than a football field?
Derive a general expression for the width of a bit in
terms of the propagation speed s, the transmission
rate R, and the length of the link m.
[P6 (10 points)] In this problem, we consider sending real-time voice
from Host A to Host B over a packet-switched network
(VoIP). Host A converts analog voice to a digital 64 kbps bit
stream on the fly. Host A then groups the bits into 56-byte
packets. There is one link between Hosts A and B; its
transmission rate is 2 Mbps and its propagation delay is 10
msec. As soon as Host A gathers a packet, it sends it to Host
B. As soon as Host B receives an entire packet, it converts the
packet’s bits to an analog signal. How much time elapses
from the time a bit is created (from the original analog signal
at Host A) until the bit is decoded (as part of the analog
signal at Host B)?
[P7 (5 points)] Suppose you would like to urgently deliver 40 terabytes
data from Beijing to Xiamen. You have a 100 Mbps
dedicated link available for data transfer. Would you prefer to transmit
the data via this link or instead use SF Express over-night delivery? What
if the data needs to be delivered from Fuzhou to Xiamen?
Explain.
[P8 (10 points)] 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:
Would a packet-switched network or a circuit-switched
network be more appropriate for this application? Why?
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?
[P9 (10 points)] Suppose users share a 3 Mbps link. Also suppose each
user requires 150 kbps when transmitting, but each user
transmits only 10 percent of the time. (You can refer to the
discussion of packet switching versus circuit switching in
Section 1.3.2. of the textbook, if you want.)
When circuit switching is used, how many users can be
supported?
For the remainder of this problem, suppose packet
switching is used. You can use either our queueing analysis in class
or direct binomial distribution analysis.
Find the probability that a given user is
transmitting.
Suppose there are 120 users. Find the probability that
at any given time, exactly n users are transmitting
simultaneously.
Find the probability that there are 26 or more users
transmitting simultaneously.
[P10 (10 points)] In modern packet-switched networks, including the
Internet, the source host segments long, application-layer
messages (for example, an image or a music file) into smaller
packets and sends the packets into the network. The receiver then
reassembles the packets back into the original message. We refer
to this process as messagesegmentation. The figure
below illustrates the end-to-end transport of a message with and
without message segmentation. Consider a message that is
8x106 bits long that is to be sent from source to
destination in the figure below. Suppose each link in the figure
is 2 Mbps. Ignore propagation, queuing, and processing delays.
Consider sending the message from source to destination
without message segmentation. How long does it take to
move the message from the source host to the first packet
switch? Keeping in mind that each switch uses
store-and-forward packet switching, what is the total time to
move the message from source host to destination host?
Now suppose that the message is segmented into 800
packets, with each packet being 10,000 bits long. How long
does it take to move the first packet from source host to the
first switch? When the first packet is being sent from the
first switch to the second switch, the second packet is being
sent from the source host to the first switch. At what time
will the second packet be fully received at the first
switch?
How long does it take to move the file from source host
to destination host when message segmentation is used?
Compare this result with your answer in part (a) and
comment.
In addition to reducing delay, what are reasons to use
message segmentation?
Discuss the drawbacks of message segmentation.
Figure for P10: End-end message transport: (a) without message segmentation; (b) with message segmentation.
[P11 (10 points)] Consider sending a large file of F bits from
Host A to Host B. There are three links (and two switches)
between A and B, and the links are uncongested (that is, no
queuing delays). Host A segments the file into segments of
S bits each and adds 100 bits of header to each segment,
forming packets of L = 100 + S bits. Each link has
a transmission rate of R bps. Find the value of S
that minimizes the delay of moving the file from Host A to Host
B. Disregard propagation delay.
[P12 (5 points)] Google Voice is a software that allows
you to make a phone
call from a PC to an ordinary phone. This means that the voice
call must pass through both the Internet and through a telephone
network. Discuss how this might be done.