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

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

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

Basic Idea. Routing. Example. Routing by the Network

Routing by the Network

Introduction to Computer Networks

Antonio Cianfrani. Routing Protocols

Why dynamic route? (1)

BTEC Level 3 Extended Diploma

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

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

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

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

Chapter 7: Routing Dynamically. Routing & Switching

Routing Protocols. Autonomous System (AS)

Routing. Advanced Computer Networks: Routing 1

ETSF05/ETSF10 Internet Protocols Routing on the Internet

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

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

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

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

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

Introduction to Dynamic Routing Protocols

CSc 450/550 Computer Networks Internet Routing

Open Shortest Path First (OSPF)

Routing(2) Inter-domain Routing

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

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

Routing Basics ISP/IXP Workshops

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

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

Routing Basics ISP/IXP Workshops

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

Routing Protocols and

Routing Information Protocol

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

Routing(2) Inter-domain Routing

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

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

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

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

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

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

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

Module 8. Routing. Version 2 ECE, IIT Kharagpur

Routing Protocols. Technology Description BGP CHAPTER

Unicast Routing. TCP/IP class

CS321: Computer Networks Unicast Routing

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

Routing in the Internet

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

Network Layer, Part 2 Routing. Terminology

Teldat Router. OSPF Protocol

ROUTING PROTOCOL BASICS

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

COM-208: Computer Networks - Homework 6

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

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

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

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

CS118 Discussion Week 7. Taqi

Routing Information Protocol. RIP application. RIP version 1

EITF25 Internet Routing. Jens A Andersson

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

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

Chapter 4: Network Layer

Top-Down Network Design

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

ETSF10 Internet Protocols Routing on the Internet

Computer Networking Introduction

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

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

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

IP Routing Tecnologie e Protocolli per Internet II rev 1

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

The Interconnection Structure of. The Internet. EECC694 - Shaaban

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

Routing Basics. Campus Network Design & Operations Workshop

Chapter 4: outline. Network Layer 4-1

Computer Networks II IPv4 routing

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

CSE 1 23: Computer Networks

Routing(2) Inter-domain Routing

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

CSCD 330 Network Programming Spring 2018

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

CSCD 330 Network Programming Spring 2017

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

Introduction to IP Routing. Geoff Huston

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

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

Lecture 4. The Network Layer (cont d)

Unit 3: Dynamic Routing

Lecture 12. Introduction to IP Routing. Why introduction? Routing

ICMP, ARP, RARP, IGMP

Routing Basics. SANOG July, 2017 Gurgaon, INDIA

Network Technologies. Unit 5, Chapter 8 Switching and Routing. Cisco Learning Institute Network+ Fundamentals and Certification

IP Protocols. ALTTC/Oct

CSCE 463/612 Networks and Distributed Processing Spring 2018

Chapter 7 Routing Protocols

Routing & Protocols 1

Transcription:

Routing Basic principles dr. C. P. J. Koymans Informatics Institute University of Amsterdam (version 1.1, 2010/02/19 12:21:58) Monday, February 22, 2010 Basic setup Directly connected Not directly connected Unix and Linux routing commands Route selection Mathematical representation Routing in the Internet Different routing mechanisms Directly Connected IP Networks Data link layer routing Configuration under Unix with ifconfig 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 Only outgoing interface needed Packet is 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 ifconfig <interface> <ip_address> netmask <netmask> broadcast <broadcast_address>

Global routing Routing Table netstat -r shows the routing table Not directly connected networks need a gateway (next hop) Recursive lookup (only 1 level) Gateway needs to be directly connected 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) Route command Ip command Syntax varies a lot between systems Adding a (static) default route (Solaris) route add default <gateway> Adding a (static) host route (Linux) route add -host <host> gw <gateway> Adding a (static) network route (Linux) Introduced in the Linux iproute2 package General interface to kernel addressing and routing Replaces ifconfig, route and arp completely Has support for routing policies and multiple routing tables route add -net <network> netmask <netmask> gw <gateway>

Ip subcommands Route selection 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 Longest prefix match Host routes before network routes Default route has shortest prefix Route of last resort Cannot be used in Internet core Mathematical representation Broadcast networks Graphs (undirected, labeled) Nodes are routers and hosts Edges are (point to point) connections Labels represent cost of the route Undirected: full duplex links, same cost in both directions

The danger of pictures The danger of pictures Using a virtual network node is not always equivalent to a full mesh of point to point links Example of spanning tree problems Using a virtual network node is not always equivalent to a full mesh of point to point links Example of spanning tree problems Node reduction Internet Routing (1) LAN with N routers or hosts Full mesh of N 2 edges Reduced with 1 extra node to N edges Works for LANs, but also for NBMA networks For many situations, but not always 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.

Internet Routing (2) Internet Routing (3) Edge routers inside an AS can be directly connected to edge routers in another AS Used for inter-as routing Using an exterior routing protocol (EGP) Example: BGP4 No other protocols in use (except variants of BGP) Routers within the boundary of a single AS communicate with each other to provide Intra-AS routing Using an interior routing protocol (IGP) Examples: RIP, OSPF, IS-IS Routing Protocol Classification Distance Vector Routing Static A human protocol Explicit command: route or ip route set Dynamic Distance Vector (for instance RIP) Path Vector (for instance BGP) Link State (for instance OSPF) Distance vector algorithm Bellman-Ford (1957) Distributed shortest path Original ARPANET routing algorithm Decentralised

Path Vector Routing Link State Routing Like distance vector routing, but Instead of the distance the complete path (on AS level) to the destination is given The algorithm is still decentralised asynchronous Link state algorithm Dijkstra (1959) Single source shortest path Complete knowledge is distributed to all nodes in an area 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