Chapter 4: Network Layer

Similar documents
Chapter 4: outline. Network Layer 4-1

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

DATA COMMUNICATOIN NETWORKING

Chapter IV: Network Layer

Computer Networking Introduction

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

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

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

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

CSCI Topics: Internet Programming Fall 2008

Routing in the Internet

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

CSc 450/550 Computer Networks Internet Routing

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

CSC 4900 Computer Networks: Routing Protocols

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

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

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction

Chapter 4: Network Layer, partb

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

Topics for This Week

Chapter 4 Network Layer

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst

Inter-AS routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley

Chapter 4: Network Layer

CSCE 463/612 Networks and Distributed Processing Spring 2018

Network layer: Overview. Network layer functions Routing IP Forwarding

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Chapter 4: Network Layer: Part II

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture

PART III. Implementing Inter-Network Relationships with BGP

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

CS 204: BGP. Jiasi Chen Lectures: MWF 12:10-1pm Humanities and Social Sciences

Routing. Jens A Andersson Communication Systems

Lecture 19: Network Layer Routing in the Internet

Network Layer: Routing

Routing Unicast routing protocols

CSC 8560 Computer Networks: Control Plane

Introduction to Communication Networks Spring Unit 16 Global Internetworking

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

Network layer: Overview. Network layer functions Routing IP Forwarding

EECS 3214: Computer Networks Protocols and Applications

Network layer. Key Network-Layer Functions. Network service model. Interplay between routing and forwarding. CSE 4213: Computer Networks II

CS 457 Networking and the Internet. Shortest-Path Problem. Dijkstra s Shortest-Path Algorithm 9/29/16. Fall 2016

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Department of Computer and IT Engineering University of Kurdistan. Computer Networks II Border Gateway protocol (BGP) By: Dr. Alireza Abdollahpouri

Network Layer: Routing. Routing. Routing protocol. Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links

Lecture 9. Network Layer (cont d) Network Layer 1-1

COMP211 Chapter 5 Network Layer: The Control Plane

HY 335 Φροντιστήριο 8 ο

Inter-Domain Routing: BGP

CSCE 463/612 Networks and Distributed Processing Spring 2018

Chapter 5 Network Layer: The Control Plane

Internet inter-as routing: BGP

Routing. Outline. Algorithms Scalability

Course on Computer Communication and Networks. Lecture 7 Network Layer, Chapter 4 (6/e) - Part B (7/e Ch5)

Master Course Computer Networks IN2097

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

Department of Computer Science Southern Illinois University Carbondale

Network Layer: Control Plane 5-2

Master Course Computer Networks IN2097

11/13/2017 Network Layer (SSL) Network-layer functions. Recall the two network-layer functions:

Lecture 4. The Network Layer (cont d)

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer. Chapter goals:

Data Communications & Networks. Session 7 Main Theme Networks: Part II Circuit Switching, Packet Switching, The Network Layer

Computer Networks. Instructor: Niklas Carlsson

CNT Computer and Network Security: BGP Security

Intra-AS Routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 14

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

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Internet Routing : Fundamentals of Computer Networks Bill Nace

Routing on the Internet! Hierarchical Routing! The NSFNet 1989! Aggregate routers into regions of autonomous systems (AS)!

EC441 Fall 2018 Introduction to Computer Networking Chapter 5: Network Layer Control Plane

Interplay between routing, forwarding

Why dynamic route? (1)

ETSF10 Internet Protocols Routing on the Internet

Chapter 5 Network Layer: The Control Plane

Inter-Autonomous-System Routing: Border Gateway Protocol

Chapter 4 Network Layer

UNIT III THE NETWORK LAYER

Inter-Autonomous-System Routing: Border Gateway Protocol

ETSF10 Internet Protocols Routing on the Internet

Telecomunicazioni. Docente: Andrea Baiocchi. DIET - Stanza 107, 1 piano palazzina P. Piga Via Eudossiana 18

