Resilient overlay Networks David Andersen Hari Balakrishnan, Frans Kaashoek and robert morris MIT Laboratory for Computer Science @nms. Ics. mit. edI http://nms.Ics.mitedu/ron/ Abstract and its constituent networks, usually operated by some network ser- a Resilient Overlay Network(RON) is an architecture that allow vice provider. The information shared with other providers and istributed Internet applications to detect and recover from path AS's is heavily filtered and summarized using the border Gat outages and periods of degraded performance within several sec- Protocol (BGP-4)running at the border routers between ASs[21] onds, improving over today's wide-area routing protocols that take which allows the Internet to scale to millions of networks at least several minutes to recover. A RON is an application-layer This wide-area routing scalability comes at the cost of re- overlay on top of the existing Internet routing substrate, The RON duced fault-tolerance of end-to-end communication between Inter- nodes monitor the functioning and quality of the Internet paths net hosts. This cost arises because BGP hides many topological among themselves, and use this information to decide whether to details in the interests of scalability and policy enforcement, has route packets directly over the Internet or by way of other Ron little information about traffic conditions, and damps routing up- problems arise to prevent large-scale oscil- Results from two sets of measurements of a working ron de- lations. As a result, BGP's fault recovery mechanisms sometimes ployed at sites scattered across the Internet demonstrate the benefits take many minutes before routes converge to a consistent form [121, f our architecture. For instance, over a 64-hour sampling period March 2001 across a twelve-node RoN, there were 32 significant ruptions in communication lasting tens of minutes or more B3, 18, outages, each lasting over thirty minutes, over the 132 measured 19]. The result is that today' s Internet is vulnerable to router and paths. RON,s routing mechanism was able to detect, recover, and link faults, configuration errors, and malice-hardly a week goes route around all of them, in less than twenty seconds on average, by without some serious problem affecting the connectivity pro- showing that its methods for fault detection and recovery work well ded by one or more Internet Service Providers(IsPs)[15] at discovering alternate paths in the Internet. Furthermore, RON Resilient Overlay Networks (RONs) are a remedy for some of was able to improve the loss rate, latency, or throughput perceived these problems. Distributed applications layer a"resilient overlay by data transfers; for example, about 5% of the transfers doubled etwork"over the underlying Internet routing substrate. The nodes their TCP throughput and 5% of our transfers saw their loss prob- comprising a ron reside in a variety of routing domains, and co- ability reduced by o.05. We found that forwarding packets via at operate with each other to forward data on behalf of any pair of and improve performance in most cases. These improvements, par- administrated and configured, and routing domains rarely share in- Gs ularly in the area of fault detection and recovery, demonstrate the terior links, they generally fail independently of each other. A nefits of moving some of the control over routing into the hands a result, if the underlying topology has physical path redundancy RON can often find paths between its nodes, even when wide-area outing Internet protocols like BGP-4 cannot. 1. ntroduction The main goal of RoN is to enable a group of nodes to commu- nicate with each other in the face of problems with the underlying The Internet is organized as independently u- Internet paths connecting them. ron detects problems by aggres- ms(Ass)that peer together. In th cture, sively probing and monitoring the paths connecting its nodes. If detailed routing information is maintained only with the underlying Internet path is the best one, that path is used and no other ron node is involved in the forwarding path. If the Internet Defense Advanced research path is not the best one, the RoN will forward the packet by way of around most failures by using only one intermediate hop RON nodes exchange information about the quality of the paths among themselves via a routing protocol and build forwarding ta- bles based on a variety of path metrics, including latency, packet loss rate, and available throughput. Each ROn node obtains the assive observations of data transfers. In mentation, each ROn is explicitly designed to be limited in size- between two and fifty nodes-to facilitate aggressive path main- enance via probing without excessive bandwidth overhead. This
Resilient Overlay Networks David Andersen, Hari Balakrishnan, Frans Kaashoek, and Robert Morris MIT Laboratory for Computer Science ron@nms.lcs.mit.edu http://nms.lcs.mit.edu/ron/ Abstract A Resilient Overlay Network (RON) is an architecture that allows distributed Internet applications to detect and recover from path outages and periods of degraded performance within several seconds, improving over today’s wide-area routing protocols that take at least several minutes to recover. A RON is an application-layer overlay on top of the existing Internet routing substrate. The RON nodes monitor the functioning and quality of the Internet paths among themselves, and use this information to decide whether to route packets directly over the Internet or by way of other RON nodes, optimizing application-specific routing metrics. Results from two sets of measurements of a working RON deployed at sites scattered across the Internet demonstrate the benefits of our architecture. For instance, over a 64-hour sampling period in March 2001 across a twelve-node RON, there were 32 significant outages, each lasting over thirty minutes, over the 132 measured paths. RON’s routing mechanism was able to detect, recover, and route around all of them, in less than twenty seconds on average, showing that its methods for fault detection and recovery work well at discovering alternate paths in the Internet. Furthermore, RON was able to improve the loss rate, latency, or throughput perceived by data transfers; for example, about 5% of the transfers doubled their TCP throughput and 5% of our transfers saw their loss probability reduced by 0.05. We found that forwarding packets via at most one intermediate RON node is sufficient to overcome faults and improve performance in most cases. These improvements, particularly in the area of fault detection and recovery, demonstrate the benefits of moving some of the control over routing into the hands of end-systems. 1. Introduction The Internet is organized as independently operating autonomous systems (AS’s) that peer together. In this architecture, detailed routing information is maintained only within a single AS This research was sponsored by the Defense Advanced Research Projects Agency (DARPA) and the Space and Naval Warfare Systems Center, San Diego, under contract N66001-00-1-8933. and its constituent networks, usually operated by some network service provider. The information shared with other providers and AS’s is heavily filtered and summarized using the Border Gateway Protocol (BGP-4) running at the border routers between AS’s [21], which allows the Internet to scale to millions of networks. This wide-area routing scalability comes at the cost of reduced fault-tolerance of end-to-end communication between Internet hosts. This cost arises because BGP hides many topological details in the interests of scalability and policy enforcement, has little information about traffic conditions, and damps routing updates when potential problems arise to prevent large-scale oscillations. As a result, BGP’s fault recovery mechanisms sometimes take many minutes before routes converge to a consistent form [12], and there are times when path outages even lead to significant disruptions in communication lasting tens of minutes or more [3, 18, 19]. The result is that today’s Internet is vulnerable to router and link faults, configuration errors, and malice—hardly a week goes by without some serious problem affecting the connectivity provided by one or more Internet Service Providers (ISPs) [15]. Resilient Overlay Networks (RONs) are a remedy for some of these problems. Distributed applications layer a “resilient overlay network” over the underlying Internet routing substrate. The nodes comprising a RON reside in a variety of routing domains, and cooperate with each other to forward data on behalf of any pair of communicating nodes in the RON. Because AS’s are independently administrated and configured, and routing domains rarely share interior links, they generally fail independently of each other. As a result, if the underlying topology has physical path redundancy, RON can often find paths between its nodes, even when wide-area routing Internet protocols like BGP-4 cannot. The main goal of RON is to enable a group of nodes to communicate with each other in the face of problems with the underlying Internet paths connecting them. RON detects problems by aggressively probing and monitoring the paths connecting its nodes. If the underlying Internet path is the best one, that path is used and no other RON node is involved in the forwarding path. If the Internet path is not the best one, the RON will forward the packet by way of other RON nodes. In practice, we have found that RON can route around most failures by using only one intermediate hop. RON nodes exchange information about the quality of the paths among themselves via a routing protocol and build forwarding tables based on a variety of path metrics, including latency, packet loss rate, and available throughput. Each RON node obtains the path metrics using a combination of active probing experiments and passive observations of on-going data transfers. In our implementation, each RON is explicitly designed to be limited in size— between two and fifty nodes—to facilitate aggressive path maintenance via probing without excessive bandwidth overhead. This
and do not depend on the existence of non-commercial or private networks(such as the Internet2 backbone that interconnects many educational institutions); our ability to determine this was enabled Cae by RON's policy routing feature that allows the expression and im- selected for packets We also found that roN successfully routed around performance NC-Cable failures: in RONI, the loss probability improved by at least 0.05 in 5% of the samples, end-to-end communication latency reduced by 40ms in 11%of the samples, and TCP throughput doubled in 5%of all samples. In addition, we found cases when RON's loss latency, and throughput-optimizing path selection mechanisms all chose different paths between the same two nodes, suggesting that application-specific path selection techniques are likely to be use- Figure 1: The current sixteen-node ron deploy ment. Five sites in practice. A noteworthy finding from the experiments and are at universities in the USA, two are European universitie analysis is that in most cases, forwarding packets via at most one (not shown), three are"broadband"home Internet hosts con- intermediate RON node is sufficient both for recovering from fail- nected by Cable or DSL, one is located at a US ISP, and five are ures and for improving communication latency at corporations in the USA 2. Related work To our knowledge, ron is the first wide-area network overlay allows RON to recover from problems in the underlying Internet in system that can detect and recover from path outages and periods of several seconds rather than several minutes degraded performance within several seconds. Ron builds on pre- The second goal of Ron is to integrate routing and path selec- vious studies that quantify end-to-end network reliability and per- on with distributed applications more tightly than is traditionally formance, on IP-based routing techniques for fault-tolerance, and done. This integration includes the ability to consult application on overlay-based techniques to enhance performance pecific metrics in selecting paths, and the ability to incorporate application-specific notions of what network conditions constitute 2.1 Internet Performance studies fault. " As a result, RONs can be used in a variety of ways. A mul Labovitz et al.[12]use a combination of measurement and anal timedia conferencing program may link directly against the RON ysis to show that inter-domain routers in the Internet may take tens ing an overlay between all particip of minutes to reach a consistent view of the network topology after the conference, and using loss rates, delay jitter, or application- a fault, primarily because of routing table oscillations during BGP's observed throughput as metrics on which to choose paths. An ad- rather complicated path selection process. They find that during ministrator may wish to use a RON-based router application to this period of"delayed convergence, end-to-end communication form an overlay network between multiple LANs as an" Overlay is adversely affected. In fact, outages on the order of minutes cause VPN. This idea can be extended further to develop an"Overlay active TCP connections (i.e, connections in the ESTABlISHeD ISP,formed by linking(via RON) points of presence in different state with outstanding data)to terminate when TCP does not re- aditional ISPs after buying bandwidth from them. Using RON's ceive an acknowledgment for its outstanding data. They also find routing machinery, an Overlay IsP can provide more resilient and that, while part of the convergence delays can be fixed with changes failure-resistant Internet to its customers to the deployed BGP implementations, long delays and temporary The third goal of ron is to provide a framework for the imple- oscillations are a fundamental consequence of the BGP path vector mentation of expressive routing policies, which govern the choice routing protocol of paths in the network. For example, Ron facilitates classifying Paxson's probe experiments show that routing pathologies pre- ackets into categories that could implement notions of acceptable vent selected Internet hosts from communicating up to 3.3% of the use, or enforce forwarding rate controls time averaged over a long time period, and that this percentage has This paper describes the design and implementation of ron, not improved with time [18]. Labovitz et al. find, by examining and presents several experiments that evaluate whether RON is a routing table logs at Internet backbones, that 10% of all considered good idea. To conduct this evaluation and demonstrate the ben- routes were available less than 95% of the time. and that less than efits of RoN, we have deployed a working sixteen-node RoN 35% of all routes were available more than 99.99% of the time [13] ites sprinkled across the Internet(see Figure 1). The ron client Furthermore, they find that about 40% of all path outages take more we experiment with is a resilient IP forwarder, which allows us to than 30 minutes to repair and are heavy-tailed in their duration. ompare connections between pairs of nodes running over a ron More recently, Chandra et al. find using active probing that 5% against running straight over the Internet. of all detected failures last more than 10, 000 seconds(2 hours, 45 We have collected a few weeks worth of experimental results of minutes), and that failure durations are heavy-tailed and can last sis of two separate datasets: RONI with twelve nodes measured in findings do not augur well for mission-critical services that require March 2001 and RO 2 with sixteen nodes measured in May 2001. a higher degree of end-to-end communication availability In both datasets we found that ron was able to route around be- The Detour measurement study made the observation, using Pax- ween 60% and 100% of all significant outages. Our implementa- son's and their own data collected at various times between 1995 tion takes 18 seconds, on average, to detect and route around a path and 1999, that path selection in the wide-area Internet is sub- failure and is able to do so in the face of an active denial-of-service optimal from the standpoint of end-to-end latency, packet loss rate, attack on a path. We also found that these benefits of quick fault de- and TCP throughput [23]. This study showed the potential long ection and successful recovery are realized on the public Internet term benefits of"detouring"packets via a third node by comparing
CCI Aros Utah CMU To vu.nl Lulea.se MIT MA−Cable Cisco Cornell NYU NC−Cable OR−DSL CA−T1 PDI Mazu Figure 1: The current sixteen-node RON deployment. Five sites are at universities in the USA, two are European universities (not shown), three are “broadband” home Internet hosts connected by Cable or DSL, one is located at a US ISP, and five are at corporations in the USA. allows RON to recover from problems in the underlying Internet in several seconds rather than several minutes. The second goal of RON is to integrate routing and path selection with distributed applications more tightly than is traditionally done. This integration includes the ability to consult applicationspecific metrics in selecting paths, and the ability to incorporate application-specific notions of what network conditions constitute a “fault.” As a result, RONs can be used in a variety of ways. A multimedia conferencing program may link directly against the RON library, transparently forming an overlay between all participants in the conference, and using loss rates, delay jitter, or applicationobserved throughput as metrics on which to choose paths. An administrator may wish to use a RON-based router application to form an overlay network between multiple LANs as an “Overlay VPN.” This idea can be extended further to develop an “Overlay ISP,” formed by linking (via RON) points of presence in different traditional ISPs after buying bandwidth from them. Using RON’s routing machinery, an Overlay ISP can provide more resilient and failure-resistant Internet service to its customers. The third goal of RON is to provide a framework for the implementation of expressive routing policies, which govern the choice of paths in the network. For example, RON facilitates classifying packets into categories that could implement notions of acceptable use, or enforce forwarding rate controls. This paper describes the design and implementation of RON, and presents several experiments that evaluate whether RON is a good idea. To conduct this evaluation and demonstrate the benefits of RON, we have deployed a working sixteen-node RON at sites sprinkled across the Internet (see Figure 1). The RON client we experiment with is a resilient IP forwarder, which allows us to compare connections between pairs of nodes running over a RON against running straight over the Internet. We have collected a few weeks’ worth of experimental results of path outages and performance failures and present a detailed analysis of two separate datasets: RON1 with twelve nodes measured in March 2001 and RON2 with sixteen nodes measured in May 2001. In both datasets, we found that RON was able to route around between 60% and 100% of all significant outages. Our implementation takes 18 seconds, on average, to detect and route around a path failure and is able to do so in the face of an active denial-of-service attack on a path. We also found that these benefits of quick fault detection and successful recovery are realized on the public Internet and do not depend on the existence of non-commercial or private networks (such as the Internet2 backbone that interconnects many educational institutions); our ability to determine this was enabled by RON’s policy routing feature that allows the expression and implementation of sophisticated policies that determine how paths are selected for packets. We also found that RON successfully routed around performance failures: in RON1, the loss probability improved by at least 0.05 in 5% of the samples, end-to-end communication latency reduced by 40ms in 11% of the samples, and TCP throughput doubled in 5% of all samples. In addition, we found cases when RON’s loss, latency, and throughput-optimizing path selection mechanisms all chose different paths between the same two nodes, suggesting that application-specific path selection techniques are likely to be useful in practice. A noteworthy finding from the experiments and analysis is that in most cases, forwarding packets via at most one intermediate RON node is sufficient both for recovering from failures and for improving communication latency. 2. Related Work To our knowledge, RON is the first wide-area network overlay system that can detect and recover from path outages and periods of degraded performance within several seconds. RON builds on previous studies that quantify end-to-end network reliability and performance, on IP-based routing techniques for fault-tolerance, and on overlay-based techniques to enhance performance. 2.1 Internet Performance Studies Labovitz et al. [12] use a combination of measurement and analysis to show that inter-domain routers in the Internet may take tens of minutes to reach a consistent view of the network topology after a fault, primarily because of routing table oscillations during BGP’s rather complicated path selection process. They find that during this period of “delayed convergence,” end-to-end communication is adversely affected. In fact, outages on the order of minutes cause active TCP connections (i.e., connections in the ESTABLISHED state with outstanding data) to terminate when TCP does not receive an acknowledgment for its outstanding data. They also find that, while part of the convergence delays can be fixed with changes to the deployed BGP implementations, long delays and temporary oscillations are a fundamental consequence of the BGP path vector routing protocol. Paxson’s probe experiments show that routing pathologies prevent selected Internet hosts from communicating up to 3.3% of the time averaged over a long time period, and that this percentage has not improved with time [18]. Labovitz et al. find, by examining routing table logs at Internet backbones, that 10% of all considered routes were available less than 95% of the time, and that less than 35% of all routes were available more than 99.99% of the time [13]. Furthermore, they find that about 40% of all path outages take more than 30 minutes to repair and are heavy-tailed in their duration. More recently, Chandra et al. find using active probing that 5% of all detected failures last more than 10,000 seconds (2 hours, 45 minutes), and that failure durations are heavy-tailed and can last for as long as 100,000 seconds before being repaired [3]. These findings do not augur well for mission-critical services that require a higher degree of end-to-end communication availability. The Detour measurement study made the observation, using Paxson’s and their own data collected at various times between 1995 and 1999, that path selection in the wide-area Internet is suboptimal from the standpoint of end-to-end latency, packet loss rate, and TCP throughput [23]. This study showed the potential longterm benefits of “detouring” packets via a third node by comparing
the long-term average properties of detoured paths against Internet- phasis on high performance packet classification and routing. It uses IP-in-IP encapsulation to send packets along alternate paths While ron shares with detour the idea of routing via other 2.2 Network-layer Techniques nodes, our work differs from Detour in three significant ways. First, Much work has been done on performance-based and fault- RON seeks to prevent disruptions in end-to-end communication in tolerant routing within a single routing domain, but practical mecl the face of failures. RoN takes advantage of underlying Internet anisms for wide-area Internet recovery from outages or badly per- path redundancy on time-scales of a few seconds, reacting respon- forming paths are lacking sively to path outages and performance failures. Second,RON As though today's wide-area BGP-4 routing is based largely on designed as an application-controlled routing overlay; because each hop-counts, early ARPANET routing was more dynamic, re RON is more closely tied to the application using it, RON more ding to the current delay and utilization of the network. by readily integrates application-specific path metrics and path selec- 1989, the ARPANET evolved to using a delay- and congestion- tion policies. Third, we present and analyze experimental results based distributed shortest path routing algorithm [11]. However, from a real-world deployment of a ron to demonstrate fast re- the diversity and size of today's decentralized Internet necessitated covery from failure and improved latency and loss-rates even over the deployment of protocols that perform more aggregation and short time -scales fewer updates. As a result, unlike some interior routing protocols An alternative design to ron would be to use a generic overlay within ASS, BGP-4 routing between As's optimizes for scalable infrastructure like the X-Bone and port a standard network routing operation over all el protocol (like OSPF or RIP) with low timer values. However, this By treating vast collections of subnetworks as a single entity for by itself will not improve the resilience of Internet communications global routing purposes, BGP-4 is able to summarize and aggregate for two reasons. First, a reliable and low-overhead outage detection enormous amounts of routing information into a format that scales module is required, to distinguish between packet losses caused by to hundreds of millions of hosts. To prevent costly route oscilla congestion or error-prone links from legitimate problems with a tions, BGP-4 explicitly damps changes in routes. Unfortunately, path. Second, generic network-level routing protocols do not utilize while aggregation and damping provide good scalability, they in application-specific definitions of faults terfere with rapid detection and recovery when faults occur. RON Various Content Delivery Networks(CDNs) use overlay tech- handles this by leaving scalable operation to the underlying Inter- niques and caching to improve the performance of content del het substrate moving fault detection and recovery to a higher layer for specific applications such as Http and streaming video The overlay that is capable of faster response because it does not have functionality provided by RON may ease future CDn development to worry about scalabil by providing some routing components required by these services An oft-cited"solution" to achieving fault-tolerant network con- advertising a customer network through multiple ISPs. The idea 3. Design Goals is that an outage in one ISP would leave the customer connected The design of RoN seeks to meet three main design goals: (i) via the other. However, this solution does not generally achieve failure detection and recovery in less than 20 seconds, (ii) tighter fault detection and recovery within several seconds because of the integration of routing and path selection with the application, and degree of aggregation used to achieve wide-area routing scalabil (ii) expressive policy routing cept routing announcements for fewer than 8192 contiguous ad- 3.1 Fast Failure Detection and recovery dresses(a"/19 netblock). Small companies, regardless of their Todays wide-area Internet routing system based on BGP-4 does fault-tolerance needs, do not often require such a large address not handle failures well. From a network perspective, we define block, and cannot effectively multi-home. One alternative may be two kinds of failures. Link failures occur when a router or a link rovider-based addressing, where an organization gets addresses rom multiple providers, but this requires handling two distinct sets problem, or link disconnection. Path failures occur for a variety of of addresses on its hosts. It is unclear how on-going connections reasons, including denial-of-service attacks or other bursts of traffic on one address set can seamlessly switch on a failure in this model that cause a high degree of packet loss or high, variable latencies 2.3 Overlay-based Techniques Applications perceive all failures in one of two ways: outages or performance failures. Link failures and extreme path failures cause Overlay networks are an old idea; in fact, the Internet itself was outages, when the average packet loss rate over a sustained period developed as an overlay on the telephone network. Several Inter- net overlays have been designed in the past for various purpose tocols including TCP to degrade by several orders of magnitude including providing OSI network-layer connectivity [10), easing Performance failures are less extreme, for example, throughput, la IP multicast deployment using the MBone [6, and providing IPv6 tency, or loss-rates might degrade by a factor of two or three onnectivity using the 6-Bone [9). The X-Bone is a recent infras- BGP-4 takes a long time on the order of several minutes, to con- tructure project designed to speed the deployment of IP-based over- verge to a new valid route after a link failure causes an outage [ 12] lay networks [26]. It provides management functions and mecha- In contrast, RON's goal is to detect and recover from outages and nisms to insert packets into the overlay, but does not yet support performance failures within several seconds. Compounding this fault-tolerant operation or application-controlled path selection. Few overlay networks have been designed for efficient fault de such as packet foods and persistent congestion on links or paths tection and recovery, although some have been designed for better that greatly degrade end-to-end performance. As long as a link is end-to-end performance. The Detour framework [5, 22] was mo- deemed"live"(i.e, the BGP session is still alive), BGP's AS-path architecture designed to support altermate-hop routing, with an em- for an application usikk may nop ackets down the faulty path tivated by the potential long-term performance benefits of indirect based routing will continue to rout routing [23]. It is an in-kernel packet encapsulation and routing fortunately, such a path ovide adequate performance
the long-term average properties of detoured paths against Internetchosen paths. 2.2 Network-layer Techniques Much work has been done on performance-based and faulttolerant routing within a single routing domain, but practical mechanisms for wide-area Internet recovery from outages or badly performing paths are lacking. Although today’s wide-area BGP-4 routing is based largely on AS hop-counts, early ARPANET routing was more dynamic, responding to the current delay and utilization of the network. By 1989, the ARPANET evolved to using a delay- and congestionbased distributed shortest path routing algorithm [11]. However, the diversity and size of today’s decentralized Internet necessitated the deployment of protocols that perform more aggregation and fewer updates. As a result, unlike some interior routing protocols within AS’s, BGP-4 routing between AS’s optimizes for scalable operation over all else. By treating vast collections of subnetworks as a single entity for global routing purposes, BGP-4 is able to summarize and aggregate enormous amounts of routing information into a format that scales to hundreds of millions of hosts. To prevent costly route oscillations, BGP-4 explicitly damps changes in routes. Unfortunately, while aggregation and damping provide good scalability, they interfere with rapid detection and recovery when faults occur. RON handles this by leaving scalable operation to the underlying Internet substrate, moving fault detection and recovery to a higher layer overlay that is capable of faster response because it does not have to worry about scalability. An oft-cited “solution” to achieving fault-tolerant network connectivity for a small- or medium-sized customer is to multi-home, advertising a customer network through multiple ISPs. The idea is that an outage in one ISP would leave the customer connected via the other. However, this solution does not generally achieve fault detection and recovery within several seconds because of the degree of aggregation used to achieve wide-area routing scalability. To limit the size of their routing tables, many ISPs will not accept routing announcements for fewer than 8192 contiguous addresses (a “/19” netblock). Small companies, regardless of their fault-tolerance needs, do not often require such a large address block, and cannot effectively multi-home. One alternative may be “provider-based addressing,” where an organization gets addresses from multiple providers, but this requires handling two distinct sets of addresses on its hosts. It is unclear how on-going connections on one address set can seamlessly switch on a failure in this model. 2.3 Overlay-based Techniques Overlay networks are an old idea; in fact, the Internet itself was developed as an overlay on the telephone network. Several Internet overlays have been designed in the past for various purposes, including providing OSI network-layer connectivity [10], easing IP multicast deployment using the MBone [6], and providing IPv6 connectivity using the 6-Bone [9]. The X-Bone is a recent infrastructure project designed to speed the deployment of IP-based overlay networks [26]. It provides management functions and mechanisms to insert packets into the overlay, but does not yet support fault-tolerant operation or application-controlled path selection. Few overlay networks have been designed for efficient fault detection and recovery, although some have been designed for better end-to-end performance. The Detour framework [5, 22] was motivated by the potential long-term performance benefits of indirect routing [23]. It is an in-kernel packet encapsulation and routing architecture designed to support alternate-hop routing, with an emphasis on high performance packet classification and routing. It uses IP-in-IP encapsulation to send packets along alternate paths. While RON shares with Detour the idea of routing via other nodes, our work differs from Detour in three significant ways. First, RON seeks to prevent disruptions in end-to-end communication in the face of failures. RON takes advantage of underlying Internet path redundancy on time-scales of a few seconds, reacting responsively to path outages and performance failures. Second, RON is designed as an application-controlled routing overlay; because each RON is more closely tied to the application using it, RON more readily integrates application-specific path metrics and path selection policies. Third, we present and analyze experimental results from a real-world deployment of a RON to demonstrate fast recovery from failure and improved latency and loss-rates even over short time-scales. An alternative design to RON would be to use a generic overlay infrastructure like the X-Bone and port a standard network routing protocol (like OSPF or RIP) with low timer values. However, this by itself will not improve the resilience of Internet communications for two reasons. First, a reliable and low-overhead outage detection module is required, to distinguish between packet losses caused by congestion or error-prone links from legitimate problems with a path. Second, generic network-level routing protocols do not utilize application-specific definitions of faults. Various Content Delivery Networks (CDNs) use overlay techniques and caching to improve the performance of content delivery for specific applications such as HTTP and streaming video. The functionality provided by RON may ease future CDN development by providing some routing components required by these services. 3. Design Goals The design of RON seeks to meet three main design goals: (i) failure detection and recovery in less than 20 seconds; (ii) tighter integration of routing and path selection with the application; and (iii) expressive policy routing. 3.1 Fast Failure Detection and Recovery Today’s wide-area Internet routing system based on BGP-4 does not handle failures well. From a network perspective, we define two kinds of failures. Link failures occur when a router or a link connecting two routers fails because of a software error, hardware problem, or link disconnection. Path failures occur for a variety of reasons, including denial-of-service attacks or other bursts of traffic that cause a high degree of packet loss or high, variable latencies. Applications perceive all failures in one of two ways: outages or performance failures. Link failures and extreme path failures cause outages, when the average packet loss rate over a sustained period of several minutes is high (about 30% or higher), causing most protocols including TCP to degrade by several orders of magnitude. Performance failures are less extreme; for example, throughput, latency, or loss-rates might degrade by a factor of two or three. BGP-4 takes a long time, on the order of several minutes, to converge to a new valid route after a link failure causes an outage [12]. In contrast, RON’s goal is to detect and recover from outages and performance failures within several seconds. Compounding this problem, IP-layer protocols like BGP-4 cannot detect problems such as packet floods and persistent congestion on links or paths that greatly degrade end-to-end performance. As long as a link is deemed “live” (i.e., the BGP session is still alive), BGP’s AS-pathbased routing will continue to route packets down the faulty path; unfortunately, such a path may not provide adequate performance for an application using it
vBNS /Internet 2 c N Utah 5Mbps/60ms Conduits QWest UUNE aT&T Figure 3: The RON system architecture. Data enters the rON from rOn clients via a conduit at an entry node. At each node, 6Mbps he RoNforwarder consults with its router to determine the best Mbps, 3ms path for the packet, and sends it to the next node. Path selec- Cable modem plifying the forwarding path at other nodes. When the packe reaches the ron exit node, the forwarder there hands it to the appropriate output conduit, which passes the data to the client Figure 2: Internet interconnections are often complex. The dot. To choose paths, RON nodes monitor the quality of their vir ted links are private and are not announced globally tual links using active probing and passive observation. RON nodes use a link-state routing protocol to disseminate the topol- ogy and virtual-link quality of the overlay network. 3.2 Tighter Integration with applications Failures and faults are application-specific notions: network con- 4. design ditions that are fatal for one application may be acceptable for other, more adaptive one. For instance, a UDP-based Internet audio The conceptual design of roN, shown in Figure 3, is quite sim- application not using good packet-level error correction may not RON nodes, deployed at various locations on the Internet, work at all at loss rates larger than 10%. At this loss rate. a bulk form an application-layer overlay to cooperatively route packets transfer application using TCP will continue to work because of for each other. Each RON node monitors the quality of the Internet TCP's adaptation mechanisms, albeit at lower performance. How paths between it and the other nodes, and uses this information to ever, at loss rates of 30% or more, TCP becomes essentially un- two nodes is called a virtual link. To discover the topology of the applications to independently define and react to failures overlay network and obtain information about all virtual links in In addition, applications may prioritize some metrics over oth to exchange information about a variety of quality metrics. Most ers(e.g, latency over throughput, or low loss over latency) in their of RoN's design supports routing through multiple intermediate paths. A routing system may not be able to optimize all of these nodes, but our results (Section 6) show that using at most one inter- metrics simultaneously; for example, a path with a one-second la ency may appear to be the best throughput path, but this degree of our design focus on finding better paths via a single intermediate RoN node of latency may be unacceptable to an interactive application Cur- rently, RON's goal is to allow applications to influence the choice 4.1 Software Architecture of paths using a single metric. We plan to explore multi-criteria path selection in the future Each program that communicates with the ron software on a node is a RON client. The overlay network is defined by a sin- 3.3 Expressive Policy routing Despite the need for policy routing and enforcement of accept or application. This group of clients can use service-specific rout- able use and other policies, todays approaches are primitive and ing metrics when deciding how to forward packets in the group cumbersome. For instance, BGP-4 is incapable of expressing fine Our design accommodates a variety of Ron clients, ranging from a generic IP packet forwarder that improves the reliability of IP grained policies aimed at users or hosts. This lack of precision packet delivery, to a multi-party conferencing application that in not only reduces the set of paths available in the case of a failure, but also inhibits innovation in the use of carefully targeted policies orporates application-specific metrics in its route selection such as end-to-end per-user rate controls or enforcement of accept a ron client interacts with ron across an APi called a conduit ble use policies(AUPs) based on packet classification. Because which the client uses to send and receive packets. On the data path, RONs will typically run on relatively powerful end-points, we be the first node that receives a packet(via the conduit) classifies it eve they are well-suited to providing fine-grained policy routing to determine the type of path it should use(e.g, low-latency, high- throughput, etc. ) This node is called the entry node: it determines Figure 2 shows the AS-level network connectivity between four a path from its topology table, encapsulates the packet into a RON of our RON hosts the full graph for(only) 12 hosts traverses 36 header, tags it with some information that simplifies forwarding different autonomous systems. The figure gives a hint of the con siderable underlying path redundancy available in the Internet-the by downstream RON nodes, and forwards it on. Each subsequent eason RON worksand shows situations where BGP's blunt po warding hop based on the destination address and the tag. The final ron node that deliver icy expression inhibits fail-over. For example, if the Aros-UUNET the packet to the roN application is called the exit nod connection failed. users at Aros would be unable to reach mIt even if they were authorized to use Utah's network resources to get there The conduits access ron via two functions This is because it impossible to announce a bgp route only to pa a_ron)allows a node to forward ticular users, so the Utah-MIT link is kept completely private a packet to a destination ron node either along the ron or
155Mbps / 60ms BBN Qwest UUNET AT&T MediaOne 6Mbps 130 Mbps Private Peering 45Mbps 5ms 1Mbps, 3ms Cable Modem Private Peering 3Mbps 6ms ArosNet Utah 155 MIT vBNS / Internet 2 Figure 2: Internet interconnections are often complex. The dotted links are private and are not announced globally. 3.2 Tighter Integration with Applications Failures and faults are application-specific notions: network conditions that are fatal for one application may be acceptable for another, more adaptive one. For instance, a UDP-based Internet audio application not using good packet-level error correction may not work at all at loss rates larger than 10%. At this loss rate, a bulk transfer application using TCP will continue to work because of TCP’s adaptation mechanisms, albeit at lower performance. However, at loss rates of 30% or more, TCP becomes essentially unusable because it times out for most packets [16]. RON allows applications to independently define and react to failures. In addition, applications may prioritize some metrics over others (e.g., latency over throughput, or low loss over latency) in their path selection. They may also construct their own metrics to select paths. A routing system may not be able to optimize all of these metrics simultaneously; for example, a path with a one-second latency may appear to be the best throughput path, but this degree of latency may be unacceptable to an interactive application. Currently, RON’s goal is to allow applications to influence the choice of paths using a single metric. We plan to explore multi-criteria path selection in the future. 3.3 Expressive Policy Routing Despite the need for policy routing and enforcement of acceptable use and other policies, today’s approaches are primitive and cumbersome. For instance, BGP-4 is incapable of expressing finegrained policies aimed at users or hosts. This lack of precision not only reduces the set of paths available in the case of a failure, but also inhibits innovation in the use of carefully targeted policies, such as end-to-end per-user rate controls or enforcement of acceptable use policies (AUPs) based on packet classification. Because RONs will typically run on relatively powerful end-points, we believe they are well-suited to providing fine-grained policy routing. Figure 2 shows the AS-level network connectivity between four of our RON hosts; the full graph for (only) 12 hosts traverses 36 different autonomous systems. The figure gives a hint of the considerable underlying path redundancy available in the Internet—the reason RON works—and shows situations where BGP’s blunt policy expression inhibits fail-over. For example, if the Aros-UUNET connection failed, users at Aros would be unable to reach MIT even if they were authorized to use Utah’s network resources to get there. This is because it impossible to announce a BGP route only to particular users, so the Utah-MIT link is kept completely private. External Probes Data Node 2 Node 3 Performance Database Node 1 Probes Forwarder Router Probes Forwarder Router Probes Forwarder Router Conduits Conduits Conduits Figure 3: The RON system architecture. Data enters the RON from RON clients via a conduit at an entry node. At each node, the RON forwarder consults with its router to determine the best path for the packet, and sends it to the next node. Path selection is done at the entry node, which also tags the packet, simplifying the forwarding path at other nodes. When the packet reaches the RON exit node, the forwarder there hands it to the appropriate output conduit, which passes the data to the client. To choose paths, RON nodes monitor the quality of their virtual links using active probing and passive observation. RON nodes use a link-state routing protocol to disseminate the topology and virtual-link quality of the overlay network. 4. Design The conceptual design of RON, shown in Figure 3, is quite simple. RON nodes, deployed at various locations on the Internet, form an application-layer overlay to cooperatively route packets for each other. Each RON node monitors the quality of the Internet paths between it and the other nodes, and uses this information to intelligently select paths for packets. Each Internet path between two nodes is called a virtual link. To discover the topology of the overlay network and obtain information about all virtual links in the topology, every RON node participates in a routing protocol to exchange information about a variety of quality metrics. Most of RON’s design supports routing through multiple intermediate nodes, but our results (Section 6) show that using at most one intermediate RON node is sufficient most of the time. Therefore, parts of our design focus on finding better paths via a single intermediate RON node. 4.1 Software Architecture Each program that communicates with the RON software on a node is a RON client. The overlay network is defined by a single group of clients that collaborate to provide a distributed service or application. This group of clients can use service-specific routing metrics when deciding how to forward packets in the group. Our design accommodates a variety of RON clients, ranging from a generic IP packet forwarder that improves the reliability of IP packet delivery, to a multi-party conferencing application that incorporates application-specific metrics in its route selection. A RON client interacts with RON across an API called a conduit, which the client uses to send and receive packets. On the data path, the first node that receives a packet (via the conduit) classifies it to determine the type of path it should use (e.g., low-latency, highthroughput, etc.). This node is called the entry node: it determines a path from its topology table, encapsulates the packet into a RON header, tags it with some information that simplifies forwarding by downstream RON nodes, and forwards it on. Each subsequent RON node simply determines the next forwarding hop based on the destination address and the tag. The final RON node that delivers the packet to the RON application is called the exit node. The conduits access RON via two functions: 1. send(pkt, dst, via ron) allows a node to forward a packet to a destination RON node either along the RON or
sing the direct Internet path. RON's delivery, like UDP, is incomplete information about any other hen all paths in best-effort and unreliable the ron from the other ron nodes to ilable 2. recv(pkt, via.ron)is a callback function that is 4.2.2 Path Evaluation and Selection called when a packet arrives for the client program. This The ron routers need an algorithm to determine if a path is still callback is invoked after the RON conduit matches the type alive and a set of algorithms with which to evaluate potential paths of the packet in the ron header to the set of types pre The responsibility of these metric evaluators is to provide a number registered by the client when it joins the roN. The ron quantifying how good "a path is according to that metric.These numbers are relative, and are only compared to other numbers from the same evaluator. The two important aspects of path evaluation The basic RON functionality is provided by the forwarder are the mechanism by which the data for two links are combined object, which implements the above functions. It also provides a timer registration and callback mechanism to perform periodic op- into a single path, and the formula used to evaluate erations, and a similar service for network socket data availability Every ron router implements outage detection Each client must instantiate a forwarder and hand to it two mod to determine if the virtual link between it and anoth ules: a RON router and a RON membership manager. The ron working. It uses an active probing mechanism for this. On de- router implements a routing protocol. The RON membership man- tecting the loss of a probe, the normal low-frequency probing is ager implements a protocol to maintain the list of members of a placed by a sequence of consecutive probes, sent in relatively quick RON. By default, ron provides a few different RoN router and succession spaced by PROBE- TIMEOUT seconds. If OUTA GE- THRESH membership manager modules for clients to use probes in a row elicit no response, then the path is considered RON routers and membership managers exchange packets using ead.” If even one of t RON as their forwarding service, rather than over direct IP paths. higher-frequency probes are canceled. Paths experiencing outages sages to be forwarded even when some underlying lPpans lay es- are rated on their packet loss rate history a path having an out- This feature of our system is beneficial because it allows these m age will always lose to a path not experiencing an outage. The OUTAGE-THRESH and the frequency of probing(PROBE-INTERVAL 4.2 Routing and path selection permit a trade-off between outage detection time and the bandwidth Routing is the process of building up the forwarding tables that consumed by the(low-frequency)probing process(Section 6.2 in- are used to choose paths for packets. In RON, the entry node vestigates this) has more control over subsequent path selection than in traditional By default, every RON router implements three different routing datagram networks. This node tags the packet's RoN header with metrics: the latency-minimizer, the loss-minimizer, and the TCP throughput-optimizer. The latency-minimizer forwarding table is an identifier that identifies the flow to which the packet belongs, computed by computing an exponential weighted moving average subsequent routers attempt to keep a flow id on the same path it first used, barring significant link changes. Tagging, like the IPv6 (EWMA)of round-trip latency samples with parameter a For any flow ID, helps support multi-hop routing by speeding up the for- link l, its latency estimate lat i is updated as arding path at intermediate nodes. It also helps tie a packet flow ple (1) to a chosen path, making performance more predictable, and pro- vides a basis for future support of multi-path routing in RON. B We use c =0.9 which means that 10% of the current late tagging at the entry node, the application is given maximum control estimate is based on the most recent sample. This number is similar over what the network considers a"flow. to the values suggested for TCPs round-trip time estimator [20] The small size of a ron relative to the internet allows it to mai For a ron path, the overall latency is the sum of the individual tain information about multiple alternate routes and to select the virtual link latencies: lat path that best suits the ron client according to a client-specified To estimate loss rates, ron uses the average of the last k= 100 routing metric. By default, it maintains information about three probe samples as the current average. Like Floyd et al.[7 ,we pecific metrics for each virtual link: (i)latency, (ii) packet loss found this to be a better estimator than EWMA, etains som ite, and(iii)throughput, as might be obtained by a bulk-transfer memory of samples obtained in the distant pas TCP connection between the end-points of the virtual link. Ron possible to further improve our estimator by clients can override these defaults with their own metrics, and the some of the h samples [7] RON library constructs the appropriate forwarding table to pick Loss metrics are multiplicative on a path: if we good paths. The router builds up forwarding tables for each com- losses are independent, the probability of success on the entire bination of policy routing and chosen routing metric is roughly equal to the probability of surviving all hops individu- 4.2 Link-State dissemination ron does not attempt to find optimal throughput paths, but The default roN router uses a link-state routing protocol to dis- strives to avoid paths of low throughput when good alternatives are seminate topology information between routers, which in turn is available. Given the time-varying and somewhat unpredictable na used to build the forwarding tables. Each node in an N-node ron ture of available bandwidth on Internet paths [2, 19], we believe this has N-1 virtual links. Each node's router periodically requests is an appropriate goal. From the standpoint of improving the reli- summary information of the different performance metrics to the ability of path selection in the face of performance failures, avoid- N-l other nodes from its local performance database and di ing bad paths is more important than optimizing to eliminate small seminates its view to the others throughput differences between paths. While a characterization of This information is sent via the ron forwarding mesh itself, to the utility received by programs at different available bandwidths ensure that routing information is propagated in the event of path may help determine a good path selection threshold, we believe that outages and heavy loss periods. Thus, the ron routing protocol more than a 50% bandwidth reduction is likely to reduce the util- is itself a Ron client, with a well-defined ron packet type. This ity of many programs. This threshold also falls outside the typical leads to an attractive property: The only time a ron router has variation observed on a given path over time-scales of tens of
using the direct Internet path. RON’s delivery, like UDP, is best-effort and unreliable. 2. recv(pkt, via ron) is a callback function that is called when a packet arrives for the client program. This callback is invoked after the RON conduit matches the type of the packet in the RON header to the set of types preregistered by the client when it joins the RON. The RON packet type is a demultiplexing field for incoming packets. The basic RON functionality is provided by the forwarder object, which implements the above functions. It also provides a timer registration and callback mechanism to perform periodic operations, and a similar service for network socket data availability. Each client must instantiate a forwarder and hand to it two modules: a RON router and a RON membership manager. The RON router implements a routing protocol. The RON membership manager implements a protocol to maintain the list of members of a RON. By default, RON provides a few different RON router and membership manager modules for clients to use. RON routers and membership managers exchange packets using RON as their forwarding service, rather than over direct IP paths. This feature of our system is beneficial because it allows these messages to be forwarded even when some underlying IP paths fail. 4.2 Routing and Path Selection Routing is the process of building up the forwarding tables that are used to choose paths for packets. In RON, the entry node has more control over subsequent path selection than in traditional datagram networks. This node tags the packet’s RON header with an identifier that identifies the flow to which the packet belongs; subsequent routers attempt to keep a flow ID on the same path it first used, barring significant link changes. Tagging, like the IPv6 flow ID, helps support multi-hop routing by speeding up the forwarding path at intermediate nodes. It also helps tie a packet flow to a chosen path, making performance more predictable, and provides a basis for future support of multi-path routing in RON. By tagging at the entry node, the application is given maximum control over what the network considers a “flow.” The small size of a RON relative to the Internet allows it to maintain information about multiple alternate routes and to select the path that best suits the RON client according to a client-specified routing metric. By default, it maintains information about three specific metrics for each virtual link: (i) latency, (ii) packet loss rate, and (iii) throughput, as might be obtained by a bulk-transfer TCP connection between the end-points of the virtual link. RON clients can override these defaults with their own metrics, and the RON library constructs the appropriate forwarding table to pick good paths. The router builds up forwarding tables for each combination of policy routing and chosen routing metric. 4.2.1 Link-State Dissemination The default RON router uses a link-state routing protocol to disseminate topology information between routers, which in turn is used to build the forwarding tables. Each node in an N-node RON has N 1 virtual links. Each node’s router periodically requests summary information of the different performance metrics to the N 1 other nodes from its local performance database and disseminates its view to the others. This information is sent via the RON forwarding mesh itself, to ensure that routing information is propagated in the event of path outages and heavy loss periods. Thus, the RON routing protocol is itself a RON client, with a well-defined RON packet type. This leads to an attractive property: The only time a RON router has incomplete information about any other one is when all paths in the RON from the other RON nodes to it are unavailable. 4.2.2 Path Evaluation and Selection The RON routers need an algorithm to determine if a path is still alive, and a set of algorithms with which to evaluate potential paths. The responsibility of these metric evaluators is to provide a number quantifying how “good” a path is according to that metric. These numbers are relative, and are only compared to other numbers from the same evaluator. The two important aspects of path evaluation are the mechanism by which the data for two links are combined into a single path, and the formula used to evaluate the path. Every RON router implements outage detection, which it uses to determine if the virtual link between it and another node is still working. It uses an active probing mechanism for this. On detecting the loss of a probe, the normal low-frequency probing is replaced by a sequence of consecutive probes, sent in relatively quick succession spaced by PROBE TIMEOUT seconds. If OUTAGE THRESH probes in a row elicit no response, then the path is considered “dead.” If even one of them gets a response, then the subsequent higher-frequency probes are canceled. Paths experiencing outages are rated on their packet loss rate history; a path having an outage will always lose to a path not experiencing an outage. The OUTAGE THRESH and the frequency of probing (PROBE INTERVAL) permit a trade-off between outage detection time and the bandwidth consumed by the (low-frequency) probing process (Section 6.2 investigates this). By default, every RON router implements three different routing metrics: the latency-minimizer, the loss-minimizer, and the TCP throughput-optimizer. The latency-minimizer forwarding table is computed by computing an exponential weighted moving average (EWMA) of round-trip latency samples with parameter . For any link l, its latency estimate latl is updated as: latl latl + (1 ) new samplel (1) We use = 0:9, which means that 10% of the current latency estimate is based on the most recent sample. This number is similar to the values suggested for TCP’s round-trip time estimator [20]. For a RON path, the overall latency is the sum of the individual virtual link latencies: latpath = P l2path latl . To estimate loss rates, RON uses the average of the last k = 100 probe samples as the current average. Like Floyd et al. [7], we found this to be a better estimator than EWMA, which retains some memory of samples obtained in the distant past as well. It might be possible to further improve our estimator by unequally weighting some of the k samples [7]. Loss metrics are multiplicative on a path: if we assume that losses are independent, the probability of success on the entire path is roughly equal to the probability of surviving all hops individually: lossratepath = 1 l2path(1 lossratel). RON does not attempt to find optimal throughput paths, but strives to avoid paths of low throughput when good alternatives are available. Given the time-varying and somewhat unpredictable nature of available bandwidth on Internet paths [2, 19], we believe this is an appropriate goal. From the standpoint of improving the reliability of path selection in the face of performance failures, avoiding bad paths is more important than optimizing to eliminate small throughput differences between paths. While a characterization of the utility received by programs at different available bandwidths may help determine a good path selection threshold, we believe that more than a 50% bandwidth reduction is likely to reduce the utility of many programs. This threshold also falls outside the typical variation observed on a given path over time-scales of tens of min-