1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.

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

What is “Routing”? Routing algorithm that part of the network layer responsible for deciding on which output line to transmit an incoming packet Adaptive.
Routing - I Important concepts: link state based routing, distance vector based routing.
Network Layer-11 CSE401N: Computer Networks Lecture-9 Network Layer & Routing.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 14.
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.
Chapter 4 Distance Vector Problems, and Link-State Routing Professor Rick Han University of Colorado at Boulder
Routing & IP Routing Protocols
Chapter 4 Network Layer slides are modified from J. Kurose & K. Ross CPE 400 / 600 Computer Communication Networks Lecture 13.
1 ELEN 602 Lecture 19 Routing. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing table –routing:
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
1 Network Layer: Host-to-Host Communication. 2 Network Layer: Motivation Can we built a global network such as Internet by extending LAN segments using.
1 Announcements Review session next Friday 03/11 Homework 5 due on Friday 03/04 Project 3 due Wednesday 03/16.
Announcement r Project 2 extended to 2/20 midnight r Project 3 available this weekend r Homework 3 available today, will put it online.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.5 Routing algorithms m Link state m Distance.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Delivery, Forwarding and
Network Layer Goals: understand principles behind network layer services: –routing (path selection) –dealing with scale –how a router works –advanced topics:
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
13-Sep-154/598N: Computer Networks Address Translation Map IP addresses into physical addresses –destination host –next hop router Techniques –encode physical.
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.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
Packet-Switching Networks Routing in Packet Networks.
Introduction to Network Layer. Network Layer: Motivation Can we built a global network such as Internet by extending LAN segments using bridges? –No!
1 CSE524: Lecture 11 Network Layer Functions. 2 Exam.
Network Layer4-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m network layer service models m forwarding.
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.
4: Network Layer4-1 Schedule Today: r Finish Ch3 r Collect 1 st Project r See projects run r Start Ch4 Soon: r HW5 due Monday r Last chance for Qs r First.
The Network Layer Introduction  functionality and service models Theory  link state and distance vector algorithms  broadcast algorithms  hierarchical.
CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network.
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.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
Routing and Routing Protocols
Cisco Systems Networking Academy S2 C 11 Routing Basics.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 20 Omar Meqdadi Department of Computer Science and Software Engineering University.
23-Dec-154/598N: Computer Networks Overview 4.2: Routing Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
4: Network Layer4-1 Chapter 4: Network Layer Last time: r Chapter Goals m Understand network layer principles and Internet implementation r Started routing.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
4. Interconnecting Networks: Routers. © Tallal Elshabrawy 2 Bridges Vs Routers BRIDGES DO WELL IN SMALL (FEW HUNDRED HOSTS) WHILE ROUTERS USED IN LARGE.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
4: Network Layer4a-1 Chapter 4: Network Layer Chapter goals: r understand principles behind network layer services: m routing (path selection) m dealing.
Chapter 7 Packet-Switching Networks Shortest Path Routing.
IP tutorial - #2 Routing KAIST Dept. of CS NC Lab.
The Network Layer.
Network Layer Goals: Overview:
COMP 3270 Computer Networks
EEC-484/584 Computer Networks
Network layer functions
Routing in Packet Networks Shortest Path Routing
UNICAST ROUTING PROTOCOLS
EEC-484/584 Computer Networks
Intradomain Routing Outline Introduction to Routing
Chapter 7 Packet-Switching Networks
ECE453 – Introduction to Computer Networks
EEC-484/584 Computer Networks
Communication Networks
Communication Networks
Routing Outline Algorithms Scalability Spring 2003 CS 332.
Chapter 4: Network Layer
Presentation transcript:

1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed Ejaz

2 Network Layer

3 Network Layer Topics to Cover Logical Addressing Internet Protocol Address Mapping Delivery, Forwarding, Routing

4 transport packet from sending to receiving hosts network layer protocols in every host, router Network layer functions - 1 network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical application transport network data link physical application transport network data link physical

5 three important functions: path determination: route taken by packets from source to dest. Routing algorithms Switching (forwarding): move packets from router’s input to appropriate router output call setup: (optional) some network architectures require router call setup along path before data flows Network layer functions - 2

6 Network service model Q: What service model for “channel” transporting packets from sender to receiver? guaranteed bandwidth? preservation of inter-packet timing (no jitter)? loss-free delivery? in-order delivery? congestion feedback to sender? ? ? ? virtual circuit ordatagram? The most important abstraction provided by network layer: service abstraction

