1 Internet Protocol: Routing IP Datagrams D. E. Comer, “Internetworking with TCP/IP: Principles, Protocols and Architectures”, Ch. 8, Prentice Hall, 2000.

Slides:



Advertisements
Similar presentations
Local Area Networks - Internetworking
Advertisements

1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
IP Forwarding Relates to Lab 3.
Internetworking II: MPLS, Security, and Traffic Engineering
Delivery and Forwarding of
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
IP: The Internet Protocol
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
1 Fall 2005 Internetworking: Concepts, Architecture and TCP/IP Layering Qutaibah Malluhi CSE Department Qatar University.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CS335 Networking & Network Administration Tuesday, May 11, 2010.
CS335 Networking & Network Administration Tuesday, April 20, 2010.
Chapter 19 Binding Protocol Addresses (ARP) Chapter 20 IP Datagrams and Datagram Forwarding.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 18 Introduction to Networks and the Internet.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
© Jörg Liebeherr ECE 1545 Forwarding in IP Networks.
The OSI Model and the TCP/IP Protocol Suite
© MMII JW RyderCS 428 Computer Networking1 Reading  Make sure you read all of chapter 2 & 3.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
1 Internet Protocol: Forwarding IP Datagrams Chapter 7.
1 Chapter 6 – Internet Protocol: Connectionless Datagram Delivery 6.3 Internet Architecture and Philosophy Chapters are about this layer NETWORK.
1 Chapter Internetworking Part 1 (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
Unit 4, Lesson 11 How Data Travels the Internet
Protocol Layering Chapter 10. Looked at: Architectural foundations of internetworking Architectural foundations of internetworking Forwarding of datagrams.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer Internet Protocol (IP) layer Introduction.
FALL, 2005CSI Part 2.3 Internetworking & Addressing (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution Robert L. Probert, SITE,
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
10/8/2015CST Computer Networks1 IP Routing CST 415.
Chapter 17 - Internetworking: Concepts, Architecture, and Protocols 1. Internetworking concepts 2. Router 3. protocol for internetworking 4. TCP/ IP layering.
Internetworking – What is internetworking? Connect multiple networks of one or more organizations into a large, uniform communication system. The resulting.
ECE 526 – Network Processing Systems Design Networking: protocols and packet format Chapter 3: D. E. Comer Fall 2008.
1 CSCI 233 Internet Protocols Class 2 Dave Roberts.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Concept and Architectural Model
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Basic Routing Principles V1.2. Objectives Understand the function of router Know the basic conception in routing Know the working principle of router.
Internet Protocol: Routing IP Datagrams Chapter 8.
Protocol Layering Chapter 11.
Delivery and Forwarding Chapter 18 COMP 3270 Computer Networks Computing Science Thompson Rivers University.
WAN Technologies. 2 Large Spans and Wide Area Networks MAN networks: Have not been commercially successful.
Spring Ch 17 Internetworking Concepts, Architecture, and Protocols Part III Internetworking.
Ethernet switches and IP routers
Datagram Forwarding.
ROUTING.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP: Addressing, ARP, Routing
Chapter 4 Introduction to Network Layer
Forwarding and Routing IP Packets
Chapter 22 Q and A Victor Norman CS332 Fall 2017.
IP Forwarding Covers the principles of end-to-end datagram delivery in IP networks.
Internetworking & Address Resolution
Net 323: NETWORK Protocols
CS 428 Computer Networking
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
Chapter 4 Introduction to Network Layer
IP Forwarding Relates to Lab 3.
Delivery and Forwarding of
IP Forwarding Relates to Lab 3.
Net 323 D: Networks Protocols
Data Communication Networks
CSE 313 Data Communication
Delivery, Forwarding, and Routing of IP Packets
IP Forwarding Relates to Lab 3.
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
ITIS 6167/8167: Network and Information Security
Delivery, Forwarding, and Routing of IP Packets
Presentation transcript:

1 Internet Protocol: Routing IP Datagrams D. E. Comer, “Internetworking with TCP/IP: Principles, Protocols and Architectures”, Ch. 8, Prentice Hall, 2000 presented by Roozbeh Farahbod

Routing IP Datagrams – by Roozbeh Farahbod, 2 Routing Routing: The process of choosing a path over which to send packets. Router: A computer – in general – making this choice. Routing occurs at several levels:  From node to node in a simple LAN  From LAN to LAN in a WAN

Routing IP Datagrams – by Roozbeh Farahbod, 3 Internet, Router, Host Internet is composed of multiple physical networks interconnected by computers called routers. Routers have direct connections to two or more networks. A Host usually connects directly to one physical network.

Routing IP Datagrams – by Roozbeh Farahbod, 4 Direct / Indirect Delivery Routing can be divided in to two forms:  Direct Delivery When two machines are both attached to the same underlying physical transmission system (i.e. a single Ethernet)  Indirect Delivery When two machines are not directly attached to the same network and packets must go through at least one router for delivery.

Routing IP Datagrams – by Roozbeh Farahbod, 5 Direct Delivery Delivery from A to C:  A encapsulates the datagram in a physical frame  Maps the destination IP address to a physical address (MAC address)  Uses the network hardware to deliver it How does A know whether C is in the same network?

Routing IP Datagrams – by Roozbeh Farahbod, 6 Network Prefix IP addresses are divided into a Network Prefix and a Host Suffix By checking the network prefix of the destination IP address, sender will know if it is directly connected to the destination machine or not.

Routing IP Datagrams – by Roozbeh Farahbod, 7 Indirect Delivery B wants to deliver a datagram to D  B checks the network prefix and realizes that D is outside of L1.  In an internet, every host can reach a router directly.  B sends the packet to R1 directly and lets R1 handle the delivery.

Routing IP Datagrams – by Roozbeh Farahbod, 8 Table-Driven Routing How does B decide to send the datagram to R1 and not to R2? How does R1 know where to send the datagram? The usual IP routing algorithm employs an Internet Routing Table or IP Routing Table. Both hosts and routers have IP routing tables. IP routing tables, based on the destination address, tell the router where to send a datagram.

Routing IP Datagrams – by Roozbeh Farahbod, 9 Information Hiding Do we need to keep the list of all possible destination addresses? Taking the advantage of Network Prefix A routing table keeps a set of pairs (Network, Path)

Routing IP Datagrams – by Roozbeh Farahbod, 10 Next-Hop Do we need to keep the whole path to a destination address? Every router only needs to know what is the next router in the path. This next router is called the next hop.

Routing IP Datagrams – by Roozbeh Farahbod, 11 Next-Hop Routing Each router in a routing table can be reached via a direct connection.

Routing IP Datagrams – by Roozbeh Farahbod, 12 Default Routes Another technique used to hide information:  If the destination network was not in the routing table, use the default route Example:  For hosts like H that attach to a single network, only one row in the routing table required To NetworkRoute To Direct Delivery Default RoutingS Routing Table for host H

Routing IP Datagrams – by Roozbeh Farahbod, 13 The IP Routing RouteDatagram(Datagram, RoutingTable) Extract destination IP address in D Extract the network prefix in N if N matches any directly connected network  deliver datagram directly to destination D over that network else if the table contains a host-specific route for D  send datagram to the next-hop specified in the table else if the table contains a route for network N  send datagram to the next-hop specified in the table else if the table contains a default route  send datagram to the default router specified else  declare a routing error!

Routing IP Datagrams – by Roozbeh Farahbod, 14 Routing with IP address IP routing does not alter the original datagram except for:  Decrementing the Time-To-Live  Re-computing the checksum When IP executes the routing, it selects the next-hop IP address and forwards the datagram to that using the network interface layer. The network layer then binds the IP address to a physical address and sends the datagram to its destination in form of frames. Internet Layer Network Layer Datagram + The next-hop IP address

Routing IP Datagrams – by Roozbeh Farahbod, 15 Why IP Address? Converting IP addresses every time routing occurs? Inefficient! Why not using physical addresses in routing tables?  Routing table provides a clean interface between IP software that routes and high-level software that manipulates routes.  The whole point of IP is to hide the details of the underlying network.

Routing IP Datagrams – by Roozbeh Farahbod, 16 Incoming Datagrams When a router receives a datagram:  If the destination IP is the router’s IP (for each of its network connections), it passes the datagram to higher levels.  Otherwise, it routes the datagram. Hosts are forbidden from forwarding datagrams that are accidentaly routed to them. Reasons:  Something has gone wrong!  It will cause unnecessary network traffic  Simple errors can cause chaos.  Routers report errors, while hosts not!

Routing IP Datagrams – by Roozbeh Farahbod, 17 Summary IP uses routing information to route datagrams. Direct delivery is considered as the final step in routing. The result of routing is the IP address of the next hop. Physical address and physical frame vs. IP address and IP datagram IP routing algorithm is table-driven and in most cases based on the network addresses. Using a default route keeps the routing tables small.

Routing IP Datagrams – by Roozbeh Farahbod, 18 Presented for Engineering Communication Systems a course by Dr. Uwe Glaesser School of Computing Science Simon Fraser University October 2002