EP2120 Internetworking IK2218 Protocols and Principles of The Internet Homework Assignment 2 (Solutions Due 17:00, Mon.,20 Sep 2021)
EP2120 Internetworking IK2218 Protocols and Principles of The Internet Homework Assignment 2 (Solutions Due 17:00, Mon.,20 Sep 2021)
Homework assignment 2
(Solutions due 17:00, Mon.,20 Sep 2021)
(Review due 17:00, Wed., 22 Sep 2021)
1. ARP (20/100)
The figure above illustrates six hosts H1, H2, H3, H4, H5 and H6 connected by an internetwork
running IPv4. The learning bridge B1 connects hosts H1, H2, and router R1, the learning bridge
B2 connects routers R1, R2, and H3 and the learning bridge B3 connects hosts H4, H5, H6 and
router R2. For the hosts and routers, the interfaces’ logical (IP) addresses are shown with
capital letters, and physical (MAC) addresses are shown with small letters. The North, East,
South, and West interfaces of the bridges are denoted by N, E, S and W.
Assume that the ARP caches of the routers and of the hosts, and the MAC address tables of
the bridges are initially empty and that no packets have been sent yet. The forwarding tables
of all hosts and routers are correctly configured. All hosts know the IP addresses of each
other. ARP snooping (also called passive ARP learning) is enabled.
Consider that host H6 sends an IPv4 unicast datagram to host H3.
a) Provide the state of the eight ARP caches of the hosts and routers as they will appear after
the IPv4 unicast datagram has been delivered to host H3, that is, after dynamic ARP
resolution has been made (12p).
b) Provide the state of the MAC table of bridge B 3 as it will appear after the IPv4 unicast
datagram has been delivered to host H3, that is, after dynamic ARP resolution has been
made. (4p)
c) Assuming that at the beginning of the transmission ARP snooping is disabled on all the
hosts and routers, provide the state of the eight ARP caches of the hosts and routers as
they will appear after the IPv4 unicast datagram has been delivered to host H 3, that is,
after dynamic ARP resolution has been made (4p).
b) Give the values of the MF bit, the offset and the total length field of the IP header of
each fragment! (10p)
3. Routing (25/100)
In the IPv4 network shown in the figure, all routers (A-F) run RIPv2 and all link metrics are 1.
The addresses of the IPv4 networks and the associated interface addresses are given in the
figure. Note that the letters A-F denote routers. Assume that initially only the addresses of the
directly connected networks are known to the routers. The destinations in the network are the
/24 prefixes. Assume also that all RIP implementations support Equal-cost-multi-path
(ECMP). All routers implement split horizon with poison reverse.
b) Assume that the first event that happens in the network is that C starts by sending RIP
responses to its neighbors. What is the routing state of E after it has received the distance-
vector from C? (5p)
c) Assume that the second event that happens in the network is that router D sends RIP
responses to its neighbors. Please list the RIP responses that D sends. You should indicate
the source and destination address of each RIP response, on which interface they are sent
out (and to which IP address(es)) and which distance-vectors (destination, metric tuples)
are contained in each message. (9)
d) After step (c) the routers send out RIP responses to their neighbors simultaneously
every 30 seconds, and the first RIP updates after c) are sent out at t=0. How long does it
take for F to learn all the networks? Motivate your answer. (4p)
e) Assume now that the routers in the above network run OSPF instead of RIPv2. Propose
a set of designated routers (DRs) for the network. Given the DRs you identified, how
many network link state advertisements (LSAs) and router LSAs does the link state
database consist of? (4p)
4. ICMP (15/100)
The hosts H1 and H2 are connected by networks running IPv4. The forwarding tables of all
hosts and routers are correctly configured.
b) Assume that a program on H1 sends a UDP unicast datagram to 192.168.2.2 with the
DF flag set to 1. The datagram size is below the MTU for the networks 192.168.1.0/24
and 192.168.0.0/24 but exceeds the MTU of the network 192.168.2.0/24. Router B can
thus not forward the datagram to H2. Will H1 receive any ICMP error message? If yes,
then what is the type of the message? (3p)
c) Provide the sequence of segments sent by TCP from host A. For each segment sent
from host A provide the time it is sent, and the sequence number of the first byte it
contains. For the first five segments sent from host A, also provide the SRTT, RTTVAR
and the RTO values of the sender TCP at the time the segment is sent. Assume that
outgoing segments are handled before incoming segments in case more than one event
happens at the same time! (15p)
d) At what time does A receive the acknowledgement for the last segment? (3p)
Hint 1: Try to first draw the sequence of segment exchanges to get the order of the segments
right.
Hint 2: Consult RFC 6298 for details on how to calculate the SRTT, RTTVAR and the RTO.
The description provided in the course book (3ed and 4ed) is not correct. Consult
RFC5681 for congestion control.