Internet Protocol: Routing IP Datagrams Chapter 8.

Slides:



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

Delivery and Forwarding of
Routing: Cores, Peers and Algorithms
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
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CS335 Networking & Network Administration Tuesday, May 11, 2010.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
Chapter 19 Binding Protocol Addresses (ARP) Chapter 20 IP Datagrams and Datagram Forwarding.
Delivery, Forwarding, and Routing
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Class 4 Internet Protocols
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
© 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.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
Protocol Layering Chapter 10. Looked at: Architectural foundations of internetworking Architectural foundations of internetworking Forwarding of datagrams.
FALL, 2005CSI Part 2.3 Internetworking & Addressing (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution Robert L. Probert, SITE,
Copyright © Lopamudra Roychoudhuri
資 管 Lee Lesson 5 IP Packets: Delivery and Routing IP Layer operation.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
10/8/2015CST Computer Networks1 IP Routing CST 415.
Chapter 22 Q and A Victor Norman IS333 Spring 2015.
Delivery, Forwarding, and Routing of IP Packets
Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets Lecture #4 Items you should understand by now – before routing Physical Addressing – with in.
User Datagram Protocol (UDP) Chapter 11. Know TCP/IP transfers datagrams around Forwarded based on destination’s IP address Forwarded based on destination’s.
Chapter 6 Delivery and Forwarding of IP Packets
Dr. John P. Abraham Professor UTPA
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 6 Delivery and Routing of IP Packets.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Delivery, Forwarding, and Routing of IP Packets
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Chapter 19 Binding Protocol Addresses (ARP) A frame transmitted across a physical network must contain the hardware address of the destination. Before.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
Mapping IP Addresses to Hardware Addresses Chapter 5.
Protocol Layering Chapter 11.
UDP: User Datagram Protocol Chapter 12. Introduction Multiple application programs can execute simultaneously on a given computer and can send and receive.
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
Chapter 22 Q and A Victor Norman IS333 Spring 2016.
ROUTING.
IP: Addressing, ARP, Routing
Forwarding and Routing IP Packets
Chapter 22 Q and A Victor Norman CS332 Fall 2017.
Chapter 6 – Routing.
Internet Protocol: Connectionless Datagram Delivery
Internetworking & Address Resolution
Net 323: NETWORK Protocols
CS 428 Computer Networking
Dr. John P. Abraham Professor UTPA
Delivery and Routing of IP Packets
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
Delivery and Forwarding of
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
Delivery, Forwarding, and Routing of IP Packets
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
Example 9 (Continued) 1. The first mask (/26) is applied to the destination address. The result is , which does not match the corresponding network.
Figure 6.11 Configuration for Example 4
Delivery, Forwarding, and Routing of IP Packets
Figure 6.6 Default routing
Presentation transcript:

Internet Protocol: Routing IP Datagrams Chapter 8

Introduction All internet services use an underlying, connectionless packet delivery system and the basic unit of transfer in TCP/IP is a datagram This chapter shows how routers forward datagrams and deliver them to the final destinations

Routing in an Internet Routing refers to choosing a path over which to send packets A router is the computer making the choice of that path Ideally, to find the best path, routing software would look at such factors as: –network load, datagram length, or type of service Most routing software is not that sophisticated and looks at “shortest path”

Routing in an Internet Routers have direct connections to two or more networks Both hosts and routers participate in routing a datagram to its destination The source host makes an initial routing decision as to which router it should forward its datagram Sometimes a machine could function as a host or a router, but distinctions must be made

Figure 8.1

Direct and Indirect Delivery Direct delivery –transmission of a datagram across a single physical network directly to another –both machines attach directly to the same underlying physical transmission system Indirect delivery –the destination is not on a directly attached network –the sender passes the datagram to a router for delivery

Datagram Delivery over a Single Network To transfer an IP datagram, the sender –encapsulates the datagram in a frame –maps the destination IP address into a physical address (eg. using ARP) –uses the network hardware to deliver it How does the sender know if the destination lies on a directly connected network (this network)? –by comparing the network portion of the with its own

Table-Driven IP Routing There is an IP routing table on each machine: router or host This table stores information about possible destinations and how to reach them What information is stored in a routing table? –(N, R) pairs –where N is the of a destination network –and R is the of the next router on the path to that network

Next-Hop Routing The routing table indicates only the next step along the path from R to N Each entry in the routing table points to a router that can be reached across a single network All routers (R) listed in a machine’s routing table must be directly connected to this machine See Figure 8.2 (next slide) The size of a routing table depends on the number of networks in the internet

Figure 8.2

Next-Hop Routing To hide information, routing tables should be kept small IP routing software only keeps information about destination network addresses, not individual hosts Consequences: –all traffic destined for a network takes same path –don’t know if destination host is even operational

Default Routes If no route appears in the routing table for a particular network, the datagram could be sent to a default router This is good when a site has a small set of local addresses and only one connection to the rest of the internet Two tests are done in this case: –one for hosts on the local network –a default that points to the only router

Host-Specific Routes Most IP routing software allows per-host routes to be specified The ability to specify a special route to one machine may be useful

The IP Routing Algorithm Extract destination IP address D from the datagram Compute the network prefix N If N matches any directly connected network address Get D’s hardware address Encapsulate the datagram in a frame Send the frame to D Else If the table contains a host-specific route for D Build a frame and send it to the next-hop specified Else If the table contains a route for network N Build and send a frame to the next-hop specified Else If the table contains a default route, send it Else declare a routing error

Routing with IP Addresses The original datagram is not altered during routing Specifically, the source and destination are unchanged When IP executes the routing algorithm, it selects a new IP address, the of the machine to which the datagram is to be sent on its next hop The network interface software binds the next to a forms a frame, places the datagram in the data portion of the frame and sends it

Routing with IP Addresses Why doesn’t the IP software use hardware addresses when storing and computing routes? –routes are easier to examine and change –to hide the details of the underlying networks - this allows the underlying network architecture to be changed without having to update tables See the address boundary shown in Figure 8.4 –a conceptual division between low-level software that understands hardware addresses and internet software that understands high-level addresses

Figure 8.4

Handling Incoming Datagrams When an IP datagram arrives at a host: –the network interface software delivers it to the IP module for processing –if the datagram’s matches the host’s IP software on the host accepts the datagram, and passes it to a higher level protocol software for further processing –if no match, the datagram is discarded

Handling Incoming Datagrams When an IP datagram arrives at a router: –the network interface software delivers it to the IP module for processing –if the datagram’s matches the router’s IP software on the host accepts the datagram, and passes it to a higher level protocol software for further processing - usually for testing and router management –if not a match, the TTL is decremented, the checksum is recomputed and the datagram is forwarded, using the routing table and the routing algorithm Hosts should not perform router functions

Summary Direct delivery is possible if the destination machine is on a network to which the sending machine attaches Otherwise, the sender forwards the datagram to a router Datagrams travel from router to router until they reach their final destination. Or? Transmission of a datagram from one machine to the next requires encapsulating it in a frame

For Next Time Read Chapter 9 Make the equivalent of about 15 slides outlining Chapters 8 and 9