Routing Basics.

Slides:



Advertisements
Similar presentations
Dynamic Routing Overview 1.
Advertisements

Chapter 22 Network Layer: Delivery, Forwarding, and Routing.
Dynamic Routing Scalable Infrastructure Workshop, AfNOG2008.
Routing Basics By Craig Lindstrom. Overview Routing Process Routing Process Default Routing Default Routing Static Routing Static Routing Dynamic Routing.
Copyright 2002 Year 2 - Chapter 5/Cisco 3 - Module 5 Routing Protocols: IGRP By Carl Marandola.
The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
© 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.
Mod 10 – Routing Protocols
CCNA 2 v3.1 Module 6.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Routing and Routing Protocols
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Considering the Advantages of Using BGP.
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Border Gateway Protocol (BGP4) Rizwan Rehman, CCS, DU.
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
Fundamentals of Networking Discovery 2, Chapter 6 Routing.
Computer Networks Layering and Routing Dina Katabi
Introduction to BGP 1. Border Gateway Protocol A Routing Protocol used to exchange routing information between different networks – Exterior gateway protocol.
CISCO NETWORKING ACADEMY Chabot College ELEC IP Routing Protocol Highlights.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Dr. John P. Abraham Professor University of Texas Pan American Internet Routing and Routing Protocols.
Internet Technologies and Applications
Click to edit Master subtitle style Chapter 10: Routing Protocols Instructor:
Routing and Routing Protocols Routing Protocols Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 6 Routing and Routing Protocols.
Dynamic Routing Chapter 9. powered by DJ 1. C HAPTER O BJECTIVES At the end of this Chapter you will be able to:  Explain Dynamic Routing  Identify.
Introduction to Dynamic Routing Protocol
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
1. 2 Anatomy of an IP Packet IP packets consist of the data from upper layers plus an IP header. The IP header consists of the following:
CCNA 1 Module 10 Routing Fundamentals and Subnets.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
Chapter 9. Implementing Scalability Features in Your Internetwork.
David Wetherall Professor of Computer Science & Engineering Introduction to Computer Networks Hierarchical Routing (§5.2.6)
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
More on Internet Routing A large portion of this lecture material comes from BGP tutorial given by Philip Smith from Cisco (ftp://ftp- eng.cisco.com/pfs/seminars/APRICOT2004.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Routing protocols. Static Routing Routes to destinations are set up manually Route may be up or down but static routes will remain in the routing tables.
IP Routing Principles. Network-Layer Protocol Operations Each router provides network layer (routing) services X Y A B C Application Presentation Session.
1 Version 3.1 Module 6 Routed & Routing Protocols.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
Routing Protocols Brandon Wagner.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—2-1 BGP Transit Autonomous Systems Forwarding Packets in a Transit AS.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Border Gateway Protocol Introduction
Cisco 2 - Routers Perrine modified by Brierley Page 13/21/2016 Chapter 4 Module 6 Routing & Routing Protocols.
Click to edit Master subtitle style Chapter 10: Routing Protocols.
© 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.
Year 2 - Chapter 5/Cisco 3 - Module 5 Routing Protocols: IGRP.
Introduction to OSPF Campus Networking Workshop These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
Working at a Small-to-Medium Business or ISP – Chapter 6
Click to edit Master subtitle style
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Routing and Routing Protocols: Routing Static
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
Chapter 3: Dynamic Routing
Routing and Routing Protocols: Routing Static
Dynamic Routing and OSPF
Working at a Small-to-Medium Business or ISP – Chapter 6
Computer Networks Protocols
Presentation transcript:

Routing Basics

Routing Concepts IPv4 Routing Forwarding Some definitions Policy options Routing Protocols

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

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

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 powered off

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

IP Routing – finding the path Path derived from information received from a routing protocol Several alternative paths may exist best path 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.)

IP route lookup Based on destination IP address “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.

IP route lookup Based on destination IP address 10/8 announced from here Packet: Destination IP address: 10.1.1.1 R1 R2 R4 10/8  R3 10.1/16  R4 20/8  R5 30/8  R6 ….. R2’s IP routing table 10.1/16 announced from here