The Internet network layer

Network service model. Network service model. Network Layer (part 1) Virtual circuits. By the end of this lecture, you should be able to.

Interplay Between Routing, Forwarding

Module 3 Network Layer CS755! 3-1!

Introduction to Computer Networks

Routing part 2. Electrical and Information Technology

Network Layer: Routing

Graph abstraction: costs. Graph abstraction 10/26/2018. Interplay between routing and forwarding

Telecomunicazioni. Docente: Andrea Baiocchi DIET - Stanza 107, 1 piano palazzina P. Piga Via Eudossiana 18

Network layer functions. Chapter 4 Network Layer. Network layer functions. Network layer functions

Chapter 4: Network Layer. Chapter 4: Network Layer

Chapter 4 Network Layer

Chapter 4: Network Layer

CS321: Computer Networks Unicast Routing

Internet Routing Protocols Tuba Saltürk

Transcription:

Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routing Network Layer 4-1

Intra-AS Routing Also known as Interior Gateway Protocols (IGP) Most common Intra-AS routing protocols: RIP: Routing Information Protocol OSPF: Open Shortest Path First IGRP: Interior Gateway Routing Protocol (Cisco proprietary) Network Layer 4-2

Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routing Network Layer 4-3

RIP ( Routing Information Protocol) Distance vector algorithm Included in BSD-UNIX Distribution in 1982 Distance metric: # of hops (max = 15 hops) z u A C B D v y w x destination hops u 1 v 2 w 2 x 3 y 3 z 2 Network Layer 4-4

RIP advertisements Distance vectors: exchanged among neighbors every 30 sec via Response Message (also called advertisement) Each advertisement: list of up to 25 destination nets within AS Network Layer 4-5

RIP: Example z w x y A D B Destination Network C Next Router Num. of hops to dest. w A 2 y B 2 z B 7 x -- 1..... Routing table in D Network Layer 4-6

RIP: Example Dest Next hops w - - x - - z C 4.... Advertisement from A to D w x y A D B z Destination Network C Next Router Num. of hops to dest. w A 2 y B 2 z B A 7 5 x -- 1..... Routing table in D Network Layer 4-7

RIP: Link Failure and Recovery If no advertisement heard after 180 sec --> neighbor/link declared dead routes via neighbor invalidated new advertisements sent to neighbors neighbors in turn send out new advertisements (if tables changed) link failure info quickly propagates to entire net poison reverse used to prevent ping-pong loops (infinite distance = 16 hops) Network Layer 4-8

RIP Table processing RIP routing tables managed by application-level process called route-d (daemon) advertisements sent in UDP packets, periodically repeated routed routed Transprt (UDP) network forwarding (IP) table link physical forwarding table Transprt (UDP) network (IP) link physical Network Layer 4-9

Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routing Network Layer 4-10

