Network Layer – part 31 Customer-Provider Routing Relationships  The Global Internet consists of Autonomous Systems (AS) interconnected with each other:

Slides:



Advertisements
Similar presentations
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Advertisements

1 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 2 nd edition. Jim Kurose, Keith Ross Addison-Wesley, July 2002.
1 o Two issues in practice – Scale – Administrative autonomy o Autonomous system (AS) or region o Intra autonomous system routing protocol o Gateway routers.
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.
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.
Network Layer4-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley,
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.
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
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.
1 Announcement r Project #2 due midnight r Homework #3 due Friday midnight r Project #3 is out.
14 – Inter/Intra-AS Routing
Network Layer4-1 Router Architecture Overview Two key router functions: r run routing algorithms/protocol (RIP, OSPF, BGP) r switching datagrams from incoming.
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,
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.
Chapter 4 Queuing, Datagrams, and Addressing
The Network Layer: IP, subnets, NAT and Routing Based on slides from the Computer Networking: A Top Down Approach Featuring the Internet by Kurose and.
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.
Network Layer introduction 4.2 virtual circuit and datagram networks 4.3 what’s inside a router 4.4 IP: Internet Protocol  datagram format  IPv4.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
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.
Homework 4 r Out: Fri 2/27/2015 r In: Fri 3/13/2015.
Router Architecture Overview
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.
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)
4: Network Layer4b-1 IPv6 r Initial motivation: 32-bit address space completely allocated by r Additional motivation: m header format helps speed.
Forwarding.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 20 Omar Meqdadi Department of Computer Science and Software Engineering University.
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.
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.
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
Chapter 4 Network Layer All material copyright
Homework 4 Out: Fri 2/26/2016 In: Fri 3/11/2016.
Chapter 4: Network Layer
Chapter 4: Network Layer
What’s “Inside” a Router?
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 Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Chapter 4: Network Layer
Chapter 4: Network Layer
Presentation transcript:

Network Layer – part 31 Customer-Provider Routing Relationships  The Global Internet consists of Autonomous Systems (AS) interconnected with each other:  Customer: Stub AS: small corporation  Customer: Multihomed AS: large corporation (no transit)  Provider: Transit AS: backbone provider networks A B C w x y e.g. A, B, C e.g. x e.g. w, y Advertises to its neighbors that it has no paths to any other destinations except itself All traffic entering must be destined for w, all traffic leaving must have originated from w Stub AS must be prevented from forwarding traffic between Transit ASs using Selective Route Advertisement Policy Group of routers

Network Layer – part 32 Routing in the Internet  Two-level routing:  Intra-AS: administrator is responsible for choice  Inter-AS: unique standard Border Gateway Protocol (BGP4)  de facto standard inter-AS routing protocol in today’s Internet  provides each AS a means to: obtain subnet reachability information (i.e. via one of its neighboring AS) propagate the reachability information to all routers internal to the AS determine “good” routes to subnets based on the reachability information and on AS policy. Allows each subnet to advertise its existence to the rest of the Internet

Network Layer – part 33 Internet AS Hierarchy AS border (exterior gateway) routers AS interior (gateway) routers

Network Layer – part 34 Intra-AS Routing  Also known as Interior Gateway Protocols (IGP)  Most common IGPs:  RIP(lower-tier ISPs and Enterprise networks)  RIP: Routing Information Protocol (lower-tier ISPs and Enterprise networks)  OSPF(upper-tier ISPs)  OSPF: Open Shortest Path First (upper-tier ISPs)  IGRP  IGRP: Interior Gateway Routing Protocol (Cisco proprietary)

Network Layer – part 35 RIP ( Routing Information Protocol)  Distance vector algorithm  Included in (Berkeley Software Distribution) BSD-UNIX Distribution in 1982  Distance metric: max = 15 hops  # of hops (max = 15 hops) = (AS < 15 hops in diameter)  Can you guess why? every 30 sec  Distance vectors: exchange routing updates via Response Message (also called advertisement) every 30 sec 25 destination subnets  Each advertisement: route to up to 25 destination subnets within the AS, including the sender’s distance from each of them Hop – no. of subnets traversed along the shortest path from Source Router to Destination Subnet, including the Destination Subnet.

Network Layer – part 36 RIP (Routing Information Protocol) Destination Subnet Next Router Num. of hops to dest. w A2 y B2 z B7 x w xy z A C D B Routing table in Router D … Example subnet

Network Layer – part 37 RIP (Routing Information Protocol) Destination Subnet Next Router Num. of hops to dest. wA2 yB2 zB7 x w xy z A C D B Routing table in Router D … Example Destination Subnet Next Router Num. of hops to dest. zC4 w-- 1 x (30 secs. later.. D receives an advertisement from Router A ) Router A has a shorter path to Z!

Network Layer – part 38 RIP (Routing Information Protocol) Destination Subnet Next Router Num. of hops to dest. wA2 yB2 A zA4 x w xy z A C D B Routing table in Router D … Example Destination Subnet Next Router Num. of hops to dest. zC4 w-- 1 x Advertisement from Router A Router D updates its entry for destination Z

Network Layer – part 39 RIP: Link Failure and Recovery after 180 sec If no advertisement is heard after 180 sec --> the neighbour/link is declared dead  Modifies routing table - routes via neighbor invalidated  new advertisements sent to neighbors  neighbours in turn send out new advertisements (if tables changed)  link failure info quickly propagates to entire net  poisoned reverse used to prevent ping-pong loops (infinite distance = 16 hops) Example

