6/12/2016© 2010 Raymond P. Jefferis IIILect 05 - 1 The Network Layer.

Slides:



Advertisements
Similar presentations
Ch. 12 Routing in Switched Networks
Advertisements

1 Routing Protocols I. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
Data and Computer Communications
4/12/2015© 2009 Raymond P. Jefferis IIILect Internet Protocol - Continued.
Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Computer Networking A Top-Down Approach Chapter 4.7.
Chapter 4 Distributed Bellman-Ford Routing
CS4550: Computer Networks II network layer basics 3 routing & congestion control.
Routing Basics What’s going on the back … Faisal Karim Shaikh DEWSNet Group Dependable Embedded Wired/Wireless Networks.
Computer Networks with Internet Technology William Stallings
Routing Strategies Fixed Routing
1 Routing Lesson 10 NETS2150/2850 School of Information Technologies.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
Teknik Routing Pertemuan 20 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
CS335 Networking & Network Administration Tuesday, April 20, 2010.
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.
Layer-3 Routing Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
Chapter 4: Managing LAN Traffic
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
Lecture Week 10 Link-State Routing Protocols. Objectives Describe the basic features & concepts of link-state routing protocols. List the benefits and.
University of the Western Cape Chapter 11: Routing Aleksandar Radovanovic.
Routing and Routing Protocols Routing Protocols Overview.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 6 Routing and Routing Protocols.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
10/13/2015© 2008 Raymond P. Jefferis IIILect 07 1 Internet Protocol.
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
COP 4930 Computer Network Projects Summer C 2004 Prof. Roy B. Levow Lecture 3.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
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.
Cisco Systems Networking Academy S2 C 11 Routing Basics.
Networking and internetworking devices. Repeater.
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.
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.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Link-State Routing Protocols Routing Protocols and Concepts – Chapter 10.
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.
1 Networking and Internetworking Devices we need networking and internetworking devices to extend physical distance and to improve efficiency and manageability.
Distance Vector Routing
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
Distance Vector and Link State Routing Pragyaditya Das.
Prof. Alfred J Bird, Ph.D., NBCT Office – Science 3rd floor – S Office Hours – Monday and Thursday.
Prof. Alfred J Bird, Ph.D., NBCT Office – McCormick 3rd floor 607 Office Hours – Monday 3:00 to 4:00 and.
ROUTING.
16장. Networking and Internetworking Devices
Routing Protocols and Concepts
Link-State Routing Protocols
Network Layer.
What is a router? A router is a device that connects multiple computers together. Not to be confused with a switch Routers transmit packets of data across.
Network Layer – Routing 1
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
THE NETWORK LAYER.
Routing in Packet Networks Shortest Path Routing
Link-State Routing Protocols
Intradomain Routing Outline Introduction to Routing
PRESENTATION COMPUTER NETWORKS
Link-State Routing Protocols
Communication Networks
Communication Networks
Data Communication: Routing algorithms
Presentation transcript:

6/12/2016© 2010 Raymond P. Jefferis IIILect The Network Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect OSI Network Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect TCP/IP Model Uses a subset of the OSI layers Session and Presentation layers not present

6/12/2016© 2010 Raymond P. Jefferis IIILect TCP/IP Model

6/12/2016© 2010 Raymond P. Jefferis IIILect Node Types Source node Intermediate node Destination node

6/12/2016© 2010 Raymond P. Jefferis IIILect Source Node Functions Receives packets from transport layer Moves packets from source to destination –typically through a chain of nodes –requires a route Passes packets to data link layer for eventual transmission

6/12/2016© 2010 Raymond P. Jefferis IIILect Intermediate Node Functions Receives packets from data link layer Routes packets from source to destination –typically through a chain of nodes –requires a route Passes packets back to data link layer for eventual retransmission to destination via selected route

6/12/2016© 2010 Raymond P. Jefferis IIILect Intermediate Node Layers

6/12/2016© 2010 Raymond P. Jefferis IIILect Routing Functions Interconnection of multiple networks Determines output line for incoming packet Path selection based on destination address and routing algorithm Alternates based on network status (link state)

6/12/2016© 2010 Raymond P. Jefferis IIILect Multiway Routing

6/12/2016© 2010 Raymond P. Jefferis IIILect Routing Algorithms Algorithms –flooding –shortest path distance vector routing link state routing –flow-based

6/12/2016© 2010 Raymond P. Jefferis IIILect Flooding Algorithm Incoming packets sent on all lines except incoming (many duplicate packets) Each packet has hop counter, initially set to expected path length Decremented each hop, discard pkt if zero First arriving packet took shortest path Puts a lot of extra traffic on network

