Introduction to IP Routing Geoff Huston

Slides:



Advertisements
Similar presentations
OSPF 1.
Advertisements

Introduction to IP Routing Geoff Huston. Routing How do packets get from A to B in the Internet? A B Internet.
Lecturer, Department of Computer Application
IP Routing.
Route Optimisation RD-CSY3021.
RIP V1 W.lilakiatsakun.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
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)
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
IP: The Internet Protocol
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CSCI 4550/8556 Computer Networks Comer, Chapter 19: Binding Protocol Addresses (ARP)
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
CS Internetworking Slide Set 8. In this set... Addressing Datagram forwarding.
Routing and Routing Protocols Introduction to Static Routing.
IP Routing: an Introduction. Quiz
Chapter 23: ARP, ICMP, DHCP IS333 Spring 2015.
Chapter Overview TCP/IP Protocols IP Addressing.
Each computer and router interface maintains an ARP table for Layer 2 communication The ARP table is only effective for the broadcast domain (or LAN)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
Network Redundancy Multiple paths may exist between systems. Redundancy is not a requirement of a packet switching network. Redundancy was part of the.
CISCO NETWORKING ACADEMY Chabot College ELEC IP Routing Protocol Highlights.
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
1 Computer Communication & Networks Lecture 20 Network Layer: IP and Address Mapping (contd.) Waleed.
CEN Network Fundamentals Chapter 19 Binding Protocol Addresses (ARP) To insert your company logo on this slide From the Insert Menu Select “Picture”
Exploring the Packet Delivery Process Chapter
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 IP Forwarding Relates to Lab 3. Covers the principles of end-to-end datagram delivery in IP networks.
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
Copyright © Lopamudra Roychoudhuri
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
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. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
1 TCP/IP Internetting ä Subnet layer ä Links stations on same subnet ä Often IEEE LAN standards ä PPP for telephone connections ä TCP/IP specifies.
1 TCP/IP Networking. 2 TCP/IP TCP/IP is the networking protocol suite most commonly used with UNIX, Windows, NT and most other OS’s. TCP/IP defines a.
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.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
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.
Routing and Routing Protocols
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
Routing protocols. Static Routing Routes to destinations are set up manually Route may be up or down but static routes will remain in the routing tables.
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 Version 3.1 Module 6 Routed & Routing Protocols.
Address Resolution Protocol (ARP). Internet and Data Link Layer Addresses Each host and router on a subnet needs a data link layer address to specify.
NETWORKING (2) Dr. Andy Wu BCIS 4630 Fundamentals of IT Security.
Network Layer IP Address.
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 8 TCP/IP Suite Error and Control Messages.
1 Computer Networks Chapter 5. Network layer The network layer is concerned with getting packets from the source all the way to the destination. Getting.
IP: Addressing, ARP, Routing
Chapter 6 Delivery & Forwarding of IP Packets
Scaling the Network: The Internet Protocol
CS4470 Computer Networking Protocols
COMPUTER NETWORKS CS610 Lecture-45 Hammad Khalid Khan.
Chapter 6 – Routing.
Internet Protocol INTERNET PROTOCOL.
COMP/ELEC 429/556 Introduction to Computer Networks
Scaling the Network: The Internet Protocol
Ch 17 - Binding Protocol Addresses
Presentation transcript:

Introduction to IP Routing Geoff Huston

Issues Covered The IP Protocol Network Addresses Address Resolution Protocol (ARP) Routing Tables IP Routing Protocols Subnetting Routing Redirects Caveats

IP Addresses 32 bit binary numbers written as dot separated decimal bytes address an INTERFACE, not a SYSTEM Ethernet Serial Port HOST

IP Addresses two level hierarchy – network prefix – host all hosts within a common network prefix communicate without explicit routing tools visible to the network prefix network prefixhost identifier IP address net mask

IP Addresses Network Prefix Hierarchy – IANA – Regional Registry – Provider (s) – End Client – Broadcast Subnet (Physical Network) /7 APNICRegional Registry /10 AARNetProvider Block /23 Freds web serviceEnd Client /24 Net Asubnet /32 ns.fred.net.auhost

