24T3COMP3331 Sample Solution
24T3COMP3331 Sample Solution
INSTRUCTIONS:
3. Total marks available: 20 marks, worth 20% of the total marks for the course.
4. Students are advised to read all of the examination questions before attempting to answer
the questions.
5. This exam cannot be copied, forwarded, or shared in any way.
7. Students are reminded of the UNSW rules regarding Academic Integrity and Plagiarism.
8. Your work will be saved periodically throughout the exam and will be automatically submitted
when the test ends provided you are connected to the internet.
9. You must upload all of your work within the exam time. There is no extra time to upload. No
late submissions will be accepted.
https://unsw.inspera.com/admin#author/test/272794284 1/15
30/10/2024, 17:49 Throughput 2024T3v1(1.5 marks)
1) What is the maximum throughput that any host in this home network can
experience when downloading a large file from the Internet?
Select one alternative:
1 Gbps
8 Mbps
54 Mbps
15 Mbps
5 Mbps
2) What is the maximum throughput that any host in this home network can
experience when downloading a large file from any other host in the same
home network?
Select one alternative:
15 Mbps
8 Mbps
5 Mbps
54 Mbps
1 Gbps
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=285713931&selectedLanguageId=2#/section/1/question/285713931 1/2
30/10/2024, 17:49 Throughput 2024T3v1(1.5 marks)
3) If all hosts in the home network are simultaneously downloading large files
from the Internet and each host gets an equal share of the available bandwidth,
what is the maximum throughput that any host in the home network can
experience?
54 Mbps
8 Mbps
1 Gbps
15 Mbps
5 Mbps
Feedback
3) This follows from the answer to the first question. The bottleneck
link (ADSL) has capacity of 15Mbps and when shared equally
amongst the 3 hosts, each would achieve a maximum throughput of
5 Mbps.
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=285713931&selectedLanguageId=2#/section/1/question/285713931 2/2
30/10/2024, 17:49 Throughput 2024T3v2(1.5 marks)
1) What is the maximum throughput that any host in this home network can
experience when downloading a large file from the Internet?
Select one alternative:
8 Mbps
5 Mbps
54 Mbps
15 Mbps
1 Gbps
54 Mbps
15 Mbps
5 Mbps
8 Mbps
1 Gbps
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685413&selectedLanguageId=2#/section/1/question/288685413 1/2
30/10/2024, 17:49 Throughput 2024T3v2(1.5 marks)
3) If all the hosts in the home network are simulataneously downloading large
files from the Internet and each host gets an equal share of the available
bandwidth, what is the maximum throughput that any host in the home network
can experience?
5 Mbps
1 Gbps
15 Mbps
8 Mbps
54 Mbps
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685413&selectedLanguageId=2#/section/1/question/288685413 2/2
30/10/2024, 17:51 WWW 2024T3 midterm
Assume TCP is used with a 1.5 RTT connection handshake, and the client
combines the HTTP GET request with the final ACK in the TCP handshake.
Calculate the total time in terms of RTTs required to load all objects if the client
uses each of the following approaches.
https://unsw.inspera.com/player?mode=question&context=preview&contentItemId=272794278&selectedLanguageId=2#/section/1/question/285437868 1/1
30/10/2024, 17:52 WWW 2024T3 midterm
18
20
22
24
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685441&selectedLanguageId=2#/section/1/question/288685441 1/1
30/10/2024, 17:52 WWW 2024T3 midterm
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685470&selectedLanguageId=2#/section/1/question/288685470 1/1
30/10/2024, 17:53 WWW 2024T3 midterm
12
14
15
13
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685510&selectedLanguageId=2#/section/1/question/288685510 1/1
30/10/2024, 17:54 RTP 2024T3 midterm
1,000 packets
500 packets
3,000 packets
2,000 packets
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288687718&selectedLanguageId=2#/section/1/question/288687718 1/1
30/10/2024, 17:54 DNS 2024T3 midterm
Question:
Which DNS record's configuration would you adjust to minimise this delay?
Select one alternative:
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685548&selectedLanguageId=2#/section/1/question/288685548 1/1
30/10/2024, 17:54 statistical multiplexing 2024T3 midterm
Based on the information above, please provide answers to the following three
questions. Simply record the numerical responses in the designated spaces.
No explanations are necessary.
https://unsw.inspera.com/player?mode=question&context=preview&contentItemId=272794230&selectedLanguageId=2#/section/1/question/276752793 1/1
30/10/2024, 17:55 statistical multiplexing 2024T3 midterm
(0.011 - 0.012) .
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685613&selectedLanguageId=2#/section/1/question/288685613 1/1
30/10/2024, 17:55 statistical multiplexing 2024T3 midterm
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685658&selectedLanguageId=2#/section/1/question/288685658 1/1
30/10/2024, 17:56 statistical multiplexing 2024T3 midterm
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685876&selectedLanguageId=2#/section/1/question/288685876 1/1
30/10/2024, 17:56 Queueing 2024T3 midterm
What is the average queuing delay for the four packets? Please provide a
concise explanation of how you arrived at this result in two to three sentences.
Format
Σ
Words: 0
Feedback
500*8/(2*10^6)*(0+1+2+3) / 4 = average 3 ms
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685903&selectedLanguageId=2#/section/1/question/288685903 1/2
30/10/2024, 17:56 Queueing 2024T3 midterm
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685903&selectedLanguageId=2#/section/1/question/288685903 2/2
30/10/2024, 17:57 GoBackN 2024T3 midterm
Format
Σ
Words: 0
Feedback
2^12-1 = 4,095 (12 bits are supporting maximum window size) >
2,500 so protocol would still function properly.
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685909&selectedLanguageId=2#/section/1/question/288685909 1/2
30/10/2024, 17:57 GoBackN 2024T3 midterm
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685909&selectedLanguageId=2#/section/1/question/288685909 2/2
30/10/2024, 17:57 SR 2024T3 midterm
SR 2024T3 midterm
In a Selective Repeat system, the sequence number field is 10 bits long. The
system uses a window size of 350 packets. Will the protocol function correctly?
If not, what is the maximum allowable window size? Justify your answer.
Format
Σ
Words: 0
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=285619059&selectedLanguageId=2#/section/1/question/285619059 1/2
30/10/2024, 17:57 SR 2024T3 midterm
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=285619059&selectedLanguageId=2#/section/1/question/285619059 2/2
30/10/2024, 17:57 BT 2024T3 midterm
BT 2024T3 midterm
Doro joins a BitTorrent torrent to download a file and is connected to 4 peers –
Tarja, Randy, Corey, and Rob. The file Doro wishes to download is divided into
4 chunks. Each peer tracks its availability of chunks using a vector of 4 bits.
When the bit value is 1, the peer holds the chunk on the disk. When the bit
value is 0, the chunk is not on the peer’s disk. For example, (1, 0, 1, 0)
indicates chunks 1 and 3 are available at this particular peer.
The vectors of Tarja, Randy, Corey and Rob are shown below:
Tarja: (0, 1, 1, 1)
Randy: (1, 1, 0, 0)
Corey: (0, 1, 1, 1)
Rob: (0, 1, 1, 0)
Assume that Tarja, Randy, Corey and Rob are not interested in the file
anymore and stop downloading the remaining chunks but continue to
participate in the torrent and service requests for chunks.
What is the order in which Doro requests the chunks for downloading the file.
Select the appropriate options below.
Feedback
Bittorrent uses rarest first method so Doro sould download the rarest
chuck first and then so on. So Chunk 1, Chunk 4, Chunk 3 and
Chunk 2
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685938&selectedLanguageId=2#/section/1/question/288685938 1/2
30/10/2024, 17:57 BT 2024T3 midterm
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685938&selectedLanguageId=2#/section/1/question/288685938 2/2
30/10/2024, 17:58 CDN & Cache 2024T3v1(2.5 marks)
We assume that all connection setup packets HTTP request packets and HTTP
headers are negligible in size, and disregard the connection closure process.
Additionally, we assume that the cache initially contains no entries related to the
specified host.
Calculate the minimum time required for the object to appear in the web browser. (please
provide the exact value)
(203.616) ms
After an hour, same web browser attempts to access the same page and issues the same
GET request. Assuming no changes have been made to the index.html on the web server,
calculate the minimum time required for the object to appear in the web browser. (please
provide the exact value)
(2.016) ms
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685976&selectedLanguageId=2#/section/1/question/288685976 1/2
30/10/2024, 17:58 CDN & Cache 2024T3v1(2.5 marks)
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685976&selectedLanguageId=2#/section/1/question/288685976 2/2
30/10/2024, 17:58 TCP Seq 2024T3v1(1.5)
Consider the diagram above, which illustrates a TCP data transfer between Host A and
Host B using five segments. The TCP timeout is set to 200ms, and assume that TCP fast
retransmit is disabled.
Some of the sequence numbers and acknowledgment numbers are shown in the diagram.
Based on the information above, please provide answers to the questions below.
Simply record the numerical responses in the designated spaces. No explanations are
necessary
Note: We will not consider any error propagations in the computations. No partial marks
will be awarded for the computation of each numeric value.
A value is (1501)
B value is (500)
C value is (2001)
D value is (2001)
E value is (3001)
F value is (3501)
Feedback
A = 1,001 + 500 = 1,501 B = 500 (since the ACK sent by Host B acknowledges
A’s sequence number plus the data received, i.e., 2,001 + 500) C = 2,001 (the
ACK sent by Host A shows 2,001, and Host B is not sending any additional data
to Host A) D = 2,001 (no data is sent by Host B to Host A, so the sequence
number remains the same) E = 3,001 (the 5th segment is sent to Host B before
the TCP timeout occurs, so no retransmission has happened yet) F = 3,501
(acknowledging segment 5, which accounts for the lost ACK during transmission.
The TCP timer expires once the ACK is received at Host A)
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685996&selectedLanguageId=2#/section/1/question/288685996 1/2
30/10/2024, 17:58 TCP Seq 2024T3v1(1.5)
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288685996&selectedLanguageId=2#/section/1/question/288685996 2/2
30/10/2024, 17:59 TCP Seqno 2024T3 midterm
800
500
1,300
1,800
Feedback
sequence of the ACK for 3rd segment = A's next sequence number
=1,300
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288686007&selectedLanguageId=2#/section/1/question/288686007 1/1
30/10/2024, 17:59 TCP Seq 2024T3 midterm
1. 200 bytes
2. 300 bytes
3. 400 bytes
The receiver sends an ACK after receiving each segment. If the ACK for the
third segment has an acknowledgment number of 1,000, what is the sequence
number of the next segment sent by the sender?
1,400
1,200
1,000
900
Feedback
https://unsw.inspera.com/player?mode=question&context=preview&contentRevisionId=288686033&selectedLanguageId=2#/section/1/question/288686033 1/1