Internet Routing (COS 598A) Today: BGP Routing Table Size Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm.

Slides:



Advertisements
Similar presentations
Multihoming and Multi-path Routing
Advertisements

Routing Basics.
1 Interdomain Traffic Engineering with BGP By Behzad Akbari Spring 2011 These slides are based on the slides of Tim. G. Griffin (AT&T) and Shivkumar (RPI)
Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
© J. Liebeherr, All rights reserved 1 Border Gateway Protocol This lecture is largely based on a BGP tutorial by T. Griffin from AT&T Research.
Fundamentals of Computer Networks ECE 478/578 Lecture #18: Policy-Based Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
Best Practices for ISPs
Distributed Route Aggregation on the Global Network (DRAGON) João Luís Sobrinho 1 Laurent Vanbever 2, Franck Le 3, Jennifer Rexford 2 1 Instituto Telecomunicações,
Integrated Network Services Network Design Almerindo Graziano.
Internet Routing (COS 598A) Today: Addressing and Routing Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm.
1 BGP Security -- Zhen Wu. 2 Schedule Tuesday –BGP Background –" Detection of Invalid Routing Announcement in the Internet" –Open Discussions Thursday.
CS 164: Global Internet Slide Set In this set... More about subnets Classless Inter Domain Routing (CIDR) Border Gateway Protocol (BGP) Areas with.
1 Policy-Based Path-Vector Routing Reading: Sections COS 461: Computer Networks Spring 2006 (MW 1:30-2:50 in Friend 109) Jennifer Rexford Teaching.
Stable Internet Routing Without Global Coordination Jennifer Rexford Princeton University Joint work with Lixin Gao (UMass-Amherst)
Internet Routing (COS 598A) Today: Interdomain Traffic Engineering Jennifer Rexford Tuesdays/Thursdays.
Inherently Safe Backup Routing with BGP Lixin Gao (U. Mass Amherst) Timothy Griffin (AT&T Research) Jennifer Rexford (AT&T Research)
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Internet Routing (COS 598A) Today: Multi-Homing Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm.
Network Monitoring for Internet Traffic Engineering Jennifer Rexford AT&T Labs – Research Florham Park, NJ 07932
1 Interdomain Routing Policy Reading: Sections plus optional reading COS 461: Computer Networks Spring 2008 (MW 1:30-2:50 in COS 105) Jennifer Rexford.
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
Allocations vs Announcements A comparison of RIR IPv4 Allocation Records with Global Routing Announcements Geoff Huston May 2004 (Activity supported by.
1 Internet Routing Jennifer Rexford Princeton University
Hash, Don’t Cache: Fast Packet Forwarding for Enterprise Edge Routers Minlan Yu Princeton University Joint work with Jennifer.
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
Computer Networks Layering and Routing Dina Katabi
Inter-domain Routing Outline Border Gateway Protocol.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
I-4 routing scalability Taekyoung Kwon Some slides are from Geoff Huston, Michalis Faloutsos, Paul Barford, Jim Kurose, Paul Francis, and Jennifer Rexford.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network BGP Attributes and Path Selection Process.
Introduction to BGP.
Interconnectivity Density Compare number of AS’s to average AS path length A uniform density model would predict an increasing AS Path length (“Radius”)
1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks BGP.
Chapter 6 VLSM and CIDR.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
Chapter 9. Implementing Scalability Features in Your Internetwork.
David Wetherall Professor of Computer Science & Engineering Introduction to Computer Networks Hierarchical Routing (§5.2.6)
Addressing Issues David Conrad Internet Software Consortium.
Interdomain Routing Security. How Secure are BGP Security Protocols? Some strange assumptions? – Focused on attracting traffic from as many Ases as possible.
A Firewall for Routers: Protecting Against Routing Misbehavior1 June 26, A Firewall for Routers: Protecting Against Routing Misbehavior Jia Wang.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #08: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
1 Evolution Towards Global Routing Scalability draft-zhang-evolution-01 Varun Khare Beichuan Zhang
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
Spring 2010CS 3321 Interdomain Routing. Spring 2010CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
1 Agenda for Today’s Lecture The rationale for BGP’s design –What is interdomain routing and why do we need it? –Why does BGP look the way it does? How.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—2-1 BGP Transit Autonomous Systems Forwarding Packets in a Transit AS.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—3-1 Route Selection Using Policy Controls Using Multihomed BGP Networks.
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
Spring 2008CPE Computer Networks1 Routing: Part II Outline Algorithms Scalability Reading: Section 4.3.
Inter-domain Routing Outline Border Gateway Protocol.
CHAPTER 6: STATIC ROUTING Static Routing 2 nd semester
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Subnetting and Supernetting.
COS 561: Advanced Computer Networks
Interdomain Traffic Engineering with BGP
Static Routing 1st semester
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
Network Layer Mike Freedman COS 461: Computer Networks
COS 561: Advanced Computer Networks
COS 461: Computer Networks
COS 461: Computer Networks
BGP Instability Jennifer Rexford
Static Routing 2nd semester
Presentation transcript:

Internet Routing (COS 598A) Today: BGP Routing Table Size Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm

Outline IP prefixes –Review of CIDR and hierarchical allocation –Resource constraints on IP routers –Impact of increasing number of prefixes Growth in BGP routing table size –Growth of global prefixes over time –Characterizing the causes of growth Limiting the number of prefixes –Techniques for limiting the size –Fundamental challenges of limiting size

Classless InterDomain Routing (CIDR) IP Address : IP Mask: Address Mask for hostsNetwork Prefix Use two 32-bit numbers to represent a network. Network number = IP address + Mask Usually written as /15

Hierarchy in Allocating Address Blocks / / / / / /16 :::::: / / /24 :::: / / / / / / / /19 :::::: Prefixes are key to Internet scalability –Address allocation by ARIN/RIPE/APNIC and by ISPs –Routing protocols and packet forwarding based on prefixes –Today, routing tables contain ~150, ,000 prefixes

Resource Constraints on a High-End Router Switching Fabric Processor Line card Store routing table and process routing protocol messages Store forwarding table and forward data packets

Routing Information Base (RIB) Routing table for the routing protocol –E.g., BGP routes learned from each neighbor –Typically managed in software in router CPU Factors affecting RIB size –Number of destination prefixes –Number of BGP routes per prefix –Size of each route (e.g., BGP attributes) Impact of a large RIB –Higher delay to index or scan the table –Ungraceful reaction to table overflow

Ungraceful Overload Behavior in BGP BGP is an incremental protocol –Announcement when new route available –Withdrawal when route no longer available –No messages when nothing is changing Cannot discard or delete state –… because you won’t receive the message again –When table is full, router must drop session(s) Router reaction in practice may be worse –E.g., drop all BGP sessions and reestablish –E.g., interface lock-up till router is rebooted –Reactions place heavy BGP load on neighbors

Forwarding Information Base Forwarding tables in IP routers –Maps each IP prefix to next-hop link(s) –Longest prefix match look-up for data packets –Hardware on line card in high-end routers Impact of a large FIB –Higher delay to construct/update the table –Higher delay for packet lookup –Incomplete table or router crash on overflow / / / / / destination forwarding table (FIB) Serial0/0.1 outgoing link

Impact of Table Size: Message Overhead More BGP update messages –More prefixes means more update messages –… and more bandwidth and CPU consumption –… and longer delays for bringing up a session More BGP route flapping –More likely to have one or more flapping prefixes –… which consumes even more resources –… and makes the routing system less stable

Growth in BGP Routing Table Size about_cisco_ipj_archive_article09186a00800c83cc.html

Pre-CIDR ( ): Steep Growth Rate Growth faster than improvements in equipment capability

CIDR Deployment ( ): Much Flatter Efforts to aggregate (even decreases after IETF meetings!)

CIDR Growth ( ): Roughly Linear Good use of aggregation, and peer pressure in CIDR report

Boom Period ( ): Steep Growth Internet boom and increased multi-homing

Long-Term View ( ): Post-Boom

Cause of Growth #1: Multi-Homing Connecting to multiple providers –All providers must advertise the prefix –Hole-punching: subnet contained in a supernet Detecting hole-punching –Stub AS connects to two or more ASes –Prefix is contained in one provider’s supernet ISP #1 ISP #2 Stub / / / / /24

Cause of Growth #2: Failure to Aggregate Prefixes could be coalesced –Advertised exactly the same way –Adjacent prefixes or subnet/supernet relationship Detecting failure to aggregate –Prefixes with same attributes in set of BGP tables –Could be reduced to fewer prefixes by combining ISP #1 ISP #2 Stub / / / / /24 Stub /24 Stub / /23

Cause of Growth #3: Load Balancing Larger block sub-divided for more control –Advertise multiple subnets of a larger prefix –Treat differently to influence incoming traffic Detecting load balancing –Prefixes originated by the same AS –Could be collapsed (e.g., contiguous or contained) –… but, have different attributes, such as AS path ISP #1 ISP #2 Stub / / / /24

Cause of Growth #4: Address Fragmentation Different parts of the address space –Distinct address blocks allocated to same AS –Must be advertised separately in BGP Detecting address fragmentation –Prefixes announced the same way by same AS –Cannot be collapsed into fewer prefixes ISP #1 Stub / /24

Significance of the Four Causes Overall contribution –Address fragmentation is the most significant –The other three causes are all important as well Growth over time –Increasing multi-homing –Increasing load balancing Architectural implications –Exploit commonality across non-contiguous address blocks? –Multi-homing without hole-punching? –Load balancing without de-aggregating?

Transient Growth in Table Size: Routing Leaks Transient spike due to neighbor’s BGP mistake

Techniques for Limiting Table Size

Hierarchical Address Allocation Regional Internet Registries –Allocate large address blocks to ISPs –Publish guidelines for minimum block sizes ARIN: in /8, no mask lengths more than /19 APNIC: in /8, no mask lengths more than /23 Internet Service Providers –Allocate smaller blocks to customers Reclaim address blocks when customers leave –Hierarchical address allocation inside the ISP Advertise subnets only when necessary Customer-owned addresses and multi-homing

Hierarchical Allocation: Only One Router Knows Stub /8 Stub / / /24 Three-level hierarchy –ISP as a whole: /8 –Edge router in ISP: /16 –Customer at edge router: /24, /24 Only this router needs to know the small /24 blocks

Hierarchical Allocation: Only the ISP Knows Stub / /24 Customer connecting in multiple places –All routers in the ISP need to know the subnet –Otherwise they can’t reach all egress points –But the rest of the Internet doesn’t need to know /16

Hierarchical Allocation: Must Advertise Stub /8 Stub / / /24 Another ISP Sometimes have to advertise the subnet –Customer doesn’t fall in ISP’s address block –Customer connects to multiple providers

Filtering Small Subnets on BGP Sessions Small address blocks –Larger mask than RIR guidelines E.g., filter /20 and longer in /8 –Or, all prefixes with mask longer than /24 Trade-off on aggressive filtering –Don’t filter aggressively Risk of exceeding memory limits on the router –Filter aggressively Risk of disconnecting some parts of the Internet Risk of thwarting stub ASes trying to load-balance Who should pay to store the small subnets???

Prefix Limits to Protect Against Route Leaks Vulnerability to other ASes –Sending many small subnets –Exporting address space they shouldn’t Filtering policies may not be enough –E.g., all /24s is still 2 24 prefixes is still a lot Max-prefix limit on BGP session –Per-session configurable limit on # of prefixes –Tear down the session if number exceeded –Not great, but better than exceeding the memory

Fundamental Problems: Not Easily Automated Dependence on “side information” –Customer prefix falls in provider’s address space? –Customer connects to ISP in multiple places? –Customer connects to multiple providers? Auto-combining is hard in distributed system –Safe to combine /24 and /24??? –Depends on whether other ASes need the details / /24 seems safe not safe

Optimization: Reducing Forwarding Table Size Local FIB minimization –Router locally minimizes size of forwarding table –E.g., purple router has FIB entry for /23 –… while still keeping both subnets in BGP table –But, the size of the RIB may still be an issue / /24

Architectural Idea: Reducing BGP Table Size Separating BGP propagation from the routers –Exchange BGP updates via separate servers –Servers tell routers only the BGP routes they need –… yet still propagate full details to neighbors –We’ll return to this idea in the coming weeks / / / / /24 BGP

Conclusions Scalability limitations –Resource constraints on routers –… impose limits on number of prefixes Growth in the number of prefixes –Historical trends toward increasing table size –Multi-homing, failure to aggregate, load balancing, and address fragmentation Approaches to limiting growth –Hierarchical address allocation –Careful scoping of BGP route advertisements –Explicit minimization of FIB and RIB sizes

Next Time: Large Topologies Two papers –“Hierarchical routing for large networks: Performance evaluation and optimization” –“BGP route reflection: An alternative to full mesh IBGP” Review only of first paper –Summary –Why accept –Why reject –Avenues for future work Optional reading –Fun 1928 article “On Being the Right Size”