Giu 2486 62 17730 2024-06-03T12 40 49
Giu 2486 62 17730 2024-06-03T12 40 49
Bar Code
CS DMET
Exercise 1 2 3 4 5 6 Σ
Marks 10 15 20 20 20 20 105 (5 bonus)
Final Marks
Page 1 of 14
Question 1:
Indicate whether the following statements are True (T) or False (F). If you feel the need to
justify your answer, please do so below the table.
1) MAC addresses can be used for data forwarding in local networks only. T
2) Open Shortest Path First (OSPF) is a routing protocol that can find optimal paths
F
between any two routers in the network.
9) All packets exchanged in the Dynamic Host Configuration Protocol (DHCP) for a
T
client to obtain an IP address are broadcast packets.
10) The ARP query is a unicast packet while the ARP response is a broadcast packet. F
Page 2 of 14
Question 2:
A client wishes to retrieve a webpage from a server. The round trip time (RTT) between the
client and the server is 100ms and the transmission speed of the server is 100 Mbits/s. The client
is allowed to open up to 6 parallel connections with the server. The webpage has 15 resources,
all of them having a size of 1 Mbits. The first resource is the HTML file, which contains all the
URLs of the other resources. Calculate the delay in retrieving the webpage if:
Assume that the client sends the requests for each resource on the TCP connections in a round
robin schedule. Thus, the first 6 requests are sent over each of the 6 parallel connections,
respectively, and the 7th request is sent over Connection 1 again, and so on. Assume that all TCP
handshakes have not taken place yet. Note that the transmission speed of the server is divided
over all active connections of the client, and that the browser will terminate any connection that
will no longer be used. Assume the browser will have all the required info for all the resources of
the webpage once the HTML file is downloaded.
Answer to 2:
To answer this question, it is sufficient to calculate the delay on the connection that will observe
the longest delay.
Whether pipelining is used or not, the first step is to download the HTML file:
Then, 12 out of the remaining 14 requests will be sent over the 6 connections:
Page 3 of 14
Pipelining:
Without pipelining:
The remaining 2 requests will be sent over connections 1 and 2. Cnnections 36 are now
terminated. Since Connection 2 is lagging, it is sufficient to calculate the delay only for this
connection.
Pipelining:
Without pipelining
Page 4 of 14
Question 3:
a) Consider two hosts A and B that are communicating over a TCP connection. Assume that the
initial sequence numbers for A and B are 100 and 150, respectively (these are the numbers
that should be used for the first packets sent). The figure below shows the exchange of
messages between A and B. Assuming that the system is able to buffer packets that are
received out of order; fill in the blanks for sequence numbers and acknowledgment numbers.
Answer to 3 a):
Page 5 of 14
b) The following table shows the values of the receive window (rwnd) and the actual sending
rate (SR) used by a client running TCP with congestion control and flow control. Answer the
following:
- What is the processing speed of the receiver (MSS/RTT)?
- In which RTT(s) did a timeout event occur?
- In which RTT(s) did a three duplicate ACK event occur?
- If ssthresh was initially equal to 20 MSS, identify all RTT(s) when it was changed and
what was its new value(s).
RTT 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Rwnd 10 10 10 10 7 5 5 9 10 10 10 10 10 10 9 7 5 6 6 5
SR 1 2 4 8 7 5 1 2 4 2 3 4 5 6 7 7 4 5 6 5
Answer to 3 b):
5 MSS/RTT
Timeout: RTT 7
RTT 1 2 3 4 5 6 7 8 9 10 11 1 13 14 1 16 17 18 1 20
2 5 9
Cwnd 1 2 4 8 1 23 1 2 4 2 3 4 5 6 7 8 4 5 6 5
6
At RTT 7 ssthresh = 11
Page 6 of 14
Question 4:
The figure below shows two connected networks. Bob, who already has in IP address through a
DHCP exchange, wishes to retrieve a webpage from the webserver and only knows its URL.
Bob’s network has a webcache and a local DNS that has all required URL translations. The
following protocols are used:
HTTP – DNS – TCP – ARP
Specify briefly the sequence of events that take place until the webpage is retrieved. For each
packet sent by any device in the network, specify the source and destination IP addresses and the
source and destination MAC addresses. All ARP tables at all devices are initially empty. Note
that DNS resolution is the responsibility of the webcache. Assume all devices in a local network
know the IP addresses of the local DNS and the default router. In the table below, if the router is
going to forward a packet between networks, show these packets as two entries in the table (one
entry for the packet arriving at the router and one entry for the packet forwarded by the router.
Page 7 of 14
Answer to 4:
Page 8 of 14
12 TCP request Src: webcache Src: webcache
Page 9 of 14
Question 5:
A packet arriving at Router A needs to be delivered to Router E. The problem is the network is
currently being updated. The forwarding tables of Routers A, B, C, and D are updated according
to the new network status, which is shown below on the left, while Routers E, F, and G still have
not been updated, and their forwarding tables are populated according to the network status
shown below on the right. Use Dijkstra’s algorithm to determine the path that the packet will
take form A to E. What will be the new path once the entire network is updated according to the
figure on the left?
Answer to 5:
Starting at Router A
Step List B C D E F G
2 AD 2, A 6, A Inf Inf 3, D
3 ADB 6, A 7, B Inf 3, D
4 ADBG 6, A 7, B 5, G
5 ADBGF 6, A 6, F
6 ADBGFC 6, F
Page 10 of 14
7 ADBGFCE
Step List A B C D E F
2 GF Inf Inf 6, F 6, G 6, G
4 GFCD 9, D Inf 6, G
5 GFCDE 9, D 9, E
6 GFCDEA 9, E
7 GFCDEAB
Thus, the packet will be forwarded directly form G to E. Once the network is updated, the path
will be ADGFE
Page 11 of 14
Question 6:
The figure below shows a network with internal routers and subnetworks. The figure only shows
the addresses of the networks in the lowest level of the hierarchy.
a) Determine the address that will be announced by Routers, B, C, D, and A. Each of these addresses is
the aggregation of the addresses of all networks below it.
b) Router D is removed from the network and now the 4 subnets that were served by Router D should be
served by Router C. Re-design the addresses of all subnets to achieve this objective and determine the
aggregated announcements of Routers B, C, and A.
Page 12 of 14
Answer to 6:
Page 13 of 14
Subnets under Router C:
55.66.16.0/20
55.66.32.0/20
55.66.48.0/20
55.66.64.0/20
55.66.80.0/20
55.66.96.0/20
Page 14 of 14