Master Course Computer Networks IN2097

Similar documents
Master Course Computer Networks IN2097

How the Internet works? The Border Gateway Protocol (BGP)

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Chapter IV: Network Layer

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

Computer Networking Introduction

Chapter 4: outline. Network Layer 4-1

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services:

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 14, 2013

Chapter 4: Network Layer

CSCI Topics: Internet Programming Fall 2008

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

CSCE 463/612 Networks and Distributed Processing Spring 2018

DATA COMMUNICATOIN NETWORKING

Chapter 4: Network Layer, partb

CSC 4900 Computer Networks: Routing Protocols

Network layer: Overview. Network layer functions Routing IP Forwarding

Inter-AS routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

Inter-AS routing and BGP. Network Layer 4-1

Lecture 19: Network Layer Routing in the Internet

CSc 450/550 Computer Networks Internet Routing

Internet Routing : Fundamentals of Computer Networks Bill Nace

COMP211 Chapter 5 Network Layer: The Control Plane

Inter-Domain Routing: BGP

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

Master Course Computer Networks IN2097

Routing in the Internet

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Chapter 4 Network Layer

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Network Layer: Routing

CS 640: Introduction to Computer Networks. Intra-domain routing. Inter-domain Routing: Hierarchy. Aditya Akella

Lecture 4: Intradomain Routing. CS 598: Advanced Internetworking Matthew Caesar February 1, 2011

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

Internet inter-as routing: BGP

Routing. Jens A Andersson Communication Systems

Interplay Between Routing, Forwarding

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture

CS4450. Computer Networks: Architecture and Protocols. Lecture 15 BGP. Spring 2018 Rachit Agarwal

Routing Unicast routing protocols

Chapter 4: Network Layer

Master Course Computer Networks IN2097

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction

Topics for This Week

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy

Computer Networks. Instructor: Niklas Carlsson

BGP. Autonomous system (AS) BGP version 4

Network layer: Overview. Network layer functions Routing IP Forwarding

Lecture 16: Interdomain Routing. CSE 123: Computer Networks Stefan Savage

BGP. Autonomous system (AS) BGP version 4

COMP/ELEC 429 Introduction to Computer Networks

IP Addressing & Interdomain Routing. Next Topic

CS 204: BGP. Jiasi Chen Lectures: MWF 12:10-1pm Humanities and Social Sciences

Internet Routing Protocols Lecture 01 & 02

Inter-Autonomous-System Routing: Border Gateway Protocol

PART III. Implementing Inter-Network Relationships with BGP

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

CS4700/CS5700 Fundamentals of Computer Networks

Lecture 9. Network Layer (cont d) Network Layer 1-1

Routing. Outline. Algorithms Scalability

BGP. Autonomous system (AS) BGP version 4

Inter-Autonomous-System Routing: Border Gateway Protocol

Lecture 4. The Network Layer (cont d)

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

Inter-domain Routing. Outline. Border Gateway Protocol

Configuring BGP. Cisco s BGP Implementation

Why dynamic route? (1)

CS321: Computer Networks Unicast Routing

Unit 3: Dynamic Routing

CS BGP v4. Fall 2014

CS 457 Networking and the Internet. Shortest-Path Problem. Dijkstra s Shortest-Path Algorithm 9/29/16. Fall 2016

Important Lessons From Last Lecture Computer Networking. Outline. Routing Review. Routing hierarchy. Internet structure. External BGP (E-BGP)

Routing on the Internet! Hierarchical Routing! The NSFNet 1989! Aggregate routers into regions of autonomous systems (AS)!

Master Course Computer Networks IN2097

CSCD 433/533 Advanced Networks Spring 2016

CMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala October 9, 2018 (a) October 18 October 9,

Routing on the Internet. Routing on the Internet. Hierarchical Routing. Computer Networks. Lecture 17: Inter-domain Routing and BGP

Network Layer: Routing

Border Gateway Protocol (an introduction) Karst Koymans. Monday, March 10, 2014

Outline Computer Networking. Inter and Intra-Domain Routing. Internet s Area Hierarchy Routing hierarchy. Internet structure

Chapter 5 Network Layer: The Control Plane

Inter-Domain Routing: BGP

Interdomain Routing Reading: Sections P&D 4.3.{3,4}

