Optimal Configuration of OSPF Aggregates

Slides:



Advertisements
Similar presentations
COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.
Advertisements

Why OSPF paths aren’t always shortest David Applegate Carsten Lund Aman Shaikh AT&T Labs (Research) NANOG 54 February 06, 2012.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Mobile and Wireless Computing Institute for Computer Science, University of Freiburg Western Australian Interactive Virtual Environments Centre (IVEC)
CCNA 2 v3.1 Module 6.
Routing and Routing Protocols
Objectives After completing this chapter you will be able to: Describe hierarchical routing in OSPF Describe the 3 protocols in OSPF, the Hello, Exchange.
UCSC 1 Aman ShaikhICNP 2003 An Efficient Algorithm for OSPF Subnet Aggregation ICNP 2003 Aman Shaikh Dongmei Wang, Guangzhi Li, Jennifer Yates, Charles.
Link State Routing Protocol W.lilakiatsakun. Introduction (1) Link-state routing protocols are also known as shortest path first protocols and built around.
Link-State Routing Protocols
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Routing and Routing Protocols Routing Protocols Overview.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking BGP, Flooding, Multicast routing.
Network Aware Resource Allocation in Distributed Clouds.
“Intra-Network Routing Scheme using Mobile Agents” by Ajay L. Thakur.
Chapter 9. Implementing Scalability Features in Your Internetwork.
Introduction to OSPF Nishal Goburdhan. Routing and Forwarding Routing is not the same as Forwarding Routing is the building of maps Each routing protocol.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
Minimax Open Shortest Path First (OSPF) Routing Algorithms in Networks Supporting the SMDS Service Frank Yeong-Sung Lin ( 林永松 ) Information Management.
1 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
© J. Liebeherr, All rights reserved 1 Multicast Routing.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
Routing and Routing Protocols
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
Open Shortest Path First (OSPF)
1 An Arc-Path Model for OSPF Weight Setting Problem Dr.Jeffery Kennington Anusha Madhavan.
Routing Protocols Brandon Wagner.
1 Traffic Engineering By Kavitha Ganapa. 2 Introduction Traffic engineering is concerned with the issue of performance evaluation and optimization of.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Open Shortest Path First (OSPF)
Working at a Small-to-Medium Business or ISP – Chapter 6
Instructor Materials Chapter 5: Dynamic Routing
(How the routers’ tables are filled in)
A Study of Group-Tree Matching in Large Scale Group Communications
Routing and Routing Protocols: Routing Static
COMP 3270 Computer Networks
Dynamic Routing Protocols part2
Network Layer.
A Scalable Multipath Algorithm in Hierarchical MPLS Networks
© 2002, Cisco Systems, Inc. All rights reserved.
CS 457 – Lecture 12 Routing Spring 2012.
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing: Distance Vector Algorithm
Routing.
Chapter 5: Dynamic Routing
LAN switching and Bridges
Multi-Core Parallel Routing
Frank Yeong-Sung Lin (林永松) Information Management Department
Chapter 3: Dynamic Routing
Chapter 9: Multiarea OSPF
Routing and Routing Protocols: Routing Static
Dynamic Routing and OSPF
LAN switching and Bridges
Switch controller: Routing
Chapter 9: Multiarea OSPF
Routing With a Link-State Protocol
Working at a Small-to-Medium Business or ISP – Chapter 6
Chapter 9: Multiarea OSPF
Frank Yeong-Sung Lin (林永松) Information Management Department
LAN switching and Bridges
Advisor: Yeong-Sung, Lin, Ph.D. Presented by Yu-Ren, Hsieh
Computer Networks Protocols
Routing.
OSPF Protocol.
Presentation transcript:

Optimal Configuration of OSPF Aggregates Rajeev Rastogi Internet Management Research Bell Laboratories (Joint work with Yuri Breitbart, Minos Garofalakis and Amit Kumar)

Motivation: Enterprise CIO Problem As the CIO teams migrated to OSPF the protocol became busier. More areas were added and the routing table grew to more that 2000 routes. By the end of 1998, the routing table stood at 4000+ routes and the OSPF database had exceeded 6000 entries. Around this time we started seeing a number of problems surfacing in OSPF. Among these problems were the smaller premise routers crashing due to the large routing table. Smaller Frame Relay PVCs were running large percentage of OSPF LSA traffic instead of user traffic. Any problems seen in one area were affecting all other areas. The ability to isolate problems to a single area was not possible. The overall affect on network reliability was quite negative.

OSPF Overview OSPF is a link-state routing protocol Area 0.0.0.1 Area Border Router (ABR) 1 Router 2 1 1 3 2 1 Area 0.0.0.0 Area 0.0.0.2 Area 0.0.0.3 OSPF is a link-state routing protocol Each router in area knows topology of area (via link state advertisements) Routing between a pair of nodes is along shortest path Network organized as OSPF areas for scalability Area Border Routers (ABRs) advertise aggregates instead of individual subnet addresses Longest matching prefix used to route IP packets

Solution to CIO Problem: OSPF Aggregation Aggregate subnet addresses within OSPF area and advertise these aggregates (instead of individual subnets) in the remainder of the network Advantages Smaller routing tables and link-state databases Lower memory requirements at routers Cost of shortest-path calculation is smaller Smaller volumes of OSPF traffic flooded into network Disadvantages Loss of information can lead to suboptimal routing (IP packets may not follow shortest path routes)

