
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















This paper summarizes the results of the BARWAN project, which focused on enabling truly useful mobile net- working across an extremely wide variety of real-world net- works and mobile devices. We present the overall architecture, summarize key results, and discuss four broad lessons learned along the way. The architecture enables seamless roaming in a single logical overlay network com- posed of many heterogeneous (mostly wireless) physical net- works, and provides significantly better TCP performance for these networks. It also provides complex scalable and highly available services to enable powerful capabilities across a very wide range of mobile devices, and mechanisms for automated discovery and configuration of localized ser- vices. Four broad themes arose from the project: 1) the power of dynamic adaptation as a generic solution to hetero- geneity, 2) the importance of cross-layer information, such as the exploitation of TCP semantics in the link layer, 3) the use of agents in the infrastructure to enable new abilities and to hide new problems from legacy servers and protocol stacks, and 4) the importance of soft state for such agents for simplicity, ease of fault recovery, and scalability.
The BARWAN project was a three-year DARPA-funded project at the University of California at Berkeley that focused on enabling truly useful mobile networking across an extremely wide variety of real-world networks and mobile devices. This paper presents the overall architecture, summarizes key results, and discusses broad lessons learned along the way. We attacked nearly all aspects of the problem, including link-layer and transport protocols, mobile routing, power management, application support, multimedia stream- ing, and local and global network services. For quite some time, our group has been driven by a sim- ple but compelling mantra:
Access is the Killer App
Originally, in 1994, it was an argument against the prevailing trend towards mobile devices that were essentially islands of computation—mobile computers looking for a “killer app” similar to a personal organizer. But the phrase is really an argument that what matters is not so much what the device can do, but rather the data and computing power to which it
1: Srini Seshan is now with the IBM T. J. Watson Research Laboratory.
has access. It is possible to harness terabytes of data and the power of supercomputers even while mobile—as long as you access them over a ubiquitous network. The resulting architecture reveals how to build this net- work out of an overlaid collection of networks, how to seam- lessly roam around it, how to make it perform well, and how to leverage computing in the infrastructure to enable new abilities and services for even the simplest mobile devices. We believe in ubiquitous localized networking : the net- work as a whole has broad coverage, but connection quality and services vary greatly by location. The connection may vary from wired or infrared in-room networks with great per- formance, to metropolitan cellular networks, to satellite net- works with high latencies but tremendous coverage. Services vary greatly as well: from home/office printer access, to local driving directions, to global services such as search engines and web access. This is an alternative to the idea of ubiquitous computing [Wei93], in which we care far more about nearby connectivity than nearby computing. We also believe in a powerful infrastructure that is highly available, cost effective, and sufficiently scalable to support millions of users. In general, computation, storage and com- plexity should be moved from the mobile devices into the infrastructure, thus enabling powerful new services, better overall cost performance, and small, light-weight, low- power, inexpensive mobile devices with tremendous func- tionality. We have built such an infrastructure and will show how it provides new abilities for a very simple mobile client, the PalmPilot PDA. We have implemented and evaluated the architecture over a three-year period; many of the specific results have already been evaluated in the literature. We will often refer to such papers for more detail and for complete coverage of the related work. This paper evaluates the architecture as a whole and summarizes the lessons we have learned. The architecture is probably best introduced in terms of some of the challenging problems for which it offers solu- tions:
The there two basic views of the architecture: the physi- cal view of a client roaming through an overlaid collection of networks, shown in Figure 1, and the network-layer view, shown in Table 1. A key concept is overlay networking , which is the unifi- cation of several heterogeneous networks, of varying cover- age and performance, into a single logical network that provides the best of all the networks: coverage that is the union of the networks’ coverage with performance corre-
Client
Cell-based Wireless
Satellite Scalable, Highly Available Proxy
Server
Internet
Figure 1: Elements of the BARWAN Architecture. In addition to heterogeneous clients, networks and servers, we provide aproxy to assist with mobility and dynamic adaptation. The three black circles indicate points visible from the client;horizontal handoffs occur between two cells of the same network, whilevertical handoffs occur between different networks, e.g., radio-frequency wireless to satellite. The architecture also enables high- performance reliable data transport for these networks.
sponding to the best network in range. In addition to tradi- tion cell-based roaming ( horizontal roaming), we provide transparent roaming across the constituent networks ( verti- cal roaming), even when this requires changing the IP address or switching to a different network interface. Given an overlay network, the next immediate challenge is the poor performance delivered by standard TCP over the wireless and asymmetric networks that enable mobility. TCP was designed for symmetrical wired networks and assumes that all losses are due to congestion, which is simply false for wireless networks. We surmount these issues through a com- bination of TCP enhancements and corrective agents in the infrastructure. Another key concept and primary contribution is the proxy architecture , which uses a powerful agent in the infra- structure to adapt content dynamically to support heteroge- neous networks and mobile devices that (nearly all) servers are not expecting and handle poorly. The proxy enables use- ful access even from very simple devices. Finally, we define an architecture for adaptive network services. IP connectivity is not sufficient: mobile users need to discover, configure and use local services, such as DNS servers, proxies, and local printers. We also enable wireless control of the local environment, which turns the mobile device into a generic remote control; for example, in-room services provide control over lights and A/V equipment, without prior configuration of the mobile device. This pro- vides a far richer environment for mobile users, and when combined with the proxy greatly simplifies the creation and use of new services. After looking at broad themes and our network testbed, we examine each of the four major areas in Sections 2 through 5. We close by revisiting our themes and summariz- ing our conclusions in Sections 6 and 7.
Table 1: Layered view of the Architecture
Network Services Section 5
Automatic discovery and con- figuration of localized ser- vices
Presentation Section 4
Dynamic Adaptation of con- tent for heterogeneous net- works and devices (theproxy architecture)
Transport Section 3
Reliable data transport for wireless and asymmetric net- works Routing Section 2
Roaming in heterogeneous networks (Overlay IP)
Link Layer Sections 3.1, 3.
Transport-aware link-level retransmission (Snoop proto- col); management of shared wireless links
have three overlay levels. The lowest level is comprised of a collection of disjoint room-size high-bandwidth networks, which provide the highest bandwidth per-unit-area: one Mb/ s or more per room. The second level consists of building- size high-bandwidth networks that provide approximately the same bandwidth as the room-size networks, but cover a larger area, for example, a single floor of a building. The final level is a wide-area data network, which provides a much lower bandwidth connection, typically tens of kilobits, over a much wider geographic area. We can also support “mobile” wired networks, such as dynamically connecting to a local ethernet subnet via DHCP. We must depend on existing networking technologies and wireless data providers to have a full range of wireless networks at our disposal. Although we would ideally modify some components of these systems (e.g. basestation soft- ware), this is not possible in some cases. For example, while we can modify and experiment with the basestations for the room-size and building-size overlays, the wide-area data overlay is owned and administered by a third party. As a result, we cannot directly control the overlay’s infrastructure. This is an important consideration because it limits the mod- ifications we can make (in these cases) to support vertical handoff.
The primary objective of a vertical handoff system is to minimize the handoff latency for an individual user while keeping bandwidth and power overheads as low as possible. There are some important differences between the horizontal handoff problem in homogeneous networks and the vertical handoff problem for heterogeneous networks:
Wide-area Overlay Networks
In-Building
Campus-Area Packet Relay
Metropolitan-Area
Regional-Area
Figure 3: Wireless Overlay Network Structure
connected to the upper overlay during handoff.
Handoffs are built on top of the mobile routing capabili- ties of Mobile IP [IDM91]. The infrastructure we use, shown in Figure 4, is similar to the one described in [Ses95] and the Mobile IP specification [Per96]. Mobile Hosts (MHs) connect to a wired infrastructure via Basestations (BSs) which act as Foreign Agents. A Home Agen t (HA) performs the same
functions as in Mobile IP, encapsulating packets from the source and forwarding them to the basestations. One important difference is that the care-of address is a multicast rather than unicast address. A small group of BSs are selected by the mobile to listen to this multicast address for packets encapsulated and sent by the HA. One of the BSs is selected by the MH to be a forwarding BS; it decapsulates the packets sent by the HA and forwards those packets to the MH. The other BSs are buffering BSs; they hold a small number of packets from the HA in a circular buffer. These buffers are soft state: they improve performance and can be lost at any time without affecting correctness. Basestations send out periodic beacons similar to Mobile IP foreign-agent advertisements. The MH listens to these packets and determines which BS should forward packets for the mobile, which BSs should buffer packets in anticipation of a handoff, and which BSs should not belong to the multi- cast group at all. When the mobile initiates a handoff, as shown in Figure 5, it instructs the old BS to move from for- warding to buffering mode, 2 and the new BS to move from buffering to forwarding mode. The new BS forwards the buffered packets that the mobile has not yet received. 3 An upward vertical handoff is initiated when several bea- cons from the current overlay network are not received. The MH decides that the current network is unreachable and hands over to the next higher network. The arrival of bea- cons on a lower overlay initiates a downward vertical hand- off. The MH determines that the mobile is now within range and switches to the lower overlay. The handoff starts when the lower overlay becomes reachable or unreachable, and ends when the first data packet forwarded from the new overlay network arrives at the MH. We depend only on the presence or absence of packets to make vertical handoff decisions. For horizontal handoffs, the MH uses a channel-specific metric to compare different BSs and connects to the best one
2: The arrows represent the logical endpoints of a message, not the path that the message takes from source to destination. Messages go through the new basestation if the old one is unreachable. 3: For networks in which the basestation infrastructure is not under our control, the Home Agent acts as the BS to the Mobile Host; the FA function- ality with respect to that wireless network is incorporated at the HA machine instead of being incorporated at the gateway between the wired and wireless network.
Source Home Agent
Multicast Care-of Address
Forwarding BS Buffering BS Data
Mobile Host
Beacons Beacons
Figure 4: Elements of the Handoff System
according to that metric. This allows the horizontal handoff system to operate seamlessly underneath the vertical handoff system. For an overlay network that handles mobility directly, for example CDPD [GW96] or Metricom, our system does nothing and lets the network make its own horizontal handoff decisions.
The primary metric we use to evaluate handoff perfor- mance is the handoff latency , as pictured in Figure 5. More detailed descriptions of this work [SK98] evaluate not only more optimizations, but also power management and band- width overhead. They also provide breakdowns of the per- formance numbers and analytical models for each method. Here we examine the basic mechanism and the two most useful optimizations: Fast Beaconing (FB): The MH can selectively instruct a subset of the BSs that are listening to its multicast group to transmit beacon packets at a higher frequency, thus reducing the time to discover connectivity status. However, this reduces the effective bandwidth on the wireless interface and may cause media access problems on the wireless subnet. Header Double-casting (HD): Two BSs are placed in forwarding mode simultaneously; the current BS and a BS of the next higher overlay. The secondary BS sends only the headers of the packets (since the data is received on the primary interface); this provides up-to- date status for the secondary network. When more than n consecutive packets are received on a new interface with none received on the old interface, the MH
Old BS MH New BS
Figure 5: Breakdown of a Handoff
= Data Packet = Beacon Packet
(Strong) (Weak)
(Weak) (Strong)
= Handoff Message
cumulative acknowledgments (acks) it receives to determine which packets have reached the receiver, and provides reli- ability by retransmitting lost packets. TCP uses these regular acknowledgments to pace out new data at a consistent rate, a procedure called ack clocking [Jac88].
TCP is tuned to perform well in traditional networks where packet losses occur almost entirely due to congestion. However, networks with wireless or other lossy links also suffer from significant losses due to bit errors and handoffs. TCP responds to all losses by invoking congestion control and avoidance algorithms, resulting in degraded end-to-end performance in wireless systems. In this section, we present the design of a transport-aware link protocol, the Berkeley Snoop protocol, to overcome these problems and shield fixed senders on the Internet from the vagaries of the wire- less link. We also compare our protocol to alternatives to understand the precise reasons for improved performance.
3.1.1 The Snoop Protocol
The snoop protocol is founded on three of our design themes: agent-based adaptation, cross-protocol interactions, in which the link agent is aware of transport semantics and messaging, and the use of soft state. Due to the agent approach, we require no modifications to TCP implementa- tions on fixed hosts in the Internet, and we completely pre- serve the end-to-end semantics of TCP. The network topology and agent location are shown in Figure 7. For transfer of data from a fixed host to a mobile host, we deploy a snoop agent at the basestation. The agent caches unacknowledged TCP segments and performs local retrans- missions of lost segments, which it detects based on dupli- cate TCP acks from the mobile host and time-outs of locally maintained timers. Furthermore, it suppresses duplicate acknowledgments of wireless losses, so they are not seen by the TCP sender, thus shielding the sender from these non- congestion-related losses. In particular, the agent completely hides transient situations of very low communication quality and even temporary disconnection.
Wired network
Basestation
Figure 7: Network topology of the single-hop cellular wireless network based on the WaveLAN. The snoop agent runs at the basestations in the network.
Fixed Host
Mobile Host
(Snoop agent)
For data transfer from a mobile host to a fixed host, we exploit additional local knowledge because we control both the basestation and mobile sender. The snoop agent detects missing packets at the basestation by snooping on packets arriving from the mobile host and identifying holes in the transmission stream. By using heuristics based on local queue-length information, the agent classifies wireless losses as being due to congestion or corruption, and adds corrup- tion-induced losses to a list of holes. When it eventually sees duplicate acknowledgments for these holes arriving from the fixed receiver, signifying a loss of this packet, it sets a bit in its TCP header and forwards it on to the mobile sender. The sender uses this Explicit Loss Notification (ELN) bit to iden- tify that the loss was unrelated to congestion, and retransmits the packet without taking any congestion-control actions.
3.1.2 Snoop Evaluation A variety of protocols have been proposed in the litera- ture to overcome the effects of wireless bit-errors on TCP performance. We classify these schemes into three broad cat- egories: 1) end-to-end protocols, where loss recovery is per- formed by the sender; 2) link-layer protocols, that provide local reliability; and 3) split-connection protocols, that break the end-to-end connection into two parts at the basestation in an attempt to shield the sender from the wireless link. Figure 8 compares the solutions for performance and indicates which solutions work with legacy TCP stacks and which provide correct end-to-end semantics. The full papers on this topic examine more protocols and a wider array of bit-error rates, and describe the Snoop protocol in detail [BSK95] [BPSK97]. We focus on data transfer from a fixed host to a mobile host. Each test consists of an 8MB transfer over a combined network with a wired section and a single-hop wireless sec- tion using 915-MHz WaveLan [ATT94]. The LAN numbers use a single 10 Mb/s ethernet hop and have a bandwidth- delay product of about 1.9KB, while the WAN numbers use 16 Internet hops over the wide area, with bandwidth-delay product of about 23KB. We ensured that there were no losses due to congestion to isolate corruption from congestion.
Figure 8: TCP Performance over Wireless Links
LAN WAN Legacy TCP
Correct Semantics
Snoop
Link-Level Retransmission
Split+SACK
Split Connection
Vanilla + SACK
Vanilla TCP
0 0.2 0.4 0.6 0.8 1 1.2 1. Bandwidth (Mb/s)
Wireless losses were emulated by IP checksum corruption according to an exponential distribution of bit errors with an
average bit-error rate of 1/64KB (about 1.9 x 10-6^ ), which corresponds to a packet loss rate of 2.3% with 1400-byte packets. Figure 9 graphs the performance against a range of bit-error rates. End-to-end Protocols attempt to make the TCP sender handle losses through the use of two techniques. First, they use some form of selective acknowledgments (SACKs) to allow the sender to recover from multiple packet losses in a window without resorting to a coarse time-out. Second, they attempt to have the sender distinguish between congestion and other forms of losses using an Explicit Loss Notification (ELN) mechanism. The simplest end-to-end approach is vanilla TCP (Reno), which performs poorly as expected, with only 50% of the possible throughput on the LAN and 25% on the WAN. The basic problem is that the window size remains small all of the time, and performance only gets worse with a larger bandwidth-delay product (as in the WAN case). Adding selective acknowledges (SACKs) helps to some extent, but only when error rates are low or medium (see Figure 9). In the LAN case, we used a simple SACK scheme based on a subset of the SMART proposal [KM97]. This was the best of the end-to-end protocols that we tried, but it is still slower than the Snoop protocol. In the WAN case, we based our SACK implementation [BSK95] on RFC 2018, which was 65% of optimal. Even though SACKs allow the sender to often recover from multiple losses without timing out, the sender’s congestion window decreases every time there is a packet dropped on the wireless link, causing it to remain small, which is precisely the situation that the Snoop protocol avoids. Split-connection approaches completely hide the wire- less link from the sender by terminating the TCP connection at the basestation. The second connection can use techniques
0
1
16 32 64 128 256
Figure 9: Performance of six protocols (LAN case) across a range of bit-error rates, ranging from 1 error every 16 KB to 1 every 256 KB shown on a log-scale.
Vanilla TCP
Vanilla + IEFT SACK
Snoop+SACK Snoop
Split+SACK Vanilla + SMART SACK
Bit-error rate (1 error every x Kilobytes, average)
Throughput (Mb/s)
such as negative or selective acknowledgments, rather than just standard TCP, to perform well over the wireless link. This class does not preserve the end-to-end semantics of TCP. We present two examples: when the wireless connection uses vanilla TCP and when it uses the SMART-based SACK scheme described above. With vanilla TCP, the performance improvement is not as good as the other schemes, especially in the WAN case. The congestion window of the wired side remains large and stable compared to an end-to-end TCP connection where the congestion window size fluctuates rap- idly. However, the wired connection doesn’t make rapid progress because it periodically stalls due to the advertised window from the basestation being zero. When SACKs are used over the wireless connection, performance is improved. However, even this enhancement performs about 10% worse than Snoop, in addition to not providing correct end-to-end semantics and causing slower, more complicated handoffs. Link-layer solutions attempt to hide link-related losses from the TCP sender by using local retransmissions (ARQ) and perhaps forward error correction [Lee94] over the wire- less link. Since the end-to-end TCP connection passes through the lossy link, the TCP sender may not be fully shielded from wireless losses. This can happen either because of adverse timer interactions between the two layers [Cox95], or more likely because of TCP’s duplicate acknowl- edgments causing fast retransmissions at the sender even for segments that are locally retransmitted. Our base link-layer algorithm uses cumulative acknowl- edgments to determine losses and retransmits them locally from the basestation to the mobile host; it leverages off TCP acknowledgments instead of generating its own. It is equiva- lent to the Snoop protocol except that it does not suppress duplicate acknowledgments. Thus, although this protocol successfully prevents sender time-outs, it does not prevent the sender from reducing its window in response to wireless losses. In the LAN experiments, the throughput difference is about 10%, but rises to 30% in the WAN case due to the higher bandwidth-delay product. The rapid fluctuations in sender window size leads to an average window that is smaller than the WAN bandwidth-delay product, which is the reason for the significant performance degradation. This situation is avoided by the TCP-aware Snoop protocol that suppresses duplicate acknowledgments. Finally, the best pro- tocol, the Snoop protocol enhanced with SACK information, improves on the performance of the basic Snoop protocol, especially in burst error situations (not shown, see [BPSK97]). To summarize, the Snoop protocol (enhanced with SACK) provides the best performance among the protocols we studied, maintains end-to-end semantics and involves no changes to TCP stacks on the fixed hosts. Its relative perfor- mance improves significantly as the bit-error rate increases (up to 20 times improvement for the error rates we investi- gated), and also improves as the bandwidth-delay product
congestion window based on the number of acks and not on how many bytes are acknowledged with each ack, window growth could now be much slower. An end-to-end solution, called sender adaptation , breaks up a potentially large burst into several smaller bursts and regulates these smaller bursts according to the effective data transfer rate of the connec- tion. Our agent-based solution, called ack reconstruction , hides the infrequent ack stream from the TCP sender by deploying an agent at the near side of the reverse channel. Once the acks have traversed the constrained network, the ack reconstructor regenerates the original smooth ack stream by inserting new acks to fill in gaps and by spacing apart acks that have been compacted. The end result is that an unmodified TCP sender can continue to rely on standard ack clocking to sustain the data transfer at a consistent rate. The final problem arises specifically in an asymmetric- bandwidth situation where the acks of the forward-direction data transfer must share the constrained reverse channel with a reverse-direction data transfer (simultaneous bidirectional data transfers). With FIFO queuing, the large data packets of the reverse transfer could block the transmission of acks for long periods of time, thereby starving the sender of the for- ward transfer. Our agent-based solution to this problem, called acks-first scheduling , involves giving acks a strictly higher priority than data packets. The rationale is that the small acks packets when sent infrequently would have little impact on the performance of the reverse data transfer, but their timely transmission is critical to sustaining good perfor- mance for the forward data transfer. Since the resolution of this problem requires control over the scheduling of data and acks at the reverse bottleneck link, it is not possible to solve this problem without an agent (i.e., with only end-to-end TCP enhancements). We have performed a detailed evaluation of these solu- tion techniques both via ns simulation [LBL96] as well as in our network testbed. These results are discussed in detail in [BPK97] and [BPK98]. We present here sample results for both
0
10
20
30
40
50
Number of wireless hops
Throughput (Kb/s)
R ACC
AF
R ACC
R ACC
AF AF
R: TCP Reno AF: Ack filtering ACC: Ack Cong Control
Figure 11: TCP throughputs from simulations of Reno, ACC and AF, as a function of the number of wireless hops. Simulation parameters are derived from the Metricom packet-radio network.
the asymmetric-bandwidth and asymmetric-latency configu- rations. Figure 10 shows the performance of various schemes when there is two-way traffic in an asymmetric net- work. We make two important observations: 1) acks-first scheduling helps the forward-direction transfer significantly by avoiding the long delays on the reverse channel, and 2) ack congestion control (ACC) reduces the impact of forward acks on reverse data transfers. Figure 11 shows the performance of various schemes obtained via a simulation of the Metricom packet-radio net- work. The important observation is that ack filtering (AF) and to a lesser extent ack congestion control (ACC) result in improved performance. The reduced frequency of acks decreases MAC contention, reducing latency variation and eliminating overhead for switching directions. The perfor- mance improvement is between 20% and 35%. To summarize, the set of end-to-end and agent-based techniques we have developed are successful in overcoming the adverse effects of asymmetry in a variety of asymmetric situations. As with Snoop, our solutions combine agent-based approaches with cross-layer information and extensive use of soft state. In the best, version combine two agents to pro- vide good performance with legacy TCP endpoints: the agent on the far side of the asymmetric link provides ack compression and better ack scheduling relative to bidirec- tional transfers, while the near-side agent reconstructs a smooth ack stream to enable smooth ack clocking in unmod- ified senders. Both of these agents exploit cross-layer infor- mation and assumptions (such as importance of a smooth ack stream) as well as soft state for simple implementations that improve performance while maintaining correctness even in the presence of faults.
Wireless local-area networks are different from wired networks in at least two important ways: 1) there is no mech- anism for collision detection, a key technique used by most MAC protocols, and 2) the quality of connectivity can vary significantly for each receiver over time and space. These lead to both unfairness and poor utilization for wireless LANs. To solve the fairness problem, we improve the packet scheduling at the link layer by taking into account the link quality of individual hosts and the characteristics of the applications. The second goal is to provide a controlled bandwidth allocation for mobile hosts and their applications, thus improving the scalability of the network, and reducing the bandwidth variation seen by TCP. Our link-scheduling solution combines class-based queu- ing (CBQ) [FJ95] with the channel-state dependent packet scheduling (CSDP) mechanism [BBKT96]. Although the link- sharing hierarchy of CBQ is suitable for wired networks, it does not account for differences in network quality on a wireless LAN. We correct this by introducing a new class in the link-sharing hierarchy that maps to individual mobile
hosts or to a group of hosts with similar network quality. This allows us to use the CSDP mechanism to improve the utilization and fairness of the wireless link. The CSDP work originally proposed monitoring for wireless errors and scheduling around the error bursts. Due to the difficulty of detecting wireless errors on a short time scale, our approach differs somewhat by using link-quality estimates that are averaged over a longer period of time. Our earlier work on measuring and modeling wireless errors [NKNS96] revealed that estimates over a few seconds are ade- quate for bandwidth management. The remaining issue is where to monitor the wireless channel. Ideally, the receiver should detect wireless errors and inform the sender. The overhead of relaying the channel information to the sender can be reduced through piggybacking on top of data packets. The sender can also make channel estimates, albeit with less accuracy. Although this work is still in progress, we have per- formed an evaluation of the channel-dependent class-based queuing (CD-CBQ) via ns simulation [LBL96]. For hosts with the same long-term error rates, early results show that the fairness improves with the number of hosts sharing a chan- nel, up to 70% for about 20 hosts. The overall utilization is also increased. When the hosts have different long-term error rates, CD-CBQ can further improve the utilization at the cost of fairness.
In summary, our general approach to improving data transport performance in mobile, wireless networks has been to identify the specific characteristics of such networks, such as wireless errors, asymmetry, and unfairness, that impact TCP performance, and then to explore both TCP enhance- ments and agent-based mechanisms that alleviate them. The agent-based approaches are often as good or better than end-to-end TCP modifications, and provide the critical additional advantage of immediate deployment, thus allow- ing us to integrate wireless technologies cleanly into the rest of the global Internet. The keys to making agents work well are to exploit cross-layer information, such as the ack semantics of TCP, and to build them based on soft state for simplicity, scalability (since there is no consistency issue), and availability (since they are trivially restartable). Finally, agent-based approaches are the only solution when we need to exploit cross-layer information from multiple connec- tions, as illustrated by ack-first scheduling for asymmetric links and the CD-CBQ protocol for managing shared wire- less media.
For more info : Wireless TCP [BPSK97] , Snoop and handoffs [BSK95]; handling asymmetry [BPK98].
The key to applications in a mobile, wireless, very heter- ogeneous environment is the proxy architecture, which uses a proxy as a smart intermediary between traditional servers and heterogeneous mobile clients. The fundamental driver for this architecture is the inability of (nearly all) servers to handle the incredible variation in software, hardware and networking capabilities of mobile clients. Through various forms of data transformation, the proxy can dynamically translate between the needs of clients and the formats and abilities of the servers. The basic architecture is shown in Figure 12. In addition to the wide variation in networks covered in previous sections, there are also significant variations in software and hardware. Software variations include the data formats that a client can handle, such as JPEG, PostScript and video formats, and also protocol issues such as HTTP/ HTML extensions and multicast support. Hardware varia- tions are summarized in Table 2. The key idea in on-demand transformation is distillation, which is highly lossy, real-time, datatype-specific compres- sion that preserves most of the semantic content of a docu-
Image PostScript Audio Video
Transcoders
Client App
Server
Figure 12: Basic proxy architecture. The proxy uses the transcoders to optimize the quality of service for the client in real time. SPAND monitors end-to-end bandwidth and connectivity to the clients (and servers) and notifies the proxy of any changes, which may result in changes in transcoding to adjust the quality of service.
low bandwidth
medium bandwidth
high bandwidth
App Support
Client App App Support
Table 2: Physical Variation Among Clients
Platform SPECint92/ Memory
Screen Size Bits/pixel
High-end PC 198/64M 1280x1024 24, color Midrange PC 157/8M 1024x768 16, color Midrange laptop 51/8M 640x480 8, color Palm Pilot low/1M 160x160 2, gray
In both cases, the original servers are unaware of the transformations or of the limited capabilities of the clients or networks. Thus we can combine very heterogeneous clients and networks with sophisticated legacy servers that target stationary desktop PCs and workstations.
In order to use transcoding to adapt to network variation, the proxy must have an estimate of the current network con-
3
2
48
492
Latency (sec)
Distill
Transmit Cartoon
Soda Hall
Portrait
Figure 14: End-to-end latency for images with and without distillation. Each group of bars represents one image with 5 levels of distillation; the top bar represents no proxy at all. The y-axis number is the distilled size in kilobytes (so the top bar gives the original size). Note that two of the undistilled images are off the scale; the Soda Hall image is off by an order of magnitude.
(KB)
(KB)
(KB)
446
59
Frames/Sec
176x144, 28.8K
352x288, 28.8K
176x144, ISDN
352x144, ISDN Figure 15: The four-way tradeoff among bandwidth, frame resolution, quality (measured in peak signal/noise ratio), and frames per second. Dynamic adaptation enables fine-grain control of these tradeoffs, and can provide consistent quality or frame rates even as network conditions vary over time.
Peak Signal/Noise Ratio (dB)
ditions along the path from the proxy to the client. We have developed a network measurement system called SPAND [SSK97] , Shared Passive Network Performance Discover y, that allows a measurement host to collect the actual applica- tion-to-application network performance (e.g. available bandwidth and latency) between proxies and clients. The proxy consults this database of performance information to determine the appropriate amount of distillation to use for a particular client. We have also added hooks for clients or third parties, such as the overlay networking software, to notify the proxy of changing network conditions. All new transformations compute the degree of distillation based on these new capabilities.
Because the proxy is a permanent part of the network infrastructure, it must meet all of the utility requirements of the rest of the network, which include very high availability, ease of management, and scalability to support millions of users. In addition, these capabilities are difficult to obtain, so we would like to isolate the utility requirements from the functionality of the proxy; this allows authors of proxy- based services to focus on the content of their service rather than on the challenges of availability and scalability. Towards this end, we break the proxy into three distinct layers, as shown in Figure 16. The lowest layer, Scalable Network Service (SNS) support, provides all of the availabil- ity, scalability, load balancing and monitoring functionality. The middle layer, TACC , described below, provides a pro- gramming model for authors that simplifies service creation and that hides the details of the SNS layer, thus providing scalability and availability “off the shelf.” The top layer han- dles the actual presentation of data and client protocols such as HTTP, and manages all of the open connections. Typically service authors need only write TACC modules to imple- ment their service, the SNS and service layers provide every- thing else. To explore these issues, we built and deployed a scalable transformation proxy called TranSend, which is available publicly at http://transend.cs.berkeley.edu. It fol- lows the layered architecture and all of its functionality resides in the TACC layer via a collection of about a dozen modules. It has had over 10,000 unique users since its launch in April 1997, and many people use it all of the time even from wired networks such as modems and even ISDN. The SNS layer is implemented on a network of worksta- tions to provide these benefits; the architecture and analysis of this layer are beyond the scope of this paper, but are cov- ered in [FGCB97]. Using a cluster of ten Sun 140-MHz Ultra- workstations, we were able to show that even the image- transformation part of TranSend, which is relatively heavy- weight, scales linearly to handle over 170 transformations per second, which is sufficient for more than 10,000 simulta- neous users, and more than 10 million transformations per day.
We have also demonstrated very high availability, with very low downtime since the TranSend service began opera- tion. The fault-recovery capabilities enabled this uptime without any dedicated system-administration staff. Figure 17 shows a trace of the availability, load balancing, and burst- recovery mechanism in action. Failed TACC workers are cleanly restarted in a few seconds and new workers are auto- matically deployed as load rises; together these mechanism ensure low latency (short queue lengths), even load balanc- ing, and excellent overall response time, even in the presence of faults. Finally, we found that the cost of the computing infra- structure is extremely low, about 25 cents per user per month for all of the equipment [FGCB97]. The basic reason for better cost performance is the statistical multiplexing enabled by moving resources from client devices into the infrastructure, where they can be shared. For example, ISPs typically have 1/20th as many modems as their customers, even though every connection requires one on each end. Similarly, com- puting power in the infrastructure is more than twenty times more efficient simply because it is not idle 80% of the time (or more), as in mobile devices, which are often off and have bursty utilization even when in use [GB97].
So far, we have motivated the proxy architecture as a mechanism for on-demand transformation. However, the proxy architecture is far more general and powerful. In par- ticular, we can generalize the proxy into a powerful platform for composable infrastructure services. This more general model is called TACC , for transforma- tion, aggregation, caching and customization. As described above, transformation is an operation on a single data object
Figure 16: Scalable Network Service Layered Model
Service : Service-specific code
that changes its content; examples include filtering, format conversion, encryption, and compression. Aggregation involves collecting data from several objects and collating it in a prespecified way. For example, one aggregator collects all listings of cultural events from a prespecified set of Web pages, extracts the date and event information from each, and combines the results into a dynamically generated “culture this week” page. The combi- nation of transformation and aggregation by TACC workers results in an extremely general programming model; in fact, transformation proxies [Bro+96][Yee97], proxy filters and caches [Zen96][C+96], customized aggregators [SB97], and search engines [Ink96] are all subsumed by the TACC model. Caching plays an interesting role in TACC, because in addition to caching original Internet content, the caches in our architecture can store post-transformation data, post- aggregation content and even intermediate results. Like all caches, its contents are entirely soft state that can be regener- ated at the expense of network latency or computation. Customization allows many users to share a smaller num- ber of services, by parameterizing the services and recalling each user’s parameters as they invoke the service. This is similar to allowing each user to pass different “command- line arguments” to the service. The customization database ,
0
5
10
15
20
25
(^0 50 100 150) Time (seconds) 200 250 300 350 4000
8
16
24
32
40
Distiller 1started
Distiller 2started Distiller 3started Distiller 4started
Distiller 1& 2 died Distiller 5started
Distiller 1Distiller 2 Distiller 3Distiller 4 Offered loadDistiller 5
0
5
10
15
20
25
(^250 260 270 280) Time (seconds) 290 300 310 320 Distiller 4started
Distiller 1& 2 died Distiller 5started
Distiller 1Distiller 2 Distiller 3Distiller 4 Distiller 5
Figure 17: Distiller queue lengths observed over time as the load presented to the system fluctuates, and as distillers are manually brought down. (b) is an enlargement of (a).
(a)
(b)
Requests/second Queue Length
Queue Length
Requests/Second
and dynamically produce a graphical representation of the result. Group Annotation for the Web : Inspired by prior work on annotating the Web [SMB96] , the TACC reimplementation of group annotation [KG97] leverages Multivalent Document (MVD) technology [PW97] from the UC Berkeley Digital Library Project to provide a scalable, highly available group- annotation service. Annotations are kept in a separate data- base and are combined with source documents on the fly via transformation; this allows annotation of any page, even without write access to the original. Controls are added with annotations, which allow the user to invoke the Java-based MVD Annotation Viewer/Editor. Top Gun MediaBoard : MediaBoard is a modular reim- plementation of the shared Internet whiteboard wb [JM95] using the MASH toolkit [M+97]. Top Gun MediaBoard [CF97] is a TACC-based implementation of this program for the PalmPilot, which is partitioned so that the heavyweight Scal- able Reliable Multicast (SRM) protocol is run at the TACC server, by a MASH worker representing a particular mb ses- sion. A compact unicast datagram protocol is used for com- munication between the PalmPilot clients and the TACC server, which also does coordinate transformations and image transformations (reusing many of the Wingman TACC modules) corresponding to the MediaBoard draw operations occurring in the session. Top Gun MediaBoard thus performs both data adaptation and protocol adaptation, making it a prime example of the flexibility of the TACC toolkit for building adaptive applications. Figure 18 shows a screenshot of the TGMB client. Charon Indirect Authentication : We have built a prox- ied version of Kerberos IV [SNS88] , called Charon [FG96], for use with resource-poor clients such as PDAs and smart phones. This partitioning allows an untrusted proxy to inter- act with the Kerberos infrastructure on behalf of the clients, giving the clients full authenticated (and optionally encrypted) access to the services but relieving them of the significant burden of having a full Kerberos implementation. Even though nearly all of the Kerberos functionality is implemented by the proxy, neither the user’s Kerberos pass- word nor their keys for new services ever leave the client
Figure 18: Top Gun MediaBoard allows the PalmPilot to participate in shared-whiteboard sessions, despite its small display and inability to support the Scalable Reliable Multicast protocol on which the original MediaBoard is based.
device, thus enabling use of an untrusted proxy. Charon has the same immunity to protocol-based attacks as Kerberos, and is more immune to certain end-to-end attacks because of the nature of the client devices. In fact, Charon turns such devices into a powerful form of “smart card.” The success of the TACC platform in supporting Wing- man and other applications is strong evidence for its role as an enabling technology for deploying complex, scalable, highly available, and composable services.
We have presented a uniform architecture that addresses extreme variation in the areas of client hardware, software, and connectivity, via powerful dynamic adaptation of proto- cols and content. Because the architecture is structured around agent-based on-demand transformation, we require no changes to the existing infrastructure and servers. We use cross-layer information to control the degree of distillation very dynamically based on current network con- ditions. For example, as a mobile user walks outside, not only do we perform a seamless vertical handoff, but we also notify the proxy of the change in network quality. In response the proxy increases the amount of distillation, thus maintaining the same response time (within about 10-20%) even though the network conditions have changed by more than an order of magnitude in bandwidth and latency (assuming a handoff from WaveLAN to Metricom). Although not discussed, the cluster-based proxy imple- mentation makes extensive use of soft state [FGCB97], includ- ing all of the management and worker state except for user profiles, which need to be persistent. In fact, we originally implemented the manager with mirrored hard state and fail- over, but later replaced it with a much simpler and more effective soft-state based approach. The proxy architecture includes many significant contri- butions:
quality and performance.
For more info : transformation [FGBA96] ; video transcoding [AMZ95] ; cluster-based services [FGCB97] ; Charon [FG96] ; TACC applications [UCB97] ; network monitoring and SPAND [SSK97].
The Network Services component of the architecture builds on our innovations in routing, transport, and the proxy architecture. It provides support for locale-specific discovery of available resources and “on-the-move” reconfiguration of, and adaptation to, these resources. It additionally provides mobile clients with the ability to remotely control devices and applications that interact with those devices. This sup- ports seamless interaction with the current environment as clients roam in autonomous overlaid networks. In developing this architecture, we have designed, imple- mented, and deployed in our building the following example services:
The aspect of heterogeneity tackled by the adaptive ser- vice components is the variation in services offered in differ- ent domains. The need for adaptability is brought about by not only the mobility of client devices through the different geographic areas, but also due to possible limitations of thin client devices and the need to allow per-user customization of service usage. A basic premise in developing this func- tionality is that providing basic IP access to clients is not enough. We must augment basic IP connectivity with an adaptive network services infrastructure. Distillation proxies are one example of a network service that may require dis- covery and reconfiguration. The challenge is developing an open service architecture that allows heterogeneous client devices to discover what they can do in a new environment and interact with it while making minimal assumptions about standard interfaces and control protocols. To address these challenges, we provide mechanisms for:
The function of a service discovery protocol is to allow for the maintenance of dynamic repositories of service infor- mation, advertise the availability of this information, and support queries against it. The Service Location Protocol [VGPK97], under development by the IETF Service Location working group, is one proposal for implementing local-area service discovery. We have implemented local-area service discovery in our architecture and are still in the process of extending it for use in the wide-area.
implementation and experience with “remote-controlled vic” (rvic) are available [HN97].
Making services available to visitors brings up a host of general security issues, including those specific to the wire- less domain [Bro95][AD94]. In addition to standard cryptogra- phy-based security, service interaction systems specifically require additional access control. This is because we extend devices to be network addressable. In general, global access control is necessary, but not sufficient; the expected behavior that environmental changes can only be affected by people in that environment has been broken. For example, lights should not able to be turned off by a person across the coun- try. Maintaining this expectation is important when extend- ing existing social metaphors into an environment with controllable objects. We address this by embedding tickets, random fixed- length bit vectors, in the mobility beacons and requiring the current ticket to be included in all communications to serv- ers. Periodically changing the tickets in an unpredictable way and limiting the scope of the broadcast (e.g. to the local subnet) prevents remote access from nodes on the access control list that are not actually local. This ticket-based exclusion can be overridden (by separately multicasting or unicasting the ticket when necessary), but by restricting access by default, we better emulate the existing paradigm.
Due to the need to support impoverished end devices, especially extremely resource-poor PDAs, our architecture focuses on providing thin client interfaces and off-loading processing to proxies. Recognizing that expecting custom UIs to be available for all services on all different types of hardware isn’t realistic, we propose exposing controllable objects through an interface specification language (ISL). The ISL is used in addition to custom implementations of an interface, thus allowing for compatible but independent coexisting interfaces. It exposes the syntax of each services’ control interface. Upon discovery of a service, the client device checks to see if a language implementation is avail- able that it can support, and if not, uses the ISL file to learn the messages and message parameters that can be used to access the service. It additionally allows the device to adapt the representation to a format appropriate for the device’s characteristics, and potentially allows the user to place the elements manually and independent of one another for fine- grain control (output independence ala HTML). Automatic layout heuristics can also be used.^6 The conventional notion of an Interface Definition Lan- guage (IDL) (e.g., the CORBA IDL) is to specify parame-
6: For comparison, note a related developing protocol with similar needs: the Universal Remote Console Communication Protocol [URCC97], moti- vated by research in supporting interfaces for disabled users.
ters, parameter data types, and parameter-passing conventions for remote object invocation [COR97]. The basic function of a Model-based User Interface [SFG93] is to spec- ify interfaces as structured widget hierarchies along with sets of constraints. The actual interface is derived from the model at run time or through a compilation step. This allows inter- faces to maintain a consistent look-and-feel even as elements are added and deleted. Our goal is to unify these approaches, allowing remote object APIs to be augmented with UI mod- els. This hybrid would allow both composition of the remote-method invocations, and separate subsetting or aggregation of UI elements. We call this combination an interface specification, and its grammar an Interface Specifi- cation Language, or ISL. Though we call it a language, it is not a completely new programming language or grammar; it can be implemented as compatible extensions atop, say, HTML, Java, or Tcl/Tk. The use of an ISL requires services to explicitly support a layer of indirection through the service discovery mecha- nism, allowing dynamic adaptation of individual interface elements. This indirection is critical for allowing service composition. As an example, the command to spawn an audio conference can be rerouted to a client script that first reduces the volume of the room’s music player and then passes along the original request. Our current implementation has interfaces manually implemented in Tcl/Tk, Visual Basic, and the PalmPilot. Currently, ISL uses an ad hoc grammar tuned to Tk.
In summary, the adaptive network services layer of the architecture provides functionality beyond IP dial-tone to both roaming and local users. The themes that guide our work in this area include:
to enable complex scripted behaviors.
For more info : localized services [HKSR97][HK97]
Returning to a broad view of the architecture, we exam- ine some of the issues that we did not address, contrast BAR- WAN with related work, and revisit our four themes.
There are several important areas that we did not directly address in the architecture. First, we limited ourselves to off- the-shelf networks and mobile devices. Although we added agents, we did not modify the base software for our net- works, nor did we develop any new networking hardware. We have learned several lessons that should enable better future networks, however, such as the importance of net- work-interface power management, the very negative impact of half-duplex networking, and the importance of augmented infrastructure-based beacons. Similarly, we avoided developing our own mobile device, in part in response to the significant effort involved with the InfoPad project. However, we view the current set of devices as sufficient only for prototyping, and have high expectations for the next generation, which should be designed with the power of the proxy architecture in mind. We have had significant discussion with device manufactur- ers along these lines. We also dealt only tangentially with the infrastructure required for global authentication. The Charon work enables proxy-based authentication, and we can restrict access to local users via beacon-based tickets, but those both prema- turely assume that a global authentication system is in place. As such systems are deployed, our architecture extends them to support heterogeneous clients and (physically) local ser- vices. Finally, we did not look at disconnected operation, instead assuming connectivity of varying quality. We believe that disconnected operation is an important capability for mobile users; we left it out only because there are several major projects that address the issues [MES95][Kle97][JTK97] , and because we believe that those systems are complemen- tary to BARWAN and can be integrated well.
There are at least several hundred useful papers that relate to some aspect of the architecture; here we focus only on broad projects of similar scope. For detailed coverage of related work in a specific area, please refer to the papers listed in the For More Info note at the end of the correspond- ing section. The Coda and Odyssey projects at CMU focus on file- system based support for mobile devices. The Coda system [MES95] manages file-system consistency across intermittent
and disconnected access. BARWAN did not look at discon- nected access, although we believe the Coda approach is largely orthogonal and thus could be supported directly. Odyssey [NSN+97] originally defined multiple quality levels of file-system objects to support variation in network qual- ity; their current approach adopts our notion of dynamic adaptation and distillation (and the use of proxies) to provide both application-aware and application-transparent adapta- tion at the file-system level. Much of the rest of the BAR- WAN architecture is complementary, such as overlay networking and reliable data transport, and in fact there has been some joint work [NKNS96]. One major distinction is the service focus of BARWAN, rather than the file-system focus of Odyssey, which enables not only localized services, but also complex TACC-based services (and protocols) such as the Wingman browser. The InfoPad project [Bre+96][N+96] preceded BARWAN, had some overlap in personnel, and was very influential on several of our network and application-support elements. The InfoPad is a hand-held wireless tablet that depends on both high-bandwidth networking (for bitmapped graphics and video) and extensive application support in the infra- structure. For example, it depends on a modified version of X Windows on the server that renders all of the pixels (not vector graphics) over the wireless connection. Although very bandwidth intensive, this approach has the benefit of simple low-power hardware, since it requires only simple process- ing on the device. A major distinction is thus our focus on low-bandwidth links and some processing power on the devices. We can also view the InfoPad as just another hetero- geneous device; for example, the video transcoder can con- vert video streams (in real time) into InfoPad’s custom VQ format. UCLA’s work on nomadic computing [Kle97] addresses many of the same issues as BARWAN. In particular, it shares the service focus of BARWAN. It provides strong support for wide-area data management (predictive caching and data consistency) and disconnected operation. However, it does not (so far) address the issues of overlaid networks, reliable data transport, or scalable complex infrastructure services. The proxy architecture has emerged as fundamental to the nomadic computing. Rover [JTK97] is a toolkit for developing mobile applica- tions that support disconnected operation. As with Coda, the Rover work is complementary, and we expect to integrate the Rover technology into our future work in this area. The proxy architecture and network services work simplify the infrastructure side of the Rover toolkit.
We finish our discussion by revisiting our four themes. Dynamic Adaptation is the general way we deal with varying network conditions and with client heterogeneity. Vertical handoff is a dynamic adaptation in response the presence or absence of packets on a particular overlay, while