CMPT 371 Assignment 1 Solution
CMPT 371 Assignment 1 Solution
Assignment 1
ANSWER KEY:
16. The delay components are processing delays, transmission delays, propagation
delays, and queuing delays.
All of these delays are relatively fixed, except for the queuing delays, which are
variable.
Students need to elaborate and explain
Page 1 of 4
Assignment 1
R19. Suppose Host A wants to send a large file to Host B. The path from Host A to Host B has three links,
of rates R1 = 500 kbps, R2 = 2 Mbps, and R3 = 1 Mbps.
a. Assuming no other traffic in the network, what is the throughput for the file transfer?
b. Suppose the file is 4 million bytes. Dividing the file size by the throughput, roughly how long will it take
to transfer the file to Host B?
c. Repeat (a) and (b), but now with R2 reduced to 100 kbps.
ANSWER KEY:
19. a) 500 kbps (Refer to Section 1.4.4)
b) 64 seconds
c) 100kbps; 320 seconds (Refer to Section 1.4.4)
Students need to elaborate and explain
R23. What are the five layers in the Internet protocol stack? What are the principal responsibilities of each
of these layers?
ANSWER KEY:
23. The five layers in the Internet protocol stack are from top to bottom the
application layer, the transport layer, the network layer, the link layer, and the
physical layer. The principal responsibilities are outlined in Section 1.5.1.
Students need to elaborate and explain
R24. What is an application-layer message? A transport-layer segment? A network-layer datagram? A linklayer frame?
ANSWER KEY:
24. Application-layer message: data which an application wants to send and passed
onto the transport layer; transport-layer segment: generated by the transport
layer and encapsulates application-layer message with transport layer header;
network-layer datagram: encapsulates transport-layer segment with a networklayer header; link-layer frame: encapsulates network-layer datagram with a
link-layer header and trailer.
Students need to elaborate and explain
R26. What is the difference between a virus and a worm?
ANSWER KEY:
26. a) Virus Requires some form of human interaction to spread.
Students need to elaborate and explain
b) Worms
No user replication needed. Worm in infected host scans IP addresses and
port numbers, looking for vulnerable processes to infect.
Students need to elaborate and explain
Page 2 of 4
Assignment 1
b) List the upload and download speed that you have subscribed from your ISP.
Then, check the speed of your Internet connection using speedtest.net. Screen
capture the results and print it out. Is there any discrepancy between your attained
speed and the guaranteed speed? Explain. (5 marks)
ANSWER KEY:
Each student will have a different response. It depends on his/her plan and the
ISP.
Students need to explain if there is any discrepancy. The discrepancy could be
due to the Cable/DSL modem, the routers, the local loop, etc.
Students need to elaborate and explain
c) You have trained your racing pigeons to carry a bag of ten SanDisk USB flash
drives from any location to your house/apartment. Each of the USB drives has a
capacity of 128GBytes. The pigeon can travel to your residence at 80 km/hour.
For what range of distance does the bird have a higher data rate than the fastest
residential Internet line from part a)? (10 marks)
ANSWER KEY:
Students may be using a different speed from part a). In this calculation, I
assume the fastest speed is 100Mbps.
The pigeons can carry 128GBytes x 10 = 10.24 Tbits.
A speed of 80 km/hour equals 0.022 km/sec.
Data rate = (Data Sent)/(time to send the data)
The time to travel distance y km is y/0.022 y sec
Data rate = 10.24 Tbits/(45.45*y) Tbits/sec = 225.3/y Gb/s
Set 225.3/y Gb/s = 100 Mbps = 0.1 Gb/s y = 2253km
For y < 2253 km, the pigeon has a higher rate than the Internet line.
Students need to elaborate and explain
Page 3 of 4
Assignment 1
3) In the future, when everyone has a home terminal connected to a computer network,
instant public referendums on important pending legislation will become possible.
Ultimately, existing legislatures could be eliminated, to let the will or the people be
expressed directly. The positive aspects of such a direct democracy are fairly
obvious; discuss some of the negative aspects. (10 marks) [From Tanenbaum]
ANSWER KEY:
There is obviously no single correct answer here, but the following points seem relevant.
i)
The present system has a great deal of inertia (checks and balances) built into it.
ii)
Also, many people hold strong opinions on controversial social issues, without
really knowing the facts of the matter.
iii)
The potential effects of advertising campaigns by special interest groups of one
kind or another also have to be considered.
iv)
Another major issue is security.
Students need to elaborate and explain
Page 4 of 4