Tuesday, November 18, 2008

An Architecture for Internet Data Transfer (DOT)

This paper looks at the benefits that could arise from turning data transfer on the Internet into a separate service, abstracting away transfer details from the application. This is part of a whole movement in Internet architecture towards a higher-level communication API, the point of which is to allow more innovation below the API than the current datagram and stream-oriented transport protocols allow. The DOT paper focuses solely on large bulk data transfers, in which case having a specialized transfer service provides the following advantages:
  • Simplifying application programming required to use complex transfer mechanisms.
  • Providing flexibility so as to support new transfer mechanisms in the future.
  • Taking advantage of caching and multipath to improve performance.
  • Providing disconnection tolerance and mobility tolerance.
Tests with a prototype show mainly that the DOT layer does not add significant overhead and that some interesting transfer mechanisms, such as multipath and USB key based, can be implemented on it. The implementation is mostly a "sanity check" rather than enabling some fantastic new applicaton.

My main criticism of the paper is that although the DOT design provides flexibility, there is not enough motivation for it to be practical. Very few applications seem to require the kind of flexibility that DOT provides, as most transfers are fast enough to happen over a single TCP connection or large enough that the user can manually choose whether to use BitTorrent or physical media. The examples provided in the evaluation are pretty contrived for this very reason - e.g. while the Internet Suspend/Resume project could clearly work over either a connection or an USB key, it's hard to imagine it ever needing to support some other tranfer mechanism, and an application developer could easily implement just these two. I believe that for an architecture paper like this to really be influential, it needs to provide not just a cleaner solution for one particular problem but an architecture that enables some fundamentally new and powerful applications. DOT focuses on too narrow a problem. If it were augmented with maybe some interesting naming system, some way to handle mobility, etc, it would be far more interesting. I had the same criticism for DOA.

Finally, I'd like to point out a thing which always bothered me about some Internet architecture papers, which is that their work could easily be implemented in a library. For something like DOT, which is more or less end-to-end, there probably are libraries today which will provide you an easy to use get/put API for HTTP, BitTorrent, SCP, etc. With such libraries available, do we really need a new service in the OS? Internet architecture work should focus on pieces that require innovation in how we think about networking vs requiring changes to how we componentize our software.

Thursday, November 13, 2008

X-Trace: A Pervasive Network Tracing Framework

This paper shows how a minimal amount of extra data in protocol messages can be used to trace execution of distributed systems and deterministically infer causality between events. The basic idea of X-Trace is that each event logged will include the ID of its parent, which is passed as a header in protocol messages. This allows both extending the tracing into systems that originally didn't have it or are owned by different administrative domains, and going down into lower layers of the networking stack. One nice aspect of X-Trace is that once the events are logged, they can be collected any time after the fact, or even sampled for traces that are particularly interesting; thus X-Trace can be used by mutually untrusted parties to debug problems without revealing all of their internal network events to eachother. Another nice thing is that log events don't have to be sent over the network, only small event IDs. Thus log events can contain many key-value pairs of interesting information, while event IDs are just a few bytes of overhead.

X-Trace has actually changed since this paper was written to produce a DAG rather than a tree. This makes it easier to understand what is going on in the trace by placing edges "up" from lower layers into higher ones.

The paper is also very good at listing the limitations of X-Trace, which is something we don't often see in papers. The main limitation is that X-Trace requires modifications to the application. It would be nice if some kind of program analysis could add these automatically! In practice, modifying just RPC and threading libraries may also be beneficial, especially in more limited programming languages such as Erlang.

End-to-End Internet Packet Dynamics

This very detailed paper uses traces of TCP connections between monitored hosts on the Internet to characterize latency, throughput, loss rates, reordering, corruption rates, etc for Internet paths. The most interesting part is the methodology - gleaning information from the highly noisy traces through careful reasoning about the queueing dynamics involved. For example, I liked how PBM improved over packet pair by allowing measurement of multiple bottlenecks and estimating how many channels are sharing a bottleneck. Some of the lessons in the paper, such as prefering measurements at the receiver, are useful for protocol designers (who must estimate RTT, bandwidth, etc) and other researchers interested in Internet measurement.