Dynamics of Hot-Potato Routing in IP Networks

Introduction to Communication Networks Spring Unit 16 Global Internetworking

ITTC Introduction to Communication Networks The University of Kansas EECS 563 Network Routing

Inter-Domain Routing: BGP II

Interdomain Routing Reading: Sections K&R EE122: Intro to Communication Networks Fall 2007 (WF 4:00-5:30 in Cory 277)

This appendix contains supplementary Border Gateway Protocol (BGP) information and covers the following topics:

Link State Routing & Inter-Domain Routing

TELE 301 Network Management

Inter-Domain Routing: BGP II

Network Layer: Control Plane 5-2

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

CSC 8560 Computer Networks: Control Plane

Routing part 2. Electrical and Information Technology

Network Protocols. Routing. TDC375 Autumn 03/04 John Kristoff - DePaul University 1

Transcription:

Chair for Network Architectures and Services Prof. Carle Department of Computer Science TU München Master Course Computer Networks IN2097 Prof. Dr.-Ing. Georg Carle Christian Grothoff, Ph.D. Stephan Günther Chair for Network Architectures and Services Department of Computer Science Technische Universität München http://www.net.in.tum.de

Chair for Network Architectures and Services Prof. Carle Department of Computer Science TU München Routing

Topics q q q q q q q Routing and forwarding Routing algorithms recapitulated Link state Distance Vector Path Vector Intradomain routing protocols RIP OSPF Interdomain routing Hierarchical routing BGP Business considerations Policy routing Traffic engineering Routing security Multicast routing Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 3

Inconsistent Topology Information q Typical causes (not exhaustive) One router finished with calculations, another one not yet Relevant information has not yet reached entire network LS: Broadcasts = fast DV: Receive message, calculate table, inform neighbours: slow DV: Count-to-infinity problem LS: Different algorithm implementations! LS: Problem if there is no clear rule for handling equal-cost routes q Possible consequences? Erroneously assuming some destination is not reachable Routing loops Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 4

Inter-AS Routing vs. Intra-AS Routing q Autonomous Systems World: > 37.000 Autonomous Systems Europe: > 19.000 Autonomous Systems Germany: > 1.200 Autonomous Systems q Subsequently: closer look at Intra-AS Routing Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 5

Intra-AS Routing q Also known as Interior Gateway Protocols (IGP) q Most common Intra-AS routing protocols: RIP: Routing Information Protocol DV (typically small systems - lower tier or enterprise networks) OSPF: Open Shortest Path First hierarchical LS (typically medium to large systems - upper tier ISPs) IS-IS: Intermediate System to Intermediate System hierarchical LS (typically medium-sized ASes) (E)IGRP: (Enhanced) Interior Gateway Routing Protocol (Cisco proprietary) hybrid of LS and DV Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 6

RIP - Routing Information Protocol q Distance vector algorithm q Included in BSD-UNIX Distribution in 1982 q Distance metric: # of hops (max = 15 hops, 16) q Sometimes still in use by small ISPs From router A to subnets: z u A C B D v y w x destination hops u 1 v 2 w 2 x 3 y 3 z 2 Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 7

OSPF - Open Shortest Path First q Open : publicly available (vs. vendor-specific, e.g., EIGRP: Cisco-proprietary) q Uses Link State algorithm LS packet dissemination (broadcasts) Unidirectional edges ( costs may differ by direction) Topology map at each node Route computation using Dijkstra s algorithm q OSPF advertisement carries one entry per neighbour router q Advertisements disseminated to entire AS (via flooding) (exception: hierarchical OSPF, see subsequent slides) carried in OSPF messages directly over IP (no TCP or UDP) Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 8

OSPF Advanced Features (not in, e.g., RIP) q Security: all OSPF messages authenticated (to prevent malicious intrusion) q Multiple same-cost paths allowed (only one path in RIP): ECMP (equal-cost multipath) for link load balancing q For each link, multiple cost metrics for different Type of Service (TOS): e.g., satellite link cost set to low for best effort, but to high for real-time traffic (e.g. for telephony traffic) q Integration of multicast support: Multicast OSPF (MOSPF) - RFC1584 Uses same topology data base as OSPF less routing protocol traffic q Hierarchical OSPF in large domains q Significantly reduces number of broadcast messages Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 9

