Routing Basics ISP/IXP Workshops

Similar documents
Routing Basics ISP/IXP Workshops

Routing Basics. Routing Concepts. IPv4. IPv4 address format. A day in a life of a router. What does a router do? IPv4 Routing

Routing Concepts. IPv4 Routing Forwarding Some definitions Policy options Routing Protocols

Routing Basics. ISP Workshops. Last updated 10 th December 2015

Routing Basics. ISP Workshops

Routing Basics. Campus Network Design & Operations Workshop

Small additions by Dr. Enis Karaarslan, Purdue - Aaron Jarvis (Network Engineer)

Back to basics J. Addressing is the key! Application (HTTP, DNS, FTP) Application (HTTP, DNS, FTP) Transport. Transport (TCP/UDP) Internet (IPv4/IPv6)

Campus Networking Workshop CIS 399. Core Network Design

BGP Tutorial. APRICOT 2003, Taipei February Philip Smith APRICOT , Cisco Systems, Inc. All rights reserved.

shortcut Tap into learning NOW! Visit for a complete list of Short Cuts. Your Short Cut to Knowledge

Planning for Information Network

Introduction to Dynamic Routing Protocols

Routing Basics. SANOG July, 2017 Gurgaon, INDIA

Ravi Chandra cisco Systems Cisco Systems Confidential

BGP Tutorial. APRICOT 2004, Kuala Lumpur February Philip Smith APRICOT , Cisco Systems, Inc. All rights reserved.

ISP and IXP Design. Point of Presence Topologies. ISP Network Design. PoP Topologies. Modular PoP Design. PoP Design INET 2000 NTW

Internet Routing Basics

Routing Protocols and

Dynamic Routing. The Protocols

BTEC Level 3 Extended Diploma

Chapter 3. Introduction to Dynamic Routing Protocols. CCNA2-1 Chapter 3

APNIC Routing II Workshop

SEMESTER 2 Chapter 3 Introduction to Dynamic Routing Protocols V 4.0

Interplay Between Routing, Forwarding

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Antonio Cianfrani. Routing Protocols

Routing Overview. Information About Routing CHAPTER

Routing Overview for Firepower Threat Defense

Information About Routing

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

Chapter 7: Routing Dynamically. Routing & Switching

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

internet technologies and standards

IP addressing. Overview. IP addressing Issues and solution Variable Length Subnet Mask (VLSM)

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery

TDC 363 Introduction to LANs

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

Introduction to BGP ISP/IXP Workshops

Basic Idea. Routing. Example. Routing by the Network

Introduction to OSPF

Computer Networks II IPv4 routing

Routing & Protocols 1

Routing by the Network

LARGE SCALE IP ROUTING LECTURE BY SEBASTIAN GRAF

Determining IP Routes. 2000, Cisco Systems, Inc. 9-1

ROUTING PROTOCOLS. Mario Baldi Routing - 1. see page 2

Table of Contents. Cisco Introduction to EIGRP

INTERNET TEACHING LAB: Interior Gateway Protocol (IGP) LAB

Chapter 4: Advanced Internetworking. Networking CS 3470, Section 1

Border Gateway Protocol

Routing Overview. Path Determination

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

Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load

IP Routing. Bharat S. Chaudhari International Institute of Information Technology Pune, India

Unit 3: Dynamic Routing

Overview. Information About Layer 3 Unicast Routing. Send document comments to CHAPTER

Why dynamic route? (1)

ibgp Multipath Load Sharing

Routing. Advanced Computer Networks: Routing 1

COMP/ELEC 429 Introduction to Computer Networks

Basic IP Routing. Finding Feature Information. Information About Basic IP Routing. Variable-Length Subnet Masks

Introduction to IP Routing. Geoff Huston

Routing. Info 341 Networking and Distributed Applications. Addresses, fragmentation, reassembly. end-to-end communication UDP, TCP

CS4700/CS5700 Fundamentals of Computer Networks

Routing, Routing Algorithms & Protocols

Introduction to Computer Networks

Internet Routing Protocols, DHCP, and NAT

Tag Switching. Background. Tag-Switching Architecture. Forwarding Component CHAPTER

Introduction to Routing

Two types of routing protocols are used in internetworks: interior gateway protocols (IGPs) and exterior gateway protocols (EGPs).

Chapter 4: Manipulating Routing

CSC458 Lecture 6. Administrivia. Inter-domain Routing IP Addressing. Midterm will Cover Following Topics (2) Midterm will Cover Following Topics

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

Connecting to a Service Provider Using External BGP

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

Internet Routing Protocols Tuba Saltürk

CSE/EE 461 Lecture 11. Inter-domain Routing. This Lecture. Structure of the Internet. Focus How do we make routing scale?

Basic IP Routing. Finding Feature Information. Information About Basic IP Routing. Variable-Length Subnet Masks

Top-Down Network Design

Module 14 Transit. Objective: To investigate methods for providing transit services. Prerequisites: Modules 12 and 13, and the Transit Presentation

