



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!




Answer all parts of all questions. There are four multi-part questions, each of equal weight. Turn in your answers by Thursday, November 12, at the same time you picked up your exam, to Jennifer Streubel at MCS-140G. Brevity is the soul of wit. Be brief and to the point. This is a depth exam. So, your answers should show research maturity and depth. Do not pad your answers and do not write for the sake of writing. You are free to consult any notes, books and papers during the examination, but make sure to include your refer- ences. You must develop your own solutions, which might use existing ideas and techniques, as long as you cite them and clearly explain how these existing ideas/techniques fit within your own solution. You are not allowed to consult with any person during the examination. 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.
(a) Consider a company that is connected to the Internet via two providers, i.e., the company is multi-homed. Suppose that the providers charge per-byte and provide different transit delays. For example, the lower- priced provider may guarantee delays that are less than 100ms, while the higher-priced provider may provide a delay bound of 20ms. Suppose the company has two commonly used applications that have different delay requirements — one application is more tolerant to delay than the other. On average, the applications generate a certain amount of traffic that has to be carried by either or both of the two connections (links). How can the company allocate the two applications’ traffic on the two links such that applications’ benefit is maximized while payments to the providers are minimized? (b) Consider two computers contending to transmit over a shared time-slotted wireless channel using an 802. (WiFi) like protocol. If both computers send data at the same time slot, they both fail, and both must try again. If only one computer sends data, it succeeds. If neither send data, airtime is wasted. Assume each time slot has a certain utility, where collision yields the lowest utility value, followed by wasted time slot, then success yielding the highest utility value. What should be the transmission strategy of each computer? Now consider that in reality, a wireless transmission from a computer succeeds even in the presence of other competing transmissions, if it is a stronger signal, due to the so-called “capture effect”. What should be the transmission strategy of each computer? (c) Consider a company that is connected to the Internet via two providers, i.e., the company is multi-homed. Suppose that the network of each provider routes traffic over paths with different propagation delays — one provider’s paths are much longer than the other due to the use of satellite links. Moreover, the provider with the longer paths (call it “provider A”) charges less, so the company should be using provider A as long as the performance requirements of its applications are met. Suppose the company’s most common appli- cations all use a TCP-like transmission control protocol to adapt their data sending rate. Knowing provider A’s delays, how can the company determine if using provider A would support well these applications? (d) Consider that you want to make a decision whether to use Delta-t as a transport protocol for your loss- intolerant transactional applications. You know that your provider’s network is usually very lossy so even small acknowledgment packets can get lost with a non-negligible probability. Thinking of single-message transactions, how can you estimate the rate at which you can successfully establish such Delta-t single- message connections, or equivalently the rate of successfully delivering these single messages, reusing the same connection ID?
(3.1) Write a maximum of two pages (+ appropriate references) in which you contrast your proposed design to others. You need to be brief and not just rephrase abstracts of papers. Also, notice that related work should not be limited to approaches leveraging P2P swarming, as techniques used in other settings may be quite applicable.
While the idea is attractive, your boss felt that before rushing to an implementation, it may be prudent to analytically evaluate a simple model of the proposed system. Being at a loss, you consulted your PhD advisor, who proposed that it may be a good idea to study the tradeoff between the rate with which the server (seed) injects traffic into the swarm and the time it takes for a client (leecher) to download the content. In particular, he proposed that you build a birth-death Markov chain that represents the evolution of the number of replicas (available in the swarm) for a single piece of the torrent. He also suggested that you make the following approximations and/or assumptions (not all of which may be necessary) and also encouraged you to make others if necessary:
(3.2) What would be the states and transition probabilities and rates of your Markov chain? Please provide enough explanation. (3.3) Either analytically or numerically evaluate the probability that a piece would be missing from the torrent. (3.4) Using the Markov model (or not) can you provide an upper bound on the time it takes a client to download the content? Does your answer check for ”obvious” parameterization - for example, if λ = 0, α = 0, or N approaches infinity?
Setting 1 Setting 2 Setting 3
Figure 1: Simulation results for proposed content distribution system
To help you with the evaluation of the system, your boss assigned an undergraduate intern to the project, tasking him with designing a simple simulator of the system. A few weeks later, your boss shows you the results that the undergraduate intern produced (Figure 1) and asks you if it makes sense.
(3.5) Write a couple of paragraphs that summarize your opinion. If the results make sense, explain what they mean/imply. If not, explain why you are doubtful.
As modeled, the server (seed) is operating in an “open loop” fashion, in the sense that it injects pieces into the swarm at a low fixed rate independent of whether or not the torrent is ”healthy” (i.e., the number of replicas from each piece in the torrent is above some threshold). Clearly, if the torrent is healthy, then the server (seed) would be wasting its outbound bandwidth. To be more efficient, you suggested that the bittorrent software used by the server be further hacked so as to seed the swarm at a much higher rate, but only when it is necessary to do so - for example when a piece is missing. In other words, the server’s bandwidth would be taxed only as a last resort, when the torrent is not healthy. When you described your idea in a company-wide meeting, members of the network security group raised concerns about this new design. In particular, they implied that this new design is susceptible to two types of attacks by competitors: The first would deplete the company’s bank account by virtue of what the company would owe the cloud provider, and the second would make the clients very unhappy with the service they get, including the possibility of a DoS attack.
(3.6) What type of attacks are they alluding to? How hard would it be to mount each one of these attacks? How hard would it be to make your system immune to such attacks? Explain and provide enough details.