Computer Networking Introduction

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:

Chapter 4: Network Layer

Chapter IV: Network Layer

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

DATA COMMUNICATOIN NETWORKING

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

CSc 450/550 Computer Networks Internet Routing

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

Routing in the Internet

CSC 4900 Computer Networks: Routing Protocols

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

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

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

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

CSCI Topics: Internet Programming Fall 2008

Topics for This Week

Chapter 4: Network Layer, partb

Chapter 4 Network Layer

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

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

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

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Chapter 4: Network Layer

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

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

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

Routing. Jens A Andersson Communication Systems

Network layer: Overview. Network layer functions Routing IP Forwarding

Routing Unicast routing protocols

Inter-Domain Routing: BGP

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

Lecture 19: Network Layer Routing in the Internet

COMP211 Chapter 5 Network Layer: The Control Plane

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

Chapter 4: Network Layer: Part II

Chapter 5 Network Layer: The Control Plane

Lecture 4. The Network Layer (cont d)

Master Course Computer Networks IN2097

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

Network Layer: Routing

PART III. Implementing Inter-Network Relationships with BGP

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF 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

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

Internet Routing : Fundamentals of Computer Networks Bill Nace

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

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

Inter-Autonomous-System Routing: Border Gateway Protocol

CSC 8560 Computer Networks: Control Plane

Inter-Autonomous-System Routing: Border Gateway Protocol

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

Routing. Outline. Algorithms Scalability

Interplay between routing, forwarding

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

Network layer: Overview. Network layer functions Routing IP Forwarding

CNT Computer and Network Security: BGP Security

Computer Networks. Instructor: Niklas Carlsson

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

EECS 3214: Computer Networks Protocols and Applications

Network Layer: Control Plane 5-2

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

Why dynamic route? (1)

ETSF10 Internet Protocols Routing on the Internet

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

Master Course Computer Networks IN2097

UNIT III THE NETWORK LAYER

Internet inter-as routing: BGP

Introduction to Communication Networks Spring Unit 16 Global Internetworking

CS321: Computer Networks Unicast Routing

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

Network Layer: Routing

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

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

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

Routing part 2. Electrical and Information Technology

Department of Computer Science Southern Illinois University Carbondale

Interplay Between Routing, Forwarding

Introduction to Computer Networks

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

Internet Routing Protocols Tuba Saltürk

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

Unit 3: Dynamic Routing

ETSF10 Internet Protocols Routing on the Internet

CSCD 330 Network Programming Spring 2018

CSCD 330 Network Programming Spring 2017

Network Protocols. Routing. TDC375 Autumn 03/04 John Kristoff - DePaul University 1

IP Addressing & Interdomain Routing. Next Topic

Chapter 4: Network Layer

Chapter 4 Network Layer

Review is pretty much complete! Please help formatting review (indenting). - Jorden

The Internet network layer

Basic Idea. Routing. Example. Routing by the Network

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

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

Routing by the Network

Chapter 5 Network Layer: The Control Plane

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

Network Protocols. Routing. TDC375 Winter 2002 John Kristoff - DePaul University 1

Transcription:

Computer Networking Introduction Halgurd S. Maghdid Software Engineering Department Koya University-Koya, Kurdistan-Iraq Lecture No.15

Chapter 4: outline 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 2 of 32

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 BGP: Border Gateway Protocol (Cisco proprietary) 3 of 26

RIP ( Routing Information Protocol) included in BSD-UNIX distribution in 1982 distance vector algorithm distance metric: # hops (max = 15 hops), each link has cost 1 DVs exchanged with neighbors every 30 sec in response message (aka advertisement) each advertisement: list of up to 25 destination subnets (in IP addressing sense) 4 of 26 z u A C B D v y w x from router A to destination subnets: subnet hops u 1 v 2 w 2 x 3 y 3 z 2

RIP: example w x y A D B z C routing table in router D destination subnet next router # hops to dest w A 2 y B 2 z B 7 x -- 1..... 5 of 26

RIP: example A-to-D advertisement next hops dest w - 1 x - 1 z C 4.... w x y A D B z 6 of 26 C routing table in router D destination subnet next router # hops to dest w A 2 y B 2 A z B 7 5 x -- 1.....

RIP: link failure, 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) 7 of 26

