Final F2018 Solution
Final F2018 Solution
Final F2018 Solution
COMPUTER NETWORKS
FINAL EXAM SOLUTION
Department of Computer Science
University of Calgary
Professor Carey Williamson
December 17, 2018
This is a CLOSED BOOK exam. Textbooks, notes, laptops, personal digital assistants,
tablets, and cellular phones are NOT allowed. However, calculators are permitted.
It is a 120-minute exam, with a total of 80 marks. There are 18 questions, and 10 pages
(including this cover page). Please read each question carefully, and write your answers
legibly in the space provided. You may do the questions in any order you wish, but please
USE YOUR TIME WISELY.
When you are finished, please hand in your exam paper and sign out. Good luck!
Student Name:
Student ID:
Score: / 80 = %
1
Multiple Choice
Choose the best answer for each of the following 12 questions, for a total of 12 marks.
1 1. One of the early pioneers of the TCP/IP protocol stack on the Internet was:
(a) Tim Berners-Lee
(b) Vint Cerf
(c) Carey Williamson
(d) Jim Kurose
(e) Jennifer Rexford
2
1 5. On classic Ethernet, the Maximum Transmission Unit (MTU) for an IP datagram is:
(a) 64 bytes
(c) the Ethernet switch does selective forwarding between LAN segments
(d) the Ethernet switch understands and uses CSMA/CD on each LAN segment
3
1 9. In a “Class B” IP address like 136.159.5.20, the network ID portion is:
1 10. In Classless Inter-Domain Routing (CIDR), the network ID in an IPv4 address is:
(c) dynamic switching between Distance Vector and Link State approaches
1 12. The textbook authors refer to the Border Gateway Protocol (BGP) as:
4
Networking Concepts and Definitions
12 13. For each of the following pairs of terms, explain each term, making sure to identify
the similarities (if any) and the key differences between the two terms.
5
Network Layer
12 14. The goal of Internet routing is to deliver IP datagrams from a source host to a desti-
nation host. In class, we discussed the logical separation of the Network Layer into the data
plane and the control plane, as well as the emerging paradigm of Software-Defined Network-
ing (SDN). Use your knowledge of the Network Layer to answer the following questions.
(a) (3 marks) What is the data plane? What key function(s) take place in the data
plane? At what time scale does it operate?
(b) (3 marks) What is the control plane? What key function(s) take place in the control
plane? At what time scale does it operate?
(c) (2 marks) What are the two main similarities between traditional Internet routing and
the SDN approach to Internet routing?
(d) (4 marks) What are the four main differences between traditional Internet routing and
the SDN approach to Internet routing?
6
Logical Link Control (LLC) Protocols
12 15. There are two popular technologies for Local Area Network (LAN) design, namely
IEEE 802.3 Ethernet and IEEE 802.11 WiFi. Use your knowledge of these technologies to
answer the following questions.
(a) (3 marks) What Datalink Layer service model is provided by each of these LAN tech-
nologies? How are they similar? How are they different?
(b) (3 marks) List three similarities about LLC frames in Ethernet and WiFi.
(c) (2 marks) Which of these two LAN technologies has the higher bit error rate, and why?
(d) (2 marks) Which LAN technology provides better support for mobile users, and how?
(e) (2 marks) List and explain any two other features of WiFi technology that are not
available (or even possible) in Ethernet LANs.
7
Medium Access Control (MAC) Protocols
12 16. Within the Data Link Layer, we studied a variety of Medium Access Control (MAC)
protocols to regulate access to a broadcast channel shared by many stations.
For each of the following MAC protocols, provide a brief description (either algorithmic
or conceptual) of how it works. Where possible, clarify the new features in each protocol
that improve upon the MAC protocols earlier in the list.
- random channel access protocol for packet radio networks (U. Hawaii)
- send when ready!
- very low channel access delay (zero), but prone to collisions
- max effective throughput is 1/2e = 18%
8
Internet Protocol Performance
10 17. Many Internet protocols use caching of “soft state” information to improve protocol
performance. That is, the protocol works correctly even without cached state information,
but is much faster when this soft state information is already present.
(a) (6 marks) Among the many protocols that we studied in class, give three examples
of different protocols or layers that use caching of state information. Make sure to
clarify what information is cached, where it is cached (e.g., client side, server side, or
elsewhere in the network), why it is cached (i.e., how it helps improve performance).
and how long it is cached (e.g., seconds, minutes, hours, days).
(b) (4 marks) Give one other example of an Internet protocol (past, present, or future)
whose performance and/or scalability could be improved through the use of cached
state information. Identify the layer at which this protocol operates, and why caching
would be potentially useful. Again, please clarify what information is being cached,
where it is being cached, why, and how long.
- HTTP/2 (AL): could use server push feature to provide content to clients
even before it is requested; reduces latency using pre-fetching
- TCP (TL): could remember estimated cwnd for a recent particular IP
destination to avoid having to do TCP slow start all over again
- Mobile IP (NL): could cache IP/MAC state information about mobile nodes
and which network they are currently at (e.g., Home Agent, Foreign Agent)
9
Future Networked Systems
10 18. A recent proposal from researchers at Carnegie Mellon University (CMU) is to get rid
of traditional traffic lights at city intersections, and instead use the wireless communication
capabilities of future self-driving cars to dynamically negotiate and regulate vehicular traffic
flow through intersections. By doing so, they claim that they can improve traffic flow, and
reduce urban commute times by about 30%.
(a) (2 marks) Do you think that this approach is a good idea or a bad idea? Why?
(b) (3 marks) Given your knowledge of wireless networking, what are some of the technical
challenges with this new approach? How could these be overcome?
(c) (3 marks) Given your knowledge of flow control and congestion control, what are some
of the technical challenges with this new approach? How could these be overcome?
(d) (2 marks) What other potential challenges (technical or non-technical) do you see with
this new approach? How could these be overcome?
10