Outline  Recap Network components & basic mechanisms Routing Flow control  Continue Basic queueing analysis Construct routing table.

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

Cs/ee 143 Communication Networks Chapter 5 Routing Text: Walrand & Parakh, 2010 Steven Low CMS, EE, Caltech.
COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.
Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
Computer Networks with Internet Technology William Stallings
Courtesy: Nick McKeown, Stanford
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
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.
Routing - I Important concepts: link state based routing, distance vector based routing.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
14 – Inter/Intra-AS Routing
EE 122: Intra-domain routing Ion Stoica September 30, 2002 (* this presentation is based on the on-line slides of J. Kurose & K. Rose)
CS 4700 / CS 5700 Network Fundamentals Lecture 9: Intra Domain Routing Revised 7/30/13.
Routing Protocols and the IP Layer CS244A Review Session 2/01/08 Ben Nham Derived from slides by: Paul Tarjan Martin Casado Ari Greenberg.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Computer Networks Layering and Routing Dina Katabi
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
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.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
Network Layer4-1 Distance Vector Algorithm Bellman-Ford Equation (dynamic programming) Define d x (y) := cost of least-cost path from x to y Then d x (y)
The Network Layer & Routing
1 Week 5 Lecture 2 IP Layer. 2 Network layer functions transport packet from sending to receiving hosts transport packet from sending to receiving hosts.
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.
Introduction 1 Lecture 19 Network Layer (Routing Algorithms) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science.
Internet Routing r Routing algorithms m Link state m Distance Vector m Hierarchical routing r Routing protocols m RIP m OSPF m BGP.
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.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Distance Vector Routing
Application Layer 2-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Network Layer4-1 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.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
TRANSPORT LAYER BY, Parthasarathy.g.
CS 5565 Network Architecture and Protocols
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CPSC 335 Data Communication.
Routing BY, P.B.SHANMATHI.
9 Network Layer Part VI Computer Networks Tutun Juhana
CSE390 – Advanced Computer Networks
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
COMP 3270 Computer Networks
CS 457 – Lecture 12 Routing Spring 2012.
Introduction to Internet Routing
Network Layer Introduction Datagram networks IP: Internet Protocol
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing: Distance Vector Algorithm
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Road Map I. Introduction II. IP Protocols III. Transport Layer
CS 4700 / CS 5700 Network Fundamentals
COS 561: Advanced Computer Networks
Routers Routing algorithms
CS 3700 Networks and Distributed Systems
CS 640: Introduction to Computer Networks
ECE453 – Introduction to Computer Networks
Inter-domain Routing Outline Homework #3 solutions
CS 3700 Networks and Distributed Systems
COS 561: Advanced Computer Networks
Computer Networking Lecture 10: Intra-Domain Routing
Communication Networks
Network Layer (contd.) Routing
EE 122: Intra-domain routing: Distance Vector
Computer Networks Protocols
Chapter 4: Network Layer
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

Outline  Recap Network components & basic mechanisms Routing Flow control  Continue Basic queueing analysis Construct routing table

Network components hosts links routers

Basic mechanisms hosts links routers video How to choose path? How fast to send? packets

How to choose path?  Router by router decision  IP + routing table  Longest prefix matching

How fast to send?  window flow control  W * packet_size / RTT RTT time Source Destination 12W 12W 12W data ACKs 12W

Outline  Recap Network components & basic mechanisms Routing Flow control  Continue Basic queueing analysis Construct routing table

Links may get congested How long does it take for a packet to get transmitted?

Basic queueing analysis Arrival rate λ delay T Packets arrive uniformly Packets arrive randomly (expected) Queueing analysis studies what happens if arrival is random.

Poisson arrival Arrival rate λ expected delay T Poisson arrival: Interpretation: time Independent, exponentially distributed with mean 1/λ.

Poisson arrival holds more generally

Outline  Recap Network components & basic mechanisms Routing Flow control  Continue Basic queueing analysis Construct routing table

We already know  Router by router decision  IP + routing table  Longest prefix matching What is missing? How to construct the routing table.

