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.

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:
  • 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.
The main themes are sharing contention information to increase fairness and synchronizing senders to prevent one stream from monopolizing the channel.

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:
  • 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).
These techniques are all explained intuitively and evaluated through analysis/simulation. It's useful to see them all in one document as a set of guidelines.

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.

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.

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.

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).