Docsity

PhD Exam: Traceroute, Neighborhood Hierarchical Protocol, and Load Balancing, Exams of Computer Networks

Toggle sidebar
bg1
Computer Science Department
Boston University
Networks PhD Depth Exam
November 2003
1. Check that there are 5 questions over 8 pages including this page. Answer all questions. Turn in your
answers by Friday, November 21, 4:00pm, at MCS-140F.
2. You are free to consult any notes, books and papers during the examination—make sure to include
your references. You are NOT allowed to consult with any person during the examination.
3. You may typeset your answers (in which you should feel free to include hand-drawn figures), or you
may neatly write your answers. Please answer each question in a separate writeup.
4. Although questions are of different length, they are of equal weight.
5. Please indicate the question number and your code number on each answer sheet. Do not write your
name on the answer sheet.
6. If you have any doubt as to the interpretation of a question, make a reasonable assumption and explain
your interpretation in your answer. No explanations will be given during the exam.
7. Your answers should show research maturity and depth, so you may support your answers not only by
analysis, but possibly by measurements or simple simulations. Be creative!
pf3
pf4
pf5
pf8

Partial preview of the text

Download PhD Exam: Traceroute, Neighborhood Hierarchical Protocol, and Load Balancing and more Exams Computer Networks in PDF only on Docsity!

Computer Science Department Boston University

Networks PhD Depth Exam

November 2003

  1. Check that there are 5 questions over 8 pages including this page. Answer all questions. Turn in your answers by Friday, November 21, 4:00pm, at MCS-140F.
  2. You are free to consult any notes, books and papers during the examination—make sure to include your references. You are NOTallowed to consult with any person during the examination.
  3. You may typeset your answers (in which you should feel free to include hand-drawn figures), or you may neatly write your answers. Please answer each question in a separate writeup.
  4. Although questions are of different length, they are of equal weight.
  5. Please indicate the question number and your code number on each answer sheet. Do not write your name on the answer sheet.
  6. If you have any doubt as to the interpretation of a question, make a reasonable assumption and explain your interpretation in your answer. No explanations will be given during the exam.
  7. Your answers should show research maturity and depth, so you may support your answers not only by analysis, but possibly by measurements or simple simulations. Be creative!

Networks PhD Depth Exam November 2003 Question 1

Consider a traceroute session between two points A and B, i.e. the set of hop-limited probes used to map the route, and the responses from these probes. When all of the packets that comprise a traceroute session all traverse the same path in the network, each of the individual probes (with increasing TTLs) trigger an ICMP response from a distinct router. The ordered sequence of reported router interfaces constitute the measured path from A to B. However, load balancing and route fluctuation introduce error into this measurement process. Let us assume that there are two disjoint paths from A to B denoted by sets of vertices Ci and Di, respectively. A traceroute session whose duration spans a routing change from the C path to the D path will observe a spurious “path” consisting of a subsequence of reported nodes from the C path followed by a subsequence of reported nodes from the D path. The crossover point from the C path to the D path, moreover, will now be implicitly believed to be an edge in the network topology, even though this edge may not really exist. For example, assuming paths of length 2, uncorrupted observations witness {C 1 , C 2 } and {D 1 , D 2 } as intermediate hops, while corrupted observations also witness {C 1 , D 2 } and {D 1 , C 2 }.

(a) Briefly outline the design of an experiment to estimate the magnitude of this problem in existing traceroute studies.

(b) Your colleague claims that a “slow” traceroute, i.e. one which introduces temporal spacing between each probe along the path, is more likely to see a spurious path than a normal “fast” traceroute. Is she right, wrong, or does it depend on the characteristics of the path? Discuss.

(c) Your colleague also claims that a “slow” traceroute tool could be a useful tool in characterizing routing behavior and routing changes along a path. What useful information could you compile about a path using this tool?

(d) Implement a variant of traceroute which allows the user to specify the inter-packet spacing of probe packets.

(e) Using your tool, conduct measurements across the Internet to either give preliminary evidence that there is something to the idea in (c), or that it is a bust.

