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

Similar documents
Routing Basics. ISP Workshops

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

Routing Basics. Campus Network Design & Operations Workshop

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 Basics ISP/IXP Workshops

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)

Internet Routing Basics

Routing Basics. SANOG July, 2017 Gurgaon, INDIA

APNIC Routing II Workshop

Campus Networking Workshop CIS 399. Core Network Design

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

Planning for Information Network

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

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

BTEC Level 3 Extended Diploma

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

Introduction to Dynamic Routing Protocols

Ravi Chandra cisco Systems Cisco Systems Confidential

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

Dynamic Routing. The Protocols

APNIC elearning: BGP Basics. 30 September :00 PM AEST Brisbane (UTC+10) Revision: 2.0

internet technologies and standards

Service Provider Multihoming

Advanced Multihoming. BGP Traffic Engineering

Service Provider Multihoming

Routing Protocols and

SEMESTER 2 Chapter 3 Introduction to Dynamic Routing Protocols V 4.0

Chapter 7: Routing Dynamically. Routing & Switching

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

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

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

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

Basic Idea. Routing. Example. Routing by the Network

Introduction. Keith Barker, CCIE #6783. YouTube - Keith6783.

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

Routing by the Network

Introduction to IP Routing. Geoff Huston

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

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

Introduction to BGP ISP/IXP Workshops

TDC 363 Introduction to LANs

Introduction to BGP. ISP/IXP Workshops

Antonio Cianfrani. Routing Protocols

Unit 3: Dynamic Routing

Routing Overview for Firepower Threat Defense

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

COMP/ELEC 429 Introduction to Computer Networks

Table of Contents. Cisco Introduction to EIGRP

CS4700/CS5700 Fundamentals of Computer Networks

Routing & Protocols 1

Information About Routing

Routing, Routing Algorithms & Protocols

Routing Overview. Path Determination

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

Routing Overview. Information About Routing CHAPTER

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

MPLS VPN C H A P T E R S U P P L E M E N T. BGP Advertising IPv4 Prefixes with a Label

Interplay Between Routing, Forwarding

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

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

Introduction to Routing

Inter-Domain Routing: BGP

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

The most simple way to accelerate a Router is at 9.8 m/sec/sec.

Chapter 7 Routing Protocols

Top-Down Network Design

Connecting to a Service Provider Using External BGP

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

Chapter 4: Manipulating Routing

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

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

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

Introduction to IS-IS

IP Addressing & Interdomain Routing. Next Topic

ICS 351: Today's plan. OSPF BGP Routing in general routing protocol comparison encapsulation network dynamics

Multi Topology Routing Truman Boyes

Module 6 Implementing BGP

Internet Routing : Fundamentals of Computer Networks Bill Nace

Computer Networks II IPv4 routing

Rev External BGP

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

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

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

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

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

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

RIP Version 2. The Classless Brother

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

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

Why dynamic route? (1)

University of Belgrade - School of Electrical Engineering Department of Telecommunications

BGP and the Internet

A configuration-only approach to shrinking FIBs. Prof Paul Francis (Cornell)

Securizarea Calculatoarelor și a Rețelelor 32. Tehnologia MPLS VPN

Symbols. Numerics I N D E X

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

Service Provider Multihoming

COMP9332 Network Routing & Switching

Transcription:

Routing Basics ISP Workshops Last updated 10 th December 2015 1

Routing Concepts p IPv4 & IPv6 p Routing p Forwarding p Some definitions p Policy options p Routing Protocols 2

IPv4 p Internet still uses IPv4 n (legacy protocol) n Addresses are 32 bits long n Addresses are written as decimal with each 8- bit range separated by a. n Range from 1.0.0.0 to 223.255.255.255 n 0.0.0.0 to 0.255.255.255 and 224.0.0.0 to 255.255.255.255 have special uses p IPv4 address has a network portion and a host portion 3

IPv6 p Internet is starting to use IPv6 n Addresses are 128 bits long n Addresses are written as hexadecimal with each 16-bit range separated by : n Internet addresses range from 2000::/16 to 3FFF::/16 n The remaining IPv6 range is reserved or has special uses p IPv6 address has a network portion and a host portion 4

IP address format p Address and subnet mask n IPv4 written as p 12.34.56.78 255.255.255.0 or p 12.34.56.78/24 n IPv6 written as p 2001:DB8:A::1/64 n mask represents the number of network bits in the address p Usually referred to as the subnet size n The remaining bits are the host bits 5

IP subnets p IPv4 example 12.34.56.78/24 n 32 bits in an IPv4 address p 24 bits for the network portion p Leaves 8 bits for the host portion p 8 bits means there are 2 8 possible hosts on this subnet p IPv6 example 2001:DB8:A::1/64 n 128 bits in an IPv6 address p 64 bits for the network portion p Leaves 64 bits for the host portion p 64 bits means there are 2 64 possible hosts on this subnet 6