OSPF (Open Shortest Path First) open : publicly available Uses Link State algorithm LS packet dissemination Topology map at each node Route computation using Dijkstra s algorithm Advertisements disseminated to entire AS (via flooding) Carried in OSPF messages directly over IP (rather than TCP or UDP Network Layer 4-11

OSPF advanced features (not in RIP) Security: all OSPF messages authenticated (to prevent malicious intrusion) Multiple same-cost paths allowed (only one path in RIP) For each link, multiple cost metrics for different TOS (e.g., satellite link cost set low for best effort; high for real time) Integrated uni- and multicast support: Multicast OSPF (MOSPF) uses same topology data base as OSPF Hierarchical OSPF in large domains. Network Layer 4-12

Hierarchical OSPF Network Layer 4-13

Hierarchical OSPF Two-level hierarchy: local area, backbone. Link-state advertisements only in area each nodes has detailed area topology; only know direction (shortest path) to nets in other areas. Area border routers: summarize distances to nets in own area, advertise to other Area Border routers. Backbone routers: run OSPF routing limited to backbone. Boundary routers: connect to other AS s. Network Layer 4-14

Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms Link state Distance Vector Hierarchical routing 4.6 Routing in the Internet RIP OSPF BGP 4.7 Broadcast and multicast routing Network Layer 4-15

Internet inter-as routing: BGP BGP (Border Gateway Protocol): the de facto standard BGP provides each AS a means to: 1. Obtain subnet reachability information from neighboring ASs. 2. Propagate the reachability information to all routers internal to the AS. 3. Determine good routes to subnets based on reachability information and policy. Allows a subnet to advertise its existence to rest of the Internet: I am here Network Layer 4-16

BGP basics Pairs of routers (BGP peers) exchange routing info over semipermanent TCP conctns: BGP sessions Note that BGP sessions do not correspond to physical links. When AS2 advertises a prefix to AS1, AS2 is promising it will forward any datagrams destined to that prefix towards the prefix. AS2 can aggregate prefixes in its advertisement 3c 3a 3b AS3 1a AS1 1c 1d 1b 2a 2c 2b AS2 ebgp session ibgp session Network Layer 4-17

Distributing reachability info With ebgp session between 3a and 1c, AS3 sends prefix reachability info to AS1. 1c can then use ibgp do distribute this new prefix reach info to all routers in AS1 1b can then re-advertise the new reach info to AS2 over the 1b-to-2a ebgp session When router learns about a new prefix, it creates an entry for the prefix in its forwarding table. 3c 3a 3b AS3 1a AS1 1c 1d 1b 2a 2c 2b AS2 ebgp session ibgp session Network Layer 4-18

Path attributes & BGP routes When advertising a prefix, advert includes BGP attributes. prefix + attributes = route Two important attributes: AS-PATH: contains the ASs through which the advert for the prefix passed: AS 67 AS 17 NEXT-HOP: Indicates the specific internal-as router to next-hop AS. (There may be multiple links from current AS to next-hop-as.) When gateway router receives route advert, uses import policy to accept/decline. Network Layer 4-19

BGP route selection Router may learn about more than 1 route to some prefix. Router must select route. Elimination rules: 1. Local preference value attribute: policy decision 2. Shortest AS-PATH 3. Closest NEXT-HOP router: hot potato routing 4. Additional criteria Network Layer 4-20

BGP messages BGP messages exchanged using TCP. BGP messages: OPEN: opens TCP connection to peer and authenticates sender UPDATE: advertises new path (or withdraws old) KEEPALIVE keeps connection alive in absence of UPDATES; also ACKs OPEN request NOTIFICATION: reports errors in previous msg; also used to close connection Network Layer 4-21

BGP routing policy B legend: provider network W A C X customer network: Y Figure 4.5-BGPnew: a simple BGP scenario A,B,C are provider networks X,W,Y are customer (of provider networks) X is dual-homed: attached to two networks X does not want to route from B via X to C.. so X will not advertise to B a route to C Network Layer 4-22

BGP routing policy (2) B legend: provider network W A C X customer network: Y Figure 4.5-BGPnew: a simple BGP scenario A advertises to B the path AW B advertises to X the path BAW Should B advertise to C the path BAW? No way! B gets no revenue for routing CBAW since neither W nor C are B s customers B wants to force C to route to w via A B wants to route only to/from its customers! Network Layer 4-23

Why different Intra- and Inter-AS routing? Policy: Inter-AS: admin wants control over how its traffic routed, who routes through its net. Intra-AS: single admin, so no policy decisions needed Scale: hierarchical routing saves table size, reduced update traffic Performance: Intra-AS: can focus on performance Inter-AS: policy may dominate over performance Network Layer 4-24

Network Layer: summary What we ve covered: network layer services routing principles: link state and distance vector hierarchical routing IP Internet routing protocols RIP, OSPF, BGP what s inside a router? IPv6 Next stop: the Data link layer! Network Layer 4-25