Attachment for Question 2

3 Neighborhood Hierarchical Protocol

Here we present our protocol for static conditions, i.e. all links and nodes stay operational. We present the case of dynamic network conditions in Section 4. Each node has a unique identifier. NodeIds denotes the set of all node identifiers. For a node u, nodeid(u) denotes the identifier of u. We denote by NodeNeighbors(u) the set of identifiers of the neighbors of u. Neighborhoods (i.e. the state of a subset of surrounding links) are maintained by special nodes called neighborhood servers. Each neighborhood server has a locality, which is a set of nodes around the neigh- borhood server. A neighborhood server maintains a neighborhood that consists of the nodes in its locality, links between these nodes and links outgoing from the locality^1. More formally, a neighborhood server x maintains the following variables:

Localityx ⊆ NodeIds. Nodes for which x maintains state (i.e. costs of outgoing links) N eighborhoodx. Neighborhood of x. = {〈u, timestamp, expirytime, {〈v, cost〉 : v ∈ NodeNeighbors(u)}〉 : u ∈ Localityx} The purpose of N eighborhoodx is to obtain complete paths between nodes in Localityx. Hence, which nodes to include in Localityx and which links to include in N eighborhoodx are not arbitrary. Localityx and N eighborhoodx must be connected, i.e. there should be a path in N eighborhoodx between any two nodes in Localityx. We note that N eighborhoodx can contain links to nodes outside Localityx. A node u is said to be in the neighborhood of a neighborhood server x, if either u is in the locality of x, or N eighborhoodx has a link from a node in the locality of x to u. The localities and neighborhoods of different neighborhood servers can be identical, overlapping or disjoint. In order to scale, we cannot have one large neighborhood. Thus, obtaining a complete path from a source to a far-away destination involves accumulating neighborhoods of a sequence of neighborhood servers. To do this efficiently, neighborhood servers are organized hierarchically. Specifically, we assign each neighbor- hood server a hierarchy level from 0, 1 ,.. ., with 0 being the top level in the hierarchy. A parent-child relationship between neighborhood servers is defined as follows:

  1. Every level i neighborhood server, i > 0, has a parent neighborhood server whose level is less than i.
  2. If neighborhood server x is a parent of neighborhood server y then x’s locality contains y and y’s locality contains x.
  3. The locality of a top level neighborhood server contains all other top level neighborhood servers.

In the hierarchy, a parent can have many children and a child can have many parents. The range of the parent-child relationship is extended to ordinary nodes; that is, if Localityx contains node u, u is said to be a child of x, and x is a parent of u. We assume that each node has at least one parent neighborhood server. For node u, we define an address to be a sequence 〈x 0 , x 1 ,... , xt〉 such that xi for i < t is a neighbor- hood server-id, x 0 is a top level neighborhood server-id, xt is the identifier of u, and xi is a parent of xi+1. Since the parent-child relationship is many-to-many, a node may have many addresses. If a source node wants to find a path to a destination node, it first queries the name servers to obtain a set of addresses for the destination^2. Second, the source queries neighborhood servers to obtain an accumulated neighborhood containing both itself and the destination node. Then, it chooses a path from this accumulated neighborhood.

(^1) Not all the links have to be included. (^2) Similar to what is done currently in the Internet.

Networks PhD Depth Exam November 2003 Question 3

Attached to this exam is the first page from a very recently issued patent entitled:

WORLD-WIDE-WEB SERVER THAT FINDS OPTIMAL PATH BY SENDING MULTIPLE SYN+ACK

PACKETS TO A SINGLE CLIENT

Read the abstract of this patent and answer the following questions:

(a) The patent claims that the proposed technique would result in the selection of the “optimal path” between a server and a client. As described in the patent’s abstract, what dimensions (or metrics) are being optimized by the patent?