Introduction to BGP. ISP Workshops. Last updated 30 October 2013

Introduction to OSPF

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Examination IP routning inom enkla datornät, DD2490 IP routing in simple networks, DD2490 KTH/CSC. Date: 20 May :00 19:00 SOLUTIONS

Routing(2) Inter-domain Routing

IP Addressing & Interdomain Routing. Next Topic

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

RIP Version 2. The Classless Brother

Routing. Directly Connected IP Networks. Data link layer routing. ifconfig command

Routing(2) Inter-domain Routing

IPv6 Switching: Provider Edge Router over MPLS

Routing in the Internet

Introduction to IS-IS

Introduction to OSPF

Chapter 5 RIP version 1

Introduction to OSPF OSPF. Link State Routing. Link State. Fast Convergence. Low Bandwidth Utilisation

Lecture 12. Introduction to IP Routing. Why introduction? Routing

! Distance vector routing! Link state routing.! Path vector routing! BGP: Border Gateway Protocol! Route aggregation

Symbols. Numerics I N D E X

Transcription:

Routing Basics ISP/IXP Workshops 1

Routing Concepts IPv4 Routing Forwarding Some definitions Policy options Routing Protocols 2

IPv4 Internet uses IPv4 addresses are 32 bits long range from 1.0.0.0 to 223.255.255.255 0.0.0.0 to 0.255.255.255 and 224.0.0.0 to 255.255.255.255 have special uses IPv4 address has a network portion and a host portion 3

IPv4 address format Address and subnet mask written as 12.34.56.78 255.255.255.0 or 12.34.56.78/24 mask represents the number of network bits in the 32 bit address the remaining bits are the host bits 4

What does a router do?? 5

A day in a life of a router find path forward packet, forward packet, forward packet, forward packet... find alternate path forward packet, forward packet, forward packet, forward packet repeat until powered off 6

Routing versus Forwarding Routing = building maps and giving directions Forwarding = moving packets between interfaces according to the directions 7

IP Routing finding the path Path derived from information received from a routing protocol Several alternative paths may exist best next hop stored in forwarding table Decisions are updated periodically or as topology changes (event driven) Decisions are based on: topology, policies and metrics (hop count, filtering, delay, bandwidth, etc.) 8

IP route lookup Based on destination IP packet longest match routing more specific prefix preferred over less specific prefix example: packet with destination of 10.1.1.1/32 is sent to the router announcing 10.1/16 rather than the router announcing 10/8. 9

IP route lookup Based on destination IP packet Packet: Destination IP address: 10.1.1.1 R3 All 10/8 except 10.1/16 R1 R2 R4 10/8 fi R3 10.1/16 fi R4 20/8 fi R5 30/8 fi R6.. R2 s IP routing table 10.1/16 10

IP route lookup: Longest match routing Based on destination IP packet Packet: Destination IP address: 10.1.1.1 R3 All 10/8 except 10.1/16 R1 R2 R4 10/8 fi R3 10.1/16 fi R4 20/8 fi R5 30/8 fi R6.. R2 s IP routing table 10.1.1.1 && FF.0.0.0 vs. 10.0.0.0 && FF.0.0.0 Match! 10.1/16 11

IP route lookup: Longest match routing Based on destination IP packet Packet: Destination IP address: 10.1.1.1 R3 All 10/8 except 10.1/16 R1 R2 R4 10/8 fi R3 10.1/16 fi R4 20/8 fi R5 30/8 fi R6.. R2 s IP routing table 10.1.1.1 && FF.FF.0.0 10.1/16 vs. Match as well! 10.1.0.0 && FF.FF.0.0 12

IP route lookup: Longest match routing Based on destination IP packet Packet: Destination IP address: 10.1.1.1 R3 All 10/8 except 10.1/16 R1 R2 R4 10/8 fi R3 10.1/16 fi R4 20/8 fi R5 30/8 fi R6.. R2 s IP routing table 10.1.1.1 && FF.0.0.0 vs. 20.0.0.0 && FF.0.0.0 Does not match! 10.1/16 13

IP route lookup: Longest match routing Based on destination IP packet Packet: Destination IP address: 10.1.1.1 R3 All 10/8 except 10.1/16 R1 R2 R4 10/8 fi R3 10.1/16 fi R4 20/8 fi R5 30/8 fi R6.. R2 s IP routing table 10.1.1.1 && FF.0.0.0 vs. 30.0.0.0 && FF.0.0.0 Does not match! 10.1/16 14

IP route lookup: Longest match routing Based on destination IP packet Packet: Destination IP address: 10.1.1.1 R3 All 10/8 except 10.1/16 R1 R2 R4 10/8 fi R3 10.1/16 fi R4 20/8 fi R5 30/8 fi R6.. R2 s IP routing table Longest match, 16 bit netmask 10.1/16 15

