Thursday, October 16, 2008

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:
  1. 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.
  2. 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.

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:
  • 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 think the authors' point is indeed that "look, you can do something beyond what you thought was optimal with a broadcast medium, because it's broadcast". The paper does make that point, but at the same time, it's a little bogged down with details. Although the fact that you could do better was known from before (network coding and related work), it's nice that the paper has a real implementation.

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.

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:
  • 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?
Overall I would feel better if a paper like this had a strong conclusion and provided insight into why things behave the way they do in real life, rather than creating a scenario and seeing how they behave there.
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?

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?