Routing. Basic principles. Karst Koymans. Informatics Institute University of Amsterdam. (version 16.4, 2017/02/23 10:58:58)

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

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

Routing Information Protocol

Introduction to Computer Networks

Routing Information Protocol

Antonio Cianfrani. Routing Protocols

Basic Idea. Routing. Example. Routing by the Network

Routing by the Network

Routing Information Protocol. RIP application. RIP version 1

Chapter 7: Routing Dynamically. Routing & Switching

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

Why dynamic route? (1)

BTEC Level 3 Extended Diploma

Routing(2) Inter-domain Routing

Routing(2) Inter-domain Routing

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

ICS 351: Today's plan. OSPF BGP Routing in general

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

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

CSc 450/550 Computer Networks Internet Routing

Routing Protocols. Autonomous System (AS)

Lecture 5 The Network Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

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

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

FINAL EXAM - SLOT 2 TCP/IP NETWORKING Duration: 90 min. With Solutions

Computer Networking Introduction

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Routing Basics ISP/IXP Workshops

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

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

Introduction to Dynamic Routing Protocols

Routing Basics. SANOG July, 2017 Gurgaon, INDIA

Internet Routing Basics

Chapter 4: outline. Network Layer 4-1

Routing Basics ISP/IXP Workshops

Routing Information Protocol. RIP application. RIP version 1

Routing(2) Inter-domain Routing

COM-208: Computer Networks - Homework 6

ICS 351: Today's plan. distance-vector routing game link-state routing OSPF

Routing Protocol. Seiya Tsubone. Apr The University of Tokyo. Seiya Tsubone (The University of Tokyo) Routing Protocol Apr. 25.

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

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

ETSF05/ETSF10 Internet Protocols Routing on the Internet

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

521262S Computer Networks 2 (fall 2007) Laboratory exercise #2: Internetworking

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

Unicast Routing. TCP/IP class

IPv4 and Routing. based on Chapter 8 of CompTIA Network+ Exam Guide, Mike Meyers

Routing Protocols and

Routing in the Internet

Outline. Addressing on the network layer ICMP IPv6 Addressing on the link layer Virtual circuits

Solution of Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Routing. Advanced Computer Networks: Routing 1

Link State Routing. Link State Packets. Link State Protocol. Link State Protocols Basic ideas Problems and pitfalls

Top-Down Network Design

Chapter 4: Network Layer

CS4450. Computer Networks: Architecture and Protocols. Lecture 20 Pu+ng ALL the Pieces Together. Spring 2018 Rachit Agarwal

Open Shortest Path First (OSPF)

The Interconnection Structure of. The Internet. EECC694 - Shaaban

Building the Routing Table. Introducing the Routing Table Directly Connected Networks Static Routing Dynamic Routing Routing Table Principles

IP Protocols. ALTTC/Oct

INTERNET TEACHING LAB: Interior Gateway Protocol (IGP) LAB

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

Outline. Organization of the global Internet Example of domains Intradomain routing. Interdomain traffic engineering with BGP

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

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

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

Chapter 6 Delivery and Routing of IP Packets

To contain/reduce broadcast traffic, we need to reduce the size of the network (i.e., LAN).

Computer Networks II IPv4 routing

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

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

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

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

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

ICS 351: Today's plan. netmask exercises network and subnetwork design dynamic routing RIP distance-vector routing

CMPE 80N: Introduction to Networking and the Internet. Katia Obraczka Computer Engineering UCSC Baskin Engineering Lecture 20

cs/ee 143 Communication Networks

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

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy

ETSF10 Internet Protocols Routing on the Internet

Routing Protocols. Technology Description BGP CHAPTER

Internet Routing Protocols, DHCP, and NAT

Written examination in Computer Networks

Review for Chapter 4 R1,R2,R3,R7,R10,R11,R16,R17,R19,R22,R24, R26,R30 P1,P2,P4,P7,P10,P11,P12,P14,P15,P16,P17,P22,P24,P29,P30

ETSF10 Internet Protocols Routing on the Internet

Campus Networking Workshop CIS 399. Core Network Design

ROUTING PROTOCOL BASICS

EECS 122, Lecture 16. Link Costs and Metrics. Traffic-Sensitive Metrics. Traffic-Sensitive Metrics. Static Cost Metrics.

CS321: Computer Networks Unicast Routing

Link State Routing. Link State Packets. Link State Protocol. Link State Protocols Basic ideas Problems and pitfalls

Teldat Router. OSPF Protocol

Unit 3: Dynamic Routing

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

Internetworking. different kinds of network technologies that can be interconnected by routers and other networking devices to create an internetwork

Lecture 4. The Network Layer (cont d)