6/12/2016© 2010 Raymond P. Jefferis IIILect Shortest Path Routing Network consists of nodes and arcs Arcs have costs assigned Routing occurs at nodes Routing should minimize total path cost –requires cost metric –requires computation

6/12/2016© 2010 Raymond P. Jefferis IIILect Route Computations Follows link state distribution to all routers Each router contains all link delays Shortest path to each router computed, using path cost as metric –frame delay cost –other cost factors (distance, traffic, equipment) Algorithm

6/12/2016© 2010 Raymond P. Jefferis IIILect Shortest Path Algorithm For each possible starting node –Put starting node in optimal list –Repeat Compute total costs to all new neighbors Assign lowest as optimal for that node Delete other possibilities for that node –Until each node has optimum assigned for given starting node End

6/12/2016© 2010 Raymond P. Jefferis IIILect Route Computation to Node A

6/12/2016© 2010 Raymond P. Jefferis IIILect Route Computation to Node A

6/12/2016© 2010 Raymond P. Jefferis IIILect Route Computation to Node A

6/12/2016© 2010 Raymond P. Jefferis IIILect One-Hop Costs to Node A

6/12/2016© 2010 Raymond P. Jefferis IIILect Route Computation to Node A

6/12/2016© 2010 Raymond P. Jefferis IIILect Belman-Ford Routing Distance vector method Uses shortest path algorithm Results in routing table for each node

6/12/2016© 2010 Raymond P. Jefferis IIILect Distance Vector Routing Each router has vector of optimal paths to each destination Tables updated by neighbor exchange Metrics (measurements) –hops (trace) –queue length (known internally) –delay (ping)

6/12/2016© 2010 Raymond P. Jefferis IIILect Link State Routing Routers learn neighbor addresses (“hello” packet sent at bootup) Cost or delay measured to each (measured by “echo” packets) State information distributed to all routers (“link state packet”) Shortest delay to all other routers computed

6/12/2016© 2010 Raymond P. Jefferis IIILect Network with Link State Delays

6/12/2016© 2010 Raymond P. Jefferis IIILect Routing Table at Node A

6/12/2016© 2010 Raymond P. Jefferis IIILect Network with Link State Delays

6/12/2016© 2010 Raymond P. Jefferis IIILect Link State Packets Each sends on all outgoing lines Duplicates and lower sequence numbers discarded Age decremented, packet discarded when zero

6/12/2016© 2010 Raymond P. Jefferis IIILect Maximal Flow in Network Ford-Fulkerson theorem Each link has known capacity in each direction Cuts made separating source from destination Maximal flow is capacity across cut having minimum capacity

6/12/2016© 2010 Raymond P. Jefferis IIILect Problem! Networks have many paths All possible cuts have to be examined Number of possible cuts can be VERY large

6/12/2016© 2010 Raymond P. Jefferis IIILect Algorithmic Solution Uses distance metric –hop count –delay –other calculates capacity sequentially avoids combinatorial problem

6/12/2016© 2010 Raymond P. Jefferis IIILect Maximum Flow Algorithm Expand from start node to adjacent nodes Expand by node layers until final node Subtract capacity of minimal link from path Repeat until no more capacity (cut) Capacity of network is capacity of cut Paths have minimal hop count

6/12/2016© 2010 Raymond P. Jefferis IIILect Maximal Flow Example Numbers shown are channel capacities

6/12/2016© 2010 Raymond P. Jefferis IIILect First Layer Branch

6/12/2016© 2010 Raymond P. Jefferis IIILect Second Layer Branch

6/12/2016© 2010 Raymond P. Jefferis IIILect Third Layer Branch

6/12/2016© 2010 Raymond P. Jefferis IIILect ABCD Capacity Reduced by 4

6/12/2016© 2010 Raymond P. Jefferis IIILect First Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Second Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Third Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect AFKD Capacity Reduced by 2

6/12/2016© 2010 Raymond P. Jefferis IIILect First Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Second Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Third Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect AFED Capacity Reduced by 2

6/12/2016© 2010 Raymond P. Jefferis IIILect First Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Second Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Third Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Fourth Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect AGJCD Capacity Reduced by 2

6/12/2016© 2010 Raymond P. Jefferis IIILect First Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Second Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Third Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Fourth Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect AFHKD Capacity Reduced by 2

6/12/2016© 2010 Raymond P. Jefferis IIILect First Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Second Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Third Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Fourth Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect Fifth Layer

6/12/2016© 2010 Raymond P. Jefferis IIILect AFHJCD Capacity Reduced by 1

6/12/2016© 2010 Raymond P. Jefferis IIILect Minimal Cut (Capacity = 13)