RIP table processing RIP routing tables managed by application-level process called route-d (daemon) advertisements sent in UDP packets (port 520), periodically repeated routed routed transport (UDP) transprt (UDP) network (IP) forwarding table forwarding table network (IP) link link physical physical 8 of 26

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 OSPF advertisement carries one entry per neighbor advertisements flooded to entire AS carried in OSPF messages directly over IP (rather than TCP or UDP IS-IS routing protocol: nearly identical to OSPF 9 of 26

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 type-ofservice TOS (e.g., satellite link cost set low for best effort ToS; high for real time ToS) integrated uni- and multicast support: Multicast OSPF (MOSPF) uses same topology data base as OSPF hierarchical OSPF in large domains. 10 of 26

Hierarchical OSPF boundary router backbone router area border routers backbone area 3 area 1 area 2 internal routers 11 of 26 The areas could be autonomous-systems (AS)

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. 12 of 26

Internet inter-as routing: BGP BGP (Border Gateway Protocol): the de facto interdomain routing protocol glue that holds the Internet together BGP provides each AS a means to: ebgp: obtain subnet reachability information from neighboring ASs. ibgp: propagate reachability information to all AS-internal routers. determine good routes to other networks based on reachability information and policy. allows subnet to advertise its existence to rest of Internet: I am here 13 of 26

BGP basics BGP session: two BGP routers ( peers ) exchange BGP messages: advertising paths to different destination network prefixes ( path vector protocol) exchanged over semi-permanent TCP connections (port 179) when AS3 advertises a prefix to AS1: other networks 14 of 26 AS3 promises it will forward datagrams towards that prefix AS3 can aggregate prefixes in its advertisement 3b 3c AS3 3a 1a AS1 BGP message 1c 1d 1b 2a AS2 2c 2b other networks

BGP basics: distributing path information using ebgp session between 3a and 1c, AS3 sends prefix reachability info to AS1. 1c can then use ibgp do distribute new prefix info to all routers in AS1 1b can then re-advertise new reachability info to AS2 over 1bto-2a ebgp session when router learns of new prefix, it creates entry for prefix in its forwarding table. other networks 15 of 26 3a 3b AS3 1c 1a AS1 1d ebgp session ibgp session 2a 1b AS2 2c 2b other networks

Path attributes and BGP routes advertised prefix includes BGP attributes prefix + attributes = route two important attributes: AS-PATH: contains ASs through which prefix advertisement has passed: e.g., AS 67, AS 17 NEXT-HOP: indicates specific internal-as router to next-hop AS. (may be multiple links from current AS to next-hop-as) gateway router receiving route advertisement uses import policy to accept/decline e.g., never route through AS x policy-based routing 16 of 26

BGP route selection router may learn about more than 1 route to destination AS, selects route based on: 1. local preference value attribute: policy decision 2. shortest AS-PATH 3. closest NEXT-HOP router: hot potato routing 4. additional criteria 17 of 26

BGP messages BGP messages exchanged between peers over TCP connection 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 18 of 26

Putting it Altogether: How Does an Entry Get Into a Router s Forwarding Table? Answer is complicated! Ties together hierarchical routing (Section 4.5.3) with BGP (4.6.3) and OSPF (4.6.2). Provides nice overview of BGP! 19 of 26

How does entry get in forwarding table? entry routing algorithms local forwarding table prefix output port 138.16.64/22 124.12/16 212/8.. 3 2 4 Assume prefix is in another AS. Dest IP 3 2 1 20 of 26

How does entry get in forwarding table? High-level overview 1. Router becomes aware of prefix 2. Router determines output port for prefix 3. Router enters prefix-port in forwarding table 21 of 26

Router becomes aware of prefix other networks 3b 3c AS3 3a 1a AS1 BGP message 1c 1d 1b 2a AS2 2c 2b other networks BGP message contains routes route is a prefix and attributes: AS-PATH, NEXT-HOP, Example: route: Prefix:138.16.64/22 ; AS-PATH: AS3 AS131 ; NEXT-HOP: 201.44.13.125 22 of 26

Router may receive multiple routes other networks 3b 3c AS3 3a 1a AS1 BGP message 1c 1d 1b 2a AS2 2c 2b other networks Router may receive multiple routes for same prefix Has to select one route 23 of 26

Select best BGP route to prefix Router selects route based on shortest AS-PATH Example: select AS2 AS17 to 138.16.64/22 AS3 AS131 AS201 to 138.16.64/22 24 of 26

Find best intra-route to BGP route Use selected route s NEXT-HOP attribute Route s NEXT-HOP attribute is the IP address of the router interface that begins the AS PATH. Example: AS-PATH: AS2 AS17 ; NEXT-HOP: 111.99.86.55 Router uses OSPF to find shortest path from 1c to 111.99.86.55 3c other networks 3b AS3 3a 1a AS1 1c 1d 111.99.86.55 1b 2a AS2 2c 2b other networks 25 of 26

Router identifies port for route Identifies port along the OSPF shortest path Adds prefix-port entry to its forwarding table: (138.16.64/22, port 4) other networks 3b 3c AS3 3a 1a AS1 1 2 3 1c 1d 4 router port 1b 2a AS2 2c 2b other networks 26 of 26