Download presentation

Presentation is loading. Please wait.

Published byKaitlyn Brodell Modified over 3 years ago

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

2
Network components hosts links routers

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

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

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

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

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

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

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

10
Poisson arrival holds more generally

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

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

13
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.

14
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

15
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.

16
Inter-domain routing: BGP A typical configuration

17
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

18
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

19
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)

20
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)

21
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)

22
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

23
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

24
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?

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

26
Shortest-path algorithm Dijkstra Bellman-Ford

27
Dijkstra Each step, add one node with shortest distance.

28
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

29
Bellman-Ford Consider how to reach D Each iteration, tell neighbor updated distance. Pick the best neighbor. (dist, next_hop) @ 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)

30
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

31
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)

32
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.

33
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)

34
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

35
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?

36
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?

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

38
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

39
FEC: example : received pkt Decoding: received pkts

40
FEC: example : received pkt Decoding:

41
FEC: example : received pkt Decoding:

42
FEC: example : received pkt Decoding:

43
FEC: example : received pkt Decoding:

44
FEC: example : received pkt Decoding:

45
FEC: example : received pkt Decoding:

46
FEC: example : received pkt Decoding:

47
FEC: example : received pkt Decoding:

48
FEC: example : received pkt Decoding:

49
FEC: example : received pkt Decoding:

50
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

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

52
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

Similar presentations

OK

Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.

Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.

© 2018 SlidePlayer.com Inc.

All rights reserved.

By using this website, you agree with our use of **cookies** to functioning of the site. More info in our Privacy Policy and Google Privacy & Terms.

Ads by Google

Ppt on telephone etiquette training Ppt on electric meter testing and repair Download free ppt on srinivasa ramanujan Ppt on channels of distribution definition Ppt on global warming with sound Ppt on condition monitoring Convert word doc to ppt online form Ppt on sports day activities Ppt on nuclear power generation Ppt on second law of thermodynamics equation