- Comparison of LATE versus a progress-rate based approach to detecting slow nodes, rather than just saying "those won't work" based on an example. While it's true that giving one example of how progress-rate approaches may speculate the wrong tasks is enough to recommend not using them in practice, Hadoop's scheduler has some glaring problems, so it would be nice to see how well LATE does vs a more reasonable scheduler.
- Analysis of the contribution of each part of LATE - how much do we gain from the cap, slow node threshold, slow task threshold, etc? These are interesting questions we could answer to contribute to the "science" aspect of the paper, but we didn't have enough time and space.
- LATE doesn't take into account the amount of data each task has to process yet. We say that in a well-behaved MapReduce job, tasks should have roughly the same amounts of data. This is easy for mappers because they use a single input chunk. It's harder for reducers, however, because you may have popular keys which get more data than others. In this case, reportng some information about total amount of data for this reducer would solve the problem (and LATE would have to be modified to launch a backup only if the backup node's progress/byte/sec is higher than the original node's).
- LATE is still "reactive" in that it launches tasks at all available opportunities and only then corrects if it has some stragglers. It might be interesting to have a "proactive" scheduler which plans which nodes to use in advance. Of course nodes' characteristics change over time so this may have some pitfalls.
- Evaluation with a more realistic benchmark. Sort, grep and wordcount are actually pretty representative of real-world workloads, and in fact the gridmix benchmark from Yahoo consists of just sorts and scans, but it would be nice to have some real computation.
Monday, November 24, 2008
Improving MapReduce Performance in Heterogeneous Environments
I obviously can't give an unbiased view on this paper, so I'll use this as an opportunity to list all the things we could've done which would have improved the work:
A Policy-aware Switching Layer for Data Centers
This paper proposes managing middleboxes in data center and enterprise networks through logic in the switching layer rather than physical placement of middleboxes. The basic idea is simple - have a policy that propagates to the switches and lets them route packets through middleboxes in whatever order they wish to before delivering them to their destination. The difficult part is the details, and this paper does a very good job covering those, in contrast to some pure architecture papers we've read. The end result is a very compelling way to manage networks.
The authors provide a good overview of the different types of middleboxes that will be present in a data center and of the problems in trying to manage them by just placing middleboxes on the path. This was very useful to see because the situation is more complicated than it might appear at first due to redundant links. Apart from the basic design of the policy-aware switching layer, which is to look at tuples of header fields to route packets, the authors also focus on how to support redundant middleboxes (consistent hashing) and how to deal with changes in policy and topology without violating the policies. The latter is especially important for middleboxes that provide security, such as firewalls. Some other students' blogs have suggested dropping packets on a policy change, but a correlated set of drop events could really confuse some applications, and there is also no way with that technique to fully guarantee that some won't be mishandled if they are delayed a bit. Better to provide some guarantees as long as this does not overcomplicate the system.
The main thought I get after reading this paper and X-Trace is "wouldn't it be nice to have some extra fields per frame where we could tag things". It's too bad that IP options never really took off, because they would be very useful. With a way to mark packets and a simple way to push policies to switches, you can get a pretty nifty "network OS" that will let you manage your flows without requiring excessive state or forwarding logic at the switches. OpenFlow and NOX promise to bring something like this.
The authors provide a good overview of the different types of middleboxes that will be present in a data center and of the problems in trying to manage them by just placing middleboxes on the path. This was very useful to see because the situation is more complicated than it might appear at first due to redundant links. Apart from the basic design of the policy-aware switching layer, which is to look at tuples of header fields to route packets, the authors also focus on how to support redundant middleboxes (consistent hashing) and how to deal with changes in policy and topology without violating the policies. The latter is especially important for middleboxes that provide security, such as firewalls. Some other students' blogs have suggested dropping packets on a policy change, but a correlated set of drop events could really confuse some applications, and there is also no way with that technique to fully guarantee that some won't be mishandled if they are delayed a bit. Better to provide some guarantees as long as this does not overcomplicate the system.
The main thought I get after reading this paper and X-Trace is "wouldn't it be nice to have some extra fields per frame where we could tag things". It's too bad that IP options never really took off, because they would be very useful. With a way to mark packets and a simple way to push policies to switches, you can get a pretty nifty "network OS" that will let you manage your flows without requiring excessive state or forwarding logic at the switches. OpenFlow and NOX promise to bring something like this.
Thursday, November 20, 2008
Scalable Application Layer Multicast
This is multicast over an overlay network - an obvious goal to go for if you want to create deployable multicast systems because it became clear that the routers in the Internet were unlikely to be updated to support new multicast protocols. The actual implementation of application-layer multicast here is rather complicated, involving creating a tree of clusters of nodes with some mathematical properties about number of levels and number of nodes per cluster. There are even a set of invariants (section 2.4) that must hold. My first thought is, this is way too complicated. You will pay a lot more to keep up such invariants than you would if you had a more organic network. Why not try out something extremely simple first, such as random neighbors and gossip? (Note: this idea was inspired by Ari's blog). Why not just build multiple non-clustered threes? People complained about the DHT papers focusing too much on nice mathematical properties, but those are very unorderly compared to the NICE trees in this paper. Apart from the fact that you'd imagine costs could be lower with a less restrictive topology, the other complication is that maybe there are corner cases when the tree invariants are not kept and cannot easily be restored. It's hard to prove that you've covered all the possibilities about simultaneous leaves and joins.
Apart from this, the paper contains simulations comparing it with another overlay multicast system called Narada and an implementation that ran with ~30 nodes. Having an implementation is good, but the scale is not particularly interesting - at 30 nodes, one can easily have a centralized server. The application considered - low bandwidth data streams - also adds to this since it means that a centralized server or data center may work well even for far more than 30 nodes.
Apart from this, the paper contains simulations comparing it with another overlay multicast system called Narada and an implementation that ran with ~30 nodes. Having an implementation is good, but the scale is not particularly interesting - at 30 nodes, one can easily have a centralized server. The application considered - low bandwidth data streams - also adds to this since it means that a centralized server or data center may work well even for far more than 30 nodes.
A Reliable Multicast Framework for Light-weight Sessions and Application Level Framing
I had dreaded this set of readings because I disliked the multicast papers on the network prelim reading list, but this paper is actually pretty well-written. It explains why reliable multicast has to be solved differently from reliable unicast and pushes for receiving more semantics from the application (application-level framing). It explains that a one-size-fits-all reliable and ordered model is infeasible. It also motivates the work with a real application, wb, which manages to build a useful service from idempotent operations and reliable but unordered multicast. Finally, there is a lot of analysis of how to implement retransmission requests and recovery without imploding the sender through randomized backoffs. Although the simulations and analysis are not on Internet topologies, they do cover some "extremes" such as a chain or a star, so they are fairly believable. The most important point in the paper, in my opinion, is the recognition that different applications require different things from multicast, which leads the authors to build a simple base for reliable multicast protocols rather than trying to design a one-size-fits-all solution. This is reminiscent of how IP provides a simple service model over which more complex ones can be built by the application.
Of course the elephant in the room with all this is that multicast on the Internet is pretty much not present today. There seem to be three reasons: First, doing it in hardware would have required massive hardware changes, and nobody agreed how it really should be done. Second, and more importantly, providers didn't know how to charge for multicast! Not many papers address this. Third, we've managed to do all our multi-user communication stuff using central servers. You can get wb today: it's just all running in one data center, and you're accessing it through HTTP. The cost of building a central server is so small and the benefits in manageability, upgradeability, etc are so large that nobody has chosen to do the peer-to-peer whiteboard instead. We do see some peer-to-peer multicast communication for other applications, most notably multiplayer games (where relaying commands through a central server hurts latency), but these have few enough players that using all-pairs communication solves the problem. So SRM fits into that category of interesting ideas that lack implementation details and motivation.
Of course the elephant in the room with all this is that multicast on the Internet is pretty much not present today. There seem to be three reasons: First, doing it in hardware would have required massive hardware changes, and nobody agreed how it really should be done. Second, and more importantly, providers didn't know how to charge for multicast! Not many papers address this. Third, we've managed to do all our multi-user communication stuff using central servers. You can get wb today: it's just all running in one data center, and you're accessing it through HTTP. The cost of building a central server is so small and the benefits in manageability, upgradeability, etc are so large that nobody has chosen to do the peer-to-peer whiteboard instead. We do see some peer-to-peer multicast communication for other applications, most notably multiplayer games (where relaying commands through a central server hurts latency), but these have few enough players that using all-pairs communication solves the problem. So SRM fits into that category of interesting ideas that lack implementation details and motivation.
Tuesday, November 18, 2008
A Delay-Tolerant Network Architecture for Challenged Internets
Although I'm confused by the term "challenged internets" (is it a politically correct way to say limited-connectivity networks?), I liked the way the way this paper was organized and the reasoning behind the architecture of DTN. The paper starts out with a good introduction of cases where connectivity may be limited or lacking at times, and these are things that people actually care about: military networks, communications through space, sensor deployments, and even "sneakernet" style store-and-forward networks, of which there are some commercial examples in developing regions. The paper also stresses the importance of interoperability in defining an architecture for such challenged networks, which can lead to a design that gets adopted and implemented by multiple manufacturers. The actual DTN system is designed in a very practical manner, with fairly simple design choices that are adequately explained, such as hierarchical names, overlays for implementaton (rather than requiring redesign of the current Internet), priority, custody transfer, end-to-end acks, and even cryptographic "postage stamps". I liked all the analogies to the postal service and to e-mail.
This paper is different from a lot of the papers we read recently because it's much closer to an RFC-like proposal of a new Internet standard than to a "what-if" architecture paper. This is valuable, as it's good to see how real protocols get designed. However, it makes me wonder about the following question: how often does the opportunity arise in research to define a protocol like this versus exploring more far-fetched ideas that push the boundaries of what technology can do? It seems like a lot of research is focused more on pushing the boundaries, leaving this kind of practical standards design work to industry. How do you know as a researcher when to spend time trying to design this kind of standard versus enabling some interesting demos, getting your viewpoint heard in industry, and then moving on?
This paper is different from a lot of the papers we read recently because it's much closer to an RFC-like proposal of a new Internet standard than to a "what-if" architecture paper. This is valuable, as it's good to see how real protocols get designed. However, it makes me wonder about the following question: how often does the opportunity arise in research to define a protocol like this versus exploring more far-fetched ideas that push the boundaries of what technology can do? It seems like a lot of research is focused more on pushing the boundaries, leaving this kind of practical standards design work to industry. How do you know as a researcher when to spend time trying to design this kind of standard versus enabling some interesting demos, getting your viewpoint heard in industry, and then moving on?
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:
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.
- 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.
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.
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).
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.
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!
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.
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.
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.
Thursday, October 30, 2008
Chord: A Scalable Peer-to-peer Lookup Service for Internet Applications
This paper sparked a lot of research on distributed hashtables and other forms of structured P2P systems by introducing Chord, a simple DHT which provides fast lookups and redundancy while requiring little communication and few neighbors per node. The basic idea of Chord is to identify your data items by hashes and view the space of hashes as a ring. Each node then chooses a random position on the ring and makes pointers to nodes 1, 2, 4, 8, etc identifiers away, or O(log n) pointers. This is enough to be able to find any item in O(log n) time. In addition, with some redundancy, you can replicate items at several nodes and you can have multiple pointers to route around nodes that disconnect.
The most interesting thing about this paper is the solid mathematical grounding for claims about convergence, load balance, etc, and the harsh simulation environment with high churn. Chord is shown to deal gracefully with failures and maintain short paths to most nodes. This is important to motivate the work as really practical, because P2P systems tend to have these harsh environments where most nodes are only in the system for minutes, and very few nodes are in for more than a day or so.
The main criticism I have is that the implementation was only using 10 physical sites and ~200 nodes. Today it would be possible to test such systems at larger scales (1000+ nodes) using services like Amazon Elastic Compute Cloud.
The most interesting thing about this paper is the solid mathematical grounding for claims about convergence, load balance, etc, and the harsh simulation environment with high churn. Chord is shown to deal gracefully with failures and maintain short paths to most nodes. This is important to motivate the work as really practical, because P2P systems tend to have these harsh environments where most nodes are only in the system for minutes, and very few nodes are in for more than a day or so.
The main criticism I have is that the implementation was only using 10 physical sites and ~200 nodes. Today it would be possible to test such systems at larger scales (1000+ nodes) using services like Amazon Elastic Compute Cloud.
Looking up Data in P2P Systems
This article provides a simple, high-level overview of how DHTs work and why one might be interested in them. Three types of routing are covered: Chord, which is a ring with "fingers" pointing to O(log n) neigbors from each node, Pastry, which uses trees based on ID prefixes, and CAN, which splits up a multi-dimensional data identifier space dynamically into regions and moves between neighboring regions. The general idea in all of the systems is the same - keep a small number of pointers from each node, but have some kind of distance metric that lets you get closer to the destination with each hop. Some redundancy in the neighbors also lets you tolerate node departures.
Apart from the easy to read summary, the paper is interesting because it lists some of the reasons why people though P2P systems would be interesting. Basically the idea was that providing a service as a P2P system gives you extremely small expenses (just enough for some tracker service) for a large amount of storage capacity and computation capacity that scales with your number of users. The downside is of course that you have to implement a lot of redundancy and fault-tolerance. In the end, however, the challenge to DHT research was that none of the applications had so much data to index that you couldn't have a centralized index. In other words, people already knew how to build systems for content distribution (BitTorrent, etc), and people knew how to build highly available web applications (torrent sharing sites, etc), so they just put the two together. While a purely distributed index is a nice concept, any real business pretty much had enough resources to build a centralized trackers. Nonetheless, some DHT ideas are being used to provide high availability in data center applications such as memached and Dynamo.
Apart from the easy to read summary, the paper is interesting because it lists some of the reasons why people though P2P systems would be interesting. Basically the idea was that providing a service as a P2P system gives you extremely small expenses (just enough for some tracker service) for a large amount of storage capacity and computation capacity that scales with your number of users. The downside is of course that you have to implement a lot of redundancy and fault-tolerance. In the end, however, the challenge to DHT research was that none of the applications had so much data to index that you couldn't have a centralized index. In other words, people already knew how to build systems for content distribution (BitTorrent, etc), and people knew how to build highly available web applications (torrent sharing sites, etc), so they just put the two together. While a purely distributed index is a nice concept, any real business pretty much had enough resources to build a centralized trackers. Nonetheless, some DHT ideas are being used to provide high availability in data center applications such as memached and Dynamo.
Monday, October 27, 2008
Active network vision and reality: lessons from a capsule-based system
This paper talks about experience with an active network system, ANTS. Active networks were an active research area 5-10 years ago that, as far as I know, did not have a very large impact on deployed technology so far. The idea is to have a programmable network, where applications can have control over their routing, QOS, multicast, etc. In other words, applications run not just at the endpoints but on intermediate nodes in the network too. But what about the end-to-end principle? There were arguments that this could improve performance, and this is partly what RON showed later (although RON gave up trying to get everyone to switch their routers and just used an overlay network). Of course, apart from layering violation, disappearence of the thin waist model, etc, the other argument against active networks was security, and the need for running any user code in a carefully regulated VM or getting it signed by a central authority.
The ANTS system presented in this paper is implemented in Java and uses "capsules", which are basically data packets with associated code that can use soft-state data at each routing node to propagate themselves along in whichever way they deem best. In reality the code does not travel inside the capsules, but rather each capsule has an ID field which is the secure hash of its code, and there is a service for fetching the code associated with each capsule which takes advantage of caching. The most surprising thing about the results in my opinion is that performance is quite bad: the nodes forward about 10 MB/s at the most. The authors blame this "in large part" on Java, and it's true that JVMs at the time were very slow and provided few efficient I/O and memory access primitives, but this is not a completely valid excuse: code will need to be run in some kind of VM and be specified in some kind of cross-platform manner if you ever wish to deploy an active network on the real Internet. The authors go into some profiling to determine why the code is slow, but this misses the point - for a feasibility study for a controversial technology like active networks, it would have been much more convincing to design a fast prototype.
The paper also talks about some of the operational and architectural issues that come up when you use active networks, such as how to do resource management, how to guard against malicious code while having a short debug cycle, how to upgrade the service at runtime, etc. Although the paper is reasonably optimistic that these things could be done, there is still the unanswered question of why do we really need to jump through these hoops. In fact this paper doesn't include much in the way of experiments showing that the active network would be helpful to applications, only in listing some policies they implemented; perhaps this is covered in other work however. But in general there is a fundamental advantage to keeping your interfaces narrow, and going from "I can maybe forward IP packets" to "I will run your arbitrary code" is a big jump in interface size and perhaps not worth it for systems as variable in size, performance and hardware type, and as long-lived, as computer networks.
The ANTS system presented in this paper is implemented in Java and uses "capsules", which are basically data packets with associated code that can use soft-state data at each routing node to propagate themselves along in whichever way they deem best. In reality the code does not travel inside the capsules, but rather each capsule has an ID field which is the secure hash of its code, and there is a service for fetching the code associated with each capsule which takes advantage of caching. The most surprising thing about the results in my opinion is that performance is quite bad: the nodes forward about 10 MB/s at the most. The authors blame this "in large part" on Java, and it's true that JVMs at the time were very slow and provided few efficient I/O and memory access primitives, but this is not a completely valid excuse: code will need to be run in some kind of VM and be specified in some kind of cross-platform manner if you ever wish to deploy an active network on the real Internet. The authors go into some profiling to determine why the code is slow, but this misses the point - for a feasibility study for a controversial technology like active networks, it would have been much more convincing to design a fast prototype.
The paper also talks about some of the operational and architectural issues that come up when you use active networks, such as how to do resource management, how to guard against malicious code while having a short debug cycle, how to upgrade the service at runtime, etc. Although the paper is reasonably optimistic that these things could be done, there is still the unanswered question of why do we really need to jump through these hoops. In fact this paper doesn't include much in the way of experiments showing that the active network would be helpful to applications, only in listing some policies they implemented; perhaps this is covered in other work however. But in general there is a fundamental advantage to keeping your interfaces narrow, and going from "I can maybe forward IP packets" to "I will run your arbitrary code" is a big jump in interface size and perhaps not worth it for systems as variable in size, performance and hardware type, and as long-lived, as computer networks.
Resilient Overlay Networks
This well-known paper demonstrates that overlay networks controlled by the application can provide improvement in many network performance metrics over the standard routing in the Internet. The main metric considered is in resilience: the RON system manages to detect and route around multiple link failures over the real Internet, some of which lasted over 30+ minutes. However, RON can also provide improvements in latency, throughput and loss rate.
This paper is interesting not so much for its implementation details, but for the point that it makes: application-controlled routing can provide significant improvements over the standard Internet. The implementation is very simple, focusing on a very small network (O(10) hosts) with very simple paths (one-hop indirection). Even with this simple implementation, you can achieve significant improvements in various metrics. The paper thus lays the foundation for more advanced study of how to route over overlay networks, which could provide larger improvements, but its contribution is to bring this idea to the research community.
Apart from the idea as a whole working out, the most surprising thing for me was that two-hop paths are enough to provide significant performance benefits and to route around all the outages observed. This is something that I think would be non-obvious to anyone who is told about this idea without seeing the evaluation. The fact that the idea works at all is also somewhat surprising, but less so when you sit back and think about the goals that Internet routing was designed for - policy obedience and scalability. RON breaks both, although it is "good enough" at scalability that small organizations can consider using it.
I think that in practice, RON did not gain serious adoption, but it sparked a lot of discussion in the networking community. This could be perhaps because connectivity is "good enough" for most people, especially given that most people are not talking to random destinations on a RON, but rather to a small number of very well-provisioned global destinations (google.com, cnn.com, etc). However, there are also technical arguments against RON. One of them is that if everyone was using RONs to greedily optimize for throughput or latency or something similar, then routing would quickly oscillate, as underloaded links would quickly get overloaded, and then underloaded again, etc. Greedy behavior by each individual is not necessarily good for a stable, high-utilization, high-throughput system.
This paper is interesting not so much for its implementation details, but for the point that it makes: application-controlled routing can provide significant improvements over the standard Internet. The implementation is very simple, focusing on a very small network (O(10) hosts) with very simple paths (one-hop indirection). Even with this simple implementation, you can achieve significant improvements in various metrics. The paper thus lays the foundation for more advanced study of how to route over overlay networks, which could provide larger improvements, but its contribution is to bring this idea to the research community.
Apart from the idea as a whole working out, the most surprising thing for me was that two-hop paths are enough to provide significant performance benefits and to route around all the outages observed. This is something that I think would be non-obvious to anyone who is told about this idea without seeing the evaluation. The fact that the idea works at all is also somewhat surprising, but less so when you sit back and think about the goals that Internet routing was designed for - policy obedience and scalability. RON breaks both, although it is "good enough" at scalability that small organizations can consider using it.
I think that in practice, RON did not gain serious adoption, but it sparked a lot of discussion in the networking community. This could be perhaps because connectivity is "good enough" for most people, especially given that most people are not talking to random destinations on a RON, but rather to a small number of very well-provisioned global destinations (google.com, cnn.com, etc). However, there are also technical arguments against RON. One of them is that if everyone was using RONs to greedily optimize for throughput or latency or something similar, then routing would quickly oscillate, as underloaded links would quickly get overloaded, and then underloaded again, etc. Greedy behavior by each individual is not necessarily good for a stable, high-utilization, high-throughput system.
Tuesday, October 21, 2008
A First-Principles Approach to Understanding the Internet’s Router-level Topology
I liked this paper. This paper looks at Internet topology generation work from a different angle: how well do the generated networks perform given physical constraints on router technology (number of ports vs bandwidth)? The answer is that they perform poorly. This means that while the generated networks match the degree distributions seen in the real Internet - which is not surprising because it is exactly how the generators were designed - just choosing random graphs with this degree distribution does not give "good", well-performing network designs. The real Internet is not built by a fully random process - it's built by people who are trying to provide good performance! Your random network can't match the performance properties of the real Internet if your generator doesn't also strive for performance. This makes a lot of topology generation work and work in algorithms evaluated using random topologies look fairly dubious.
I liked that there is a good explanation of why the different networks perform differently. The idea is that if you want a high-performing network, you want edge routers to have high degrees (servicing many users) and core routers to have relatively lower degrees (thus supporting higher-bandwidth links). The random graph models fail to do this. I also liked the methodology for showing what a heuristically optimal topology looks like (take a graph and change it while preserving degrees), and the plot of performance vs likelihood under the random graph model which basically means that well-performing graphs are unlikely to arise by chance (network engineers really do earn their pay).
It was pretty surprising that this paper came out in 2004, almost ten years after the previous paper and the surrounding flurry of work on topology generators. That's a long time of looking only at arbitrary graph properties instead of trying to see whether the generated networks are in any way realistic! It's disconcerting that many routing algorithms, etc were designed for these random topologies and may do bad things on a network that actually looks like the Internet. This all goes to show that real implementation is the best evaluation. Finally, the idea of looking at a generated network's performance and trying to make generators work like real network designers seems obvious in hindsight, but it seems to be one of those obvious ideas that people have trouble coming up with until someone else points it out to them.
I liked that there is a good explanation of why the different networks perform differently. The idea is that if you want a high-performing network, you want edge routers to have high degrees (servicing many users) and core routers to have relatively lower degrees (thus supporting higher-bandwidth links). The random graph models fail to do this. I also liked the methodology for showing what a heuristically optimal topology looks like (take a graph and change it while preserving degrees), and the plot of performance vs likelihood under the random graph model which basically means that well-performing graphs are unlikely to arise by chance (network engineers really do earn their pay).
It was pretty surprising that this paper came out in 2004, almost ten years after the previous paper and the surrounding flurry of work on topology generators. That's a long time of looking only at arbitrary graph properties instead of trying to see whether the generated networks are in any way realistic! It's disconcerting that many routing algorithms, etc were designed for these random topologies and may do bad things on a network that actually looks like the Internet. This all goes to show that real implementation is the best evaluation. Finally, the idea of looking at a generated network's performance and trying to make generators work like real network designers seems obvious in hindsight, but it seems to be one of those obvious ideas that people have trouble coming up with until someone else points it out to them.
Monday, October 20, 2008
On Power-Law Relationships of the Internet Topology
This paper was pretty interesting because it looked at mathematical properties seemingly obeyed by the Internet graph based on snapshots at different times. Several "laws" that produced good fits were identified. All were power laws, implying heavy-tailed distributions. Such distributions are very common in systems used by people (e.g. content popularity on the Internet) as well as natural systems. The laws identified involved distribution of ranks vs degrees, degree frequency vs degree, hop count vs number of nodes, and eigenvalues. I thought that the hop count one was particularly interesting because it is a measure of the "connectedness" of a graph. The degree found was about 2.8 for the router graph, implying that the Internet is "more connected" than a 2D grid but "less connected" than a 3D grid. This seems to be expected on a two-dimensional planet.
The main question with this paper is how to use this work. The most reasonable proposal is to validate Internet topology generators used in simulations. Still, the laws don't tell us how bad a graph that doesn't meet them is at approximating the Internet - in fact it might be a "harder" graph to route through / make reliable / whatever the algorithm is doing, in which case it's okay to test on it. The laws also might not be sufficient conditions for a realistic graph, so still the best way to do a simulation is with real topology data. Finally, the authors do use the power laws to try to predict Internet growth; I'm curious how well that works if extrapolated to today.
Another question is how many of these laws will arise naturally in a randomly generated graph [if generated according to some sensible model]. Certainly the hop-count one for example seems reasonable for planar graphs. The eigenvalue one also seems like something that could happen in random graphs no matter how we generated them, especially because it has little physical interpretation. The other laws may work in the same way. If this is the case, do the laws really imply something fundamental about the Internet?
The main question with this paper is how to use this work. The most reasonable proposal is to validate Internet topology generators used in simulations. Still, the laws don't tell us how bad a graph that doesn't meet them is at approximating the Internet - in fact it might be a "harder" graph to route through / make reliable / whatever the algorithm is doing, in which case it's okay to test on it. The laws also might not be sufficient conditions for a realistic graph, so still the best way to do a simulation is with real topology data. Finally, the authors do use the power laws to try to predict Internet growth; I'm curious how well that works if extrapolated to today.
Another question is how many of these laws will arise naturally in a randomly generated graph [if generated according to some sensible model]. Certainly the hop-count one for example seems reasonable for planar graphs. The eigenvalue one also seems like something that could happen in random graphs no matter how we generated them, especially because it has little physical interpretation. The other laws may work in the same way. If this is the case, do the laws really imply something fundamental about the Internet?
Thursday, October 16, 2008
Directed Diffusion: A Scalable and Robust Communication Paradigm for Sensor Networks
This is another paper about collecting data in sensor networks, looking at the problem from a data-oriented angle. The paper suggests a "diffusion" model where nodes interested in some data create "gradients" to receive it and the data flows towards them. This close resemblance to how substances flow towards a destination in the physical world is attractive because it is intuitive and it seems like it should be pretty robust to local problems. However, we have to ask how well it will work in practice, especially given that we've seen similar "realistic flow" schemes, such as the TORA algorithm in the MANET routing paper, perform poorly.
Apart from that, I think another weakness of the system is the generality. In real sensor networks, you probably don't have multiple destinations interested in multiple types of data, but rather one collector. In this case, why not build a good delivery tree using some one-time algorithm, rather than worrying about setting up gradients?
Also, like TAG, this paper uses mostly simulation for its evaluation. Again, something that works in simulations might not work okay in real life. For example, the choice of sending interests every 5 seconds seems to be far too often for a power-constrained sensor network. So does having 5 random sources and random sinks.
Apart from that, I think another weakness of the system is the generality. In real sensor networks, you probably don't have multiple destinations interested in multiple types of data, but rather one collector. In this case, why not build a good delivery tree using some one-time algorithm, rather than worrying about setting up gradients?
Also, like TAG, this paper uses mostly simulation for its evaluation. Again, something that works in simulations might not work okay in real life. For example, the choice of sending interests every 5 seconds seems to be far too often for a power-constrained sensor network. So does having 5 random sources and random sinks.
TAG: a Tiny AGgregation Service for Ad-Hoc Sensor Networks
This paper presents a system for mapping declarative SQL-like queries onto a sensor network and computing results efficiently. Because TAG aggregates data inside the network, it can reduce the messaging costs over the simple approach of just sending all the data to one receiver, which runs the query. The paper builds trees for routing and also uses caching of values to improve reliability and performance. It is evaluated through simulations but there is also a real implementation.
Although the system is neat and sounds like a good interface for querying sensor networks once they're up, I have the following questions / concerns:
Although the system is neat and sounds like a good interface for querying sensor networks once they're up, I have the following questions / concerns:
- Often we think of queries only after collecting some data, so we want to save all the data in a centralized repository anyway. In this case, is it worth trying to build a system like TAG rather than focusing on just a fast data collection service? As an added bonus, although collecting raw data costs more power than running TAG, once we have the data we can run any number of queries for free, whereas with TAG, every query would cost some more power and the total cost may be higher.
- The paper uses a simulator for most of the results, which may lead to better performance than in reality due to the model in the simulation. Why wasn't the real implementation used for more measurements?
Thursday, October 9, 2008
XORs in the Air: Practical Wireless Network Coding
Like the previous paper, this one is also about taking advantage of the broadcast nature of wireless to improve throughput. However, the approach here is more elegant and more practical. The idea is that different nodes know the contents of different packets, either because they originally sent them, or because they happen to have heard them. If a sender with multiple packets to forward knows which receivers have which packets, it may be able to send a sum of the packets (XOR) such that each receiver can "solve" for their own packet from it. This is shown to actually improve throughput noticeably in real networks. Unlike the previous paper, end applications don't need to be modified, there is no need for batching, and the scheme works well with multiple flows - in fact, that's the whole point of the scheme. This makes the scheme applicable in real 802.11 networks. The paper is well-presented and interesting to read.
Note that COPE takes advantage of the wireless medium in a fundamentally different way from ExOR. ExOR is about taking advantage of multiple relay nodes when we send from a single source to a single destination and links are lossy. COPE is about conserving spectrum when multiple flows pass through the same set of nodes, and does not worry overly much about loss. The approach in COPE seems more useful in real wireless network deployments, whereas ExOR is sort of a "theoretical" result that, if you had to send from one node to another over a lossy channel and there happened to be several idle nodes in-between you and your destination, you should utilize all of them rather than trying to find one single best path.
I also found it interesting that COPE could improve throughput by reducing the sizes of router queues. This is a nice unanticipated effect.
My main concern about the paper is whether the potential reordering of packets, or the wait for the nodes to put them back in order, can increase jitter and confuse TCP's estimation of round-trip time or confuse real-time applications. It would have been nice to see some latency results.
Note that COPE takes advantage of the wireless medium in a fundamentally different way from ExOR. ExOR is about taking advantage of multiple relay nodes when we send from a single source to a single destination and links are lossy. COPE is about conserving spectrum when multiple flows pass through the same set of nodes, and does not worry overly much about loss. The approach in COPE seems more useful in real wireless network deployments, whereas ExOR is sort of a "theoretical" result that, if you had to send from one node to another over a lossy channel and there happened to be several idle nodes in-between you and your destination, you should utilize all of them rather than trying to find one single best path.
I also found it interesting that COPE could improve throughput by reducing the sizes of router queues. This is a nice unanticipated effect.
My main concern about the paper is whether the potential reordering of packets, or the wait for the nodes to put them back in order, can increase jitter and confuse TCP's estimation of round-trip time or confuse real-time applications. It would have been nice to see some latency results.
Wednesday, October 8, 2008
ExOR: Opportunistic Multi-Hop Routing for Wireless Networks
This paper focused more on an idea than on implementation details and even practicality. The main point of the paper is that you can take advantage of the broadcast nature of wireless to improve throughput. This is something that network researchers probably overlooked for a long time, so it's good to point out. The actual method in which they take advantage of the broadcast medium is to have everyone listen to a packet, and then figure out which receiver is closer to the destination, and have it send the packet on. This way, you take advantage of redundancy in the paths as well as strokes of luck that let you get a packet through a longer, lossier link. At least, that's the theory. The actual implementation is much hairier, involving batching of multiple packets and an agreement protocol for who received what. The fact that you need to send the last 10\% of packets through traditional means seems like a serious hack. Could you not have used forward error correction or latched on to the end of the next batch?
Some of the other practical issues I had with the implementation were:
I also didn't understand why the paper was called ExOR. What does that stand for? I would've guessed upon reading the title that the paper would be about network coding (XORs in the air), but it wasn't.
Some of the other practical issues I had with the implementation were:
- Batching is bad for latency and jitter, and might not always be possible. What about constant-bit-rate sources?
- ExOR takes better advantage of the broadcast medium if there's one source-destination pair talking at once. What if there are more? It would seem that the extra gossiping and coordination on who is to send what is wasteful. Also, you might as well have been using lower transmit power and shorter, but less conflicting links rather than hoping that someone far away might hear some of your transmissions.
- It's clear that TCP apps won't work really well over ExOR, and neither will realtime apps. What use case does this leave, where we need high throughput in a wireless network?
I also didn't understand why the paper was called ExOR. What does that stand for? I would've guessed upon reading the title that the paper would be about network coding (XORs in the air), but it wasn't.
Tuesday, October 7, 2008
A High-Throughput Path Metric for Multi-Hop Wireless Routing
This paper presents the ETX metric for measuring paths in multi-hop wireless networks, which uses an expected transmission count rather than the standard minimum hop count. ETX thus takes into account loss rates and interference among different hops in the same path, leading to better routes that cause less interference, waste less energy, and get packets through more reliably. Although the metric is simple, it was interesting that it could work well and sometimes give a 2x increase in performance.
I have three criticisms for the paper. First, is the performance improvement really that good, or always necessary? Certainly 2x performance improvement is noticeable, but it only happens in a fraction of the cases in the evaluation. Is it worth switching to a more complicated routing metric? Second, ETX requires constant loss rate estimation, which could be costly and could also lead to misestimations, causing complex behavior. Minimum hop count is pretty robust and easy to understand, as long as you have a threshold for using reasonably good links. Finally, although the paper mentioned related work, such as the delivery-ratio-product metric of [33], and explains why it might perform poorly, this work is not evaluated in the experiments. How can we know whether ETX provides a 100% increase in performance over [33], or a 5% increase, or even a decrease? It would be more responsible to compare against these other metrics and see how much we really gain.
The paper was useful to read because ETX is probably a good metric to try out in any sensor network or MANET type of work, even if it turns out to be difficult to estimate correctly or to perform poorly in practice.
I have three criticisms for the paper. First, is the performance improvement really that good, or always necessary? Certainly 2x performance improvement is noticeable, but it only happens in a fraction of the cases in the evaluation. Is it worth switching to a more complicated routing metric? Second, ETX requires constant loss rate estimation, which could be costly and could also lead to misestimations, causing complex behavior. Minimum hop count is pretty robust and easy to understand, as long as you have a threshold for using reasonably good links. Finally, although the paper mentioned related work, such as the delivery-ratio-product metric of [33], and explains why it might perform poorly, this work is not evaluated in the experiments. How can we know whether ETX provides a 100% increase in performance over [33], or a 5% increase, or even a decrease? It would be more responsible to compare against these other metrics and see how much we really gain.
The paper was useful to read because ETX is probably a good metric to try out in any sensor network or MANET type of work, even if it turns out to be difficult to estimate correctly or to perform poorly in practice.
A Performance Comparison of Multi-Hop Ad Hoc Network Routing Protocols
This paper simulates four MANET routing protocols with a somewhat more realistic model than previous work, and evaluates how they perform under different degrees of node mobility. The paper includes a detailed description of each protocol, which was great to have. The high-level conclusion is that DSR and perhaps AODV are best in terms of delivery success rates and overhead (although this is not stated in the intro; most of the focus is on methodology).
Although this paper was very detailed, there were several things that really bothered me about the methodology and the evaluation:
In terms of course organization, this paper should come before the path metric one, since it describes the DSDV and DSR algorithms used in the path metric paper.
Although this paper was very detailed, there were several things that really bothered me about the methodology and the evaluation:
- The physical later model is still very simplistic. It's really hard to match the real world with simulations in something as complicated as wireless.
- The paper modified the algorithms studied in a variety of ways. While this could be seen as a good thing because it makes it more fair to each algorithm, there is the question of when to stop. The improvements in the paper clearly had a positive effect on the algorithms. How do we know whether some equally simple improvements won't drastically improve the algorithms that performed badly?
- The constants for the algorithms (timeouts, refresh intervals, etc) seem to be pulled out of a hat.
- The movement and communication models are very arbitrary. For example, few groups of things really move along random waypoints, or do nothing for the first 600 seconds and then all start moving at once. The 1500x300 (5x1) field is just really bizarre. So is having ony CBR sources. Just running a lot of experiments with the random waypoint model isn't enough, especially if you're only going to present averages of performance in the experiments, and not distributions. The paper even says that performance is very sensitive to movement, which should be a sign that it's important to validate a model, maybe base it on traces of real use cases, and try a variety of scenarios which are not just random samples from the same model.
- Standard deviations aren't shown in the results, and it's hard to tell why certain protocols do badly. Maybe the algorithms were designed specifically to deal with particular scenarios - why then simulate them all in the same scenario?
In terms of course organization, this paper should come before the path metric one, since it describes the DSDV and DSR algorithms used in the path metric paper.
Thursday, October 2, 2008
Architecture and Evaluation of an Unplanned 802.11b Mesh Network
This paper presents the design and evaluation of an ad-hoc wireless mesh network between residential users. There are a lot of details, but the main conclusion is that it is possible to have reasonably good performance using an automatically managed network deployed by users in an ad-hoc fashion with no central oversight. The largest design challenge was probably the link quality measurement and routing metric.
I liked the ETT metric, which combines information about throughputs and loss probabilities for both big data packets and ACKs without making many assumptions about the link (e.g. constant error rate per bit). I also found the multihop interference very interesting - it seems like there should be a way to fix that. (But then, why have they disabled RTS/CTS?)
I also liked the fact that this is a real implementation, and not a simulation, like the previous papers! Some of the comparisons are still calculations based on simulation, but at least they are using measured values for throughput, latency, etc. I actually think this wireless portion of the course could be improved by having more experience papers about real systems, if these are available.
I had a number of questions about the paper that weren't really answered:
- Why is RTS/CTS disabled in the wireless nodes? This is especially strange because it may be a cause of the multihop self-interference effect seen.
- How much more powerful are the antennas on the Roofnet nodes compared to a "standard" wifi router? Can they interfere with peoples' WLANs at home?
- How does the placement of the directional antennas affect performance?
- Was Click performance good enough to never be a bottleneck?
- How often do route metrics change, and how often do they lead to changes in preferred paths?
- The system recovers from lost nodes or degraded link quality, but can it recover from a complete restart, as would happen for example with a power failure?
- I was very surprised that ISPs actually allowed wireless sharing of links. Is this still true today? I imagine ISPs would be okay with it if they could charge extra, and if we do that, what is a good pricing model to use? This also leads to a general question about what the "market demand" for systems like Roofnet is. Sure, Roofnet is very cool technology, but what is the economic problem that it solves? Could it be used to set up a lower-cost "local ISP" than standard ISP's?
I liked the ETT metric, which combines information about throughputs and loss probabilities for both big data packets and ACKs without making many assumptions about the link (e.g. constant error rate per bit). I also found the multihop interference very interesting - it seems like there should be a way to fix that. (But then, why have they disabled RTS/CTS?)
I also liked the fact that this is a real implementation, and not a simulation, like the previous papers! Some of the comparisons are still calculations based on simulation, but at least they are using measured values for throughput, latency, etc. I actually think this wireless portion of the course could be improved by having more experience papers about real systems, if these are available.
I had a number of questions about the paper that weren't really answered:
- Why is RTS/CTS disabled in the wireless nodes? This is especially strange because it may be a cause of the multihop self-interference effect seen.
- How much more powerful are the antennas on the Roofnet nodes compared to a "standard" wifi router? Can they interfere with peoples' WLANs at home?
- How does the placement of the directional antennas affect performance?
- Was Click performance good enough to never be a bottleneck?
- How often do route metrics change, and how often do they lead to changes in preferred paths?
- The system recovers from lost nodes or degraded link quality, but can it recover from a complete restart, as would happen for example with a power failure?
- I was very surprised that ISPs actually allowed wireless sharing of links. Is this still true today? I imagine ISPs would be okay with it if they could charge extra, and if we do that, what is a good pricing model to use? This also leads to a general question about what the "market demand" for systems like Roofnet is. Sure, Roofnet is very cool technology, but what is the economic problem that it solves? Could it be used to set up a lower-cost "local ISP" than standard ISP's?
Wednesday, October 1, 2008
Modeling Wireless Links for Transport Protocols
This paper explains how many models of wireless links used in research are inaccurate and how to really model the losses, variable delays and retransmissions that can occur. The paper is very important because it shows problems with many evaluations of new proposals and tells researchers how to get wireless channels right. However, this is also my main gripe with the paper: it only explains how to make better models, or at least models that are better in particular scenarios. It does not answer the question of "when is a model good enough to be accurate within X%", nor does it propose other means of evaluating the protocols, like how to set up a realistic experiment. As long as you only use modeling, all you can do in a paper like this is prove past work "wrong", but not prove any work "right", because the models could still be faulty. It's also unfortunate that the paper doesn't try to quantify how far off one can be with the simplifying assumptions in some of the work it criticizes - e.g. assuming that uplink and downlink have the same capacity may be okay if acks are very tiny compared to data packets.
My other gripe with the paper is that it contains a lot of maybes and speculation about future technology. This is good for warning researchers that some of the problems they are trying to solve (delay, reordering, etc) might go away by themselves, but it seems far to premature to discount work dealing with these problems just in case a better link layer protocol is invented. We also know that software can be much easier to change than hardware, so it makes a lot of sense to work on transport algorithms rather than worrying that a link layer complication you are trying to solve will be irrelevant in a few years. Maybe this wasn't clear at the time of the paper, if Wifi and cellular networking were not pervasive; but today, it's pretty obvious that 802.11 is not going away soon, and neither is edge / 3G / etc, so we need to design protocols that work well with them.
I was a little surprised at the paragraph that said current WLANs don't reorder packets. It actually makes sense, since you're supposed to hear the link-level ACK right away, so you can keep trying to send a packet if you don't hear it. But in that case, why was so much of the work in the previous paper (comparing transports over wireless) concerned with reordering? Did none of those papers use any evaluation beyond simulation?
My other gripe with the paper is that it contains a lot of maybes and speculation about future technology. This is good for warning researchers that some of the problems they are trying to solve (delay, reordering, etc) might go away by themselves, but it seems far to premature to discount work dealing with these problems just in case a better link layer protocol is invented. We also know that software can be much easier to change than hardware, so it makes a lot of sense to work on transport algorithms rather than worrying that a link layer complication you are trying to solve will be irrelevant in a few years. Maybe this wasn't clear at the time of the paper, if Wifi and cellular networking were not pervasive; but today, it's pretty obvious that 802.11 is not going away soon, and neither is edge / 3G / etc, so we need to design protocols that work well with them.
I was a little surprised at the paragraph that said current WLANs don't reorder packets. It actually makes sense, since you're supposed to hear the link-level ACK right away, so you can keep trying to send a packet if you don't hear it. But in that case, why was so much of the work in the previous paper (comparing transports over wireless) concerned with reordering? Did none of those papers use any evaluation beyond simulation?
Sunday, September 28, 2008
A Comparison of Mechanisms for Improving TCP Performance over Wireless Links
This paper compares the performance of many proposed techniques for TCP over wireless links by testing them on a real implementation with simulated losses. The evaluation is thorough, trying various combinations of techniques. The techniques fall into three broad categories: link layer techniques which correct losses locally, end-to-end modifications of TCP congestion control, and split-connection techniques where the TCP connection ends at a base station and a specialized protocol is used for the last hop to the host. It is shown that link layer techniques need TCP-awareness to perform well (that is, they need to suppress duplicate acks resulting from packet reordering even if they do retransmit packets quickly, to prevent the sender from reducing its congestion window). With TCP-awareness, these techniques perform the best. End-to-end techniques such as SACK are also effective, though they require modifying the protocol. Finally, split connection techniques don't provide more performance than the other two types, and come with the extra baggage of changing TCP semantics and making handoff more difficult, so they do not appear to be an attractive choice.
I liked this paper because it introduced a lot of the research in this field without requiring us to read about every single technique separately. At the same time, the evaluation is insightful and shows the real issues with each technique.
The main aspect I didn't like was that although the implementations used in the evaluation were real, wireless losses were simulated using a rather simple distribution of errors. It's not at all clear that this is representative. There is a section in the paper that deals with burst losses, but it is small and not as thorough as the rest of the analysis, and even then the burst loss model is rather simplistic. This kind of paper would be much stronger if it was based on evaluation in real networks in a variety of settings, especially because the differences between some of the better-performing schemes are pretty small and could presumably change around in different environments. Thus the absolute ordering of the techniques with respect to performance can't be taken as definitive, but the lessons about what aspects of a protocol improve its performance are still useful.
I liked this paper because it introduced a lot of the research in this field without requiring us to read about every single technique separately. At the same time, the evaluation is insightful and shows the real issues with each technique.
The main aspect I didn't like was that although the implementations used in the evaluation were real, wireless losses were simulated using a rather simple distribution of errors. It's not at all clear that this is representative. There is a section in the paper that deals with burst losses, but it is small and not as thorough as the rest of the analysis, and even then the burst loss model is rather simplistic. This kind of paper would be much stronger if it was based on evaluation in real networks in a variety of settings, especially because the differences between some of the better-performing schemes are pretty small and could presumably change around in different environments. Thus the absolute ordering of the techniques with respect to performance can't be taken as definitive, but the lessons about what aspects of a protocol improve its performance are still useful.
MACAW: A Media Access Protocol for Wireless LAN's
This is a very well-written paper about media access in wireless networks. Naively, one might expect that the RTS-CTS exchange seen in undergrad is enough to solve most of the problems in wireless media access control, and treat wireless LANs as yet another link layer, but this paper shows how, in many areas, simple algorithms fail to perform, as well as how to fix them. The contributions can be summarized as follows:
I really enjoyed reading this paper because it manages to introduce a problem, describe existing approaches, explain problems associated with them, and provide well-motivated solutions in ten concise pages, without requiring background knowledge or skipping over details. It's uncommon to find papers which both define and explore a field this way.
My main criticism is about the choice of setting and evaluation methodology for the paper. The experiments in the paper are all based on simulations, which are in turn modeling the "base station and pad" environment at Xerox PARC. This leads to two questions: First, how similar is the PARC wireless LAN to other types of wireless LANs? Are there issues in other wireless networks that don't arise in PARC's, e.g. due to capture and interference? Second, how well can any simulation capture the variations and subtle effects of wireless transmission in the real world? The paper would have been stronger with an evaluation using real pads, or with other wireless technologies, if any were available at the time. Nonetheless, the problems studied and the solutions proposed are pretty general, so the work should be useful for designing new wireless networks.
- A milder backoff algorithm, combined with sharing backoff values with other nodes, to improve both performance and fairness.
- ACK messages for fast retransmissions when loss rates are high.
- DS and RRTS messages to synchronize timing when senders are competing for the medium.
- Separating backoff values by destination, to deal with the problem of noise / local contention causing global performance drops when the backoff is shared.
I really enjoyed reading this paper because it manages to introduce a problem, describe existing approaches, explain problems associated with them, and provide well-motivated solutions in ten concise pages, without requiring background knowledge or skipping over details. It's uncommon to find papers which both define and explore a field this way.
My main criticism is about the choice of setting and evaluation methodology for the paper. The experiments in the paper are all based on simulations, which are in turn modeling the "base station and pad" environment at Xerox PARC. This leads to two questions: First, how similar is the PARC wireless LAN to other types of wireless LANs? Are there issues in other wireless networks that don't arise in PARC's, e.g. due to capture and interference? Second, how well can any simulation capture the variations and subtle effects of wireless transmission in the real world? The paper would have been stronger with an evaluation using real pads, or with other wireless technologies, if any were available at the time. Nonetheless, the problems studied and the solutions proposed are pretty general, so the work should be useful for designing new wireless networks.
Tuesday, September 23, 2008
A Fast Switched Backplane for a Gigabit Switched Router
This paper provides an introduction to how high-throughput switches and routers are designed, focusing on how to employ a switched backplane effectively. I liked the fact that the paper started with some context about other router design choices (centralized CPU/memory, one CPU per line card and bus, etc), since this explains the historical context and the reason why we are worrying about switched backplanes. Beyond this, the paper explains several concepts/algorithms that can make a switched backplane efficient:
One question I have about the work is how to support more advanced queueing disciplines than FIFO with priorities in this kind of fabric. When we read the fair queueing work, we said that fair queueing is supported in today's high-speed routers, but how would it be done in a switch like this? Is it possible to implement it only at the line cards and then use the 2-3 priority levels for scheduling outputs? Perhaps this is discussed in other papers, but it wasn't discussed in this one.
From the point of view of organizing the course, it would make more sense to put this paper before the 100 TB router one in the reading list.
- VOQ (having one queue per output at each port), which avoids the "head of line blocking" problem where packets need to wait until the one at the head of a FIFO queue has had a chance to go to its desired output. I liked the traffic analogy for this.
- Fixed-size cells, which simplify the scheduling to a timeslot-based process and thus improve efficiency.
- iSLIP / ESLIP, a bidding-based heuristic algorithm that finds a matching between inputs and outputs quickly on each timestep.
- Using the properties of the switch fabric to replicate cells for multicast.
- Priorities for QOS.
- Speedup of the switch fabric compared to the input rates to prevent blocking-related reductions in throughput (apparently 2x can be sufficient).
- Fanout splitting for multicast (allow sending on some links even if one is not scheduled to send on all of them).
One question I have about the work is how to support more advanced queueing disciplines than FIFO with priorities in this kind of fabric. When we read the fair queueing work, we said that fair queueing is supported in today's high-speed routers, but how would it be done in a switch like this? Is it possible to implement it only at the line cards and then use the 2-3 priority levels for scheduling outputs? Perhaps this is discussed in other papers, but it wasn't discussed in this one.
From the point of view of organizing the course, it would make more sense to put this paper before the 100 TB router one in the reading list.
Scaling Internet Routers Using Optics
This paper explains how a 100 TB router may be designed using future optical technology. The basic idea is to take the Load-Balanced Switch design and fix some of its problems, including creating a fabric that can switch rapidly, packet mis-sequencing (which is fixed by the FOFF policy for spreading work evenly across second-stage queues and a buffer), and working when some linecards are down (which is solved by a complex modular design). The switch design is notable because it requires no centralized scheduler, achieves full throughput, and is agrued to be feasible using technology a few years from now. However, the main shortcoming of the paper is that there is no implementation even of a prototype, and so no way to actually evaluate the switch design. This means that for practical purposes, this is still only design work for improving the Load-Balanced Switch, and may not necessarily lead to a good implementation. Since I don't know much about the hardware used in switches and trends in its manufacturing, it's very hard to tell how realistic the design is.
One interesting aspect of the paper is the point that using optical fabric can reduce power usage. Certainly, power is a very significant concern in network equipment, and the availability of nearly zero-power switching fabrics using optical technology is exciting. However, electronics will apparently still be needed for routing decisions. How much power will be wasted in converting from optical signals to electronic ones? The paper seems to gloss over these points, maybe because the answer is very well-known, but it's hard to tell how feasible the design is without this knowledge.
One interesting aspect of the paper is the point that using optical fabric can reduce power usage. Certainly, power is a very significant concern in network equipment, and the availability of nearly zero-power switching fabrics using optical technology is exciting. However, electronics will apparently still be needed for routing decisions. How much power will be wasted in converting from optical signals to electronic ones? The paper seems to gloss over these points, maybe because the answer is very well-known, but it's hard to tell how feasible the design is without this knowledge.
Wednesday, September 17, 2008
Supporting Real-Time Applications in an Integrated Services Packet Network
This paper provides a pretty detailed design for a network supporting Integrated Services QOS, including what types of services to provide and how to schedule packets at the routers. There are several interesting and nonobvious ideas. First, the paper categorizes applications into rigid or adaptive and tolerant or intolerant, a useful taxonomy for examining how applications' needs differ. Second, the paper presents "predicted" services as an important service class. Predicted services differ from guaranteed capacity and delay bounds by saying only that an application will get similar performance to what it had in the past if network conditions continue to be similar. Even though this means there are no hard guarantees, it can lead to much better utilization of the network due to statistical multiplexing, and it is actually a useful service model for playback applications because they can adjust buffering intervals and rates to compensate. Third, in the packet scheduling part of the paper, we see that while Fair Queueing is a good way to isolate flows and provide performance guarantees, FIFO scheduling leads to much better potential throughput and performance for predicted services as long as flows are well-behaved. Again, we ultimately want to take advantage of statistical multiplexing to make the network efficient. Finally, the paper combines weighted fair queueing and priority scheduling to support guarnateed, predicted and best-effort traffic in the same scheduling algorithm. There is a well thought-out explanation of how priority shifts jitter between classes, FIFO minimizes average delay, and WFQ provides isolation.
One weakness of the paper is the service model chosen - describing flows' needs explicitly based on token buckets, delay bounds, etc. It seems difficult to calculate the requirements for an application, and even more difficult to get people to provide reasonable requirements rather than asking for more than they really need. Any design based on reservations will also have pricing complexity and scalability challenges (how to perform allocation). Admission control will also be a challenge (and the paper only briefly mentions how it might be performed). In the end, perhaps predicted service is the only class of "better-than-best-effort" service we can provide in the Internet in a usable, scalable fashion, by giving it a simple pricing model (say 2x more expensive per byte). This is more or less what work on Differentiated Services tried to achieve.
The paper also focuses mostly on a complete system design, rather than on what's needed for incremental deployment. While this is necessary to present an idea in its complete form to the research community and to focus light on the core issues, it may reduce interest in the work because there isn't any clear path to evaluation and deployment. Often researchers provided at least a network simulator implementation for proposed router mechanisms or transport protocols, but I think this paper had neither of those.
One weakness of the paper is the service model chosen - describing flows' needs explicitly based on token buckets, delay bounds, etc. It seems difficult to calculate the requirements for an application, and even more difficult to get people to provide reasonable requirements rather than asking for more than they really need. Any design based on reservations will also have pricing complexity and scalability challenges (how to perform allocation). Admission control will also be a challenge (and the paper only briefly mentions how it might be performed). In the end, perhaps predicted service is the only class of "better-than-best-effort" service we can provide in the Internet in a usable, scalable fashion, by giving it a simple pricing model (say 2x more expensive per byte). This is more or less what work on Differentiated Services tried to achieve.
The paper also focuses mostly on a complete system design, rather than on what's needed for incremental deployment. While this is necessary to present an idea in its complete form to the research community and to focus light on the core issues, it may reduce interest in the work because there isn't any clear path to evaluation and deployment. Often researchers provided at least a network simulator implementation for proposed router mechanisms or transport protocols, but I think this paper had neither of those.
Fundamental Design Issues for the Future Internet
This paper takes a step back from QOS work and explains economically why QOS might be a good idea, and what issues need to be resolved in implementing it. The author uses a utility model to quantitatively explain some of the motivation for QOS and help understand the design choices. For example, he shows that priority scheduling provides better aggregate utility than FIFO when some flows care more about delay. Utility functions are also used to explain convincingly why best-effort works for bulk transfer applications but not for realtime applications where utility drops sharply below a certain level. This is an argument for admission control. Some back-of-the-envelope calculations also show that overprivisioning may not be sufficient if even a small number of users have extremely large flows. Finally, the author explains the tradeoff between different ways of identifying service classes for flows: while identifying them automatically in the network based on port number, protocol type, etc helps reuse applications, a pricing model approach where applications choose their service class can lead to more flexibility.
Obviously QOS did not take off in the wide-area Internet, and the reasons this happened provide valid criticisms of the paper. The main reasons why QOS didn't take off were probably improvements in bandwidth (and its price) and the difficulty in charing for services that use QOS. Despite the fact that a QOS system could increase utility for everybody, that kind of market won't be set up if it's complicated to determine pricing, account for usage, explain charges to users, get users to accept variable per-month pricing, etc. These "mundane" details were probably as important as technical challenges and architectural rigidity in hindering adoption of QOS, because it would be easy (if hacky) to wrap around existing protocols and clients and just put applications in the best-effort class if they are not specifically marked for QOS. The improvements in bandwidth also helped. Finally, there was perhaps less demand for online video than expected because of the distribution costs (multicast could have helped here, but it also didn't really take off). Many computer networking researchers express some surprise that in the end YouTube, with its non-live, low-quality content, has become the main form of online video.
Nonetheless, the fact that QOS didn't take off and the Internet is doing okay doesn't mean that we shouldn't consider how much better the Internet could be with a different service model. Certainly online video and audio services are still challenging to implement, low in quality, and not used extremely widely. Other interactive applications, such as games, also suffer from the unnecessarily large latencies imposed by the Internet - ask anyone who plays them. Even "bulk transfer" web-based applications use dedicated links or CDNs such as Akamai to reduce latencies, which has a significant effect on user engagement. So in the end, if we see *any* major qualitative change in the Internet in future years, it could well be due to lower latency enabling new applications.
Obviously QOS did not take off in the wide-area Internet, and the reasons this happened provide valid criticisms of the paper. The main reasons why QOS didn't take off were probably improvements in bandwidth (and its price) and the difficulty in charing for services that use QOS. Despite the fact that a QOS system could increase utility for everybody, that kind of market won't be set up if it's complicated to determine pricing, account for usage, explain charges to users, get users to accept variable per-month pricing, etc. These "mundane" details were probably as important as technical challenges and architectural rigidity in hindering adoption of QOS, because it would be easy (if hacky) to wrap around existing protocols and clients and just put applications in the best-effort class if they are not specifically marked for QOS. The improvements in bandwidth also helped. Finally, there was perhaps less demand for online video than expected because of the distribution costs (multicast could have helped here, but it also didn't really take off). Many computer networking researchers express some surprise that in the end YouTube, with its non-live, low-quality content, has become the main form of online video.
Nonetheless, the fact that QOS didn't take off and the Internet is doing okay doesn't mean that we shouldn't consider how much better the Internet could be with a different service model. Certainly online video and audio services are still challenging to implement, low in quality, and not used extremely widely. Other interactive applications, such as games, also suffer from the unnecessarily large latencies imposed by the Internet - ask anyone who plays them. Even "bulk transfer" web-based applications use dedicated links or CDNs such as Akamai to reduce latencies, which has a significant effect on user engagement. So in the end, if we see *any* major qualitative change in the Internet in future years, it could well be due to lower latency enabling new applications.
Sunday, September 14, 2008
Random Early Detection Gateways for Congestion Avoidance
This paper describes the Random Early Detection queue management strategy for routers, which provides feedback to TCP connections before congestion occurs to keep queue sizes small and avoid drops, thus improving both throughput and delay. RED works by marking packets for congestion with some probability when the queue size is between two thresholds, and then marking 100% of packets when it exceeds the max threshold. This "smooths out" the congestion notification, rather than going from allowing everything through to dropping everything. It also keeps queue sizes small, avoiding unnecessary delays. Finally, the use of marks reduces packet drops while still avoiding congestion (although RED can also be used with drops, and this would mean no changes to endpoints are necessary).
The paper is especially interesting for its detailed analysis of the problem and its comparison with similar proposed schemes. An especially interesting aspect is how RED is designed to avoid synchronization - many connections lowering their window together, than raising it together, etc, leading to oscillations. Synchronization is a rather scary aspect of end-to-end networking, and several of Sally Floyd's papers address it and have perhaps helped prevent it in many protocols in the global Internet. XCP is also designed to reduce oscillations, and this is how it gains in throughput over TCP even in some low-bandwidth-delay-product settings. In the XCP paper, it is mentioned that even RED can't manage oscillations perfectly at very high throughputs, but RED clearly works well in the experiments in the paper.
Finally, unlike some other QOS mechanisms, RED with drops is fairly easy to deploy incrementally and provides a benefit even to legacy protocol. Is it actually available today on any routers? RED with just marking, on the other hand, still has problems because the end-hosts would need to be able to understand the markings (in fact, un-upgraded hosts would have an advantage over upgraded ones).
The paper is especially interesting for its detailed analysis of the problem and its comparison with similar proposed schemes. An especially interesting aspect is how RED is designed to avoid synchronization - many connections lowering their window together, than raising it together, etc, leading to oscillations. Synchronization is a rather scary aspect of end-to-end networking, and several of Sally Floyd's papers address it and have perhaps helped prevent it in many protocols in the global Internet. XCP is also designed to reduce oscillations, and this is how it gains in throughput over TCP even in some low-bandwidth-delay-product settings. In the XCP paper, it is mentioned that even RED can't manage oscillations perfectly at very high throughputs, but RED clearly works well in the experiments in the paper.
Finally, unlike some other QOS mechanisms, RED with drops is fairly easy to deploy incrementally and provides a benefit even to legacy protocol. Is it actually available today on any routers? RED with just marking, on the other hand, still has problems because the end-hosts would need to be able to understand the markings (in fact, un-upgraded hosts would have an advantage over upgraded ones).
XCP - Congestion Control for High Bandwidth-Delay Product Networks
This paper presents a clean-slate router-assisted transport protocol that overcomes some deficiencies of TCP. In a nutshell, XCP asks end-hosts to state their congestion window and RTT estimate in packet headers, and uses this information to provide exact feedback about how they should change their window. This can be done without per-flow state. The main selling point for XCP is better performance on high bandwidth-delay product networks, where TCP is known to perform poorly and to become unstable (partly due to having to use additive increase of 1 packet, partly due to using losses as congestion signals). However, XCP also provides other advantages, such as fast convergence to efficiency and fairness, very low queue sizes, virtually nonexistent drops, separation of the efficiency and fairness controllers, and support for differentiated services. Simulations show that XCP performs as well as TCP or better in a variety of common scenarios (not just high delay-bandwidth product networks). All of this evaluation is necessary to motivate of XCP because it requires significant changes to the network: support in every router and end-host, and the architectural change of performing congestion control based on fields in the packet headers.
My main criticism of the paper is against keeping per-flow state in packet headers. The issue with this is that it's very easy to cheat at an endpoint, or to have a misconfigured router overwhelm a link. In a TCP-based network, congestion due to any reason causes packet drops, which are a signal to every host to reduce their rate. The drops can also be arranged to affect the misbehaving sender more than the others through something like RED. However, in an XCP network, there is plenty of capacity in the queues, so a misbehaving sender may get most of their packets through just fine, while still degrading performance for other users. The authors suggest policing at the edge of the network, but this is difficult to deploy, and there are few incentives for ISPs to do it. Even worse, an attacker may attack XCP *without* creating a large flow by simply requesting capacity as if they were to start a large flow. The network has to grant this capacity and reduce that of other flows, but there is no way to detect that the flow isn't actually going to use the bandwidth until some time later. This is like a SYN flood against routers. In contrast, TCP will utilize links pretty well even when many small flows are open. In summary, it seems that TCP should inherently be more robust to misbehaving users on a large network than XCP.
The work is nonetheless very interesting because of the magnitude of improvement that can be achieved, and it's one of those papers that makes us question the TCP-IP model. However, the main deployment challenge for these schemes is still to provide a compelling reason to switch from the existing IP infrastructure (which is rapidly improving in performance over time) while maintaining backwards compatibility with as many of the useful services built on TCP/IP as possible. In the end, higher performance on high bandwidth-delay product networks may be a good reason to switch away from TCP, but we're far from a point where this matters for most users in the Internet yet (Comcast, if you're deep-packet-inspecting this, it is meant at you!).
My main criticism of the paper is against keeping per-flow state in packet headers. The issue with this is that it's very easy to cheat at an endpoint, or to have a misconfigured router overwhelm a link. In a TCP-based network, congestion due to any reason causes packet drops, which are a signal to every host to reduce their rate. The drops can also be arranged to affect the misbehaving sender more than the others through something like RED. However, in an XCP network, there is plenty of capacity in the queues, so a misbehaving sender may get most of their packets through just fine, while still degrading performance for other users. The authors suggest policing at the edge of the network, but this is difficult to deploy, and there are few incentives for ISPs to do it. Even worse, an attacker may attack XCP *without* creating a large flow by simply requesting capacity as if they were to start a large flow. The network has to grant this capacity and reduce that of other flows, but there is no way to detect that the flow isn't actually going to use the bandwidth until some time later. This is like a SYN flood against routers. In contrast, TCP will utilize links pretty well even when many small flows are open. In summary, it seems that TCP should inherently be more robust to misbehaving users on a large network than XCP.
The work is nonetheless very interesting because of the magnitude of improvement that can be achieved, and it's one of those papers that makes us question the TCP-IP model. However, the main deployment challenge for these schemes is still to provide a compelling reason to switch from the existing IP infrastructure (which is rapidly improving in performance over time) while maintaining backwards compatibility with as many of the useful services built on TCP/IP as possible. In the end, higher performance on high bandwidth-delay product networks may be a good reason to switch away from TCP, but we're far from a point where this matters for most users in the Internet yet (Comcast, if you're deep-packet-inspecting this, it is meant at you!).
Wednesday, September 10, 2008
Core-Stateless Fair Queueing
This paper solves one of the main issues with fair queueing - the cost of maintaining per-flow state - by showing that it is sufficient to maintain state at the edge routers and have the larger core routers run a stateless algorithm. This would enable much wider deployment of fair queueing because the border routers that maintain per-flow state don't need to be nearly as fast as the central ones. The core-stateless fair queueing algorithm achieves this by approximating the behavior that would occur with fair sharing. First, edge routers compute a rate of arrival for each flow, and mark packets from it with this rate. Second, core routers use FIFO queueing and a probabilistic drop algorithm to drop packets based on the proportion of packets that would have been dropped from each flow under a fair sharing discipline. There are a number of mathematical heuristics used to approximate this, but in the end, the process appears to work reasonably well, showing sensible results in simulations.
This work is interesting both because it enables something that previously seemed intractable (fast fair sharing) and because the general idea, minimizing logic in the core of the network, is powerful and perhaps more widely applicable. The idea in CSFQ is somewhat reminiscent of the end-to-end principle, except that trusted network nodes (the edge routers) take the roles of endpoints for the purpose of congestion control, and the reason for removing logic from the center is performance, not just good design. However, some of the design advantages are there - for example, the edge routers can be reprogrammed to support a variety of forms of sharing based on different definitions of flow, without modifying the core routers. Similar marking schemes have been proposed for security in the Internet (identifying sources of malicions flows and preventing DOS attacks).
The paper is lacking a bit in the evaluation section, first because CSFQ sometimes does poorly and it would be nice to characterize exactly when this happens, and second because there is no implementation. I'm not sure how easy it would have been to use Click or NetFPGA at the time this was written, but having a demo of CSFQ at "line rates" would have been very convinging. The work also does not address one of the issues that has really plagued QOS research, namely deployment, though it makes design of QOS-supporting routers more feasible.
The math in the paper also includes a number of approximations, and there's a risk that these may interact poorly. Because the system is pretty complex, the only way to really be sure is to run more simulations, perhaps trying different estimaton algorithms, drop algorithms, etc.
This work is interesting both because it enables something that previously seemed intractable (fast fair sharing) and because the general idea, minimizing logic in the core of the network, is powerful and perhaps more widely applicable. The idea in CSFQ is somewhat reminiscent of the end-to-end principle, except that trusted network nodes (the edge routers) take the roles of endpoints for the purpose of congestion control, and the reason for removing logic from the center is performance, not just good design. However, some of the design advantages are there - for example, the edge routers can be reprogrammed to support a variety of forms of sharing based on different definitions of flow, without modifying the core routers. Similar marking schemes have been proposed for security in the Internet (identifying sources of malicions flows and preventing DOS attacks).
The paper is lacking a bit in the evaluation section, first because CSFQ sometimes does poorly and it would be nice to characterize exactly when this happens, and second because there is no implementation. I'm not sure how easy it would have been to use Click or NetFPGA at the time this was written, but having a demo of CSFQ at "line rates" would have been very convinging. The work also does not address one of the issues that has really plagued QOS research, namely deployment, though it makes design of QOS-supporting routers more feasible.
The math in the paper also includes a number of approximations, and there's a risk that these may interact poorly. Because the system is pretty complex, the only way to really be sure is to run more simulations, perhaps trying different estimaton algorithms, drop algorithms, etc.
Analysis and Simulation of a Fair Queueing Algorithm
This paper introduces the idea of fair queueing, which has played a major role in quality of service research on the Internet. The key insight in fair queueing is to simulate an "ideal" router that can send one bit at a time, which serves to isolate flows from each other. The scheme proposed approximates this by computing when packets would have finished being sent in this ideal router, and scheduling them in that order. This is shown mathematically to approximate ideal fair queueing within some rather complex-looking bounds. The paper also includes a number of simulations showing how fair queueing would behave in real networks. Finally, it explains how the fair queueing model can be extended to support weighted shares as well as a "boost" for new flows to reduce their delay.
Fair queueing played a big role in design of QOS systems because it provides a simple and feasible primitive for isolating flows and guaranteeing capacity. A lot of the QOS work beyond this was on how to mark flows, how to admit them, how to implement weighted fair sharing more efficiently, etc. Fair queueing was is also used in some papers on proposed DOS prevention attacks (e.g. putting connection requests in one service class, and moving those flows into another service class only when the receiving host signifies it wants to accept them them).
The main problem with actually running fair queueing per source-destination flow is maintaining per-flow state. I believe this still isn't possible at high speeds in today's routers. Therefore, Internet routers still use FIFO. However, QOS schemes that require only a few service classes (and hence fewer flows to maintain state for) have also been proposed.
Fair queueing played a big role in design of QOS systems because it provides a simple and feasible primitive for isolating flows and guaranteeing capacity. A lot of the QOS work beyond this was on how to mark flows, how to admit them, how to implement weighted fair sharing more efficiently, etc. Fair queueing was is also used in some papers on proposed DOS prevention attacks (e.g. putting connection requests in one service class, and moving those flows into another service class only when the receiving host signifies it wants to accept them them).
The main problem with actually running fair queueing per source-destination flow is maintaining per-flow state. I believe this still isn't possible at high speeds in today's routers. Therefore, Internet routers still use FIFO. However, QOS schemes that require only a few service classes (and hence fewer flows to maintain state for) have also been proposed.
Sunday, September 7, 2008
Congestion Avoidance and Control
This classic paper introduces the bulk of the congestion avoidance and control mechanisms in TCP. Prior to this paper, TCP used a window only for flow control and transmitted packets gratuitously as long as the receiver had buffer space, leading to "congestion collapse" of the Internet (!). Its behavior in the face of losses was also bad, placing even more load on the network. Van Jacobson and Karels' work introduces two main ideas. The slow start algorithm increases the maximum window size exponentially until a packet is dropped and we are close to the path's bandwidth-delay product. The congestion avoidance algorithm performs a multiplicative decrease of the window size when a packet is lost and uses additive increase otherwise, a scheme which is argued to lead to fairness and stability. Underlying both of these is an improved RTT estimator which also estimates the standard deviation of the RTT in order to set timeouts appropriately. Finally, when multiple packet drops occur, indicating very heavy network load, the work suggests using exponential backoff for retramsissions, a very sensible policy also used in media access control.
One interesting aspect of this paper is the use of control theory and queueing theory to justify the algorithms, as in the previous paper. Although theory might not perfectly reflect reality, it provides a guide to what approaches to considerl. In this paper, the theory is also backed up by serious experiments using a real implementation. Also, unlike the previous paper, this one uses mathematics designed to deal with complex time-varying systems, such as the linear system theory result that motivates exponential backup.
This work was meant first and foremost to solve a real problem - collapse of the Internet. As a result, the main thing missing is some fine-tuning to get not just non-catastrophic, but really good behavior out of the system. The authors mention fairness as one area which is lacking and suggest that some work will have to be done at the gateways, which many future papers try to do. In addition, the recovery mechanism described in this paper overcompensates, aiming mostly to keep the Internet stable, so a lot of future work involved fast recovery, selective acknowledgements, etc.
One surprising and somewhat scary element of the paper is how it justifies constants chosen using measurements from the Arpanet at that time, such as the 1-packet increase per RTT and 0.5-decrease on congestion seen in Appendix D. Although these choices seem to have worked okay, it would have been more comforting to show a set of values that works in general, not just in the 1988 Arpanet.
One interesting aspect of this paper is the use of control theory and queueing theory to justify the algorithms, as in the previous paper. Although theory might not perfectly reflect reality, it provides a guide to what approaches to considerl. In this paper, the theory is also backed up by serious experiments using a real implementation. Also, unlike the previous paper, this one uses mathematics designed to deal with complex time-varying systems, such as the linear system theory result that motivates exponential backup.
This work was meant first and foremost to solve a real problem - collapse of the Internet. As a result, the main thing missing is some fine-tuning to get not just non-catastrophic, but really good behavior out of the system. The authors mention fairness as one area which is lacking and suggest that some work will have to be done at the gateways, which many future papers try to do. In addition, the recovery mechanism described in this paper overcompensates, aiming mostly to keep the Internet stable, so a lot of future work involved fast recovery, selective acknowledgements, etc.
One surprising and somewhat scary element of the paper is how it justifies constants chosen using measurements from the Arpanet at that time, such as the 1-packet increase per RTT and 0.5-decrease on congestion seen in Appendix D. Although these choices seem to have worked okay, it would have been more comforting to show a set of values that works in general, not just in the 1988 Arpanet.
Analysis of the Increase and Decrease Algorithms for Congestion Avoidance in Computer Networks
This paper evaluates various options for linear control functions for preventing congestion in a computer network and demonstrates that an additive increase, multiplicative decrease (AIMD) algorithm is optimal. The paper is very interesting to read because it illustrates the concepts using very intuitive graphs - first a graph of the effects of load on throughput and latency in a network, and second a set of graphs showing how the allocations of two hosts change with respect to fairness and efficiency under various control functions. These graphs show intuitively how AIMD converges to both efficiency and fairness and how its step size decreases, leading hopefully to stability. However, in addition to the graphs, the authors mathematically derive the conditions required for correctness, and then for optimal convergence and stability. A key part of this is done using Jain's fairness metric [6], which is a simple score from 0 to 1 with nice properties, such as being scale-independent and being equal to k/n if k out of n hosts receive service. Finally, the paper talks about nonlinear control functions as well, but explains that they may be overly sensitive to system parameters because they will require multiple scaling factors to be set together in order to move along the correct directions for convergence.
This paper is a great example of how mathematics can support the design of network algorithms, by giving an extra source of confidence to heuristics that seem to work well in practice and telling us right away when some heuristics should be avoided. Of course, this paper is almost entirely mathematical, and a good system paper should include at least a simulation too, if not an evalulation of a real implementation. (The standard seems to have gone up towards real implementations over time.) Because this paper was written after AIMD schemes had been proposed, it seems to aim only to justify the existing schemes, provide a language for discussing congestion avoidance, and warn against some flawed control functions.
One flaw of this paper is that it only considers fairness and efficiency over a single link, and does not discuss what happens in a more complex network. In a full network, different links may be bottlenecks for different flows, and fairness is harder to define. A larger network also has more delay in receiving congestion feedback (not that delay isn't high anyway if we use dropped packets as the signal like TCP does), so it motivates looking into the stability of the scheme over longer periods of time as well.
This paper is a great example of how mathematics can support the design of network algorithms, by giving an extra source of confidence to heuristics that seem to work well in practice and telling us right away when some heuristics should be avoided. Of course, this paper is almost entirely mathematical, and a good system paper should include at least a simulation too, if not an evalulation of a real implementation. (The standard seems to have gone up towards real implementations over time.) Because this paper was written after AIMD schemes had been proposed, it seems to aim only to justify the existing schemes, provide a language for discussing congestion avoidance, and warn against some flawed control functions.
One flaw of this paper is that it only considers fairness and efficiency over a single link, and does not discuss what happens in a more complex network. In a full network, different links may be bottlenecks for different flows, and fairness is harder to define. A larger network also has more delay in receiving congestion feedback (not that delay isn't high anyway if we use dropped packets as the signal like TCP does), so it motivates looking into the stability of the scheme over longer periods of time as well.
Wednesday, September 3, 2008
Inferring AS Relationships in the Internet
This paper uses a list of advertised routes seen by one BGP router to infer some of the peering and transit relationships between Autonomous Systems. Since ISPs keep these confidential, this is a necessary tool for the research community in understanding the topology of interdomain routing relationships. This data can be used both to quantitatively study the Internet and to provide realistic topologies for simulations. The main property of BGP that makes this work possible is the fact that it advertises complete paths, not just next-hops.
The paper uses a number of clever heuristics to identify AS relationships. First, there is an introduction to BGP and a rather complex explanation of what kinds of paths may occur given the routing incentives in BGP. In summary, you will go up a customer-provider chain, maybe accross a single peer link, then down another chain, and you may also go through sibling relationships during this process. It never makes sense to go from a provider, to a consumer, and then up to a provider because the consumer would not allow this, and it doesn't make sense to have a peer edge anywhere but the "top" of the path because peering is only used to have one ISP's customers talk to one of its peers' customers. This path structure is combined with heuristics such as using sizes to find top-level AS'es and assuming that peers are of roughly similar size. Together, these yield first transit relationships and then peering and sibling relationships.
The inferred relationships are verified mostly using internal data from one major ISP, AT&T. While they match very well there after refining the algorithm, it is unfortunate that the author could not get confirmation from other ISP's as well, because there's a chance of overfitting the parameters for the algorithm to AT&T. Other AS'es might also be very different in nature from AT&T, by being smaller in size, having more or fewer siblings, etc. Has the technique been evaluated on more ISPs since this paper was published? Is it the best way of inferring AS relationships known so far?
Some interesting philosophical questions raised by this work may be:
The paper uses a number of clever heuristics to identify AS relationships. First, there is an introduction to BGP and a rather complex explanation of what kinds of paths may occur given the routing incentives in BGP. In summary, you will go up a customer-provider chain, maybe accross a single peer link, then down another chain, and you may also go through sibling relationships during this process. It never makes sense to go from a provider, to a consumer, and then up to a provider because the consumer would not allow this, and it doesn't make sense to have a peer edge anywhere but the "top" of the path because peering is only used to have one ISP's customers talk to one of its peers' customers. This path structure is combined with heuristics such as using sizes to find top-level AS'es and assuming that peers are of roughly similar size. Together, these yield first transit relationships and then peering and sibling relationships.
The inferred relationships are verified mostly using internal data from one major ISP, AT&T. While they match very well there after refining the algorithm, it is unfortunate that the author could not get confirmation from other ISP's as well, because there's a chance of overfitting the parameters for the algorithm to AT&T. Other AS'es might also be very different in nature from AT&T, by being smaller in size, having more or fewer siblings, etc. Has the technique been evaluated on more ISPs since this paper was published? Is it the best way of inferring AS relationships known so far?
Some interesting philosophical questions raised by this work may be:
- If the technique works well, are ISP's using it to infer peering relationships themselves? If so, could this be an argument to get them to open up this data?
- What would the benefit of fully open AS data be for the networking community, compared to this heuristic?
Interdomain Internet Routing
This note set is an interesting choice for a third reading because it covers a topic that has not been focused on very heavily in research, and is mostly in the realm of commercial providers - interdomain routing. Because of this, the protocols and algorithms used are shaped primarily by a commercial goal - enforcing policies to minimize monetary costs given the various business relationships between AS'es - rather than more "intellectually beautiful" goals such as performance, reliability, load-balancing, etc. The only feature BGP tries to provide is reachability while following policies. Beyond that that, its other design goal is scalability, which is handled by making the protocol relatively simple (dropping the more expensive features that could improve performance, load balancing, etc) and using long timeouts and damped propagation for route changes (decreasing reliability). The combination of policy-motivated goals and confidentiality of business relationships has likely contributed to lowered research interest in BGP compared to other protocols such as TCP, OSPF, or even IP, because a) the problem is difficult to fully understand, b) it is less "sexy" than working on mathematically clean issues like fairness and performance, and c) even if one develops an alternative system for interdomain routing, it's hard to evaluate the system for the purpose of scientific publication. This is a problem that all researchers have to deal with - how can we do socially relevant research if the parties involved are not interested in sharing information and the problem is confined to a small set of providers? Nonetheless, the note shows that interdomain routing is a serious concern with great potential for improvement, especially in reliability (speed of recovery after failures).
In terms of content, there are four main takeaways:
There are obviously many possible places for improvement in BGP, starting with reliability. It would be great if BGP focused more on path costs, for example. With all these things, it's important to ask not "is BGP providing optimal routes" but "how much better can we really do"? For example, on the throughput front, it's likely that we can't really increase Internet throughput through a better interdomain protocol - the backbone is often overprovisioned, and last-mile links or servers are the bottleneck. However, perhaps latency could be improved by a significant amount.
In terms of content, there are four main takeaways:
- AS'es come in different sizes, and have both client-provider and peering relationships. They advertise only routes that are necessary for serving their customers while minimizing monetary cost (both from paying a provider and from transfering packets through one's own network).
- BGP advertises complete paths annotated with attributes, to avoid loops and provide information for selecting between the paths based on commercial agreements and policies (e.g. MED).
- Paths are chosen according to a hierarchy of goals: local policy, shortness of path (in AS hops), MED (preferred entry point inside a customer), "closeness" of egress router (get the packet out of the ISP as fast as possible), and finally some tiebreak condition.
- Recovering from problems is slow: it normally takes at least several minutes, and sometimes 30 minutes or more.
There are obviously many possible places for improvement in BGP, starting with reliability. It would be great if BGP focused more on path costs, for example. With all these things, it's important to ask not "is BGP providing optimal routes" but "how much better can we really do"? For example, on the throughput front, it's likely that we can't really increase Internet throughput through a better interdomain protocol - the backbone is often overprovisioned, and last-mile links or servers are the bottleneck. However, perhaps latency could be improved by a significant amount.
Monday, September 1, 2008
Design Philosophy of the DARPA Internet Protocols
This paper explains how the goals of DARPA shaped the design of the Internet, providing both historical context and a set of examples for other protocol designers to consider. The most important thing to note is the prioritized goals of the Internet - providing a way to interconnect networks first and foremost, but then, in order of priority, providing fault-tolerance, flexibility in service types and network types, management, low cost, etc. These goals led to the policy of maintaining state at the endpoints, the best-effort, self-routing datagram model, the layering of TCP as one of several possible transport protocols over IP, the byte-stream nature of TCP, etc. It is also interesting to read about some of the design debates that occurred about protocols that we now take for granted. For example, worries about single-character packets from remote login applications flooding the network or about how to manage buffers when dealing with EOL's in TCP seem bizarre today, but they were real concerns at the time, and thankfully led to design decisions that still make sense today (such as allowing fragmentation and reassembly in IP, or removing EOL's from TCP).
The paper is also good at pointing out some of the shortcomings of the TCP/IP model, such as poor support for resource management and accountability. Resource management has been the topic of considerable research efforts in congestion control and QOS. Accountability is coming into the spotlight as denial-of-service attacks begin to be a serious threat, and work such as the Accountable Internet Protocol is beginning to try to address it. Interestingly, Clark suggests some of the techniques used today for these features, such as soft state and keeping track of flows.
One concern that the paper surprisingly does not mention is security, not just at the level of preventing denial-of-service, but also in routing mechanisms, TCP, DNS, etc. There have been numerous attacks discovered and fixed for these basic services. However, in the original Internet, the threat model was clearly just physical destruction of particular hosts and links, and perhaps this was still true in 1988 when Clark wrote this paper. Perhaps this means that DARPA thought the Internet would only be used by themselves, but today it is important to be able to "defend" the Internet in general for the benefit of the entire economy.
In summary, this is an interesting paper to read as an introduction to networking, because it provides historic context, shows the range of problems that had to be addressed, and encourages thinking about the design decisions in the basic protocols of the Internet that we mostly take for granted.
The paper is also good at pointing out some of the shortcomings of the TCP/IP model, such as poor support for resource management and accountability. Resource management has been the topic of considerable research efforts in congestion control and QOS. Accountability is coming into the spotlight as denial-of-service attacks begin to be a serious threat, and work such as the Accountable Internet Protocol is beginning to try to address it. Interestingly, Clark suggests some of the techniques used today for these features, such as soft state and keeping track of flows.
One concern that the paper surprisingly does not mention is security, not just at the level of preventing denial-of-service, but also in routing mechanisms, TCP, DNS, etc. There have been numerous attacks discovered and fixed for these basic services. However, in the original Internet, the threat model was clearly just physical destruction of particular hosts and links, and perhaps this was still true in 1988 when Clark wrote this paper. Perhaps this means that DARPA thought the Internet would only be used by themselves, but today it is important to be able to "defend" the Internet in general for the benefit of the entire economy.
In summary, this is an interesting paper to read as an introduction to networking, because it provides historic context, shows the range of problems that had to be addressed, and encourages thinking about the design decisions in the basic protocols of the Internet that we mostly take for granted.
End-to-end Arguments in System Design
This paper presents one of the most fundamental design principles in distributed systems, that of implementing functionality at the endpoints of the network rather than providing complex features in the intermediate hardware and software. The most powerful reason for this is that implementing functions in the network may be not only inefficient, but inadequate: Functions such as error recovery, duplicate data detection, acknowledgment transmission, and security can only be done end-to-end, because even if single links can provide them, there is no way to guarantee that the concatenation of multiple links has worked correctly without checking at the ends. If a function will be provided by the ends, then duplicating it in the network may do nothing more than add overhead. However, there are also other reasons to favor the end-to-end approach: Keeping the network's requirements simple provides the flexibility to run either new functions or improved implementations of existing functions at the ends, over the same hardware. In this light, the network should strive for a similar role to the RAM or disk in a computer, providing a minimal interface to some resource in order to let applications use it as they wish, rather than trying to supply a complete system which anticipates all possible higher-level functions.
Putting all functionality at the end-points is of course impossible, and the paper does say that functionality in the network may be useful for performance. The main example of this is error detection and correction: performing these checks at the link layer leads to much greater efficiency than sending a packet through multiple links and only then checking it. However, in general, this applies to any functionality where the problem size scales with the size of the network and the issue is not fully under the control of the application: For example, in the Internet, routing is a function performed by the network rather than the end-nodes.
One very important argument for end-to-end design is not explicitly stated in the paper - that by keeping the network functionality minimal, we can support multiple types of hardware devices and software on the same network. This is a social and economic argument - it means that vendors will be more likely to adopt the design, leading to an ecosystem of complementary and competing products, which improve the utility of the system for everyone. In fact, this phenomenon is called the network effect. While the Internet may not have been designed with creation of a commercial ecosystem as a explicit goal, the network effect let it grow rapidly and ultimately benefited even its original military users.
The main shortcoming of the end-to-end argument is that it does not explain exactly which set of functions should be provided by the network and whether there are limits to what can be done with, for example, the IP model. This is the source of many networking research topics, including multicast, active networks, mobility, denial-of-service prevention etc. This issue is still mostly unsolved today.
In summary, this is a good paper to begin a networking course with because it introduces both the wide range of concerns faced by a network (reliable delivery, acknowledgments, security, etc) and an important argument against the ever-present temptation to add more functionality into a system.
Putting all functionality at the end-points is of course impossible, and the paper does say that functionality in the network may be useful for performance. The main example of this is error detection and correction: performing these checks at the link layer leads to much greater efficiency than sending a packet through multiple links and only then checking it. However, in general, this applies to any functionality where the problem size scales with the size of the network and the issue is not fully under the control of the application: For example, in the Internet, routing is a function performed by the network rather than the end-nodes.
One very important argument for end-to-end design is not explicitly stated in the paper - that by keeping the network functionality minimal, we can support multiple types of hardware devices and software on the same network. This is a social and economic argument - it means that vendors will be more likely to adopt the design, leading to an ecosystem of complementary and competing products, which improve the utility of the system for everyone. In fact, this phenomenon is called the network effect. While the Internet may not have been designed with creation of a commercial ecosystem as a explicit goal, the network effect let it grow rapidly and ultimately benefited even its original military users.
The main shortcoming of the end-to-end argument is that it does not explain exactly which set of functions should be provided by the network and whether there are limits to what can be done with, for example, the IP model. This is the source of many networking research topics, including multicast, active networks, mobility, denial-of-service prevention etc. This issue is still mostly unsolved today.
In summary, this is a good paper to begin a networking course with because it introduces both the wide range of concerns faced by a network (reliable delivery, acknowledgments, security, etc) and an important argument against the ever-present temptation to add more functionality into a system.
Subscribe to:
Posts (Atom)