IP route lookup: Longest match routing Based on destination IP address R3 10/8 announced from here Packet: Destination IP address: 10.1.1.1 R1 R2 R4 10/8  R3 10.1/16  R4 20/8  R5 30/8  R6 ….. 10.1.1.1 && FF.0.0.0 vs. 10.0.0.0 && FF.0.0.0 10.1/16 announced from here Match! R2’s IP routing table

IP route lookup: Longest match routing Based on destination IP address R3 10/8 announced from here Packet: Destination IP address: 10.1.1.1 R1 R2 R4 10/8  R3 10.1/16  R4 20/8  R5 30/8  R6 ….. R2’s IP routing table 10.1/16 announced from here 10.1.1.1 && FF.FF.0.0 vs. 10.1.0.0 && FF.FF.0.0 Match as well!

IP route lookup: Longest match routing Based on destination IP address R3 10/8 announced from here Packet: Destination IP address: 10.1.1.1 R1 R2 R4 10/8  R3 10.1/16  R4 20/8  R5 30/8  R6 ….. R2’s IP routing table 10.1/16 announced from here 10.1.1.1 && FF.0.0.0 vs. 20.0.0.0 && FF.0.0.0 Does not match!

IP route lookup: Longest match routing Based on destination IP address R3 10/8 announced from here Packet: Destination IP address: 10.1.1.1 R1 R2 R4 10/8  R3 10.1/16  R4 20/8  R5 30/8  R6 ….. 10.1/16 announced from here 10.1.1.1 && FF.0.0.0 vs. 30.0.0.0 && FF.0.0.0 Does not match! R2’s IP routing table

IP route lookup: Longest match routing Based on destination IP address R3 10/8 announced from here Packet: Destination IP address: 10.1.1.1 R1 R2 R4 10/8  R3 10.1/16  R4 20/8  R5 30/8  R6 ….. R2’s IP routing table 10.1/16 announced from here Longest match, 16 bit netmask

IP Forwarding Router decides 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) Forwarding is usually aided by special hardware

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

RIBs and FIBs FIB is the Forwarding Table RIB is the Routing Table It contains destinations and the interfaces to get to those destinations Used by the router to figure out where to send the packet Careful! Some people still call this a route! RIB is the Routing Table 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! One destination can have lots of possible next-hops – only the best next-hop goes into the FIB

Explicit versus Default Routing 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

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)

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

Definition of terms Neighbours Announce Accept Originate Peers AS’s which directly exchange routing information Routers which 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

Routing flow and packet flow accept announce AS 1 AS 2 routing flow announce accept 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

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 flow inbound Filtering inbound routing information inhibits traffic flow outbound

Routing Flow/Packet Flow: With multiple ASes 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

Routing Flow/Packet Flow: With multiple ASes As multiple paths between sites are implemented it is easy to see how policies can become quite complex.

Routing Policy Used to control traffic flow in and out of an ISP network ISP makes decisions on what routing 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

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

Routing Policy Limitations red Internet AS99 red AS22 green green packet flow AS99 would like packets coming from the green AS to use the green link. 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

Routing Policy Issues Late May 2012: 410000 prefixes Not realistic to set policy on all of them individually 42000 origin AS’s Too many to try and create individual policies for Routes tied to a specific AS or path may be unstable regardless of connectivity Solution: Groups of AS’s are a natural abstraction for filtering purposes

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

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

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

3: How Does Routing Work? This process is called “Routing” The mechanisms used are called “Routing Protocols” Routing and Routing Protocols ensures that the Internet can scale, that thousands of ISPs can provide connectivity to each other, giving us the Internet we see today

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

Routing Protocols Routers use “routing protocols” to exchange routing 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

What Is an IGP? Interior Gateway Protocol Within an Autonomous System Carries information about internal infrastructure prefixes Two widely used IGPs: OSPF ISIS

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

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

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

Interior versus Exterior Routing Protocols 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

Interior versus Exterior Routing Protocols 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

Hierarchy of Routing Protocols Other ISPs BGP4 BGP4 and OSPF/ISIS Static/BGP4 BGP4 IXP Customers

FYI: Cisco IOS 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

Routing Basics End