IP Forwarding Router makes decision on which interface a packet is sent to Forwarding table populated by routing process Forwarding decisions: destination address class of service (fair queuing, precedence, others) local requirements (packet filtering) Can be aided by special hardware 16

Routing Tables Feed the Forwarding Table BGP 4 Routing Table Forward Table OSPF Link State Database Static Routes 17

Explicit versus Default routing Default: simple, cheap (cycles, memory, bandwidth) low granularity (metric games) Explicit (default free zone) high overhead, complex, high cost, high granularity Hybrid minimise overhead provide useful granularity requires some filtering knowledge 18

Egress Traffic How packets leave your network Egress traffic depends on: route availability (what others send you) route acceptance (what you accept from others) policy and tuning (what you do with routes from others) Peering and transit agreements 19

Ingress Traffic How packets get to your network and your customers networks Ingress traffic depends on: what information you send and to whom based on your addressing and AS s based on others policy (what they accept from you and what they do with it) 20

Autonomous System (AS) AS 100 Collection of networks with same routing policy Single routing protocol Usually under single ownership, trust and administrative control 21

Definition of terms Neighbours AS s which directly exchange routing information Announce send routing information to a neighbour Accept receive and use routing information sent by a neighbour Originate insert routing information into external announcements (usually as a result of the IGP) Peers routers in neighbouring AS s or within one AS which exchange routing and policy information 22

Routing flow and packet flow packet flow accept announce AS 1 routing flow announce accept AS 2 packet flow For networks in AS1 and AS2 to communicate: AS1 must announce to AS2 AS2 must accept from AS1 AS2 must announce to AS1 AS1 must accept from AS2 23

Routing flow and Traffic flow Traffic flow is always in the opposite direction of the flow of routing information filtering outgoing routing information inhibits traffic flowing in filtering incoming routing information inhibits traffic flowing out 24

Routing policy limitations red Internet red AS99 green green packet flow AS99 uses red link for traffic going to the red AS and green link for traffic going to the green AS To implement this policy for AS99: accept routes originating in the red AS on the red link accept all other routes on the green link 25

Routing policy limitations red green AS22 Internet green red AS99 packet flow For packets flowing toward AS 99: Unless AS 22 and all other intermediate AS s co-operate in pushing green traffic to the green link then some reasonable policies can not be implemented. 26

Routing policy with multiple ASes AS 1 N1 AS 8 AS 34 AS16 N16 For net N1 in AS1 to send traffic to net N16 in AS16: AS16 must originate and announce N16 to AS8. AS8 must accept N16 from AS16. AS8 must announce N16 to AS1 or AS34. AS1 must accept N16 from AS8 or AS34. For two-way packet flow, similar policies must exist for N1. 27

Routing policy with multiple AS s AS 1 N1 AS 8 AS 34 AS16 N16 As multiple paths between sites are implemented it is easy to see how policies can become quite complex. 28

Granularity of routing policy What to announce/accept Preferences between multiple accepts single route routes originated by single AS routes originated by a group of AS s routes traversing specific path routes traversing specific AS routes belonging to other groupings (including combinations) 29

Routing Policy Issues 120000 prefixes (not realistic to set policy on all of them individually) 15000 origin AS s (too many) routes tied to a specific AS or path may be unstable regardless of connectivity groups of AS s are a natural abstraction for filtering purposes 30

What Is an IGP? Interior Gateway Protocol Within an Autonomous System Carries information about internal infrastructure prefixes Examples OSPF, ISIS, EIGRP 31

Why Do We Need an IGP? ISP backbone scaling Hierarchy Modular infrastructure construction Limiting scope of failure Healing of infrastructure faults using dynamic routing with fast convergence 32

What Is an EGP? Exterior Gateway Protocol Used to convey routing information between Autonomous Systems De-coupled from the IGP Current EGP is BGP 33

Why Do We Need an EGP? Scaling to large network Hierarchy Limit scope of failure Define Administrative Boundary Policy Control reachability to prefixes Merge separate organizations Connect multiple IGPs 34

Interior versus Exterior Routing Protocols Interior automatic neighbour discovery generally trust your IGP routers prefixes go to all IGP routers binds routers in one AS together Exterior specifically configured peers connecting with outside networks set administrative boundaries binds AS s together 35

Interior versus Exterior Routing Protocols Interior Carries ISP infrastructure addresses only ISPs aim to keep the IGP small for efficiency and scalability Exterior Carries customer prefixes Carries Internet prefixes EGPs are independent of ISP network topology 36

Hierarchy of Routing Protocols Other ISPs BGP4 BGP4 and OSPF/ISIS FDDI BGP4 Local NAP Customers Static/BGP4 37

Default Administrative Distances Route Source Default Distance Connected Interface 0 Static Route 1 Enhanced IGRP Summary Route 5 External BGP 20 Internal Enhanced IGRP 90 IGRP 100 OSPF 110 IS-IS 115 RIP 120 EGP 140 External Enhanced IGRP 170 Internal BGP 200 Unknown 255 38

Routing Basics ISP/IXP Workshops 39