Shortcut Switching Enhancements for NHRP in DMVPN Networks

Finish Network Layer Start Transport Layer. CS158a Chris Pollett Apr 25, 2007.

EITF25 Internet Routing. Jens A Andersson

Transcription:

Routing Basic principles Karst Koymans Informatics Institute University of Amsterdam (version 16.4, 2017/02/23 10:58:58) Friday, February 24, 2017 Karst Koymans (UvA) Routing Friday, February 24, 2017 1 / 30

1 Basic setup Directly connected Not directly connected Addressing and routing commands Route selection 2 Mathematical representation 3 Routing in the Internet 4 Different routing mechanisms Karst Koymans (UvA) Routing Friday, February 24, 2017 2 / 30

Basic setup Outline 1 Basic setup Directly connected Not directly connected Addressing and routing commands Route selection 2 Mathematical representation 3 Routing in the Internet 4 Different routing mechanisms Karst Koymans (UvA) Routing Friday, February 24, 2017 3 / 30

Basic setup Directly connected Outline 1 Basic setup Directly connected Not directly connected Addressing and routing commands Route selection 2 Mathematical representation 3 Routing in the Internet 4 Different routing mechanisms Karst Koymans (UvA) Routing Friday, February 24, 2017 4 / 30

Basic setup Directly connected Directly Connected IP Networks Traditional configuration under Unix with ifconfig command Packets can be delivered immediately by the data link (layer 2 software) No explicit route commands needed under Linux, because ifconfig sets a route automatically ifconfig command ifconfig <intf> <ipv4_addr> netmask <mask> [broadcast <bcast>] ifconfig <intf> inet6 add <ipv6_addr>/<prefix> Karst Koymans (UvA) Routing Friday, February 24, 2017 5 / 30

Basic setup Directly connected Data link layer routing Only outgoing interface and layer 2 address is needed How is the layer 2 address obtained in IPv4/IPv6? Packet is (selectively) flooded by layer 2 Bridges and switches use a lookup table to map layer 2 addresses to outgoing interfaces Spanning tree protocol takes care of loops Newer protocols like TRILL and SPB can handle topologies with loops Karst Koymans (UvA) Routing Friday, February 24, 2017 6 / 30

Basic setup Not directly connected Outline 1 Basic setup Directly connected Not directly connected Addressing and routing commands Route selection 2 Mathematical representation 3 Routing in the Internet 4 Different routing mechanisms Karst Koymans (UvA) Routing Friday, February 24, 2017 7 / 30

Basic setup Not directly connected Global routing Not directly connected networks need a gateway (next hop) Recursive lookup In practice this is only one level deep Hence the gateway needs to be directly connected In theory a deeper recursion level would be possible and maybe even useful Karst Koymans (UvA) Routing Friday, February 24, 2017 8 / 30

Basic setup Not directly connected Routing Table netstat -r is the traditional command to show the routing table Route flags Flag Set Unset G route needs gateway route is directly connected H route to host route to network S route added statically route added dynamically (mostly by admin) (by a protocol) Karst Koymans (UvA) Routing Friday, February 24, 2017 9 / 30

Basic setup Addressing and routing commands Outline 1 Basic setup Directly connected Not directly connected Addressing and routing commands Route selection 2 Mathematical representation 3 Routing in the Internet 4 Different routing mechanisms Karst Koymans (UvA) Routing Friday, February 24, 2017 10 / 30

Basic setup Addressing and routing commands route command Syntax varies between systems On Linux systems 1 Adding a static default route route add default <gateway> Adding a static host route route add -host <host> gw <gateway> Adding a static network route route add -net <network> netmask <netmask> gw <gateway> 1 Exercise: Rewrite the first two entries as instances of the last Karst Koymans (UvA) Routing Friday, February 24, 2017 11 / 30

Basic setup Addressing and routing commands arp command Used to interact with the arp table Read the arp table arp Delete an entry from the arp table arp -d <address> Add a static entry to the arp table arp -s <address> <hardware_address> arp only works for IPv4 For IPv6 use the ip [-6] command Karst Koymans (UvA) Routing Friday, February 24, 2017 12 / 30

Basic setup Addressing and routing commands ip command The command ip was introduced in the Linux iproute2 package General interface to kernel addressing and routing Replaces ifconfig, route and arp (almost) completely Has support for IPv6, routing policies and multiple routing tables Karst Koymans (UvA) Routing Friday, February 24, 2017 13 / 30

Basic setup Addressing and routing commands ip subcommands ip <subcommand>... Subcommand link address neighbor route rule Meaning layer 2 interface settings (MAC) layer 3 interface settings (IP) arp cache data routing table data routing table selection Karst Koymans (UvA) Routing Friday, February 24, 2017 14 / 30