7 Datagram networks: the Internet model - 1 no call setup at network layer routers: no state about end-to-end connections  no network-level concept of “connection” packets typically routed using destination host ID  packets between same source-dest pair may take different paths

8 Datagram networks: the Internet model - 2 application transport network data link physical application transport network data link physical 1. Send data 2. Receive data

9 Goal: determine “good” path (sequence of routers) thru network from source to dest. Routing Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links link cost: delay, $ cost, or congestion level Routing protocol A E D CB F “good” path: typically means minimum cost path other def’s possible

10 Routing Algorithm classification - 1 Global or decentralized information? Global: all routers have complete topology, link cost info “link state” algorithms Decentralized: router knows physically-connected neighbors, link costs to neighbors iterative process of computation, exchange of partial info with neighbors “distance vector” algorithms

11 Routing Algorithm classification - 2 Static or dynamic? Static: routes change slowly over time Dynamic: routes change more quickly  periodic update  in response to link cost changes

12 Unicast Routing Protocols

13 Unicast Routing Protocols A routing table can be either static or dynamic. A static table is one with manual entries. A dynamic table is one that is updated automatically when there is a change somewhere in the Internet. A routing protocol is a combination of rules and procedures that lets routers in the Internet inform each other of changes.

14 Autonomous systems Autonomous system (AS) or domain is a set of routers or networks administered by a single organisation.

15 Popular Routing Protocols

16 Link State Routing

17 Link-State Routing Each node in the domain has the entire topology of the domain. The node can use Dijekstra’s algorithm to build a routing table. Analogous to a city map.

18 Concept of link state routing

19 Link state knowledge

20 Link State Strategy  send to all nodes (not just neighbors)  information about directly connected links (not entire routing table) Link State Packet (LSP)  id of the node that created the LSP  cost of link to each directly connected neighbor  sequence number (SEQNO)  time-to-live (TTL) for this packet

21 Link State Reliable flooding  store most recent LSP from each node  forward LSP to all nodes but one that sent it  generate new LSP periodically  increment SEQNO  start SEQNO at 0 when reboot  decrement TTL of each stored LSP  discard when TTL=0

22 Route Calculation Dijkstra’s shortest path algorithm

23 Execution of Dijkstra’s algorithm IterationND2D2 D3D3 D4D4 D5D5 D6D6 Initial{1}325  1{1,3}324  3 2{1,2,3} {1,2,3,6} {1,2,3,4,6} {1,2,3,4,5,6}

24 Shortest Paths in Dijkstra’s Algorithm

25 Properties of Link State  By keeping the predecessor node at every iteration, we can build the shortest path tree  Loop free  can use any cost metric, even multiple cost metric o one routing table for each metric o must use the same metric along the path, identified in the packet  needs state of every link in the network  potentially faster, because nodes exchange link state and perform computation locally as opposed to Distance Vector where the computation is distributed  can compute equal cost multipath

26 Reaction to Failure If a link fails,  Router sets link distance to infinity & floods the network with an update packet  All routers immediately update their link database & recalculate their shortest paths  Recovery very quick But watch out for old update messages  Add time stamp or sequence # to each update message  Check whether each received update message is new  If new, add it to database and broadcast  If older, send update message on arriving link

27 Distance Vector Routing

28 Distance Vector Each node maintains a set of triples  (Destination, Cost, NextHop) Node knows cost to each neighbor Directly connected neighbors exchange updates  periodically (on the order of several seconds)  whenever table changes (called triggered update) Each update is a list of pairs:  ( Destination, Cost) Update local table if receive a “better” route  smaller cost  came from next-hop Refresh existing routes; delete if they time out

29 Distance Vector Routing Table For each destination list: Next Node Distance Table Synthesis Neighbors exchange table entries Determine current best next hop Inform neighbors  Periodically  After changes dest next dist

30 Example Destination Cost NextHop A 1 A C 1 C D 2 C E 2 A F 2 A G 3 A Node B

31 Initialization of tables in Distance Vector Routing

32 Distance Vector Routing Tables

33 In distance vector routing, each node shares its routing table with its immediate neighbors periodically and when there is a change. Note

34 Updating in Distance Vector Routing

35 Bellman-Ford Algorithm After n iterations, nodes at distance n hops along the shortest path have correct information source destination A B CE infinity 1Dest 5Dest infinity 1Dest 3B3B infinity 5Dest 7E7E 1Dest 3B3B 8C8C 4A4A 7E7E 8C8C 3B3B 4A4A 6E6E

36