Network Layer – part 310 Routing Info Protocol (RIP) Table processing application-level route-d (daemon)  RIP routing tables managed by application-level process called route-d (daemon) UDP packets  advertisements sent in UDP packets, periodically repeated Able to manipulate routing tables within the UNIX kernel via UDP, port 520

Network Layer – part 311 OSPF (Open Shortest Path First)  “Open” means publicly available Link-State algorithm  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 router  Advertisements disseminated to entire AS (via flooding)  Carried in OSPF messages directly over IP (rather than TCP or UDP with upper-layer protocol of 89 all Broadcasts information to all not just neighboring routers OSPF Protocol Functionalities: reliable data transfer, link-state broadcast, check for links operability, extraction of neighboring router’s database of network-wide link state

Network Layer – part 312 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)  Integrated uni- and multicast routing support:  Multicast OSPF (MOSPF) uses same topology data base as OSPF  Hierarchical OSPF in large domains. Allow only trusted routers Most significant advancement! Has the ability to structure an autonomous system hierarchically

Network Layer – part 313 Hierarchical Open Shortest Path First (OSPF)

Network Layer – part 314 Hierarchical OSPF  Two-level hierarchy: local area, backbone.  Link-state advertisements are sent only within an area  each node has detailed area topology; only know direction (shortest path) to nets in other areas.  Each area runs its own OSPF link-state routing algorithm  Area border routers: responsible for routing packets outside the area.  Backbone routers: run OSPF routing limited to backbone.  Boundary routers: connect to other ASs.

Network Layer – part 315 IGRP (Interior Gateway Routing Protocol)  CISCO proprietary; successor of RIP (mid 80s)  Uses the Distance Vector algorithm, like RIP  several cost metrics (delay, bandwidth, reliability, load, etc.)  uses TCP to exchange routing updates  Loop-free routing via Distributed Updating Alg. (DUAL) based on diffused computation

Network Layer – part 316 Router Architecture Overview Two key router functions:  run routing algorithms/protocol (RIP, OSPF, BGP)  switching datagrams from incoming to outgoing link Physical layer functions Data link layer functions Lookup & forwarding functions computes routing tables, performs Network management functions

Network Layer – part 317 Input Port Functions Decentralized switching:  given datagram dest., lookup output port using routing table in input port memory  goal  goal: complete input port processing at 'line speed'  queuing  queuing: happens if datagrams arrive faster than forwarding rate into switch fabric Physical layer: bit-level reception Data link layer: e.g., Ethernet see chapter 5

Network Layer – part 318 Input Port Queuing  Fabric slower than input ports combined -> queueing may occur at input queues  Head-of-the-Line (HOL) blocking: queued datagram at front of queue prevents others in queue from moving forward  queueing delay and loss due to input buffer overflow! Slot for Green packet is free, but there is HOL blocking, so Green packet will have to wait

Network Layer – part 319 Three types of switching fabrics 1 packet No routing processor; 1 packet at a time Like shared memory multiprocessors 2n n 2n buses that connect n input ports to n output ports

Network Layer – part 320 Switching Via Memory First generation routers: CPU  packet copied by system's (single) CPU memory bandwidth  speed limited by memory bandwidth (2 bus crossings per datagram) Input Port Output Port Workstation’s Memory System Bus Modern routers: processor memory  input port processor performs lookup, copy into memory  Cisco Catalyst 8500

Network Layer – part 321 Switching Via Bus  datagram from input port memory shared bus to output port memory via a shared bus  bus contention: switching speed limited by bus bandwidth  1 Gbps bus, Cisco 1900: sufficient speed for access and enterprise routers (not regional or backbone)

Network Layer – part 322 Switching Via An Interconnection Network  overcome bus bandwidth limitations  Banyan networks, other interconnection nets initially developed to connect processors in multiprocessor fragmenting datagram  Other Advanced design: fragmenting datagram into fixed length cells, switch cells through the fabric.  Cisco 12000: switches 60 Gbps through the interconnection network

Network Layer – part 323 Output Ports  Buffering required when datagrams arrive from the fabric faster than the transmission rate  Scheduling discipline chooses among queued datagrams for transmission

Network Layer – part 324 Output port queueing  buffering when arrival rate via switch exceeeds ouput line speed  queueing (delay) and loss due to output port buffer overflow! It is more advantageous to mark a packet before the buffer is full in order to provide a congestion signal to the sender

Network Layer – part 325 END OF SESSION

Network Layer – part 326 IPv6  Initial motivation: 32-bit address space completely allocated by  Additional motivation:  header format helps speed processing/forwarding  header changes to facilitate QoS  new anycast address: route to best of several replicated servers  IPv6 datagram format:  fixed-length 40 byte header  no fragmentation allowed

Network Layer – part 327 IPv6 Header (Cont) Priority: identify priority among datagrams in flow Flow Label: identify datagrams in same flow. (concept of flow not well defined). Next header: identify upper layer protocol for data

Network Layer – part 328 Other Changes from IPv4  Checksum: removed entirely to reduce processing time at each hop  Options: allowed, but outside of header, indicated by Next Header field  ICMPv6: new version of ICMP  additional message types, e.g. ''Packet Too Big''  multicast group management functions

Network Layer – part 329 Transition From IPv4 To IPv6  Not all routers can be upgraded simultaneously  no flag days  How will the network operate with mixed IPv4 and IPv6 routers?  Two proposed approaches:  Dual Stack: some routers with dual stack (v6, v4) can translate between formats  Tunneling: IPv6 carried as payload in IPv4 datagram among IPv4 routers

Network Layer – part 330 Dual Stack Approach

Network Layer – part 331 Tunneling IPv6 inside IPv4 where needed