Basic setup Route selection Outline 1 Basic setup Directly connected Not directly connected Addressing and routing commands Route selection 2 Mathematical representation 3 Routing in the Internet 4 Different routing mechanisms Karst Koymans (UvA) Routing Friday, February 24, 2017 15 / 30

Basic setup Route selection Route selection Longest prefix match Host routes are preferred over network routes Default route has shortest prefix Route of last resort Cannot be used in the Internet core Why? Karst Koymans (UvA) Routing Friday, February 24, 2017 16 / 30

Mathematical representation Outline 1 Basic setup Directly connected Not directly connected Addressing and routing commands Route selection 2 Mathematical representation 3 Routing in the Internet 4 Different routing mechanisms Karst Koymans (UvA) Routing Friday, February 24, 2017 17 / 30

Mathematical representation Mathematical representation Graphs (undirected, labeled) Nodes are routers and hosts Edges are (point to point) connections Network nodes are not necessary because of this restriction Labels represent cost of using an edge in your route Undirected edges imply a restriction to two-way communication paths with the same cost in both directions Karst Koymans (UvA) Routing Friday, February 24, 2017 18 / 30

Broadcast networks (triangle) R R N R R R R

Broadcast networks (square) R R R R N R R R R

Mathematical representation Node reduction LAN with O(N) routers or hosts Full mesh of O(N 2 ) edges Reduced with only 1 extra node to O(N) edges Works for LANs, but also for NBMA networks In many situations But not always (take care) Karst Koymans (UvA) Routing Friday, February 24, 2017 21 / 30

Routing in the Internet Outline 1 Basic setup Directly connected Not directly connected Addressing and routing commands Route selection 2 Mathematical representation 3 Routing in the Internet 4 Different routing mechanisms Karst Koymans (UvA) Routing Friday, February 24, 2017 22 / 30

Routing in the Internet Internet Routing (1) Based on top level structure defined by Autonomous Systems (AS) Each AS has administrative control over a collection of Routers (and hosts) Networks Definition (AS Autonomous System (from RFC 1930)) An AS (Autonomous System) is a connected group of one or more IP prefixes run by one or more network operators which has a single and clearly defined routing policy. Karst Koymans (UvA) Routing Friday, February 24, 2017 23 / 30

Routing in the Internet Internet Routing (2) Edge routers inside an AS can be directly connected to edge routers in another AS Used for inter-as routing Using an exterior routing (or gateway) protocol (EGP) BGP4 No other protocols in use on the Internet except variants of BGP Karst Koymans (UvA) Routing Friday, February 24, 2017 24 / 30

Routing in the Internet Internet Routing (3) Routers within the boundary of a single AS communicate with each other to provide Intra-AS routing Using an interior routing (or gateway) protocol (IGP) Examples: RIP, OSPF, IS-IS Extended with an internal exterior protocol (ibgp) Karst Koymans (UvA) Routing Friday, February 24, 2017 25 / 30

Different routing mechanisms Outline 1 Basic setup Directly connected Not directly connected Addressing and routing commands Route selection 2 Mathematical representation 3 Routing in the Internet 4 Different routing mechanisms Karst Koymans (UvA) Routing Friday, February 24, 2017 26 / 30

Different routing mechanisms Routing Protocol Classification Static A human protocol Explicit commands like route add or ip route add Side effect of a script ( semi-automatic/semi-human ) Dynamic (automatically by a routing protocol) Distance Vector (for instance RIP) Path Vector (for instance BGP) Link State (for instance OSPF or IS-IS) Karst Koymans (UvA) Routing Friday, February 24, 2017 27 / 30

Different routing mechanisms Distance Vector Routing Distance vector algorithm Bellman-Ford (1957) Distributed shortest path Original ARPANET routing algorithm Decentralised Asynchronous No choice of root like in STP Karst Koymans (UvA) Routing Friday, February 24, 2017 28 / 30

Different routing mechanisms Path Vector Routing Like distance vector routing, but... Instead of the distance to the destination the complete path on AS level is specified The algorithm is still Decentralised...... but there is an informal notion of tiers Asynchronous The algorithm may depend on explicit or implicit policies Karst Koymans (UvA) Routing Friday, February 24, 2017 29 / 30

Different routing mechanisms Link State Routing Link state algorithm Dijkstra (1959) Single source shortest path Complete knowledge is distributed to all nodes in a region Knowledge about the local network topology is flooded to all participants in an area Every node executes the shortest path algorithm and draws the same conclusions Karst Koymans (UvA) Routing Friday, February 24, 2017 30 / 30