SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.

Slides:



Advertisements
Similar presentations
Ch. 12 Routing in Switched Networks
Advertisements

Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
1 The Network Layer Chapter 5. 2 Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation.
Routing Basics What’s going on the back … Faisal Karim Shaikh DEWSNet Group Dependable Embedded Wired/Wireless Networks.
UNIT-IV Computer Network Network Layer. Network Layer Prepared by - ROHIT KOSHTA In the seven-layer OSI model of computer networking, the network layer.
Network Routing Algorithms
Routing So how does the network layer do its business?
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
Network Layer Introduction:
Summary The Problem The Dijkstra’s Shortest Path Algorithm
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
EECC694 - Shaaban #1 lec #7 Spring The OSI Reference Model Network Layer.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Data Communications & Computer Networks
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
Routing and Routing Protocols Dynamic Routing Overview.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
1 CS 352 Internet Technology Routing Richard Martin Dept. of Computer Science Rutgers University
The Network Layer Week 5. Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation of Connectionless.
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
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.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
10/19/20151 The Network Layer. 10/19/20152 Introduction Route packets through subnet So, it must know the topology of the subnet It should also be able.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
CSCI 465 D ata Communications and Networks Lecture 15 Martin van Bommel CSCI 465 Data Communications & Networks 1.
The Network Layer.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
4. Mar INF-3190: Switching and Routing Routing.
Routing and Routing Protocols
TELE202 Lecture 6 Routing in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Packet switching in Wide Area Networks »Source: chapter 10 ¥This Lecture.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
THE NETWORK LAYER.
Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Network-Layer Routing Routing tasks are methods of finding the paths for packet from their sources to their destinations. Routers are responsible mainly.
Network Layer Chapter 5 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Design Issues Routing Algorithms Congestion.
Distance Vector Routing
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
The Network Layer Design Issues & Routing Algorithms Chapter 5.
Chapter 5 Network Layer.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Network Layer Chapter
The Network Layer UNIT-4 snistforum.com. Network Layer Design Issues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation.
The Network Layer Chapter 5 Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education- Prentice Hall, 2011.
1 Most important algorithms! Routing Algorithms Properties Shortest Path Routing Flooding Distance Vector Routing Link State routing Hierarchical routing.
Network Layer Routing Networks: Routing.
William Stallings Data and Computer Communications
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Network Layer.
Network Layer.
EEC-484/584 Computer Networks
THE NETWORK LAYER.
Chapter 5 The Network Layer.
Kuliah 5 ROUTING.
EEC-484/584 Computer Networks
Intradomain Routing Outline Introduction to Routing
Chapter 7 Packet-Switching Networks
The Network Layer Network Layer Design Issues:
PRESENTATION COMPUTER NETWORKS
Communication Networks NETW 501
EEC-484/584 Computer Networks
Network Layer Routing Networks: Routing.
Delivery, Forwarding, and Routing
Other Routing Protocols
Computer network technology
Network Layer.
Presentation transcript:

SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides

Source Chapter 5 - The Network Layer Section The Network Layer

Routing Algorithms – concepts Shortest Path Routing Flooding Distance Vector Routing Link State Routing Hierarchical Routing Broadcast Routing Multicast Routing Routing for Mobile Hosts Routing in Ad Hoc Networks

Definition of routing alg. The routing algorithm is the network layer software responsible for deciding which output line an incoming packet should be transmitted on. Router have 2 processes inside: Forwarding - handles each packet as it arrives, looking up the outgoing line to use for it in the routing tables Routing - filling in and updating the routing tables

Classification of routing alg. Nonadaptive algorithms do not base their routing decisions on measurements or estimates of the current traffic and topology (static routing) Adaptive algorithms change their routing decisions to reflect changes in the topology, and usually the traffic as well.

Properties of routing algorithm Correctness, Simplicity, Robustness - expected to run continuously for years without systemwide failures, Stability – reaches equilibrium and stays there, Fairness – see Tanenbaum’s example, Optimality – see Tanenbaum – optimality principle,

Shortest Path Routing The way of measuring path length: number of hops geographic distance bandwidth, average traffic, communication cost, mean queue length, measured delay, other factors Shortest path is the fastest path rather than the path with the fewest arcs or kilometers

Shortest Path Routing The first 5 steps used in computing the shortest path from A to D. The arrows indicate the working node.

Shortest Path Routing Each node is labeled (in parentheses) with its distance from the source node along the best known path. Initially, no paths are known, so all nodes are labeled with infinity. As the algorithm proceeds and paths are found, the labels may change, reflecting better paths. A label may be either tentative or permanent. Initially, all labels are tentative. When it is discovered that a label represents the shortest possible path from the source to that node, it is made permanent and never changed thereafter.

Dijkstra's algorithm

Dijkstra's algorithm (cont.)

Flooding Flooding is static algorithm where every incoming packet is sent out on every outgoing line except the one it arrived on. Flooding obviously generates vast numbers of duplicate packets, in fact, an infinite number unless some measures are taken to damp the process. One such measure is to have a hop counter contained in the header of each packet, which is decremented at each hop, with the packet being discarded when the counter reaches zero.

Distance Vector Routing The distance vector routing algorithm is sometimes called by other names, most commonly the distributed Bellman-Ford routing algorithm and the Ford-Fulkerson algorithm, after the researchers who developed it (Bellman, 1957; and Ford and Fulkerson, 1962 – see the Tanenbaum’s list of references).

Distance Vector Routing The Count-to-Infinity Problem - few attempts to solve it (such as split horizon with poisoned reverse in RFC 1058), but none of these work well in general.

Link State Routing Each router must do the following: 1.Discover its neighbors and learn their network addresses. 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.

Hierarchical Routing At a certain point the network may grow to the point where it is no longer feasible for every router to have an entry for every other router, Routing will have to be done hierarchically, as it is in the telephone network.

Hierarchical Routing (cont.) Routers are divided into regions with: knowing all the details about how to route packets to destinations within its own region, knowing nothing about the internal structure of other regions. For huge networks, a two-level hierarchy may be insufficient;

Broadcast Routing In some applications, hosts need to send messages to many or all other hosts. Sending a packet to all destinations simultaneously is called broadcasting

Broadcast Routing (cont.) Methods: send a distinct packet to each destination Flooding multidestination routing - each packet contains either a list of destinations or a bit map indicating the desired destinations. explicit use of the sink tree (spanning tree) for the router initiating the broadcast reverse path forwarding - when a broadcast packet arrives at a router, the router checks to see if the packet arrived on the line that is normally used for sending packets to the source of the broadcast – accepted, in another situation – rejected.

Multicast Routing Sending a message to a group of processes is called multicasting, and its routing algorithm is called multicast routing.

Routing for Mobile Hosts We can distinguish two other kinds of hosts: Migratory hosts - are basically stationary hosts who move from one fixed site to another from time to time but use the network only when they are physically connected to it. Roaming hosts actually compute on the run and want to maintain their connections as they move around

Routing for Mobile Hosts (cont.)

Hosts are assumed to have a permanent home location that never changes and permanent home address that can be used to determine their home locations Each area has one or more foreign agents, which are processes that keep track of all mobile hosts visiting the area. Each area has a home agent, which keeps track of hosts whose home is in the area, but who are currently visiting another area.

Routing in Ad Hoc Networks We have now seen how to do routing when the hosts are mobile but the routers are fixed. An even more extreme case is one in which the routers themselves are mobile - ad hoc networks or MANETs (Mobile Ad hoc NETworks) Among the possibilities are: 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

Route discovery

Node Lookup in Peer-to-Peer Networks