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

Similar documents
Routing Basics ISP/IXP Workshops

Routing Basics ISP/IXP Workshops

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)

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

Campus Networking Workshop CIS 399. Core Network Design

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

Internet Routing Basics

APNIC Routing II Workshop

Routing Basics. SANOG July, 2017 Gurgaon, INDIA

Dynamic Routing. The Protocols

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

Ravi Chandra cisco Systems Cisco Systems Confidential

Planning for Information Network

BTEC Level 3 Extended Diploma

Introduction to Dynamic Routing Protocols

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

internet technologies and standards

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

Routing Protocols and

Introduction to BGP ISP/IXP Workshops

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

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

Chapter 7: Routing Dynamically. Routing & Switching

Interplay Between Routing, Forwarding

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

Antonio Cianfrani. Routing Protocols

Introduction to BGP. ISP/IXP Workshops

Basic Idea. Routing. Example. Routing by the Network

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

Routing Overview for Firepower Threat Defense

Routing by the Network

SEMESTER 2 Chapter 3 Introduction to Dynamic Routing Protocols V 4.0

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

Routing Overview. Information About Routing CHAPTER

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

Computer Networks II IPv4 routing

Service Provider Multihoming

Advanced Multihoming. BGP Traffic Engineering

Routing Overview. Path Determination

Information About Routing

Connecting to a Service Provider Using External BGP

COMP/ELEC 429 Introduction to Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Table of Contents. Cisco Introduction to EIGRP

Border Gateway Protocol

Service Provider Multihoming

Unit 3: Dynamic Routing

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

TDC 363 Introduction to LANs

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

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

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

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

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

Introduction to IP Routing. Geoff Huston

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

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

Why dynamic route? (1)

Introduction to BGP. BGP Basics BGP. Border Gateway Protocol. Path Vector Protocol. Path Vector Protocol INET 2000 NTW

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

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

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

Introduction to OSPF

LARGE SCALE IP ROUTING LECTURE BY SEBASTIAN GRAF

Routing & Protocols 1

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

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

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

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

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

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

Introduction to Routing

Multi Topology Routing Truman Boyes

Chapter 4: Manipulating Routing

Module 6 Implementing BGP

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

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

Network Layer (Routing)

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

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

Introduction to Computer Networks

Internet Routing Protocols, DHCP, and NAT

Routing, Routing Algorithms & Protocols

Routing in the Internet

Introduction to IS-IS

Symbols. Numerics I N D E X

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

Routing Protocols --- Exterior Gateway Protocol

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

RIP Version 2. The Classless Brother

Introduction to OSPF

BGP. Autonomous system (AS) BGP version 4

Internet Routing Protocols Tuba Saltürk

Chapter 7 Routing Protocols

Top-Down Network Design

Transcription:

Routing Concepts IPv4 Routing Routing Basics ISP/IXP Workshops Forwarding Some definitions Policy options Routing Protocols 1 2 IPv4 IPv4 address format 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 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 3 4 What does a router do? 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 powe off 5 6 1

Routing versus Forwarding IP Routing finding the path Routing = building maps and giving directions Forwarding = moving packets between interfaces according to the directions Path derived from information received from a protocol Several alternative paths may exist best next hop sto 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.) 7 8 IP route lookup IP route lookup longest match more specific prefix prefer over less specific prefix example : packet with destination of 10.1.1.1/32 is sent to the router announcing rather than the router announcing 10/8. fi s IP table 9 10 fi s IP table 10.1.1.1 && FF.0.0.0 vs. 10.0.0.0 && FF.0.0.0 Match! fi s IP table 10.1.1.1 && FF.FF.0.0 vs. Match as well! 10.1.0.0 && FF.FF.0.0 11 12 2

fi s IP table 10.1.1.1 && FF.0.0.0 vs. Does not match! 20.0.0.0 && FF.0.0.0 fi s IP table 10.1.1.1 && FF.0.0.0 vs. Does not match! 30.0.0.0 && FF.0.0.0 13 14 IP Forwarding fi s IP table Longest match, 16 bit netmask Router makes decision on which interface a packet is sent to Forwarding table populated by process Forwarding decisions: destination address class of service (fair queuing, precedence, others) local requirements (packet filtering) Can be aided by special hardware 15 16 Routing Tables Feed the Forwarding Table Explicit versus Default Default: Forward Table (FIB) Routing Information Base (RIB) BGP 4 Routing Table OSPF Link State Database Static Routes 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 17 18 3

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 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) 19 20 Autonomous System (AS) AS 100 Collection of networks with same policy Single protocol Usually under single ownership, trust and administrative control Definition of terms Neighbours AS s which directly exchange information Routers which exchange information Announce Accept send information to a neighbour receive and use information sent by a neighbour Originate Peers insert information into external announcements (usually as a result of the IGP) routers in neighbouring AS s or within one AS which exchange and policy information 21 22 Routing flow and Routing flow and Traffic flow accept announce AS 1 flow announce accept AS 2 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 Traffic flow is always in the opposite direction of the flow of Routing information Filtering outgoing information inhibits traffic flow inbound Filtering inbound information inhibits traffic flow outbound 23 24 4

Routing Flow/Packet Flow: With multiple ASes Routing Flow/Packet Flow: With multiple ASes AS 1 N1 AS 8 AS 34 AS16 N16 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, similar policies must exist for N1. As multiple paths between sites are implemented it is easy to see how policies can become quite complex. 25 26 Routing Policy Routing Policy Limitations Used to control traffic flow in and out of an ISP network ISP makes decisions on what information to accept and discard from its neighbours Individual routes Routes originated by specific ASes Routes traversing specific ASes Routes belonging to other groupings Groupings which you define as you see fit 27 Internet AS99 uses link for traffic to the AS and the link for remaining traffic To implement this policy, AS99 has to: Accept routes originating from the AS on the link Accept all other routes on the link AS99 28 Routing Policy Limitations Routing Policy Issues AS99 would like packets coming from the AS to use the link. But unless AS22 cooperates in pushing traffic from the AS down the link, there is very little that AS99 can do to achieve this aim Internet AS22 AS99 29 131000 prefixes (not realistic to set policy on all of them individually) 16500 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 5

Routing Protocols Routing Protocols We now know what means but what do the routers get up to? Routers use protocols to exchange information with each other IGP is used to refer to the process running on routers inside an ISP s network EGP is used to refer to the process running between routers bordering directly connected ISP networks 31 32 What Is an IGP? Why Do We Need an IGP? Interior Gateway Protocol Within an Autonomous System Carries information about internal infrastructure prefixes Examples OSPF, ISIS, EIGRP ISP backbone scaling Hierarchy Limiting scope of failure Only used for ISP s infrastructure addresses, not customers Design goal is to minimise number of prefixes in IGP to aid scalability and rapid convergence 33 34 What Is an EGP? Why Do We Need an EGP? Exterior Gateway Protocol Used to convey information between Autonomous Systems De-coupled from the IGP Current EGP is BGP Scaling to large network Hierarchy Limit scope of failure Define Administrative Boundary Policy Control reachability of prefixes Merge separate organizations Connect multiple IGPs 35 36 6

Interior versus Exterior Routing Protocols 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 configu peers connecting with outside networks set administrative boundaries binds AS s together 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 37 38 Hierarchy of Routing Protocols BGP4 Other ISPs BGP4 and OSPF/ISIS IXP BGP4 Static/BGP4 Customers 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 39 40 Routing Basics ISP/IXP Workshops 41 7