Spring 2002CS 4611 Routing Outline Algorithms Scalability.

Slides:



Advertisements
Similar presentations
CSCI-1680 Network Layer: Intra-domain Routing Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Advertisements

CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 12 – February 18, 2010.
Courtesy: Nick McKeown, Stanford
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 11 – February 16, 2010.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Spring 2003CS 4611 Routing Outline Algorithms Scalability.
1 Routing Distance Vector Routing Link State Routing Hierarchical Routing Routing for Mobile Hosts Subnetting Classless Inter-Domain Routing (Supernet)
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
1 ELEN 602 Lecture 19 Routing. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing table –routing:
Routing.
Subnetting and CIDR Textbook Ch 3.2.5
CSS 432: Subnetting, CIDR, and Global Internet
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
Inter-domain Routing Outline Border Gateway Protocol.
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
13-Sep-154/598N: Computer Networks Address Translation Map IP addresses into physical addresses –destination host –next hop router Techniques –encode physical.
1 Routing Outline Algorithms Scalability. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
Introduction to BGP.
1 Introduction to Computer Networks Ilam University By: Dr. Mozafar Bag-Mohammadi Routing.
Routing and Routing Protocols Routing Protocols Overview.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
1 Routing Distance Vector Routing Link State Routing Hierarchical Routing Routing for Mobile Hosts.
1 Routing Outline Algorithms Scalability. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag-Mohammadi Routing.
14-Oct-154/598N: Computer Networks Internet Structure - Past NSFNET backbone Stanford BARRNET regional Berkeley PARC NCAR UA UNM Westnet regional UNL KU.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
CSS 432: Routing 1 CSS432 Routing Textbook Ch3.3 Professor: Munehiro Fukuda.
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.
Lecture 17 November 8Intra-domain routing November 13Internet routing 1 November 15Internet routing 2 November 20End-to-end protocols 1 November 22End-to-end.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag-Mohammadi Routing.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
CSCI-1680 Network Layer: Intra-domain Routing Based partly on lecture notes by David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
23-Dec-154/598N: Computer Networks Overview 4.2: Routing Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
Dynamic Routing Protocols II OSPF
Spring 2010CS 3321 Interdomain Routing. Spring 2010CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
1 Forwarding vs. Routing Forwarding vs Routing –forwarding: To select an output port based on destination address and routing table –routing: Process by.
Spring 2006CS 3321 Interdomain Routing. Spring 2006CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Spring 2008CPE Computer Networks1 Routing: Part II Outline Algorithms Scalability Reading: Section 4.3.
Inter-domain Routing Outline Border Gateway Protocol.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
CSS432 Subnetting and CIDR Textbook Ch3. 2
TRANSPORT LAYER BY, Parthasarathy.g.
Dynamic Routing Protocols II OSPF
Routing BY, P.B.SHANMATHI.
Routing and Switching Fabrics
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Each mobile node has a home network, home address and home agent
Dynamic Routing Protocols II OSPF
Intradomain Routing Outline Introduction to Routing
Inter-domain Routing Outline Homework #3 solutions
Introduction to Computer Networks
2. Fragmentation and Reassembly
Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.) Goal is to use this opportunity.
Tree Structured Internet(c. 1990)
Routing Outline Algorithms Scalability Spring 2003 CS 332.
Routing and Switching Fabrics
Presentation transcript:

Spring 2002CS 4611 Routing Outline Algorithms Scalability

Spring 2002CS 4612 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing table –routing: process by which routing table is built Network as a Graph Problem: Find lowest cost path between two nodes Factors –static: topology –dynamic: load

Spring 2002CS 4613 Overview A routing domain: an internet work in which all the routers are under the same administrative control. Intradomain routing protocol (interior gateway protocols) Interdomain routing protocol (exterior gateway protocols)

Spring 2002CS 4614

Spring 2002CS 4615 Distance Vector Each node maintains a set of triples –(Destination, Cost, NextHop) Directly connected neighbors exchange updates –periodically (on the order of several seconds) –whenever table changes (called triggered update) Each update is a list of pairs: –( Destination, Cost) Update local table if receive a “better” route –smaller cost –came from next-hop Refresh existing routes; delete if they time out

Spring 2002CS 4616 Example Destination Cost NextHop A 1 A C 1 C D 2 C E 2 A F 2 A G 3 A Routing Table for B

Spring 2002CS 4617

