








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









Monday, 20 October 2014 INSTRUCTIONS—READ THEM NOW! This examination is CLOSED BOOK/CLOSED NOTES. You will not require a calculator, iPhone®, laptop computer, or other calculation aid. Please put them away right now! You MAY use one 8.5”x11” double-sided crib sheet, packed with handwritten notes, formulas, and diagrams. All work should be done on the attached pages, and there are blank pages at the end for you to use as scratch paper. PLEASE DO NOT DETACH THE SCRATCH PAPER WHEN YOU TURN IN YOUR PAPER (doing so confuses Gradescope). Note that the sub-questions within each question are arranged in increasing order of difficulty so if you find yourself stuck, consider moving on to the next question. In general, if something is unclear, write down your assumptions as part of your answer. If your assumptions are reasonable, we will endeavor to grade the question based on them. If necessary, of course, you may raise your hand, and a TA or the instructor will come to you. Please try not to disturb the students taking the examination around you. Please write your SID on each page! Name – Please Print! (Signature) SID Discussion Section (Day/Time) Question Possible Points Points Obtained 1 General Multiple-Choice 20 2 Design Decisions 10 3 Discovering Path Properties 10 4 BGP 10 5 Reliable Communication 10 6 Routing 10 Total 70
(collector’s edition) October 11, 2012
12
9
6
9
6
(collector’s edition) October 11, 2012 b) 100000 bits (10^5 ) c) 1000000 bits (10^6 ) d) 2000000 bits (2× 106 ) e) 20000000 bits (2× 107 )
(collector’s edition) October 11, 2012 b) Packet loss c) Packet reordering d) TCP SYNs
(collector’s edition) October 11, 2012 2) Viewpoint: Content provider You are running a TCP-based movie streaming service called TheyTube. Several of your users are complaining about poor performance! You call in your team of five engineers to examine the problem. They all observe that the access link to the TheyTube server is a 10Gbps link and it is only 25% utilized. In addition, they all observe that the TheyTube server’s CPU is only 15% utilized. Each engineer then independently spends a few days diagnosing the problem and reports back with the following conclusions and suggestions for improvements. Which of the following recommendations do you believe are correct? Circle all that apply. a) Engineer Bob: Given the low utilization numbers observed, Bob concludes that the poor performance users are experiencing must stem from problems at the user’s access link to the network and cannot be improved by any actions the TheyTube team take. [No. It is not sufficient to reach this conclusion.] b) Engineer Alice: Alice noticed that a number of packets are being retransmitted multiple times. Alice thus recommends that they modify the TCP implementation in the TheyTube server to reduce the timeout period and to reduce the fast retransmit threshold from 3 to 2 dupAcks (duplicate Acknowledgments). While this may lead to even more retransmissions, this is OK since the server’s access link is only 25% utilized. With these changes, users will receive lost packets faster and hence will definitely see improved performance. [No. It may lead to more severe congestion in the network.] c) Engineer John: John runs traceroute from the TheyTube server to impacted users and finds that a router R1 along the path repeatedly drops his traceroute messages. John concludes that the high packet drop rates at R1 are the cause of their performance problems. [No. It is not reliable to use traceroute for this purpose, because traceroute sends ICMP packets, and some routers are configured to drop these packets while allowing other packets. ] d) Engineer Jane: Jane observes that TheyTube is currently using AT&T as its network provider and that Verizon is currently offering similar network connectivity at half the price. She recommends they switch to using Verizon as their network provider. This may or may not improve user performance but will at least lower TheyTube’s network costs. [Yes.] e) Engineer Joe: Joe examines the IP addresses of the users reporting problems and discovers that all these IP addresses belong to the CIDR block allocated to France Telecom. Joe believes the problem may originate due to high loss rates involving France Telecom’s network. Joe recommends they contact France Telecom and ask them to diagnose and fix the problem. [Yes.]
(collector’s edition) October 11, 2012
Consider a next-generation network in which routers do not implement fragmentation. Instead, when a router receives a packet that exceeds the link MTU (maximum transmission unit), it drops the packet and sends an error message back to the source of the packet; the error message contains the value of the link MTU.
**_1. Pick a sufficiently large MTU.
(collector’s edition) October 11, 2012 (b) Show the path vector that AS 7 sends out at time 2. Which of its neighbors does AS 7 sends the path vector to? 213.213.0.0/16: AS 7 à AS 5 à AS 1 This path vector is sent to AS 8 and AS 6. [We also accept AS 5.] [We also accept 213.213.0.0/16: AS 7 à AS 6 à AS 1 to AS 5 .] (c) A valid AS level path is one that is allowed by Gao-Rexford policies. List all possible, valid, AS level paths that AS 8 learns to the prefix 213.213.0.0/16. AS 8 à AS 7 à AS 5 à AS 1 AS 8 à AS 4 à AS 5 à AS 1 (d) Is AS 8 à AS 7 à AS 6 à AS 1 a valid AS level path from AS 8 to the prefix 213.213.0.0/16? Why or why not? No. AS 7 will not advertise the path AS 7 à AS 6 à AS 1 to AS 8 according to Gao- Rexford policies. (e) Which path will AS 8 use to route to the prefix 213.213.0.0/16? Why? AS 8 à AS 4 à AS 5 à AS 1 AS 8 will prefer routes through its customers.
(collector’s edition) October 11, 2012
Consider a host using a sliding window protocol with a window size of 5 using cumulative ACKs. The host sends out the first five data packets and waits for the ACKs. Below we consider several cases where something has gone wrong (such as a packet drop, or packet reordering) and the resultant order in which the ACK packets arrive at the sending host. Match each observed ACK stream to exactly one of the potential causes. The matching must be perfect – i.e., each possible cause is matched to exactly one ACK stream and vice versa. The scenarios describe only the unusual events; assume all else functioned normally (i.e., packets are not dropped or reordered). Notation ( read carefully ) : The notation Ax is used to mean that the ACK packet is acknowledging the receipt of all packets up to and including data packet x. That is, A5 is acknowledging the receipt of packet 5 and all those before it; to be clear, the notation does not mean that the receiver is expecting packet 5 as the next data packet.
(collector’s edition) October 11, 2012
(a) Show the network topology, with nodes, edges and link costs, as constructed by router B after it receives the above link state packets. (b) Suppose that the A—B link goes down. Say, A and B quickly re-compute shortest paths to other network nodes, but their link state updates are yet to reach their neighbors. Is there a possibility of packets looping in the network? If not, why? If yes, given an example of a potential loop. Yes. Let’s say C wants to send a packet to B. From C, the shortest path to B is C → A → B. From A, it is A → C → B. Thus, the loop will be C → A → C → A → … (c) Consider again the topology from part (a) (i.e., before the link A-B fails) but now assume we A G F B C 10 6 1 2 4 10
(collector’s edition) October 11, 2012 are running distance-vector routing over the topology. What is the path from C to F? C → A → B → F (d) Continuing with the topology from (c), assume we are not using poison reverse in our implementation of distance-vector and the link B-F fails. After how many rounds of exchanging routing updates with its neighbors will B have a loop-free path to F again? Recall that in one round of exchanges, B sends a route update to all its neighbors and receives route updates from each of its neighbors. You may assume that, in each round, route updates from B are received and processed before those from A and that updates from A are received and processed before C’s. You may further assume that no route updates are lost or reordered. I. Zero. Node B has a loop-free alternate path immediately available. II. 1 round of route updates III. 2 rounds of route updates IV. More than 2 rounds of exchanging routing updates Initially, the cost from A to F is 3, from G to F is 6. After the link B-F fails, A will not choose G as the next hop to F, until the cost of A-B-F exceeds 16. After each round of exchanging updates with B, the cost of A-B-F increases by 4. Therefore, it takes (16-3)/4 ≈ 4 rounds. (e) Now assume we are using poison reverse in our implementation of distance-vector and the link B-F fails. After how many rounds of exchanging routing updates with its neighbors will B have a loop-free path to F again? (As in part (d), you may assume that in each round, route updates from B are received and processed before those from A and that updates from A are received and processed before C’s. No route updates are lost or reordered.) I. Zero. Node B has a loop-free alternate path immediately available. II. 1 round of route updates III. 2 rounds of route updates IV. More than 2 rounds of exchanging routing updates Initially, the cost of path from C via A to F is 7. After the link B-F fails, B updates its path cost to 17, and sends an update to A, C, F. A learns that it should use a cost-16 path via G. C, F do not update its routing table. A sends its update to B, C, G. B, G do not update its routing table. C learns that it should use a cost-20 path via A. C sends its update to A and B. A does not update its routing table. B learns that it should use a cost- 1 8 path via A.