Internet Routing Basics

Similar documents
Routing Basics. SANOG July, 2017 Gurgaon, INDIA

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

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

Routing Basics. ISP Workshops

Routing Basics ISP/IXP Workshops

Routing Basics. Campus Network Design & Operations Workshop

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

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

Border Gateway Protocol - BGP

Routing Basics ISP/IXP Workshops

internet technologies and standards

BGP Routing and BGP Policy. BGP Routing. Agenda. BGP Routing Information Base. L47 - BGP Routing. L47 - BGP Routing

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

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

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

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

BGP Scaling (RR & Peer Group)

Internet Routing : Fundamentals of Computer Networks Bill Nace

CSc 450/550 Computer Networks Internet Routing

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Border Gateway Protocol. Version: Demo

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

Ravi Chandra cisco Systems Cisco Systems Confidential

Connecting to a Service Provider Using External BGP

CSCI Topics: Internet Programming Fall 2008

BGP Attributes and Path Selection

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

Lecture 19: Network Layer Routing in the Internet

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

Chapter 4: outline. Network Layer 4-1

LAB1: BGP IPv4. BGP: Initial Config. Disclaimer

Border Gateway Protocol

Introduction to Computer Networks

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

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

How BGP Routers Use the Multi Exit Discriminator for Best Path Selection

Chapter 4: Network Layer

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

Inter-Domain Routing: BGP

MPLS VPN--Inter-AS Option AB

Internet inter-as routing: BGP

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

PART III. Implementing Inter-Network Relationships with BGP

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

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

Interplay Between Routing, Forwarding

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

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

Planning for Information Network

CS 457 Networking and the Internet. The Global Internet (Then) The Global Internet (And Now) 10/4/16. Fall 2016

BGP made easy. John van Oppen Spectrum Networks / AS11404

Introduction to BGP ISP/IXP Workshops

BGP. Autonomous system (AS) BGP version 4

IP Protocols. ALTTC/Oct

Lecture 3: Packet Forwarding

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

MPLS VPN Multipath Support for Inter-AS VPNs

BGP. Autonomous system (AS) BGP version 4

Computer Networking Introduction

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

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

LARGE SCALE IP ROUTING

MPLS VPN Inter-AS Option AB

Dynamics of Hot-Potato Routing in IP Networks

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

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

Shim6: Network Operator Concerns. Jason Schiller Senior Internet Network Engineer IP Core Infrastructure Engineering UUNET / MCI

Routing Overview. Path Determination

BGP. Autonomous system (AS) BGP version 4

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

MPLS L3VPN. The MPLS L3VPN model consists of three kinds of devices: PE CE Site 2. Figure 1 Network diagram for MPLS L3VPN model

Unit 3: Dynamic Routing

Chapter 7: Routing Dynamically. Routing & Switching

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

Configuring a BGP Route Server

Communication Networks

Routing(2) Inter-domain Routing

Chapter IV: Network Layer

EE 122: Inter-domain routing Border Gateway Protocol (BGP)

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

Dynamic Routing. The Protocols

Routing Overview. Information About Routing CHAPTER

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

Multihoming with BGP and NAT

Configuring BGP on Cisco Routers Volume 1

COURSE OUTLINE: Course: CCNP Route Duration: 40 Hours

BGP Cost Community. Prerequisites for the BGP Cost Community Feature

COMP211 Chapter 5 Network Layer: The Control Plane

Configuring BGP. Cisco s BGP Implementation

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

BGP Support for Next-Hop Address Tracking

Border Gateway Protocol (an introduction) Karst Koymans. Tuesday, March 8, 2016

Introduction to BGP. ISP/IXP Workshops

Symbols. Numerics I N D E X

Introduction to IP Routing. Geoff Huston

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

Configuring MPLS L3VPN

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

CertifyMe. CertifyMe

APNIC Routing II Workshop

DATA COMMUNICATOIN NETWORKING

Transcription:

Internet Routing Basics

Back to basics J Application Presentation Application (HTTP, DNS, FTP) Data Application (HTTP, DNS, FTP) Session Transport Transport (TCP/UDP) E2E connectivity (app-to-app) Port numbers (sockets) Transport Header Data Transport (TCP/UDP) Network Internet (IPv4/IPv6) Device to device IPv4/IPv6 address IP Header Transport Header Data Internet (IPv4/IPv6) Data Link Physical Network Access (Ethernet, PPP) Media access control MAC address Frame Header IP Header 0011010100000111 Transport Header Data Network Access (Ethernet, PPP) Addressing is the key! 2

Internet/Network Layer Host to host communication across networks Addressing unique and hierarchical network-wide address Routing the best path to the destination Current protocols IPv4 and IPv6 3

L3 Device/Router L3 device gets the packet one step closer The next hop to reach the destination! Router Exchanges network information Finds the best path to a destination, and Forwards the packet to the next hop (a step closer) to reach the destination 4

Best path lookup Routing Decision Inspects the destination address of the packet Network portion Looks up its routing table for a best match Longest matching left-most bits If no match, checks for default route If no default route, drop the packet! 5

Best path (route) lookup Dest IP: 2001:db8:1::1/128 R3 2001:db8::/32 R1 GE 0/0 R2 GE 1/0 GE 1/1 R2#sh ipv6 route 2001:db8::/32 via R3 2001:db8:1::/48 via R4 R4 2001:db8:1::/48 2001:db8::/32 0010000000000001:1101101110000000:: 2001:db8:1::/48 0010000000000001:1101101110000000:0000000000000001:: 6