Spring 2002CS 4618 Routing Loops Example 1 –F detects that link to G has failed –F sets distance to G to infinity and sends update t o A –A sets distance to G to infinity since it uses F to reach G –A receives periodic update from C with 2-hop path to G –A sets distance to G to 3 and sends update to F –F decides it can reach G in 4 hops via A Example 2 –link from A to E fails –A advertises distance of infinity to E –B and C advertise a distance of 2 to E –B decides it can reach E in 3 hops; advertises this to A –A decides it can read E in 4 hops; advertises this to C –C decides that it can reach E in 5 hops…

Spring 2002CS 4619 Count to infinity problem (1,E) (4,C) A B C D G F E (2,A) (3,B) (2,A) (3,F) (3,B) (4,C) A B C D G F E (2,A) (3,B) (2,A) (3,F) 4 D 3 A B C G F E D 5 A B C G F E

Spring 2002CS Count to infinity problem (cont.) 6 D 5 A B C G F E D 8 D 7 A B C G F E D 6 D 7 A B C G F E D

Spring 2002CS Split horizon with poison reverse If in the routing table of a neighbor Y of node X, the next hop entry for destination Z is X, Y informs X that its distance to Z is infinite.

Spring 2002CS ( ,E) (4,C) A B C D G F E (2,A) (3,B) (2,A) (3,F) (1,E) (4,C) A B C D G F E (2,A) (3,B) (2,A) (3,F) ( ,E) (4,C) A B C D G F E ( ,-) (3,B) ( ,-) (3,F) ( ,E) (4,C) A B C D G F E ( ,-)

Spring 2002CS Split horizon with poison reverse cannot solve the count-to-infinity problem (1,E) (3,C) A B C D G F E (2,A) (3,F) ( ,E) (3,C) A B C D G F E (2,A) (3,F) ( ,E) (3,C) A B C D G F E (3,B) ( ,-) (3,F) (4,B) (4,C) A B C D G F E ( ,-) (4,D)

Spring 2002CS Split horizon with poison reverse cannot solve the count-to-infinity problem ( ,-) A B C D G F E (5,A) (5,G) (5,D) ( ,-) (8,C) A B C D G F E (8,A) ( ,-) (6,F) (6,C) A B C D G F E ( ,-) (6,G) ( ,-) (7,F) ( ,-) A B C D G F E (7,A) ( ,-)

Spring 2002CS Loop- Breaking Heuristics Set infinity to 16 Split horizon Split horizon with poison reverse

Spring 2002CS RIP: Routing Information Protocol

Spring 2002CS Link State Strategy –send to all nodes (not just neighbors) information about directly connected links (not entire routing table) Link State Packet (LSP) –id of the node that created the LSP –cost of link to each directly connected neighbor –sequence number (SEQNO) –time-to-live (TTL) for this packet

Spring 2002CS Link State (cont) Reliable flooding –store most recent LSP from each node –forward LSP to all nodes but one that sent it –generate new LSP periodically increment SEQNO –start SEQNO at 0 when reboot –decrement TTL of each stored LSP discard when TTL=0

Spring 2002CS 46119

Spring 2002CS Route Calculation Dijkstra’s shortest path algorithm Let –N denotes set of nodes in the graph –l (i, j) denotes non-negative cost (weight) for edge (i, j) –s denotes this node –M denotes the set of nodes incorporated so far –C(n) denotes cost of the path from s to node n M = {s} for each n in N - {s} C(n) = l(s, n) while (N != M) M = M union {w} such that C(w) is the minimum for all w in (N - M) for each n in (N - M) C(n) = MIN(C(n), C (w) + l(w, n ))

Spring 2002CS 46121

Spring 2002CS 46122

Spring 2002CS Metrics Original ARPANET metric –measures number of packets queued on each link –took neither latency or bandwidth into consideration New ARPANET metric –stamp each incoming packet with its arrival time ( AT ) –record departure time ( DT ) –when link-level ACK arrives, compute Delay = (DT - AT) + Transmit + Latency –if timeout, reset DT to departure time for retransmission –link cost = average delay over some time period Fine Tuning –compressed dynamic range –replaced Delay with link utilization

Spring 2002CS How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical Address Space –class C with 2 hosts (2/255 = 0.78% efficient) –class B with 256 hosts (256/65535 = 0.39% efficient) Still Too Many Networks –routing tables do not scale –route propagation protocols do not scale

Spring 2002CS Internet Structure Recent Past NSFNET backbone Stanford BARRNET regional Berkeley PARC NCAR UA UNM Westnet regional UNL KU ISU MidNet regional ■ ■ ■■ ■ ■

Spring 2002CS Internet Structure Today Backbone service provider Peering point Peering point Large corporation Small corporation “Consumer” ISP “Consumer” ISP “Consumer” ISP