The main conclusion of the paper is that Internet conditions are highly variable from path to path and even over time on a single path, and that weird things like reordering, duplication, corruption, etc do happen. Paths are also highly asymmetrical. These are all very good observations to put forward so that the research community is not guided by overly simplistic models when evaluating new Internet protocols. The only unfortunate thing is that although this paper tells us the variability of conditions involved, it does not tell us how we might build a good model for evaluating protocols.

My main question after reading this is, has work like this been done for today's Internet too? It would be especially interesting to see how the dynamics have changed with the introduction of broadband, the expansion of the Internet into Asia and Africa, and the introduction of mobile hosts (e.g. some of the hosts could be chosen to be devices rather than servers at corporations and universities).

Thursday, November 6, 2008

Internet Indirection Infrastructure (i3)

This paper shows how overlay networks can be used to build a simple indirection infrastructure, i3, that solves service problems in the Internet such as multicast, mobility, and anycast. I really liked this paper. The i3 design uses three simple ideas to achieve its goal: communicating through an intermediary with publish-subscribe, longest prefix matching for choosing between servers, and identifier stacks to compose services and scale up multicast. It's very promising that these basic primitives let you implement a lot of things that are otherwise difficult in the Internet, and the primitives are also general enough that you might imagine doing other things with them. In other words, if we ever deploy any kind of widely used overlay network to provide a richer service model than IP, it would be nice if its service model was as general and clean as i3's. Anyone interested in Internet architecture should also read this paper. There are many papers that focus on fixing a particular problem in some complicated way, but it's rare to see one where you think "yeah, this service model is actually something I'd like to have for the whole Internet".

The big challenge with i3 is of course its implementation, and especially the performance aspect of it. The authors suggest using a Chord DHT to implement i3. While Chord is designed to continue working under an insanely adverse fault model, this comes at a cost in efficiency, which shows in the results. It is possible to optimize Chord for latency, as the authors mention. However, I think the work would also have benefitted from an analysis of how well you could provide the service with dedicated servers if you were a commercial entity. The implementation might then look radically different, but the design problem would be easier (less need to worry about security, faults, etc), and the benefits of a fast i3 are so compelling that it might get application developers to use the system. In a similar vein, it would be interesting to talk about how i3 might be monetized - how much would you have to charge for it in order to be able to support servers at some given scale? I think that at the time this paper was written, the networking community was very focused on DHTs and overlay networks, and missed the chance to argue about how feasible this might be to actually build.

One last thought is that i3 might also be useful on much smaller scales than the Internet, and a fast implementation for those settings would also be good. One example is in an enterprise network, to provide the same features as the Intentional Naming System (e.g. find my closest printer). Another would be in a data center, to provide anycast.

Wednesday, November 5, 2008

Middleboxes No Longer Considered Harmful (DOA)

This paper talks gives our first glimpse into the contentious world of Internet architecture by talking about how an architecture could support middle boxes, and designing such a delegation-based architecture called DOA. I had mixed views on the paper. On the one hand, it uses some interesting tricks to achieve some of its properties, such as a flat namespace of self-certifying names, allowing indirection through a global soft-state redirection service, and marking that a packet has passed through a filtering service using a MAC. On the other hand, I think that both the motivation and the practicality of the idea are a bit lacking.

The basic idea of DOA is to have extra fields in the packet (by treating DOA as another protocol under IP, at the same level as TCP and UDP), which store destination and source "endpoint IDs". These EID's are unique accross hosts and self-certifying, so you can tell whether you are being routed to the real owner of an EID. DOA maps EIDs to IP addresses or to chains of intermediate EIDs using a global resolution service such as a DHT.