What does a router do? 7

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 8

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

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

IP route lookup p Based on destination IP address p longest match routing n More specific prefix preferred over less specific prefix n Example: packet with destination of 2001:DB8:1::1/128 is sent to the router announcing 2001:DB8:1::/48 rather than the router announcing 2001:DB8::/32. 11

IP route lookup p Based on destination IP address Packet: Destination IP address: 2001:db8:1::1 R3 2001:db8::/32 announced from here R1 R2 2001:db8::/32 R3 2001:db8:1::/48 R4 2001:db9::/32 R5 2001:dba::/32 R6 R2 s IP routing table R4 2001:db8:1::/48 announced from here 12

IP route lookup: Longest match routing p Based on destination IP address Packet: Destination IP address: 2001:db8:1::1 R3 2001:db8::/32 announced from here R1 R2 2001:db8::/32 R3 2001:db8:1::/48 R4 2001:db9::/32 R5 2001:dba::/32 R6 2001:db8:1::1 && ffff:ffff:: vs. Match! 2001:db8:: && ffff:ffff:: R4 2001:db8:1::/48 announced from here R2 s IP routing table 13

IP route lookup: Longest match routing p Based on destination IP address Packet: Destination IP address: 2001:db8:1::1 R3 2001:db8::/32 announced from here R1 2001:db8::/32 R3 2001:db8:1::/48 R4 2001:db9::/32 R5 2001:dba::/32 R6 R2 2001:db8:1::1 && ffff:ffff:ffff:: vs. 2001:db8:1:: && ffff:ffff:ffff:: Match as well! R4 2001:db8:1::/48 announced from here R2 s IP routing table 14

IP route lookup: Longest match routing p Based on destination IP address Packet: Destination IP address: 2001:db8:1::1 R3 2001:db8::/32 announced from here R1 R2 2001:db8::/32 R3 2001:db8:1::/48 R4 2001:db9::/32 R5 2001:dba::/32 R6 R2 s IP routing table 2001:db8:1::1 && ffff:ffff:: vs. 2001:db9:: && ffff:ffff:: R4 Does not match! 2001:db8:1::/48 announced from here 15

IP route lookup: Longest match routing p Based on destination IP address Packet: Destination IP address: 2001:db8:1::1 R3 2001:db8::/32 announced from here R1 2001:db8::/32 R3 2001:db8:1::/48 R4 2001:db9::/32 R5 2001:dba::/32 R6 R2 R4 2001:db8:1::/48 announced from 2001:db8:1::1 && ffff:ffff:: here vs. Does not match! 2001:dba:: && ffff:ffff:: R2 s IP routing table 16

IP route lookup: Longest match routing p Based on destination IP address Packet: Destination IP address: 2001:db8:1::1 R3 2001:db8::/32 announced from here R1 2001:db8::/32 R3 2001:db8:1::/48 R4 2001:db9::/32 R5 2001:dba::/32 R6 R2 R4 Longest match, 48 bit netmask 2001:db8:1::/48 announced from here R2 s IP routing table 17

IP Forwarding p Router decides which interface a packet is sent to p Forwarding table populated by routing process p Forwarding decisions: n destination address n class of service (fair queuing, precedence, others) n local requirements (packet filtering) p Forwarding is usually aided by special hardware 18

Routing Tables Feed the Forwarding Table Forwarding Information Base (FIB) Routing Information Base (RIB) BGP 4 Routing Table OSPF Link State Database Connected Routes Static Routes 19

RIBs and FIBs p FIB is the Forwarding Table n It contains destinations and the interfaces to get to those destinations n Used by the router to figure out where to send the packet n Careful! Some people still call this a route! n Cisco IOS: show ip cef p RIB is the Routing Table n It contains a list of all the destinations and the various next hops used to get to those destinations and lots of other information too! n One destination can have lots of possible next-hops only the best next-hop goes into the FIB n Cisco IOS: show ip route 20

Explicit versus Default Routing p Default: n Simple, cheap (CPU, memory, bandwidth) n No overhead n Low granularity (metric games) p Explicit: (default free zone) n Complex, expensive (CPU, memory, bandwidth) n High overhead n High granularity (every destination known) p Hybrid: n Minimise overhead n Provide useful granularity n Requires some filtering knowledge 21

Egress Traffic p How packets leave your network p Egress traffic depends on: n Route availability (what others send you) n Route acceptance (what you accept from others) n Policy and tuning (what you do with routes from others) n Peering and transit agreements 22

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

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

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

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 26