Spring 2002CS Subnetting Add another level to address/routing hierarchy: subnet Subnet masks define variable partition of host part Subnets visible only within site

Spring 2002CS Subnet Example Forwarding table at router R1 Subnet Number Subnet Mask Next Hop interface interface R2

Spring 2002CS Forwarding Algorithm D = destination IP address for each entry (SubnetNum, SubnetMask, NextHop) D1 = SubnetMask & D if D1 = SubnetNum if NextHop is an interface deliver datagram directly to D else deliver datagram to NextHop Use a default router if nothing matches Not necessary for all 1s in subnet mask to be contiguous Can put multiple subnets on one physical network Subnets not visible from the rest of the Internet

Spring 2002CS Supernetting Assign block of contiguous network numbers to nearby networks Called CIDR: Classless Inter-Domain Routing Represent blocks with a single pair (first_network_address, count) Restrict block sizes to powers of 2 Use a bit mask (CIDR mask) to identify block size All routers must understand CIDR addressing

Spring 2002CS Route Propagation Know a smarter router –hosts know local router –local routers know site routers –site routers know core router –core routers know everything Autonomous System (AS) –corresponds to an administrative domain –examples: University, company, backbone network –assign each AS a 16-bit number Two-level route propagation hierarchy –interior gateway protocol (each AS selects its own) –exterior gateway protocol (Internet-wide standard)

Spring 2002CS Popular Interior Gateway Protocols RIP: Route Information Protocol –developed for XNS –distributed with Unix –distance-vector algorithm –based on hop-count OSPF: Open Shortest Path First –recent Internet standard –uses link-state algorithm –supports load balancing –supports authentication

Spring 2002CS EGP: Exterior Gateway Protocol Overview –designed for tree-structured Internet –concerned with reachability, not optimal routes Protocol messages –neighbor acquisition: one router requests that another be its peer; peers exchange reachability information –neighbor reachability: one router periodically tests if the another is still reachable; exchange HELLO/ACK messages; uses a k-out-of-n rule –routing updates: peers periodically exchange their routing tables (distance-vector)

Spring 2002CS BGP-4: Border Gateway Protocol AS Types –stub AS: has a single connection to one other AS carries local traffic only –multihomed AS: has connections to more than one AS refuses to carry transit traffic –transit AS: has connections to more than one AS carries both transit and local traffic Each AS has: –one or more border routers –one BGP speaker that advertises: local networks other reachable networks (transit AS only) gives path information

Spring 2002CS BGP Example Speaker for AS2 advertises reachability to P and Q –network , , , and , can be reached directly from AS2 Speaker for backbone advertises –networks , , , and can be reached along the path (AS1, AS2). Speaker can cancel previously advertised paths

Spring 2002CS IP Version 6 Features –128-bit addresses (classless) –multicast –real-time service –authentication and security –autoconfiguration –end-to-end fragmentation –protocol extensions Header –40-byte “base” header –extension headers (fixed order, mostly fixed length) fragmentation source routing authentication and security other options

Spring 2002CS 46137

Spring 2002CS Address Notation: X:X:X:X:X:X:X:X Where X is a hexadecimal representation of a 16-bit piece of the address. Example: 47CD:1234:4422:AC02:0022:1234:A456: CD:0000:0000:0000:0000:0000:A456:0124  47CD::A456:0124 Reserved Addresses: prefix IPv4-comatible IPv6 address 0000:0000:…:0000:0000: (IPv4 address)  :: IPv4-mapped IPv6 address (for node that is only capable of understanding IPv4) 0000:0000:…:FFFF:  ::FFFF:

Spring 2002CS Aggregatable Global Unicast Addresses: prefix 001 Use CIDR prefix addressing Link local use addresses: prefix Site local use addresses: prefix Global uniqueness of the address need no be an issue - Autoconfiguration (plug and play) Use link local use addresses … bit Ethernet address 0’s Router advertise the subnet prefix

Spring 2002CS Multicast Addresses: prefix Anycast Addresses: use regular unicast addresses -To deliver a packet to one of a group of addresses, usually the nearest one -Routing support to mobile hosts Other Issues: -Secutiry -QoS

Spring 2002CS 46141

Spring 2002CS Transition from IPv4 to IPv6 Some IPv6 capable nodes, Some hosts and routers that only understand IPv4 Two major mechanisms: 1. Dual-stack operation IPv6 nodes: use version field (to decide which stack should process the incoming packets) 2. Tunneling IPv4 IPv6 capable