Best path (route) lookup Dest IP: 2001:db8:1::1/128 R3 2001:db8::/32 R1 GE 0/0 R2 GE 1/0 GE 1/1 Match! R2#sh ipv6 route 2001:db8::/32 via R3 2001:db8:1::/48 via R4 R4 2001:db8:1::/48 2001:db8:1::1 0010000000000001:1101101110000000:0000000000000001:0:0:0:0:0000000000000001 FFFF:FFFF:: (/32) 1111111111111111:1111111111111111:0000000000000000:0:0:0:0:0000000000000000 2001:db8:: 0010000000000001:1101101110000000:: AND 7

Best path (route) lookup Dest IP: 2001:db8:1::1/128 R3 2001:db8::/32 R1 GE 0/0 R2 GE 1/0 GE 1/1 Match! R2#sh ipv6 route 2001:db8::/32 via R3 2001:db8:1::/48 via R4 R4 2001:db8:1::/48 2001:db8:1::1 0010000000000001:1101101110000000:0000000000000001:0:0:0:0:0000000000000001 FFFF:FFFF:FFFF:: (/48) 1111111111111111:1111111111111111:1111111111111111:0:0:0:0:0000000000000000 AND 2001:db8:1:: 0010000000000001:1101101110000000:0000000000000001:: 8

Best path (route) lookup Dest IP: 2001:db8:1::1/128 R3 2001:db8::/32 R1 GE 0/0 R2 GE 1/0 GE 1/1 Longest Match! R2#sh ipv6 route 2001:db8::/32 via R3 2001:db8:1::/48 via R4 R4 2001:db8:1::/48 2001:db8:1::1 0010000000000001:1101101110000000:0000000000000001:0:0:0:0:0000000000000001 FFFF:FFFF:FFFF:: (/48) 1111111111111111:1111111111111111:1111111111111111:0:0:0:0:0000000000000000 AND 2001:db8:1:: 0010000000000001:1101101110000000:0000000000000001:: 9

Packet Forwarding If a best match is found, the router determines the correct exit interface to reach the next-hop/destination Is the best match a subnet of. Directly connected interface? YES Forward to host on local subnet NO Remote Network? YES Forward out the exit interface to the next-hop NO Drop the packet! NO Is there a gateway of last resort? YES Forward out the exit interface to the next-hop 10

Process vs Hardware Switching Incoming packet forwarded to the control plane (CPU) routing table (RIB) lookup, frame re-write (next-hop MAC), and forwarded to the exit interface Control Plane RIB Incoming Packets Data Plane Outgoing Packets 11

Process vs Hardware Switching Instead two hardware based tables FIB derived from the RIB- all destinations and next-hops Adjacency table from the ARP table- L2 header info for each next-hop in the FIB Control Plane RIB Incoming Packets Data Plane FIB & Adjacency Table Outgoing Packets 12

Internet Routing How does a user in VN access a service hosted in the BT? The ISP in VN could directly connect to the ISP in BT Neither scalable nor economical Instead, the VN ISP shares its network information with its neighbor ISPs The ISP in BT does the same with its own neighbors Neighbor ISPs propagate the information to their neighbors, and so on Eventually, they both learn about each other s network! 13

Internet Routing VN AS-X Routing flow Traffic flow BT AS-N SG AS-Y IN AS-M Exchange of network information Routing Networks (ASes) connected together Internet 14

Autonomous System (AS) A group of networks with the same routing policy (external) Usually under single administrative control AS-X 15

Routing Flow & Traffic Flow Traffic and network info always flow in opposite direction! network info exchanged in both directions for bi-directional traffic flow Packet Flow Receive Routing Flow R1 Advertise Accept Send R2 AS X Routing Flow AS Y AS X Packet Flow 16

Routing & Traffic Flow: Internet VN AS-1 Routing flow Traffic flow BT AS-7 SG AS-3 IN AS-5 For user (N1) in AS1 to send traffic to user (N7) in AS7: AS7 must originate and announce N7 to AS5. AS5 must accept N7 from AS7, and advertise to AS3. AS3 must accept and forward N7 to AS1 AS1 must accept N7 from AS3 17

Routing Policy To manipulate/control traffic flow in/out of a network manipulate inbound routing info to influence outgoing traffic manipulate outbound routing info to influence incoming traffic 18

Routing Protocols How do routers exchange network information with each other? Routing Protocols! IGP & EGP 19

Interior Gateway Protocol (IGP) To exchange network info within an AS Allows all routers within an AS to learn about each other To carry infrastructure information (loopbacks & ptp) No customer routes! The design goal is scalability and fast convergence Hence, minimise the number of prefixes carried in IGP! Two most widely used IGPs in operator networks OSPF & IS-IS Uses the SPF algorithm Best path selection based on lowest cost/metric Supports hierarchical routing scalability! 20

Exterior Gateway Protocol (EGP - BGP) To exchange network information between ASes Implement routing policies (manipulate traffic path) Define administrative boundary BGP is the de facto EGP! 21

Routing Protocols Hierarchy Other ISPs ebgp ibgp & OSPF/IS-IS ebgp IX or direct Peers Customers Static/eBGP 22

How it all works ebgp ebgp ibgp ibgp ibgp IGP IGP IGP AS X AS Y AS Z Barry Greene & Philip Smith Cisco ISP Essentials 23

24