Routing flow and Traffic flow p Traffic flow is always in the opposite direction of the flow of Routing information n Filtering outgoing routing information inhibits traffic flow inbound n Filtering inbound routing information inhibits traffic flow outbound 27

Routing Flow/Packet Flow: With multiple ASes AS 1 N1 AS 8 AS 34 AS16 N16 p p For net N1 in AS1 to send traffic to net N16 in AS16: n n n n 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 28

Routing Flow/Packet Flow: With multiple ASes AS 1 N1 AS 8 AS 34 AS16 N16 p As more and more paths are implemented between sites it is easy to see how policies can become quite complex. 29

Routing Policy p Used to control traffic flow in and out of an ISP network p ISP makes decisions on what routing information to accept and discard from its neighbours n Individual routes n Routes originated by specific ASes n Routes traversing specific ASes n Routes belonging to other groupings p Groupings which you define as you see fit 30

Routing Policy Limitations red Internet red AS99 green green packet flow p AS99 uses red link for traffic to the red AS and the green link for remaining traffic p To implement this policy, AS99 has to: n Accept routes originating from the red AS on the red link n Accept all other routes on the green link 31

Routing Policy Limitations red Internet AS22 red AS99 green green packet flow p AS99 would like packets coming from the green AS to use the green link. p But unless AS22 cooperates in pushing traffic from the green AS down the green link, there is very little that AS99 can do to achieve this aim 32

Routing Policy Issues p December 2015: n 25100 IPv6 prefixes & 573000 IPv4 prefixes p Not realistic to set policy on all of them individually n 52200 origin AS s p Too many to try and create individual policies for p Routes tied to a specific AS or path may be unstable regardless of connectivity p Solution: Groups of AS s are a natural abstraction for filtering purposes 33

Routing Protocols We now know what routing means but what do the routers get up to? And why are we doing this anyway? 34

1: How Does Routing Work? p Internet is made up of the ISPs who connect to each other s networks p How does an ISP in Kenya tell an ISP in Japan what customers they have? p And how does that ISP send data packets to the customers of the ISP in Japan, and get responses back n After all, as on a local ethernet, two way packet flow is needed for communication between two devices 35

2: How Does Routing Work? p ISP in Kenya could buy a direct connection to the ISP in Japan n But this doesn t scale thousands of ISPs, would need thousands of connections, and cost would be astronomical p Instead, ISP in Kenya tells his neighbouring ISPs what customers he has n And the neighbouring ISPs pass this information on to their neighbours, and so on n This process repeats until the information reaches the ISP in Japan 36

3: How Does Routing Work? p This process is called Routing p The mechanisms used are called Routing Protocols p Routing and Routing Protocols ensures that n The Internet can scale n Thousands of ISPs can provide connectivity to each other n We have the Internet we see today 37

4: How Does Routing Work? p ISP in Kenya doesn t actually tell his neighbouring ISPs the names of the customers n (network equipment does not understand names) p Instead, he has received an IP address block as a member of the Regional Internet Registry serving Kenya n His customers have received address space from this address block as part of their Internet service n And he announces this address block to his neighbouring ISPs this is called announcing a route 38

Routing Protocols p Routers use routing protocols to exchange routing information with each other n IGP is used to refer to the process running on routers inside an ISP s network n EGP is used to refer to the process running between routers bordering directly connected ISP networks 39

What Is an IGP? p Interior Gateway Protocol p Within an Autonomous System p Carries information about internal infrastructure prefixes p Two widely used IGPs: n OSPF n IS-IS 40

Why Do We Need an IGP? p ISP backbone scaling n Hierarchy n Limiting scope of failure n Only used for ISP s infrastructure addresses, not customers or anything else n Design goal is to minimise number of prefixes in IGP to aid scalability and rapid convergence 41

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

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

Interior versus Exterior Routing Protocols p Interior n Automatic neighbour discovery n Generally trust your IGP routers n Prefixes go to all IGP routers n Binds routers in one AS together p Exterior n Specifically configured peers n Connecting with outside networks n Set administrative boundaries n Binds AS s together 44

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

Hierarchy of Routing Protocols Other ISPs BGP4 BGP4 and OSPF/IS-IS BGP4 Static/BGP4 IXP Customers 46

FYI: Default Administrative Distances Route Source Cisco Juniper Huawei Brocade Connected Interface 0 0 0 0 Static Route 1 5 60 1 EIGRP Summary Route 5 N/A? N/A External BGP 20 170 255 20 Internal EIGRP Route 90 N/A? N/A IGRP 100 N/A? N/A OSPF 110 10 10 110 IS-IS 115 18 15 115 RIP 120 100 100 120 EGP 140 N/A N/A N/A External EIGRP 170 N/A? N/A Internal BGP 200 170 255 200 Unknown 255 255? 255 47

Routing Basics ISP Workshops 48