IP Forwarding Relates to Lab 3.

Slides:



Advertisements
Similar presentations
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Advertisements

1 Chapter 22 Network layer Delivery, Forwarding and Routing.
CSE331: Introduction to Networks and Security Lecture 8 Fall 2002.
CS 356: Computer Network Architectures Lecture 10: IP forwarding
CSCI 4550/8556 Computer Networks Comer, Chapter 23: An Error Reporting Mechanism (ICMP)
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CSEE W4140 Networking Laboratory Lecture 3: IP Forwarding and ICMP Jong Yul Kim
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Routing and Routing Protocols
1 CCNA 2 v3.1 Module 8. 2 TCP/IP Suite Error and Control Messages CCNA 2 Module 8.
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.
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.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
1 Version 3.1 modified by Brierley Module 8 TCP/IP Suite Error and Control Messages.
Page 19/13/2015 Chapter 8 Some conditions that must be met for host to host communication over an internetwork: a default gateway must be properly configured.
Section 4 : The OSI Network Layer CSIS 479R Fall 1999 “Network +” George D. Hickman, CNI, CNE.
1 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
© 2002, Cisco Systems, Inc. All rights reserved..
TCP/IP Illustracted Vol1. 제목 : IP Routing ( 수 ) 한 민 규
IP Forwarding.
資 管 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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Routing and Packet Forwarding Routing Protocols and.
Dr. Clincy1 Chapter 6 Delivery & Forwarding of IP Packets Lecture #4 Items you should understand by now – before routing Physical Addressing – with in.
© Jörg Liebeherr, Organization Addresses TCP/IP Protocol stack Forwarding Internet.
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.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 7 Internet Protocol (IP) Routing.
CS4550 Computer Networks II IP : internet protocol, part 2 : packet formats, routing, routing tables, ICMP read feit chapter 6.
Delivery, Forwarding, and Routing of IP Packets
The Routing Table Last Update Copyright Kenneth M. Chipps Ph.D.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
Internet Protocols. Address Resolution IP Addresses are not recognized by hardware. If we know the IP address of a host, how do we find out the hardware.
Networks and Protocols CE Week 7b. Routing an Overview.
1 The Network Layer 1.IP - The Internet Protocol 2.ICMP - Internet Control Message Protocol 3.IP Forwarding 4.Notes on lab.
Routing and Routing Protocols
1 The Network Layer 1.Review of ARP 2.IP - The Internet Protocol 3.ICMP - Internet Control Message Protocol 4.IP Forwarding 5.Notes on lab References:
1 Requirements for Internet Routers (Gateways) and Hosts Relates to Lab 3. (Supplement) Covers the compliance requirements of Internet routers and hosts.
TCP/IP Illustracted Vol1. 제목 : IP Routing ( 수 ) 한 민 규
Cisco 2 - Routers Perrine. J Page 112/19/2015 Chapter 8 TCP/IP Error Message Some of the conditions that must be met in order for host to host communication.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
Ethernet switch Hosts Can talk using Ethernet addresses only.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
Delivery and Forwarding Chapter 18 COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
ROUTING.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Scaling the Network Chapters 3-4 Part 2
Chapter 6 Delivery & Forwarding of IP Packets
Forwarding and Routing IP Packets
IP Forwarding Covers the principles of end-to-end datagram delivery in IP networks.
IP - The Internet Protocol
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
Chapter 6 Delivery & Forwarding of IP Packets
Delivery and Routing of IP Packets
IP Forwarding Relates to Lab 3.
Packet Switch Architectures
IP Forwarding Relates to Lab 3.
Delivery, Forwarding, and Routing of IP Packets
IP Forwarding Relates to Lab 3.
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
Figure 6.11 Configuration for Example 4
Packet Switch Architectures
Presentation transcript:

IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.

Delivery of an IP datagram View at the data link layer layer: Internetwork is a collection of LANs or point-to-point links or switched networks that are connected by routers IP

Delivery of an IP datagram View at the IP layer: An IP network is a logical entity with a network number We represent an IP network as a “cloud” The IP delivery service takes the view of clouds, and ignores the data link layer view IP

Tenets of end-to-end delivery of datagrams The following conditions must hold so that an IP datagram can be successfully delivered The network prefix of an IP destination address must correspond to a unique data link layer network (=LAN or point-to-point link or switched network). (The reverse need not be true!) Routers and hosts that have a common network prefix must be able to exchange IP dagrams using a data link protocol (e.g., Ethernet, PPP) Every data link layer network must be connected to at least one other data link layer network via a router.