(b) OK, startups are out of fashion these days, but in a parallel universe one can still pretend! As the Director of Engineering of a startup company that decided to exclusively license this patent, you are tasked with milking this patent for all its worth. So, for EVERY interesting metric you can think of (as it relates to web content delivery), explain how (if at all possible) the idea presented in the patent could be applied to optimize that metric. For each such case, give a sketch of how this could be done (i.e., explain what architectural pieces need to exist and provide enough of a description to allow your ideas to be put to practice by your product development team.

(c) While you have been thinking about optimizing the “path” between a server and a client, a bright intern working under your supervision suggested that the idea in the patent could be applied to the problem of load balancing a server farm. To do so, she suggested an architecture whereby a load-balancing box (typically called a TCP router), upon receiving a SYN packet from the client, would multicast that packet to all (or a random subset) of the servers in the farm. These servers would then respond directly with individual SYN+ACK packets to the client, who responds to the first such SYN+ACK with an ACK. The load-balancing box would then use information in that ACK to figure out which one of the servers it had originally selected is the one to which the TCP connection should be assigned. The box would then forward this ACK packet and all subsequent packets from this flow to that server (until the connection is closed). Discuss the pros and cons of this load balancer (compared to a traditional load balancer that collects feedback information, e.g., CPU load, number of pending requests, cache hit rates, I/O activities) from all servers in the farm in order to make its own choice of which server to select for an incoming connection.

(d) Sketch the complete design of a web server farm that is CPU-load-balanced using the idea in part 3. Assume that the web server address is the address of the TCP router and that all servers in the farm masquerade their IP addresses in any responses to clients to be the TCP router’s address (also, they each have a second private IP address that is not advertised by DNS). Write and test code segments that will do the following:

(i) On the TCP proxy, listen to a client’s SYN packet on port 80 and replicate that packet to a list of servers on the subnet, (ii) On the server, listen to a SYN packet and respond with a SYN+ACK in such a way that the set of servers are CPU load balanced, (iii) On the TCP proxy, listen to the client’s ACK packet and determine the “winner” by printing “connection is assigned to server X”.

Networks PhD Depth Exam November 2003 Question 5

Consider the following data structures which were discussed and used in one or more of the papers on our reading list (listed alphabetically):

  • approximate reconciliation tree
  • Bloom filter
  • Chord distributed hash table
  • ephemeral state
  • Internet indirection infrastructure
  • minwise-independent permutation
  • multistage filter
  • NICE tree
  • MINTcaricature
  • small-world graph

Make a case for the data structure above that would be the best fit for each of the following applications (choose one for each application). Do not argue for a data structure beyond those listed above, although you may mention such a data structure in your writeup. When several data structures on the list are applicable, make a case why your choice is superior. Do not mention data structures that are not applicable. In most cases, it will also be necessary to briefly describe how the data structure will be used to solve the application. State any additional assumptions you make about each application clearly.

(a) Consider a web cache that can store any one million of a billion different possible web pages, each with a unique URL. You would like to implement LFU (least frequently used) replacement at this cache, but you only have 20MB of room to store the frequencies in your data structure. Specify the data structure you would use. (b) Now consider a web cache in a network of caches. In the event that a webpage causes a miss in your cache, you wish to redirect the message to another cache which is likely to have the page. Specify the data structure a web cache would use to transmit its cache contents to its peers in such an architecture.

(c) Two nodes in a sensornet have a set of 10,000 distinct events that they are capable of sensing. When they have jointly witnessed 8000 of the 10,000 events, they are to report to the base station. Suppose node A has sensed 5850 events and node B has sensed 6230. Assuming energy is at a premium (i.e. every transmitted byte counts), what data structure should they use to determine whether they have reached the threshold? (d) A useful service was provided by Monkeys.com until a few months ago. Their basic idea was to enumerate a set of Internet IP addresses that spammers used frequently. Spam blockers could check the list and automatically mark traffic from these sources as spam. Unfortunately, the spammers now use denial-of-service attacks to keep the site down most of the time. What data structure could be used to organize the spam addresses and make denial-of-service a tougher prospect?

(e) Consider a fusion service in a sensor net. A user would like to upload a new algorithm for fusing, inside the network, different signals sensed by different sensors. What data structure could be used to make the processes of algorithm distribution and fusion flexible and resilient?