When There is No Routing systems on same physical subnet no routing - transmission is via the media level protocols must translate IP addresses into media (MAC) addresses to allow media level communication Address Resolution Protocol (ARP) – if A wishes to communicate with B: A broadcasts ARP Request for MAC address of Bs IP address across subnet B arp caches As IP address to MAC address binding B responds to A with ARP Reply A arp caches Bs IP address to MAC address binding

Subnet IP MAC - IP addr binding MAC Address Resolution techniques are media dependant – ethernet – Token Ring – FDDI – SMDS – Frame Relay – ATM

Minimalist Routing A B G C / /24

Minimalist Routing single path (gateway) through one system to other physical networks eg (G) is manually defined as the default gateway for A within As IP forwarding table an IP packet for C ( ) from A is delivered as follows: – is not on A's local network – so A arps for gateway G's Ethernet address – then pass the packet for to G – G arps for Cs MAC address and delivers the packet to C

Routing IP packets going from A to C have A's IP address as the source, and C's IP address as a destination Ethernet packets travelling from A to G, enroute to C, have A's Ethernet address as the source and G's Ethernet address as the destination A gateway: – must be on the same network – must have more than one network interface – is often a dedicated router, but can be a general purpose computing system with forwarding enabled

Multiple Gateways A Other Networks H C G

Multiple Gateways use a Forwarding Table of (network, gateway) pairs for A: – (connected) – (G) – (H) – others (H)

Routing Protocols Forwarding Table entries are either defined manually (static routing), or updated dynamically by communicating with other systems this dynamic interchange of routing information is specified by a routing protocol it allows systems to take advantage of changes in the network topology without operator intervention Routng protocols distribute network prefix values and associated attribtue values across the network Routing protocols function through either – distributed computng model (distance vector) – parallel computing model (SPF)

Default Route for routers connected to the Internet exchanging information about all connected networks is not desirable! (some38,000 network prefixes) concept of a default network/route - packets for networks not listed in the routing table are sent to the "default" gateway in previous example – gateway C had a link to "other networks" - it would be the default gateway for network – G would be the default gateway for

RIP still the most commonly used routing protocol is the Routing Information Protocol (RIP) (despite historical status) simple to understand and operate distance vector protocol

RIP operation every 30 seconds, each RIP system broadcasts the list of network and metric paris within it's routing table to all networks to which it is connected to each router that receives a RIP broadcast adds the networks contained within the message to its routing table (the gateway for these routing table entries is the system that sent the RIP message) provided that the network metric is lower than that of any existing entry for the network. the use of the metric: – if a system receives two routes to the same network from different systems which one does it use ? – each route (network, gateway pair) is assigned a cost - RIP uses hop count as a metric – the route with the lowest metric is prefered

ICMP REDIRECTS Auto insertion of host routes into the hosts forwarding table. Both G and H have routes to network X. If A sends a packet destined for network X to H, then H will – forward the packet to G for delivery, and – send a redirect to A that tells A the system it was trying to communicate with is more efficiently reached via G. – A stores this information in its routing table

ICMP Echo Request and Reply – Any host that receives an ICMP echo request message should respond with an echo reply – Useful for testing connectivity (ping application) Unreachables – An ICMP message is sent to the originator of an IP packet if that packet cannot be forwarded – Most common cause for this is that the network or destination address is unreachable, ie. there was no entry in a routing table for the destination network

Example

War Stories (Example) Routing is not symmetric – X is a subnetted network – GW has a static route to Y via VAX – GW has a route to default via the AARNet link – VAX has a static route to Y via IBM#1 – VAX has a route to default via GW – IBM#1has static route to default via VAX – IBM#2 has static route to default via Y Why could IBM #2 ping any system on the Internet, but IBM #1 could only ping hosts on network Y ? – Answer: Pings from IBM #1 have a source IP address on network X.2. GW could not return the pings to IBM #1 since it had no route to X.2

War Stories (Suggestions) Be careful that you peer routes only with those you want to! Be careful which routes you listen to – particularly if they claim to have a route to default! – filter all incoming route advertisements against a static sanity filter. Do not play with the routing timers! – timers must be the same throughout a network Just engineering a physical linkdoes guarantee that traffic will flow – some system somewhere must provide routing information about how to reach the newly connected network Installing backup circuits is easy, making the routing work may not be need a clear understanding of how the client networks want their traffic to flow before you can start making routing configuration changes