Routing tables Routing table of a host or router Each router and each host keeps a routing table which tells how to process an outgoing packet Main columns: Destination (=Network Prefix): Where is the IP datagram going to? Next hop: Where to send the IP datagram to? Interface: What is the output interface? Next hop and interface column can be summarized in one column Routing tables are set so that datagrams gets closer to the its destination Destination Next Hop interface 10.1.0.0/24 10.1.2.0/24 10.2.1.0/24 10.3.1.0/24 20.1.0.0/16 20.2.1.0/28 direct direct R4 direct R4 R4 eth0 serial0 eth1 eth0 eth0 Routing table of a host or router IP datagrams can be directly delivered (“direct”) or is sent to a router (“R4”)

Delivery with routing tables to: 20.2.1.2

Delivery of IP datagrams There are two distinct processes to delivering IP datagrams: 1. Forwarding: How to pass a packet from an input interface to the output interface? 2. Routing: How to find and setup the routing tables? Forwarding must be done as fast as possible: on routers, is often done with support of hardware on PCs, is done in kernel of the operating system Routing is less time-critical On a PC, routing is done as a background process

Processing of an IP datagram in IP IP router: IP forwarding enabled Host: IP forwarding disabled

Processing of an IP datagram in IP Processing of IP datagrams is very similar on an IP router and a host Main difference: “IP forwarding” is enabled on router and disabled on host IP forwarding enabled  if a datagram is received, but it is not for the local system, the datagram will be sent to a different system IP forwarding disabled  if a datagram is received, but it is not for the local system, the datagram will be dropped

Processing of an IP datagram at a router Receive an IP datagram IP header validation Process options in IP header Parsing the destination IP address Routing table lookup Decrement TTL Perform fragmentation (if necessary) Calculate checksum Transmit to next hop Send ICMP packet (if necessary)

Routing table lookup: Longest Prefix Match Longest Prefix Match: Search for the routing table entry that has the longest match with the prefix of the destination IP address  picks the most specific matching routing table entry 128.143.71.21 Destination Next Hop 10.0.0.0/8 128.143.0.0/16 128.143.64.0/20 128.143.192.0/20 128.143.71.0/24 128.143.71.55/32 default R1 R2 R3 R4 The longest prefix match for 128.143.71.21 is for 24 bits with entry 128.143.71.0/24 Datagram will be sent to R4

Type of routing table entries Destinations in the routing table are network prefixes Network prefixes can designate different types of routes Network route Destination addresses is a network address (e.g., 10.0.2.0/24) Most entries are network routes Host route Destination address is an interface address (e.g., 10.0.1.2/32) Used to specify a separate route for certain hosts Default route Used when no network or host route matches The router that is listed as the next hop of the default route is the default gateway (for Cisco: “gateway of last resort) Network prefix: 0.0.0.0/0 Loopback address Routing table for the loopback address (127.0.0.1/32, 127.0.0.0/8) The next hop lists the loopback (lo0) interface as outgoing interface

Route Aggregation Longest prefix match algorithm permits to aggregate prefixes with identical next hop address to a single entry This contributes significantly to reducing the size of routing tables of Internet routers Destination Next Hop 10.1.0.0/24 10.1.2.0/24 10.2.1.0/24 10.3.1.0/24 20.2.0.0/15 20.0.0.0/15 R3 direct direct R3 R2 R2 Destination Next Hop 10.1.0.0/24 10.1.2.0/24 10.2.1.0/24 10.3.1.0/24 20.0.0.0/14 R3 direct direct R3 R2

How do routing tables get updated? Adding an interface: Configuring an interface eth2 with 10.0.2.3/24 adds a routing table entry: Adding a default gateway: Configuring 10.0.2.1 as the default gateway adds the entry: Static configuration of network routes or host routes Update of routing tables through routing protocols ICMP messages Destination Next Hop/ interface 10.0.2.0/24 eth2 Destination Next Hop/ interface 0.0.0.0/0 10.0.2.1

Routing table manipulations with ICMP When a router detects that an IP datagram should have gone to a different router, the router (here R2) forwards the IP datagram to the correct router sends an ICMP redirect message to the host Host uses ICMP message to update its routing table R1

ICMP Router Solicitation ICMP Router Advertisement After bootstrapping a host broadcasts an ICMP router solicitation. In response, routers send an ICMP router advertisement message Also, routers periodically broadcast ICMP router advertisement This is sometimes called the Router Discovery Protocol