Two layers of routing Internet A B 1.Choose which AS? - BGP 2.How to route inside an AS? - OSPF Autonomy system (AS) e.g., AT&T, Verizon, MIT.

Why two layers?  Different objectives Choose AS: special policies Inside AS: minimize delay, # hops  Simplify routing Choose AS: ignore details inside AS Inside AS: only details inside AS

Inter-domain routing: BGP Peering relation: A-B, B-C A, B, C carry each other’s traffic free of charge B only advertises B to A and to C A does not know how to reach C through this. A must have transit relation with anther ISP (not shown here) that carries its traffic to C. Transit relation: A-B, B-C Customer-provider relation, e.g., B is provider for A and for C. A (C) pays B for carrying to/from A (C). B advertises {B,C} to A and {A, B} to C so that all ISP’s know how to reach all destinations.

Inter-domain routing: BGP A typical configuration

Inter-domain routing: BGP BGP is policy-based routing  Generally not shortest-path  Other factors are generally more important in determining an AS-path than performance Peering agreement Pricing (revenue/cost) with next hop Reliability, security, political reasons  Can lead to oscillation and bad performance

Inter-domain routing: BGP Example BGP policy at Berkeley: 1.If possible, avoid AT&T 2.Choose path with smallest #hops 3.Alphabetical Berkeley decision: use path Sprint-Verizon-MIT to reach MIT

Border Gateway Protocol (BGP) How to reach MIT from Berkeley? Every AS keeps a list of (Destination, Path) pairs & policies. Policy: avoid AT&T. Verizon AT&T Sprint Berkeley (MIT, Verizon---MIT) (MIT, AT&T---MIT) (MIT, NA)

Border Gateway Protocol (BGP) How to reach MIT from Berkeley? Every AS keeps a list of (Destination, Path) pairs & policies. Policy: avoid AT&T. Verizon AT&T Sprint Berkeley (MIT, Verizon---MIT) (MIT, AT&T---MIT) (MIT, Sprint---Verizon---MIT) (MIT, Berkeley---AT&T---MIT) (MIT, Sprint---AT&T---MIT) (MIT, Verizon---AT&T---MIT) (MIT, AT&T---Verizon---MIT)

Border Gateway Protocol (BGP) How to reach MIT from Berkeley? Every AS keeps a list of (Destination, Path) pairs & policies. Policy: avoid AT&T. Verizon AT&T Sprint Berkeley (MIT, Verizon---MIT) (MIT, AT&T---MIT) (MIT, Sprint---Verizon---MIT) (MIT, Berkeley---AT&T---MIT)(MIT, Berkeley---Sprint---Verizon---MIT)

Border Gateway Protocol (BGP) In BGP, each AS  Announces itself to other ASes and which ASes it can reach  Obtains ASes reachability info from neighboring Ases  Propagate reachability info to all routers internal to the AS  Determine “good” routes to ASes based on reachability info and AS policy

BGP: potential oscillation Example BGP policy to reach D: 1.Prefer 2-hop path to 1-hop 2.Avoid 3-hop paths Oscillation: Every node will alternate between choosing an 1- hop path and 2-hop path

Some questions Q1: Why not 3-level, or N-level, routing? Q2: How can a source ensure that its packets follow the inter-domain path it wants? Q3: In BGP, can one prevent a domain from lying and funneling all traffic through itself in order eavesdrop?

Lecture outline Inter-domain routing BGP Intra-domain routing Shortest path algortihms Coding FEC, network coding

Shortest-path algorithm  Dijkstra  Bellman-Ford

Dijkstra Each step, add one node with shortest distance.

Pseudo code function Dijkstra(Graph, source): for each vertex v in Graph: // Initializations dist[v] := infinity ; // Unknown distance function from source to v previous[v] := undefined ; // Previous node in optimal path end for // from source dist[source] := 0 ; // Distance from source to source Q := the set of all nodes in Graph ; // All nodes in the graph are unoptimized while Q is not empty: // The main loop u := vertex in Q with smallest distance in dist[] ; // Source node in first case remove u from Q ; for each neighbor v of u: // where v has not yet been removed from Q alt := dist[u] + dist_between(u, v) ; if alt < dist[v]: // Relax (u,v,a) dist[v] := alt ; previous[v] := u ; end if end for end while return dist; endfunction

