4: Network Layer4a-1 15-16: Inter and intra AS, RIP, OSPF, BGP, Router Architecture Last Modified: 6/23/2015 8:46:00 PM.

Slides:



Advertisements
Similar presentations
Network Layer4-1 Hierarchical Routing scale: with 200 million destinations: r can’t store all dest’s in routing tables! r routing table exchange would.
Advertisements

Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 22 Omar Meqdadi Department of Computer Science and Software Engineering University.
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.
4a-1 CSE401: Computer Networks Hierarchical Routing & Routing in Internet S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
4: Network Layer4b-1 IP datagram format ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier Internet checksum time.
4: Network Layer4b-1 Network Layer Protocols CSIT435 Spring 2002.
1 Routing Protocols and Forwarding  The IP protocol  Routing Protocols o Intra-domain (inside an AS) o Inter-domain (between ASes)  Forwarding: inside.
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
Announcement r Project 3 out, due 3/10 r Homework 3 out last week m Due next Mon. 3/1.
Routing - II Important concepts: Hierarchical Routing, Intra-domain routing, inter- domain routing, RIP, OSPF, BGP, Router Architecture.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 04/05/2007.
14 – Inter/Intra-AS Routing
Announcement r Project 2 Extension ? m Previous grade allocation: Projects 40% –Web client/server7% –TCP stack21% –IP routing12% Midterm 20% Final 20%
Routing in Wired Nets CS 215 W 01 - Mario Gerla. Routing Principles Routing: delivering a packet to its destination on the best possible path Routing.
Routing Algorithms & Routing Protocols  Shortest Path Routing  Flooding  Distance Vector Routing  Link State Routing  Hierarchical Routing  Broadcast.
Routing Protocols Chapter 25. Static Routing Typically used in hosts –Enter subnet mask, router (gateway), IP address –Perfect for cases with few connections,
Computer Networking Intra-Domain Routing, Part I RIP (Routing Information Protocol)
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
4: Network Layer4b-1 Router Architecture Overview Two key router functions: r run routing algorithms/protocol (RIP, OSPF, BGP) r switching datagrams from.
Network Layer – part 31 Customer-Provider Routing Relationships  The Global Internet consists of Autonomous Systems (AS) interconnected with each other:
Lecture 10 Overview. Border Gateway Protocol(BGP) De facto standard for Internet inter-AS routing allows subnet to advertise its existence to rest of.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
Lecture 14 ICMP: Internet Control Message Protocol r used by hosts, routers, gateways to communication network-level information m error reporting: unreachable.
What’s inside a router. Router architecture overview two key router functions:  run routing algorithms/protocol (RIP, OSPF, BGP)  forwarding datagrams.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
RSC Part II: Network Layer 6. Routing in the Internet (2 nd Part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
Introduction 1 Lecture 19 Network Layer (Routing Protocols) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
10-1 Last time □ Transitioning to IPv6 ♦ Tunneling ♦ Gateways □ Routing ♦ Graph abstraction ♦ Link-state routing Dijkstra's Algorithm ♦ Distance-vector.
Router Architecture Overview
4: Network Layer 4a-1 15: Inter and intra AS, RIP, OSPF, BGP, Router Architecture Last Modified: 10/19/2015 1:40:13 PM.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
4: Network Layer4a-1 Routing in the Internet r The Global Internet consists of Autonomous Systems (AS) interconnected with each other: m Stub AS: small.
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
ICT 6621 : Advanced NetworkingKhaled Mahbub, IICT, BUET, 2008 Lecture 5 TCP/IP Network Layer (3)
Forwarding.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
Network Layer4-1 Routing Algorithm Classification Global or decentralized information? Global: r all routers have complete topology, link cost info r “link.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
IP. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Network Layer4-1 Chapter 4 Network Layer All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down.
Routing Protocols 1 ProtocolsLayer name DNSApplication TCP, UDPTransport IPInternet (Network ) WiFi, Ethernet Link (Physical)
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
Routing in the Internet
14 – Inter/Intra-AS Routing
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
Chapter 4: Network Layer
NAT – Network Address Translation
ICMP ICMP – Internet Control Message Protocol
Chapter 4: Network Layer
Chapter 4: Network Layer
Routing.
What’s “Inside” a Router?
Department of Computer and IT Engineering University of Kurdistan
Chapter 4: Network Layer
Overview The Internet (IP) Protocol Datagram format IP fragmentation
Chapter 4: Network Layer
Chapter 4: Network Layer
Chapter 4: Network Layer
Routing.
Chapter 4: Network Layer
Presentation transcript:

4: Network Layer4a : Inter and intra AS, RIP, OSPF, BGP, Router Architecture Last Modified: 6/23/2015 8:46:00 PM

4: Network Layer4a-2 Goals of Routing Protocols r Find the “optimal route” r Rapid Convergence r Robustness r Configurable to respond to changes in many variables (changes in bandwidth, delay, queue size, policy, etc.) r Ease of configuration

4: Network Layer4a-3 Real Internet Routing? r CIDR? r Dynamic routing protocols running between every router?

4: Network Layer4a-4 Recall CIDR “Send me anything with addresses beginning /20” / / /23 Fly-By-Night-ISP Organization 0 Organization 7 Internet Organization 1 ISPs-R-Us “Send me anything with addresses beginning /16” /23 Organization We already talked about how routing based on hierarchical allocation of IP address space can allows efficient advertisement of routing information:

4: Network Layer4a-5 CIDR r CIDR by itself is a nice idea but.. m Hard to maintain m Work around existing IP address space allocations m What about redundant paths? r Dynamic routing protocols? m They maintain/update themselves m Allow for redundant paths

4: Network Layer4a-6 Dynamic Routing Protocols? scale: with 50 million destinations: r can’t store all destinations in routing tables! r routing table exchange would swamp links! r Neither link state nor distance vector could handle the whole Internet Our study of dynamic routing protocols thus far = idealized graph problem r all routers identical r network “flat” … not true in practice

4: Network Layer4a-7 Routing in the Internet r Administrative Autonomy m Internet = network of networks m Each network controls routing in its own network m Global routing system to route between Autonomous Systems (AS) r Two-level routing: m Intra-AS: administrator is responsible for choice m Inter-AS: unique standard

4: Network Layer4a-8 Hierarchical Routing Routers in same AS run same routing protocol m “intra-AS” routing protocol m routers in different AS can run different intra- AS routing protocol r special routers in AS r run intra-AS routing protocol with all other routers in AS r also responsible for routing to destinations outside AS m run inter-AS routing protocol with other gateway routers gateway routers

4: Network Layer4a-9 Internet AS Hierarchy Intra-AS border (exterior gateway) routers Inter-AS interior (gateway) routers

4: Network Layer4a-10 Intra-AS and Inter-AS routing Gateways: perform inter-AS routing amongst themselves perform intra-AS routers with other routers in their AS inter-AS, intra-AS routing in gateway A.c network layer link layer physical layer a b b a a C A B d A.a A.c C.b B.a c b c

4: Network Layer4a-11 Intra-AS and Inter-AS routing Host h2 a b b a a C A B d c A.a A.c C.b B.a c b Host h1 Intra-AS routing within AS A Inter-AS routing between A and B Intra-AS routing within AS B r Single datagram is often routed over many hops via routes established by several intra-AS routing protocols and an inter-AS routing protocol

4: Network Layer4a-12 Intra vs Inter AS Routing protcols r For Intra AS routing protocols: many choices; For Inter AS routing protocols: standard m Why does this make sense? r Intra AS routing protocols focus on performance optimization; Inter AS routing protocols focus on administrative issues m Why does this make sense? r Choice in Intra-AS m Intra-AS often static routing based on CIDR, can also be dynamic (usually RIP or OSPF) r Standard Inter-AS BGP is dynamic

4: Network Layer4a-13 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common IGPs: m RIP: Routing Information Protocol m OSPF: Open Shortest Path First m IGRP: Interior Gateway Routing Protocol (Cisco proprietary) m Can also be static (via CIDR) but that is not called an IGP

4: Network Layer4a-14 RIP ( Routing Information Protocol) r Distance vector algorithm r Included in BSD-UNIX Distribution in 1982 r Single Distance metric: # of hops (max = 15 hops) m Can you guess why? Count to infinity less painful if infinity = 16 m But limits RIP to networks with a diameter of 15 hops r Distance vectors: exchanged every 30 sec via Response Message (also called advertisement) r Each advertisement: route to up to 25 destination nets

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

4: Network Layer4a-16 RIP Table processing r RIP routing tables managed by application-level process called route-d (daemon) r advertisements sent in UDP packets, periodically repeated r Periodically inform kernel of routing table to use

4: Network Layer4a-17 RIP Table example: netstat -rn r Three attached class C networks (LANs) r Router only knows routes to attached LANs r Default router used to “go up” r Route multicast address: r Loopback interface (for debugging) Destination Gateway Flags Ref Use Interface UH lo U 2 13 fa U le U 2 25 qaa U 3 0 le0 default UG

4: Network Layer4a-18 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map at each node m Route computation using Dijkstra’s algorithm r OSPF advertisement carries one entry per neighbor router (i.e. cost to each neighbor) r Advertisements disseminated to entire AS (via flooding)

4: Network Layer4a-19 OSPF “advanced” features (not in RIP) r Many have nothing to do with link-state vs distance vector!! r Security: all OSPF messages authenticated (to prevent malicious intrusion); TCP connections used r Multiple same-cost paths can be used at once (single path need not be chosen as in RIP) r For each link, multiple cost metrics for different TOS (eg, high BW, high delay satellite link cost may set “low” for best effort; high for real time) r Integrated uni- and multicast support: m Multicast OSPF (MOSPF) uses same topology data base as OSPF r Hierarchical OSPF in large domains m Full broadcast in each sub domain only

4: Network Layer4a-20 Hierarchical OSPF: Mini Internet Within each area, border router responsible for routing outside the area Exactly one area is backbone area Backbone area contains all area border routers and possibly others

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

4: Network Layer4a-22 IGRP (Interior Gateway Routing Protocol) r CISCO proprietary; successor of RIP (mid 80s) r Distance Vector, like RIP but with advanced features like OSPF r several cost metrics (delay, bandwidth, reliability, load etc); administer decides which cost metrics to use r uses TCP to exchange routing updates r Loop-free routing via Distributed Updating Alg. (DUAL) based on diffused computation

4: Network Layer4a-23 Now on to Inter-AS routing

4: Network Layer4a-24 Autonomous systems r The Global Internet consists of Autonomous Systems (AS) interconnected with each other: m Stub AS: small corporation m Multihomed AS: large corporation (no transit traffic) m Transit AS: provider (carries transit traffic) r Major goal of Inter-AS routing protocol is to reduce transit traffic

4: Network Layer4a-25 Internet inter-AS routing: BGP r BGP (Border Gateway Protocol): the de facto standard r Path Vector protocol: m similar to Distance Vector protocol m each Border Gateway broadcast to neighbors (peers) entire path (I.e, sequence of ASs) to destination m E.g., Gateway X may send its path to dest. Z: Path (X,Z) = X,Y1,Y2,Y3,…,Z

4: Network Layer4a-26 Internet inter-AS routing: BGP Suppose: gateway X send its path to peer gateway W r W may or may not select path offered by X m cost, policy (don’t route via competitors AS!), loop prevention reasons. r If W selects path advertised by X, then: Path (W,Z) = w, Path (X,Z) r Note: X can control incoming traffic by controlling its route advertisements to peers: m e.g., don’t want to route traffic to Z -> don’t advertise any routes to Z

4: Network Layer4a-27 Internet inter-AS routing: BGP r BGP messages exchanged using TCP. r BGP messages: m OPEN: opens TCP connection to peer and authenticates sender m UPDATE: advertises new path (or withdraws old) m KEEPALIVE keeps connection alive in absence of UPDATES; also ACKs OPEN request m NOTIFICATION: reports errors in previous msg; also used to close connec tion

4: Network Layer4a-28 Internet Map r Now that we know about autonomous systems and intra and inter AS routing protocols r What does the Internet really look like? m That is a actually a hard question to answer m Internet Atlas Project Techniques, software, and protocols for mapping the Internet, focusing on Internet topology, performance, workload, and routing data

4: Network Layer4a-29 The Internet around 1990

4: Network Layer4a-30 CAIDA: NSFNET growth until 1995 Backbone nodes elevated Low Traffic Volume High

4: Network Layer4a-31 NSF Networking Architecture of Late 1990s r NSFNET Backbone Project successfully transitioned to a new networking architecture in m vBNS ( very high speed Backbone Network Services) - NSF funded, provided by MCI m 4 original Network Access Points (NSF awarded) m NSF funded Routing Arbiter project m Network Service Providers (not NSF funded)

4: Network Layer4a-32 Network Access Point r Allows Internet Service Providers (ISPs), government, research, and educational organizations to interconnect and exchange information r ISPs connect their networks to the NAP for the purpose of exchanging traffic with other ISPs  Such exchange of Internet traffic is often referred to as "peering"

4: Network Layer4a-33 The Internet in 1997

4: Network Layer4a-34 A typical Network Access Point (NAP) ADSU = ATM Data Service Unit IDSU = Intelligent Data Service Unit

4: Network Layer4a-35 CAIDA’s skitter plot Highly connected Few connections Location (longitude) Skitter data 16 monitors probing approximately 400,000 destinations 626,773 IP addresses 1, IP links 48,302 (52%) of globally routable network prefixes Europe North America Asia Top 15 ASes are in North America (14 in US, 1 in Canada) Many links US to Asia and Europe; few direct Asia/Europe Links

4: Network Layer4a-36 Roadmap r Mechanics of Routing m Sending datagram to destination on same network m Sending datagram to destination on a different network r Router Architecture r Router Configuration Demo

4: Network Layer4a-37 Getting a datagram from source to dest. IP datagram: A B E misc fields source IP addr dest IP addr data r datagram remains unchanged, as it travels source to destination r addr fields of interest here Dest. Net. next router Nhops routing table in A

4: Network Layer4a-38 Destination on same network as source A B E Starting at A, given IP datagram addressed to B: r look up net. address of B r find B is on same net. as A r link layer will send datagram directly to B inside link-layer frame m B and A are directly connected Dest. Net. next router Nhops misc fields data

4: Network Layer4a-39 Destination on different network than source, Step A B E Dest. Net. next router Nhops Starting at A, dest. E: r look up network address of E r E on different network m A, E not directly attached r routing table: next hop router to E is r link layer sends datagram to router inside link- layer frame r datagram arrives at r continued….. misc fields data

4: Network Layer4a-40 Destination on different network than source, Step A B E Arriving at , destined for r look up network address of E r E on same network as router’s interface m router, E directly attached r link layer sends datagram to inside link-layer frame via interface r datagram arrives at !!! (hooray!) misc fields data network router Nhops interface Dest. next

4: Network Layer4a-41 Router Architecture Overview Two key router functions: r run routing algorithms/protocol (RIP, OSPF, BGP) r switching datagrams from incoming to outgoing link

4: Network Layer4a-42 Input Port Functions Decentralized switching: r given datagram dest., lookup output port using routing table in input port memory r goal: complete input port processing at ‘line speed’ r queuing: if datagrams arrive faster than forwarding rate into switch fabric Physical layer: bit-level reception Data link layer: e.g., Ethernet

4: Network Layer4a-43 Input Port Queuing r Fabric slower that input ports combined -> queueing may occur at input queues r Head-of-the-Line (HOL) blocking: queued datagram at front of queue prevents others in queue from moving forward r queueing delay and loss due to input buffer overflow!

4: Network Layer4a-44 Three types of switching fabrics

4: Network Layer4a-45 Switching Via Memory First generation routers: r packet copied by system’s (single) CPU r speed limited by memory bandwidth (2 bus crossings per datagram) Input Port Output Port Memory System Bus Modern routers: r input port processor performs lookup, copy into memory r Example: Cisco Catalyst 8500

4: Network Layer4a-46 Switching Via Bus r datagram from input port memory to output port memory via a shared bus r bus contention: switching speed limited by bus bandwidth r 1 Gbps bus (Example: Cisco 1900): sufficient speed for access and enterprise routers (not regional or backbone)

4: Network Layer4a-47 Switching Via An Interconnection Network r overcome bus bandwidth limitations r Banyan networks, other interconnection nets initially developed to connect processors in multiprocessor m Consider things like cross sectional BW r Used as interconnection network in the router instead of simple crossbar r Advanced design: fragmenting datagram into fixed length cells, switch cells through the fabric. r Example: Cisco switches Gbps through the interconnection network

4: Network Layer4a-48 Output Ports r Buffering required when datagrams arrive from fabric faster than the transmission rate r Scheduling discipline chooses among queued datagrams for transmission

4: Network Layer4a-49 Output port queueing r buffering when arrival rate via switch exceeds ouput line speed r queueing (delay) and loss due to output port buffer overflow!

4: Network Layer4a-50 Misc r Ranveer and Rama with Prog Assignment 2 Overviews/Questions r Find a partner

4: Network Layer4a-51 Router Hardware

4: Network Layer4a-52 Router Configuration r Router Software: operating system with built in applications (command line interpreters, web servers) r Configure Each Interface r Configure Routing Protocol

4: Network Layer4a-53 Outtakes

4: Network Layer4a-54 A small Internet ethernet link host router FDDI Division A Division B Pac.Bell MCI aol.com

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

4: Network Layer4a-56 CAIDA: Layout showing Major ISPs