OSPF (Open Shortest Path First) q RFC 2328: OSPF v2, 244 pages q Link advertisements broadcasts after state change (cost, up/down status) periodically (at least every 30 minutes) q Authentication of advertisements different authentication procedure possible for each subnet auth type field and 64-bit auth field in OSPF packet header message digest appended to OSPF packet header q OSPF Protocol does not specify policy for how to set link costs local decision (AS administrator) OSPF is just the protocol for least-cost-routing traffic engineering with OSPF: setting link costs such that OSPF routing results in desired routing of flows Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 10

Dynamic (Congestion-Sensitive) Routing? q Congestion-sensitive routing may lead to oscillations q e.g., link cost = amount of carried traffic implication: link costs not necessarily symmetric 2+e 1 A 1+e D 0 0 B 0 e C 1 1 e initially 2+e A 0 D B 0 1+e 1 0 C recompute 0 A 2+e D B 1 0 0 1+e C recompute 2+e A 0 D B 0 1+e 1 e C recompute q Why is this a bad thing? Possibly sub-optimal choice of paths (as in example above) Inconsistent topology information during convergence Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 11

Hierarchical OSPF Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 12

Hierarchical OSPF q OSPF can create a two-level hierarchy (similar, but not identical to inter-as and intra-as routing within an AS) q Two levels: local areas and the backbone Link-state advertisements only within local area Each node has detailed area topology; but only knows coarse direction to networks in other areas (shortest path to border router) q Area border routers: summarize distances to networks in own area; advertise distances to other Area Border and Boundary routers q Backbone routers: run OSPF routing limited to backbone q Boundary routers: connect to other ASes The outside world another area Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 13

Hierarchical Routing in the Internet simple viewpoint q all routers identical q network flat vs. reality: Scale = billions of destinations: q Cannot store all destinations in routing tables q Routing table exchange would swamp links q Thousands of OSPF Areas? Would not scale! Administrative autonomy q Internet = network of networks q Each network admin may want to control routing in its own network no central administration! Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 14

Hierarchical Routing q Aggregate routers into regions called autonomous systems (short: AS; plural: ASes) One AS one ISP / university q Routers in same AS run same routing protocol = intra-as routing protocol (also called intra-domain ) Routers in different ASes can run different intra-as routing protocols q ASes are connected: via gateway routers Direct link to [gateway] router in another AS = inter-as routing protocol (also called inter-domain ) Warning: Non-gateway routers need to know about inter-as routing as well! Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 15

Interconnected ASes 3c 3a 3b AS3 1a 1c 1d 1b Intra-AS Routing algorithm AS1 Forwarding table Inter-AS Routing algorithm 2a 2c AS2 2b q Forwarding table configured by both intra- and inter-as routing algorithm: Intra-AS routing algorithm sets entries for internal destinations Inter-AS and intra-as routing algorithms set entries for external destinations Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 16

Inter-AS Tasks q Suppose router in AS1 receives datagram destined outside of AS1: Router should forward packet to gateway router but to which one? AS1 must: 1. learn which destinations are reachable through AS2, which through AS3 2. propagate this reachability info to all routers in AS1 (i.e., not just the gateway routers) Job of inter-as routing! 3c 3a 3b AS3 1a 1c 1d 1b AS1 2a 2c AS2 2b Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 17

Example: Setting forwarding table in a router q Suppose AS1 learns (via inter-as protocol) that subnet x is reachable via AS3 (gateway 1c) but not via AS2. q Inter-AS protocol propagates reachability info to all internal routers. q Router 1d determines from intra-as routing info that its interface I (i.e., interface to 1a) is on the least cost path to 1c. installs forwarding table entry (x,i) 3c 3a 3b AS3 1a x l 1c 1d 1b AS1 2a 2c AS2 2b Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 18

Example: Choosing among multiple ASes q Now suppose AS1 learns from inter-as protocol that subnet x is reachable from AS3 and from AS2. q To configure forwarding table, router 1d must determine towards which gateway it should forward packets for destination x. Do we like AS2 or AS3 better? Also the job of inter-as routing protocol! 3c 3a 3b AS3 x 1c 1a 1d 1b AS1 2a 2c AS2 2b Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 19