Bellman-Ford Consider how to reach D Each iteration, tell neighbor updated distance. Pick the best neighbor. (dist, each node ABCEF iteration (2,D)(4,D)(inf,--) (5,C)(5,E)(3,C)(2,D)(inf,--) (4,E) (3,C)(2,D)(6,B) (4,E) (3,C)(2,D)(5,B)

Pseudo code procedure BellmanFord(list vertices, list edges, vertex source) // Step 1: initialize graph for each vertex v in vertices if v is source then dist[v] := 0 else dist[v] := infinity previous[v] := null // Step 2: relax edges repeatedly for i from 1 to size(vertices)-1: // # iterations is upper bounded for each edge (u, v) with weight w in edges // for each pair of neighbors if dist[u] + w < dist[v] dist[v] := dist[u] + w previous[v] := u

Compare Dijsktra & BF  Message exchange Dijkstra: every node sends only its incident link costs to all other nodes. This requires O(|V| |E|) messages. BF: every node sends only to its neighbors least-cost estimates from itself to all other nodes  Speed of convergence Disjstra: above implementation takes O(|V| 2 ); can be reduced using heap BF: can converge slowly and have routing loops during transient; count-to-infinity problem (can be solved using poisoned reverse)  No clear winner Both are used on Internet RIP: distance-vector protocol OSPF: link-state protocol (meant to be successor to RIP)

Count-to-infinity problem Example Link between B & C fails A and B will not realize it, a routing route is created and their cost estimate to C keeps going up A solution: poisoned reverse: instead of telling B its true cost (2) to reach C, A tells B that its cost to reach A is infinity because A uses B to reach C.

Compare Dijsktra & BF  Dijkstra algorithm Needs global information (link-state alg) Each node broadcasts link-state packets to all other nodes in network Each node executes Dijkstra alg to calculate shortest paths to all other nodes After k iteration, shortest paths to k destinations are known (and they are the k shortest paths among the shortest paths to all nodes) Terminates after N-1 iterations (N = #nodes)

Compare Dijsktra & BF  Bellman-Ford algorithm Only needs local information (distance-vector alg) Each node exchanges with neighbors the vector of distances from itself to all other nodes Each node then updates the next hop and associated distance to all other nodes using Bellman-Ford (DP) equation Decentralized, asynchronous, distributed

Other questions  How can routers trust each other ?  How to deal with non-convergence in DV protocol? How often is oscillation encountered in practice?  Router R1 can route a pkt to host A through R2 or R3; R2 can route through R4 or R5 and has chosen R4. But R1 prefers R5 to R2 to R4. What happens?

Other questions  What is timescale for routing update?  What are major impediments to making significant changes to routing architecture? Would a bio-inspired routing system feasible?  Can network coding & FEC be combined?

Lecture outline Inter-domain routing BGP Intra-domain routing Shortest path algortihms Coding FEC, network coding

FEC: packet erasure code Recover from packet loss Coding Input: n packets Output: m packets  = bit-by-bit XOR of a random subset of  Header of specifies the subset used to generate

FEC: example : received pkt Decoding: received pkts

FEC: example : received pkt Decoding:

FEC: example : received pkt Decoding:

FEC: example : received pkt Decoding:

FEC: example : received pkt Decoding:

FEC: example : received pkt Decoding:

FEC: example : received pkt Decoding:

FEC: example : received pkt Decoding:

FEC: example : received pkt Decoding:

FEC: example : received pkt Decoding:

FEC: example : received pkt Decoding:

FEC: packet erasure code Decoding If for some i, then for all pkts that contains Remove from the collection of rec’d pkts Repeat until all have been decoded If at one step, there is no then decoding fails

Network coding: example link rate = R on every link multicast to both Y & Z throughput = 1.5R throughput = 2R

Network coding: example X and Y want to exchange A & B Without network coding, needs 4 pkt xmissions With network coding, needs 3 pkt xmissions