Monday, September 29, 2008

Solving problems in the early days of wireless

Is it weird that this paper from '94 feels like ancient CS history? Maybe it is just in my head, but reading any paper from PARC causes me to assume the paper is likely old and likely influential.

Summary:
This paper picked up where Phil Karn left off with MACA which was "just an idea" that Karn had introduced to handle the hidden terminal scenario more effectively than CSMA.

They proposed that collisions should be detected and avoided at the receivers, an idea pioneered by Karn with Multiple Access Collision Avoidance ("MACA is an acronym, not a spanish word"). This is in contrast to detecting collision from the sender's perspective, as was done with CSMA (Carrier Sense Multiple Access).

As Karn said, "Much simulation and experimental work needs to be done to answer many questions about how well it [MACA] will really work." Shenker et al took this to heart, and proposed MACA for wireless, or MACAW, which addressed some of the issues they observed in MACA, such as the use of Binary Exponential Backoff (BEB) which quickly led to unfairness in collision resolution.

They also address the problem for nodes [A] [B] [C], if C overhears an RTS from B to A, it can't tell if B is sending since "C cannot tell if the RTS-CTS exchange was a success and so does not know if B is indeed transmitting data." They chose to solve this by having the sender emit a Data Sending (DS) packet.

They also introduce, with nearly comic academic timing, the Request-for-Request-To-Send (RRTS) packet, which solves another fairness problem of two receivers in range of each other with senders out of range of each other and with one pair transmitting much smaller packets than the other. The RRTS solves an unfairness problem which feels a lot like the problem introduced by BEB.

Thoughts:
  • Multiplicative Increase Linear Decrease (MILD) of the backoff interval seems very similar to the concept of Additive Increase Multiplicative Decrease (AIMD) of cwnd in TCP congestion control.

Improving TCP for wireless

The authors of A Comparison of Mechanisms for Improving TCP Performance over Wireless Links first build a nice taxonomy to classify 12 schemes used to handle non-congestion related losses in TCP (see table 1). They then analyze each of the mechanism in turn.

This paper served as a nice forcing function to solidify some new and formerly vague networking concepts in my head such as SACK, Reno vs. NewReno, and split-connection protocols.

This paper was also an exercise in exploring the sort of trade-offs that were discussed in the classic end-to-end paper we read earlier this semester. In particular, their findings show one of the largest performance wins came from pushing knowledge from the ends (TCP) down two layers in the network stack into the link layer. I find this paper to represent an wonderful exposition into the final sentence of the end-to-end paper's abtract: "Low level mechanisms to support these functions are justified only as performance enhancements."

Monday, September 22, 2008

Parallelism in the router, i.e. switched backplanes

After reading today's paper on the gigabit switched router, I realized that I should have read it before reading today's other paper because this paper is more approachable and didn't assume an intimacy with internet routing technology. Figure 2 even uses a picture to explain the evolution of high performance routing! What is more, I now know what they were talking about in the other paper when they spoke of router scheduling and VOQ.

They are engineering a 16 port x 2.4Gbps per port = 38.4Gbps

Shared backplanes could (at the time of writing) support 20Gbps, not enough.

They present iSLIP, a simple effective router scheduling algorithm.

While iSLIP allows for high throughput (100%) of the router's backplane, it does not address delays which might be problematic for latency sensitive applications. Thus, they introduce the intuitive mechanisms of prioritization and speedup (get all packets to the output port as quickly as possible so they can be scheduled).

Random notes:
  • average internet packet is 250 bytes
Keep this paper on the list! It is very informative for those of us who don't know router architecture coming into the course (which I imagine might be a non-trivial portion of us).

Sunday, September 21, 2008

Blah blah blah, optics, blah blah blah, router.