Interplay of inter-as and intra-as routing q Inter-AS routing Only for destinations outside of own AS Used to determine gateway router Also: Steers transit traffic (from AS x to AS y via our own AS) q Intra-AS routing Used for destinations within own AS Used to reach gateway router for destinations outside own AS Often, routers need to run both types of routing protocols even if they are not directly connected to other ASes! Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 20

Path Vector protocols q Problem with Distance Vector protocol: Path cost is anonymous single number; does not contain any topology information q Path Vector protocol: For each destination, advertise entire path (=sequence of node identifiers) to neighbours Cost calculation can be done by looking at path E.g., count number of hops on the path Easy loop detection: Does my node ID already appear in the path? q Not used very often only in BGP and BGP is much more complex than just paths Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 21

Internet inter-as routing: BGP q q q BGP (Border Gateway Protocol): The de facto standard for inter-as routing BGP provides each AS a means to: 1. Obtain subnet reachability information from neighbouring ASes. 2. Propagate reachability information to all AS-internal routers. 3. Determine good routes to subnets based on reachability information and policy. Allows an AS to advertise the existence of an IP prefix to rest of Internet: This subnet is here Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 22

BGP Basics q Pairs of routers (BGP peers) exchange routing info over semi-permanent TCP connections: BGP sessions BGP sessions need not correspond to physical links! q When AS2 advertises an IP prefix to AS1: AS2 promises it will forward IP packets towards that prefix AS2 can aggregate prefixes in its advertisement (e.g.: 10.11.12.0/26, 10.11.12.64/26, 10.11.12.128/25 into 10.11.12.0/24) Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 23

How does BGP work? q BGP = path++ vector protocol q BGP messages exchanged using TCP Possible to run ebgp sessions not on border routers q BGP Message types: OPEN: set up new BGP session, after TCP handshake NOTIFICATION: an error occurred in previous message tear down BGP session, close TCP connection KEEPALIVE: null data to prevent TCP timeout/auto-close; also used to acknowledge OPEN message UPDATE: Announcement: inform peer about new / changed route to some target Withdrawal: (inform peer about non-reachability of a target) Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 24

Path Attributes & BGP Routes q Advertised prefix includes [many] BGP attributes prefix + attributes = route q Most important attributes: AS-PATH: contains ASes through which prefix advertisement has passed: e.g., AS 67, AS 17, AS 7018 NEXT-HOP: indicates specific internal-as router to next-hop AS (may be multiple links from current AS to next-hop-as) q When gateway router receives route advertisement, it uses an import policy to accept/decline the route More on this later Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 25

BGP Updates q Update (Announcement) message consists of Destination (IP prefix) AS Path (=Path vector) Next hop (=IP address of our router connecting to other AS) q but update messages also contain a lot of further attributes: Local Preference: used to prefer one gateway over another Origin: route learned via { intra-as inter-as unknown } MED: Multi-Exit Discriminators - e.g. to announce which of several links are preferred for inbound traffic Community: attribute tags applied to prefixes to achieve some common goal on how prefixes are to be treated, e.g. geographic or peer type restrictions (RFC 1997). community attribute is transitive, but communities applied by customer rarely propagated outside next-hop AS Not a pure path vector protocol: More than just the path vector Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 26

ebgp and ibgp q External BGP: between routers in different ASes q Internal BGP: between routers in same AS Remember: In spite of intra-as routing protocol, all routers need to know about external destinations (not only border routers) full IBGP mesh, or route reflectors, or confederations q No different protocols just slightly different configurations! 3c x 3a 3b AS3 1a AS1 1c 1d ebgp session ibgp session 1b 2a 2c AS2 2b Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 27

Distributing Reachability Information q Using ebgp session between 3a and 1c, AS3 sends reachability information about prefix x to AS1. 1c can then use ibgp to distribute new prefix information to all routers in AS1 1b can then re-advertise new reachability information to AS2 over 1b-to-2a ebgp session q When router learns of new prefix x, it creates entry for prefix in its forwarding table. 3c x 3a 3b AS3 1a AS1 1c 1d ebgp session ibgp session 1b 2a AS2 2c 2b Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 28

AS Numbers q How do we express a BGP path? q ASes identified by AS Numbers (short: ASN) Examples: TUM-I8-AS = AS56357 Leibniz-Rechenzentrum = AS12816 Deutsche Telekom = AS3320 AT&T = AS7018, AS7132, AS2685, AS2686, AS2687 q ASNs used to be 16bit, but can be 32bit nowadays May have problems with 32bit ASNs on very old routers q ASN assignment: similar to IP address space ASN space administered IANA Local registrars, e.g., RIPE NCC in Europe Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 29