My first concern is about motivation. Sure, middleboxes are unpleasant, but the Internet has managed to work more or less okay despite them. Many applications are client-server, and the servers have no trouble obtaining a globally accessible IP address and in fact use middleboxes for load-balancing, security, fault-tolerance, etc. Peer-to-peer applications, such as VOIP and video games, use NAT punchthrough mediated by a globally accessible server to establish direct connections to each other (though, admittedly, this does not always work and requires the application to use UDP). If DOA's only motivation is that it will take something that already kind of works and make it architecturally clean, there's little reason to adopt it and go change all Internet software stacks to work with it. Any proposal for new Internet architecture should say "look, here are some brand new things we'll enable you to do that were completely impossible before, and by the way, we also fix middleboxes as a nice side-effect".

My second concern is about practicality. NATs and firewalls are undoubtedly successful because of how easy they are to deploy - neither applications nor other parts of the network need to be changed for them to be useful. In fact, whether we planned the Internet's routing model carefully or not, the fact that it's so simple that adding a box on the path between two nodes can achieve filtering could arguably be a good thing - the "thin waist" also means service composition is possible. DOA requires modifying all end hosts and software stacks to use a new form of address, which is almost certainly undeployable. The paper should have tried harder to provide a story about how existing applications could be made to work through it, through some kind of tunneling, special IP address range, modified DNS, or whatever.

Finally, one disturbing thing mentioned in the paper is how it points out that the Internet research community had "derided" middleboxes due to their architectural uncleanness. It's really strange to see a research community deriding a product built by its users that is obviously meeting commercial demands! This would be like the OS community "deriding" applications that bypass the filesystem and decide to control the layout of their data structures inside a big file themselves, or applications that control their own caching without using virtual memory. The research community will never be able to anticipate all user needs, but when it fails to do so, it should work on how to meet these needs, not deride the users beacause they are breaking whatever architecture the community agreed was good!

Tuesday, November 4, 2008

DNS Performance and the Effectiveness of Caching

This paper looks at DNS traces from two locations, MIT and Korea, to figure out how well DNS does at finding names, what distribution user requests have, and what kinds of errors occur. The surprising result is that about 23% or requests get no response and 13% get negative responses. Interestingly, many of the latter were due to reverse mappings not existing. It would seem that not many applications use reverse DNS, but it might well be hidden in system calls, libraries, etc that applications do use. This is one issue with running a system used by libraries and applications like DNS - you might never see what the applications are actually doing.

The paper also looks at whether more aggressive caching would improve DNS performance and decides that it won't due to the Zipifian distribution of results. However, this is done for caches of 10-20 clients - I'd think that ISP level caches can help significantly more.

One question I have is why are we worried about DNS performance? Was it more of a problem when this paper was written? DNS seems to work pretty well for me for almost all sites I want to get to. It's good to see a thorough analysis of it but I don't fully understand what the motivaton for this was.

Development of the Domain Name System

This paper describes the architecture of DNS as well as the motivation that led to it. DNS is one of the unsung successes of the Internet - a highly scalable, highly reliable, and reasonably real-time distributed system that is used by pretty much all Internet applications. Like other big systems, it's basically a key-value store with hierarchy, a lot of caches, and not many consistency guarantees. The protocols used to access it and data stored are simple enough that the system has managed to scale and stay up as the Internet evolved.

DNS is something we take for granted today, but the historical background about hosts.txt files, etc shows how much of a problem managing a network would be without such a system, even for smaller networks (the Internet wasn't that big when DNS started). Its design provides is a good example to follow for other large distributed systems.

One surprising thing is that the paper almost doesn't mention security, other than that it "might" become a problem as PCs and LANs become more popular. DNS security is a big problem and there have been really scary attacks on it very recently. Luckily these have generally been counteracted in time (it seems). In addition, the very nature of names as in DNS may reduce security by making URLs confusing for people (e.g. you see many spamming sites with URLs that look like www.facebook.com.ahsgdhagfajdajda.adjhajdha.evil).

From a course organization point of view, it might have made sense to have this paper before the DHT ones, because DNS came before then.