I nominate Scaling Internet Routers Using Optics as the least fun paper to read so far this semester. They describe in excruciating detail two designs of multi-rack routers (1-hybrid electro-optical, 2-fully optical switch) which achieve 100Tb/s load balanced routing. Their router gives 100% throughput without a scheduler. They address four obstacles to the load balanced switching approach:
  1. Rapidly configuring switch fabric is slow or expensive.  Solution: replace switch fabric with fixed mesh of optical channels
  2. Packets can be mis-sequenced.  Solution: (Full Ordered Frames First) bound the length of queues at middle stage and introduce a re-sequencing buffer at a later stage
  3. Periodic traffic can cause bad throughput.  Solution: same as for problem #1 (replace crossbar switches by fixed optical mesh)
  4. Missing/failed linecards are not easily handled.  Solution: presented in sections 6.2 and 6.3, they present two solutions that allow the switch to be reconfigured to scatter traffic uniformly over all present linecards in the face of some linecard failures.
The are designing for ~3 years out (in 2003), I wonder if the future aligned with their predictions. 

The paper was a bit dense on technical/hardware details so I ended up being lost for most of it :-/

Thursday, September 18, 2008

Splitting up Spectrum and wireless transmitter fingerprinting

Solutions for sharing bandwidth
  • Assign a different channel to each AP
  • Load balance
  • Restrict range of each AP
  • Scheduling
Using Channels
  • Least congested channel search (LCCS)- APs talk to each other
  • LCCS is not enough because clients can end up seeing two APs that can't see each other
  • Solution: get feedback from clients, need to do set coloring (conflict free set coloring)
  • Partially overlapping channels are frequently not used (e.g. ch 1 and ch 2 overlap a LOT so we don't use both of them), this causes wasted space (fragmentation of a sort) in our spectrum
  • Solution: Model interference for partial overlap. I-factor == 0 if non overlapping channel, I-factor == 1 if same channel.
  • I-factor = overlap between transmit spectrum mask and receiver's band pass filter profile


New problem: how to identify who is using our AP more w/ something less spoofable than MAC address. We could build Access Control Lists out of this that would work much better than MAC address white-lists.

PAssive RAdiometric Device Identification Scheme (PARADIS)
  • Imperfections in the signal from each card, which are an artifact of manufacturing imperfections, are unique.
  • compute distance of "measured signal" from "ideal signal" along several axis: phase error, magnitude vector, frequency error, SYNC correlation, I/Q origin offset
  • Provides surprisingly accurate identification. They experimented on the Orbit Testbed which is 130 transmitters all of the same model# with sequential serial numbers, they saw 0.34% error rate, which is very impressive.
  • Audience Question: what can a well funded adversary do? Can he spoof the hardware signature? Answer: the adversary would have to be able to read your signature (like the defender/security system) 
Problems to design against
  • Temperature of NIC
  • Mobility (distance from AP?)
  • Nic aging
So, getting back to how we might use this idea for spectrum sharing, we might want to assign spectrum dynamically, and we would need to identify people more accurately to be fair with our allocation policies (i.e. leases).

Real Time Scheduling
  • Hidden Terminal aware Scheduling (HITS)
  • Hidden terminals can be detected by the higher level router which is sending packets that it can tell ahead of time are conflicting but the routers themselves can't see each other (by definition of hidden terminal problem). When the higher order router that has more information notices that two packets will conflict it can infer that there is a hidden terminal problem and it can delay the packets just right so that packets that would collide are not sent at exactly the same time.
  • Problem: we are not able to be accurate enough with our timings

The past future of the Internet

Today, we look at a paper written 13 year ago discussing the future of the Internet.

Observations:
  • When the network can't provide enough reliability or low enough variance, application developers will solve the problem themselves (by using bigger application level buffers, etc.)
... Er, this is an incomplete post... More to come (I blame prelims!).

Sunday, September 14, 2008

A clean slate approach to Congestion Control

We've discussed a lot of papers about congestion control! The most recent one (XCP) represents a refreshing clean slate approach to congestion control. You have to respect the theoretical foundation (control theory) used to justify the design principles.

Highlights
  • >1 bit feedback. Was the next logical step to take now that chip performance can handle it.
  • Separation of fairness and throughput policies for independent performance tuning and analysis