BGP update: Very Simple Example q Type: Announcement Either this is a new route to the indicated destination, or the existing route has been changed q Destination prefix: 10.11.128.0/17 q AS Path: 7018 3320 4711 815 12816 Current AS q Next Hop: 192.168.69.96 Originator: The AS that owns 10.11.128.0/17 The router that connects the current AS to AS 3320 How the update travelled How the IP packets will be forwarded (if this route gets chosen) Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 30

BGP Route Selection q q Router may learn about more than 1 route to some prefix Router must select the best one among these Elimination rules (simplified): 0. WEIGHT: local to the router (i.e. not transmitted by BGP) 1. Local preference value attribute: policy decision if there are several routes, the one with the highest LOCAL_PREFERENCE is chosen 2. Shortest AS-PATH 3. Closest NEXT-HOP router hot potato routing ( next slide) 4. Additional criteria Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 31

Business and Hot-potato routing q Interaction between Inter-AS and Intra-AS routing Business: If traffic is destined for other AS, get rid of it ASAP Technical: Intra-AS routing finds shortest path to gateway q Multiple transit points asymmetrical routing q Asymmetrical paths are very common on the Internet Host A AS 7018 Atlantic ocean AS 3320 Host B Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 32

Terminology: Transit AS, stub AS, multi-homed AS Transit AS: Relays traffic between other Ases (Only about 15% of all ASes are Transit ASes.) Stub AS: Buys transit from only one other AS, but does not offer transit for other ASes Multi-homed AS: Buys transit from 2 other ASes, but does not offer transit for other ASes Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 33

Business relationships q q q q q Internet = network of networks (ASes) Many thousands of ASes Not every network connected to every other network BGP used for routing between ASes Differences in economical power/importance Some ASes huge, intercontinental (AT&T, Cable&Wireless) Some ASes small / local (e.g., München: M-Net, SpaceNet) Small ASes customers of larger ASes: Transit traffic Smaller AS pays for connecting link + for data = buys transit Business relationship = customer provider Equal-size/-importance ASes Usually share cost for connecting link[s] Business relationship = peering (specific transit traffic is for free) Warning: peering ( equal-size AS) peers of a BGP connection (also may be customer or provider) peer-to-peer network Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 34

Business and policy routing (1) q Basic principle #1 (Routing) Prefer routes that incur financial gain q Corollary: If you have the choice, then routes via a customer are better than routes via a peer, which are better than routes via a provider. q Basic principle #2 (Route announcement) Announce routes that incur financial gain if others use them Others = customers Announce routes that reduce costs if others use them Others = peers Do not announce routes that incur financial loss ( as long as alternative paths exist) Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 35

Business and policy routing (2) q A tells C all routes it uses to reach other ASes The more traffic comes from C, the more money A makes A provider customer C Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 36

Business and policy routing (3) q A and B tell C all routes they use to reach other ASes The more traffic flows from C to A, the more money A makes The more traffic flows from C to B, the more money B makes C will pick the one with the cheaper offer / better quality / A B provider customer C provider customer Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 37

Business and policy routing (4) q C tells A its own prefixes; C tells B its own prefixes C wants to be reachable from outside q C does not tell A routes learned from/via B C does not tell B routes learned from/via A C does not want to pay money for traffic A C B A B provider customer C provider customer Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 38

Business and policy routing (5): AS path prepending q C tells A its own prefixes q C may tell B its own prefixes but inserts C multiple times into AS path. Why? Result: Route available, but longer path = less attractive Technique is called AS path prepending A B cheap provider customer C expensive provider customer Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 39

AS path prepending q The same ASN subsequently within an AS path does not constitute a loop q Recall the elimination rule for selecting from multiple path alternatives Prefer the shortest AS path is rule 2 Only ignored if LOCAL_PREFERENCE value is set AS path prepending makes a route less attractive will then only be used when there is no alternative q How many times to repeat the AS number? Usually just 1 or 2 repetitions More than 5 is useless Network IN2097 - Master Security, Course WS 2008/09, Computer Chapter Networks, 9 WS 2012/2013 40