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

Slides:



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

IP Forwarding Relates to Lab 3.
1 ICS 156: Lecture 2 (part 2) Data link layer protocols Address resolution protocol Notes on lab 2.
1 Address Resolution Protocol (ARP) Relates to Lab 2. This module is about the address resolution protocol.
1 Address Resolution Protocol (ARP) Relates to Lab 2. This module is about the address resolution protocol.
CS 356: Computer Network Architectures Lecture 10: IP forwarding
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
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.
Spring 2003CS 4611 Internetworking COS 461 Spring 2003.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CSEE W4140 Networking Laboratory Lecture 3: IP Forwarding and ICMP Jong Yul Kim
Spring 2002CS 4611 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
1 CCNA 2 v3.1 Module 8. 2 TCP/IP Suite Error and Control Messages CCNA 2 Module 8.
IP Routing: an Introduction. Quiz
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.
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
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.
Midterm Review. Lab 4: dynamic routing protocols.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
TCP/IP Illustracted Vol1. 제목 : IP Routing ( 수 ) 한 민 규
IP Forwarding.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
10/8/2015CST Computer Networks1 IP Routing CST 415.
Polytechnic University1 The internetworking solution of the Internet Prof. Malathi Veeraraghavan Elec. & Comp. Engg. Dept/CATT Polytechnic University
© 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.
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.
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.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 The Network Layer 1.IP - The Internet Protocol 2.ICMP - Internet Control Message Protocol 3.IP Forwarding 4.Notes on lab.
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.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
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.
ICMPv6 Error Message Types Informational Message Types.
Ethernet switch Hosts Can talk using Ethernet addresses only.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
© Jörg Liebeherr (modified by M. Veeraraghavan) 1 Point-to-Point Protocol Data Link Layer Loopback ARP and RARP.
Delivery and Forwarding Chapter 18 COMP 3270 Computer Networks Computing Science Thompson Rivers University.
1 Address Resolution Protocol (ARP). 2 Overview 3 Need for Address Translation Note: –The Internet is based on IP addresses –Local area networks use.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Scaling the Network Chapters 3-4 Part 2
IP: Addressing, ARP, Routing
Address Resolution Protocol (ARP)
Scaling the Network: The Internet Protocol
ICMP ICMP – Internet Control Message Protocol
Forwarding and Routing IP Packets
IP Forwarding Covers the principles of end-to-end datagram delivery in IP networks.
Address Resolution Protocol (ARP)
IP - The Internet Protocol
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
IP Forwarding Relates to Lab 3.
Address Resolution Protocol (ARP)
IP Forwarding Relates to Lab 3.
Address Resolution Protocol (ARP)
1 ADDRESS RESOLUTION PROTOCOL (ARP) & REVERSE ADDRESS RESOLUTION PROTOCOL ( RARP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University,
Scaling the Network: The Internet Protocol
IP Forwarding Relates to Lab 3.
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
Presentation transcript:

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

2 Delivery of an IP datagram IP 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

3 Delivery of an IP datagram IP View at the IP layer: –An IP network is a logical entity with a network number –The IP delivery service thinks of IP networks as “clouds”, ignoring the data link layer view

4 Tenets of end-to-end delivery of datagrams The following conditions must hold so that an IP datagram can be successfully delivered 1.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!) 2.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) 3.A sequence of alternating data link layers and routers must exist from the source to the destination. 1.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!) 2.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) 3.A sequence of alternating data link layers and routers must exist from the source to the destination.

5 Routing tables Each router and each host keeps a routing table which tells the router how to process an outgoing packet, i.e., take it closer to destination Main columns: 1.Destination address: where is the IP datagram going to? 2.Next hop: how to send the IP datagram? 3.Interface: what is the output port? DestinationNext Hop interface / / / / / /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 ” )

6 Delivery with routing tables to:

7 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

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

9 Processing of an IP datagram in IP Processing IP datagrams very similar on IP router and host –Main difference: “IP forwarding” is enabled on router and disabled on host by default 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

10 Processing of an IP datagram at a router 1.IP header validation 2.Process options in IP header 3.Parsing the destination IP address 4.Routing table lookup 5.Decrement TTL 6.Perform fragmentation (if necessary) 7.Calculate checksum 8.Transmit to next hop 9.Send ICMP packet (if necessary) Receive an IP datagram

11 Routing table lookup Routing table lookup: Use the IP destination address as a key to search the routing table. Destination address Next hop/ interface network prefix or host IP address or loopback address or default route IP address of next hop router or Name of a network interface

12 Type of routing table entries Network route –Destination addresses is a network address (e.g., /24) –Most entries are network routes Host route –Destination address is an interface address (e.g., /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) Loopback address –Routing table for the loopback address ( ) –The next hop lists the loopback (lo0) interface as outgoing interface

13 = 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 1.Search for a match on all 32 bits 2.Search for a match for 31 bits ….. 32.Search for a mach on 0 bits Host route, loopback entry  32-bit prefix match Default route is represented as /0  0-bit prefix match The longest prefix match for is for 24 bits with entry /24 Datagram will be sent to R4

14 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 DestinationNext Hop / / / / /8 R3 direct direct R3 R2 DestinationNext Hop / / / / / /28 R3 direct direct R3 R2 R2

15 How do routing tables get updated? Adding an interface: –Configuring an interface eth2 with /24 adds a routing table entry: Adding a default gateway: –Configuring as the default gateway adds the entry: Static configuration of network routes or host routes Update of routing tables through routing protocols ICMP messages DestinationNext Hop/ interface /24eth2 DestinationNext Hop/ interface /

16 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

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

18 Proxy ARP Proxy ARP: Host or router responds to ARP Request that arrives from one of its connected networks for a host that is on another of its connected networks.

19 Things to know about ARP What happens if an ARP Request is made for a non-existing host? Several ARP requests are made with increasing time intervals between requests. Eventually, ARP gives up. On some systems (including Linux) a host periodically sends ARP Requests for all addresses listed in the ARP cache. This refreshes the ARP cache content, but also introduces traffic. Gratuitous ARP Requests: A host sends an ARP request for its own IP address: –Useful for detecting if an IP address has already been assigned.

20 Vulnerabilities of ARP 1.No authentication: Since ARP does not authenticate requests or replies, ARP Requests and Replies can be forged 2.Stateless: ARP Replies can be sent without a corresponding ARP Request –According to the ARP protocol specification, a node receiving an ARP packet (Request or Reply) must update its local ARP cache with the information in the source fields, if the receiving node already has an entry for the IP address of the source in its ARP cache. (This applies for ARP Request packets and for ARP Reply packets) Example exploitation of these vulnerabilities: A forged ARP Request or Reply can be used to update the ARP cache of a remote system with a forged entry (ARP Poisoning) This can be used to redirect IP traffic to other hosts