Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 The Network Layer Chapter 5. 2 Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation.

Similar presentations


Presentation on theme: "1 The Network Layer Chapter 5. 2 Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation."— Presentation transcript:

1 1 The Network Layer Chapter 5

2 2 Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation of Connectionless Service Implementation of Connection-Oriented Service Comparison of Virtual-Circuit and Datagram Subnets

3 3 Store-and-Forward Packet Switching The environment of the network layer protocols. fig 5-1

4 4 Implementation of Connectionless Service Routing within a diagram subnet.

5 5 Implementation of Connection-Oriented Service Routing within a virtual-circuit subnet.

6 6 Comparison of Virtual-Circuit and Datagram Subnets 5-4

7 7 Routing Algorithms The Optimality Principle Shortest Path Routing Flooding Distance Vector Routing Link State Routing

8 8 Optimality principle Bellman concept 1 2 i If node i is on the minimal path (1,2) then: path(1,i) is minimal and path(i,2) is minimal.

9 9 A sink tree for router B A subnet A sink tree for router B

10 10 Dijkstra: shortest path A to D 1.Mark A permanent and calculate distance to the neighbors (B and G). 2.Mark the smallest node (B) permanent and calculate neighbor distance from it. If you hit a conflict choose smaller distance. 3.Do step 2 until all network is covered.

11 11 Dijkstra's algorithm 5-8 top

12 12 Dijkstra's algorithm (2) 5-8 bottom

13 13 Dijkstra 5 A B(2,A) D(5,A) C(1,A) E F A E(2,C) F C(1,A) B(2,A) D(4,C) 5 A F(4,E) E(2,C) B(2,A) C(1,A) D(3,E) 5 A F(4,E) E(2,C) B(2,A) C(1,A) D(3,E) F(8,D) 5 A F(4,E) E(2,C) B(2,A) C(1,A) D(3,E) F(8,D)

14 14 3 Bellman-Ford = Distant vector = RIP (example) (-1,0) (-1,  ) (predecessor, d min, no of hops) Number of hops h= (-1,0,0) (1,2,1) (1,1,1) (-1, ,  ) (1,5,1) (-1, ,  ) initial

15 15 Bellman-Ford example (2) h= (-1,0,0) (1,2,1) (1,1,1)(4,2,2) (1,5,1) (4,3,2) (3,8,2) (2,5,2) (4,4,2) (3,8,2) (2,4,2) (3,6,2) (3,10,2) h<= (-1,0,0) (1,2,1) (1,1,1)(4,2,2) (4,4,2) (3,10,2)

16 16 Bellman-Ford example (3) h= (-1,0,0) (1,2,1) (1,1,1)(4,2,2) (5,3,3) (3,7,3) (4,4,2) (5,3,3) (3,10,2) (3,9,3) (6,12,3) (3,5,3) (5,4,3) h<= (-1,0,0) (1,2,1) (1,1,1)(4,2,2) (5,3,3) (5,4,3)

17 17 Bellman-Ford example (4) h<= (-1,0,0) (1,2,1) (1,1,1)(4,2,2) (5,3,3) (5,4,3) 5 h= (-1,0,0) (1,2,1) (1,1,1)(4,2,2) (5,4,3) (5,3,3) (6,6,4) (3,8,4) (3,4,4) (6,9,4) 1 1

18 18 Bellman-Ford example (5) final (-1,0) (1,2) (1,1)(4,2) (5,3) (5,4) 1 5

19 19 Distance Vector Routing 0251xx 2032xx x xx1102 xx5x xx 2032xx x xx1102 xx5x20 one hop matrix h= two hops matrix h=2 * = Algorithm: 1.N 1 (i,k) * N 1 (k,j) = min k (m(i,k)+n(k,j)) = N 2 (i,j) 2.N <2 (i,j) = min(N 1 (i,j), N 2 (i,j)) 3.Proceed steps 1. and 2. up to the M = dept of the network.

20 20 Distance Vector Routing in practice (a) A subnet. (b) Input from A, I, H, K, and the new routing table for J.

21 21 Distance Vector Routing (2) The count-to-infinity problem.

22 22 Link State Routing Each router must do the following: 1.Discover its neighbors, learn their network address. 2.Measure the delay or cost to each of its neighbors. 3.Construct a packet telling all it has just learned. 4.Send this packet to all other routers. 5.Compute the shortest path to every other router.

23 23 Learning about the Neighbors (a) Nine routers and a LAN. (b) A graph model of (a).

24 24 Measuring Line Cost A subnet in which the East and West parts are connected by two lines.

25 25 Building Link State Packets (a) A subnet. (b) The link state packets for this subnet.

26 26 Distributing the Link State Packets The packet buffer for router B in the previous slide (Fig. 5-13).

27 27 Hierarchical Routing Hierarchical routing.

28 28 Broadcast Routing Reverse path forwarding. (a) A subnet. (b) a Sink tree. (c) The tree built by reverse path forwarding.

29 29 Multicast Routing (a) A network. (b) A spanning tree for the leftmost router. (c) A multicast tree for group 1. (d) A multicast tree for group 2.

30 30 Routing for Mobile Hosts A WAN to which LANs, MANs, and wireless cells are attached.

31 31 Routing for Mobile Hosts (2) Packet routing for mobile users.

32 32 Routing in Ad Hoc Networks Possibilities when the routers are mobile: 1.Military vehicles on battlefield. –No infrastructure. 2.A fleet of ships at sea. –All moving all the time 3.Emergency works at earthquake. –The infrastructure destroyed. 4.A gathering of people with notebook computers. –In an area lacking

33 33 Route Discovery a)(a) Range of A's broadcast. b)(b) After B and D have received A's broadcast. c)(c) After C, F, and G have received A's broadcast. d)(d) After E, H, and I have received A's broadcast. Shaded nodes are new recipients. Arrows show possible reverse routes.

34 34 Route Discovery (2) Format of a ROUTE REQUEST packet.

35 35 Route Discovery (3) Format of a ROUTE REPLY packet.

36 36 Route Maintenance (a) D's routing table before G goes down. (b) The graph after G has gone down.

37 37 Node Lookup in Peer-to-Peer Networks (a) A set of 32 node identifiers arranged in a circle. The shaded ones correspond to actual machines. The arcs show the fingers from nodes 1, 4, and 12. The labels on the arcs are the table indices. (b) Examples of the finger tables.

38 38 Congestion Control Algorithms General Principles of Congestion Control Congestion Prevention Policies Congestion Control in Virtual-Circuit Subnets Congestion Control in Datagram Subnets Load Shedding Jitter Control

39 39 Congestion When too much traffic is offered, congestion sets in and performance degrades sharply.

40 40 General Principles of Congestion Control 1.Monitor the system. –detect when and where congestion occurs. 2.Pass information to where action can be taken. 3.Adjust system operation to correct the problem.

41 41 Congestion Prevention Policies Policies that affect congestion. 5-26

42 42 Congestion Control in Virtual-Circuit Subnets (a) A congested subnet. (b) A redrawn subnet, eliminates congestion and a virtual circuit from A to B.

43 43 Hop-by-Hop Choke Packets (a) A choke packet that affects only the source. (b) A choke packet that affects each hop it passes through.

44 44 Jitter Control (a) High jitter. (b) Low jitter.


Download ppt "1 The Network Layer Chapter 5. 2 Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation."

Similar presentations


Ads by Google