Example Undesirable low-bandwidth link Source 100 100 50 10.1.2.0/24 200 10.1.5.0/24 10.1.6.0/24 1000 50 10.1.7.0/24 10.1.4.0/24 10.1.3.0/24 Undesirable low-bandwidth link

Example: Optimal Routing with 3 Aggregates Source 100 100 10.1.6.0/23 (200) 10.1.4.0/23 (50) 10.1.2.0/23 (250) 50 10.1.2.0/24 200 10.1.5.0/24 10.1.6.0/24 1000 50 10.1.4.0/24 10.1.3.0/24 10.1.7.0/24 Route Computation Error: 0 Length of chosen routes - Length of shortest path routes Captures desirability of routes (shorter routes have smaller errors)

Example: Suboptimal Routing with 2 Aggregates Optimal Route Source Chosen Route 100 100 10.1.4.0/22 (1100) 10.1.4.0/22 (1250) 10.1.2.0/23 (1050) 10.1.2.0/23 (250) 10.1.2.0/24 50 200 10.1.5.0/24 10.1.6.0/24 1000 50 10.1.4.0/24 10.1.3.0/24 10.1.7.0/24 Route Computation Error: 900 (1200-300) Note: Moy recommends weight for aggregate at ABR be set to maximum distance of subnet (covered by aggregate) from ABR

Example: Optimal Routing with 2 Aggregates Source 100 100 10.1.0.0/21 (570) 10.1.0.0/21 (730) 10.1.4.0/23 (50) 10.1.4.0/23 (1450) 50 10.1.2.0/24 200 10.1.5.0/24 10.1.6.0/24 1000 50 10.1.4.0/24 10.1.3.0/24 10.1.7.0/24 Route Computation Error: 0 Note: Exploit IP routing based on longest matching prefix Note: Aggregate weight set to average distance of subnets from ABR

Example: Choice of Aggregate Weights is Important! Source 100 100 10.1.0.0/21 (1250) 10.1.0.0/21 (1100) 10.1.4.0/23 (1450) 10.1.4.0/23 (50) 50 10.1.2.0/24 200 10.1.5.0/24 10.1.6.0/24 1000 50 10.1.4.0/24 10.1.3.0/24 10.1.7.0/24 Route Computation Error: 1700 (800+900) Note: Setting aggregate weights to maximum distance of subnets may lead to sub-optimal routing

OSPF Aggregates Configuration Problems Aggregates Selection Problem: For a given k and assignment of weights to aggregates, compute the k optimal aggregates to advertise (that minimize the total error in the shortest paths) Propose efficient dynamic programming algorithm Weight Selection Problem: For a given aggregate, compute optimal weights at ABRs (that minimize the total error in the shortest paths) Show that optimum weight = average distance of subnets (covered by aggregate) from ABR Note: Parameter k determines routing table size and volume of OSPF traffic

Aggregates Selection Problem Aggregate Tree: Tree structure with aggregates arranged based on containment relationship Example Aggregate Tree 10.1.0.0/21 10.1.4.0/22 10.1.0.0/22 10.1.4.0/23 10.1.6.0/23 10.1.2.0/23

Computing Error for Selected Aggregates Using Aggregate Tree E(x,y): error for subnets under x and y is the closest selected ancestor of x If x is an aggregate (internal node): If x is a subnet address (leaf): x y u v E(x,y)=E(u,x)+E(v,x) E(x,y)=E(u,y)+E(v,y) x is selected x is not selected E(x,y)=Length of chosen path to x (when y is selected)- Length of shortest path to x

Computing Error for Selected Aggregates Using Aggregate Tree minE(x,y,k): minimum error for subnets under x for k aggregates and y is the closest selected ancestor of x If x is an aggregate (internal node): minE(x,y,k) is the minimum of If x is a subnet address (leaf): minE(x,y) = E(x,y) y y x is selected x is not selected x x u v u v min{minE(u,x,i)+minE(v,x,k-1-i)} (i between 0 and k-1) min{minE(u,y,i)+minE(v,y,k-i)} (i between 0 and k)

Dynamic Programming Algorithm: Example * y=10.1.0.0/21 x=10.1.4.0/22 10.1.0.0/22 u=10.1.4.0/23 v=10.1.6.0/23 10.1.2.0/23 minE(x,y,1) is minimum of y u v x * y u v x * y u v x * * * * minE(u,x) + minE(v,x) minE(u,y) + minE(v,v) minE(u,u) + minE(v,y) 0+800 1300+0 0+0

Weight Selection Problem For a given aggregate, compute optimal weights at ABRs (that minimize the total error in the shortest paths) Show that optimum weight = average distance of subnets (covered by aggregate) from ABR Suppose we associate an arbitrary weight with each aggregate Problem becomes NP-hard Simple greedy heuristic for weighted case Start with a random assignment of weights at each ABR In each iteration, modify weight for a single ABR that minimizes error Terminate after a fixed number of iterations, or improvement in error drops below threshold

Summary First comprehensive study for OSPF, of the trade-off between the number of aggregates advertised and optimality of routes Aggregates Selection Problem: For a given k and assignment of weights to aggregates, compute the k optimal aggregates to advertise (that minimize the total error in the shortest paths) Propose dynamic programming algorithm that computes optimal solution Weight Selection Problem: For a given aggregate, compute optimal weights at ABRs (that minimize the total error in the shortest paths) Show that optimum weight = average distance of subnets (covered by aggregate) from ABR