routing introduction
play

Routing Introduction Direct vs. Indirect Delivery Static vs. - PowerPoint PPT Presentation

Routing Introduction Direct vs. Indirect Delivery Static vs. Dynamic Routing Distance Vector vs. Link State (C) Herbert Haas 2005/03/11 IP Datagram Service IP Host IP Router Destination Next Hop A R1 B R4 C R3 R1 R2 R3 .....


  1. Routing Introduction Direct vs. Indirect Delivery Static vs. Dynamic Routing Distance Vector vs. Link State (C) Herbert Haas 2005/03/11

  2. IP Datagram Service IP Host IP Router Destination Next Hop A R1 B R4 C R3 R1 R2 R3 ..... ..... A2 B5 A2 B5 Destination Next Hop Destination Based Routing User A.2 A local B R2 C R2 ..... ..... IP Routing Destination Next Hop A2 B5 Table of R1 A R4 B local C R4 IP address ..... ..... R4 R5 (structured address Net-ID:Host-ID) Destination Next Hop A2 B5 A R2 A2 B5 B R5 C R2 ..... ..... User B.5 2005/03/11 2

  3. Routing Paradigm � Destination Based Routing � Source address is not taken into account for the forward decision � Hop by Hop Routing � IP datagram's follow the signposts given by routing table entries � Network's routing state must be loop-free and consistent � Least Cost Routing � Typically only the best path is entered into routing table 3 (C) Herbert Haas 2005/03/11

  4. Routing Basics � Routing Introduction � Direct Delivery � Indirect Delivery � Static Routing � Default Routing � Dynamic Routing � Distance Vector Routing � Link State Routing 4 (C) Herbert Haas 2005/03/11

  5. What is routing? � Finding a path to a destination address � Direct delivery performed by host � Destination network = local network � Indirect delivery performed by router � Destination network ≠ local network � Packet is forwarded to default gateway 5 (C) Herbert Haas 2005/03/11

  6. Direct versus Indirect Delivery Indirect via Def-GW Direct 172.17.0.0 172.18.0.1 172.18.0.2 172.17.0.15 172.18.0.10 172.18.0.11 172.17.0.20 172.18.0.0 192.168.2.0 192.168.1.2 192.168.3.2 192.168.3.0 172.19.0.0 192.168.1.0 s0 s1 e0 172.16.0.0 2005/03/11 6

  7. Direct Delivery � IP host checks if packet's destination network is identical with local network � By applying the configured subnet mask of the host's interface � If destination network = local network then the L2 address of the destination is discovered using ARP � Not necessary on point-to-point connections 7 (C) Herbert Haas 2005/03/11

  8. IP Host Facts � Also IP hosts have routing tables ! � But typically only a static route to the default gateway is entered � ARP cache aging timer: 20 minutes 8 (C) Herbert Haas 2005/03/11

  9. Indirect Delivery � Default gateway delivers packet in behalf of its host using a routing table � Routing table components � Destination network (+ subnet mask) � Next hop (+ outgoing interface) � Metric (+ Administrative Distance) 9 (C) Herbert Haas 2005/03/11

  10. Router � Initially Unix workstations with several network interface cards � Today specialized hardware Cisco 3600 Router 10 (C) Herbert Haas 2005/03/11

  11. “ The most simple way to accelerate a Router is at 9.8 m/sec/sec. ” Seen on Usenet

  12. IP Routing Basics 192.168.1.0 192.168.1.253 192.168.1.254 E0 E0 192.168.4.2 S1 172.16.0.0 172.16.0.2 S0 E1 E0 192.168.2.2 172.20.0.254 172.20.0.0 192.168.4.0 S1 192.168.4.1 S0 192.168.3.2 192.168.2.0 192.168.3.0 Routing Table 192.168.3.1 Net-ID / Mask Next-Hop Metric Port S1 192.168.2.1 10.0.0.0 / 8 local 0 e0 S0 172.16.0.0 / 16 192.168.3.2 1 s1 172.20.0.0 / 16 192.168.2.2 2 s0 E0 192.168.1.0 / 24 192.168.2.2 1 s0 10.0.0.254 10.0.0.0 192.168.2.0 / 24 local 0 s0 192.168.3.0 / 24 local 0 s1 192.168.4.0 / 24 192.168.3.2 1 s1 12 (C) Herbert Haas 2005/03/11

  13. Routing Table Example Gateway of last resort is 175.18.1.2 to network 0.0.0.0 10.0.0.0 255.255.0.0 is subnetted, 4 subnets C 10.1.0.0 is directly connected, Ethernet1 R 10.2.0.0 [120/1] via 10.4.0.1, 00:00:05, Ethernet0 R 10.3.0.0 [120/5] via 10.4.0.1, 00:00:05, Ethernet0 C 10.4.0.0 is directly connected, Ethernet0 R 192.168.12.0 [120/3] via 10.1.0.5, 00:00:08, Ethernet1 S 194.30.222.0 [1/0] via 10.4.0.1 S 194.30.223.0 [1/0] via 10.1.0.5 C 175.18.1.0 255.255.255.0 is directly connected, Serial0 S* 0.0.0.0 0.0.0.0 [1/0] via 175.18.1.2 13 (C) Herbert Haas 2005/03/11

  14. Static or Dynamic � Static routing entries are configured manually � Override routes learned via dynamic routing � Can be set as permanent (will not be removed if interface goes down) � Only way for certain technologies (DDR) � Dynamic routing entries are learned by routing protocols � Adapts to topology changes � But additional routing-traffic overhead 14 (C) Herbert Haas 2005/03/11

  15. Reasons for Static Routing � Very low bandwidth links (e. g. dialup links) � Administrator needs control over the link � Backup links � Link is the only path to a stub network � Router has very limited resources and cannot run a routing protocol ip route prefix mask { ip-address | interface-type interface-number } [ distance ] [tag tag ] [permanent] Specifies that the route Tag value that can be used as a will not be removed, “match” value for even if the controlling redistribution via interface shuts down route maps 15 (C) Herbert Haas 2005/03/11

  16. Static Routing (1) � Static routes to and from stub networks Static route: Stub Network 172.19.0.0/16 – S3 172.18.0.0 / 16 172.19.0.0 / 16 S3 S0 Static routes: Static route: 172.17.0.0/16 – S0 Dynamic Routing 172.16.0.0/16 – S2 172.18.0.0/16 – S0 172.19.0.0/16 – S0 (RIP, OSPF...) Static routes: 172.16.0.0/16 – S0 S0 172.17.0.0/16 – S0 S2 172.18.0.0/16 – S0 172.17.0.0 / 16 172.16.0.0 / 16 Stub Network 16 (C) Herbert Haas 2005/03/11

  17. Static Routing (2) � Static routes in "Hub and Spoke" topologies Static routes: 172.20.0.0 / 16 Only Communication 172.16.0.0/16 – S3 172.17.0.0/16 – S2 between branch offices Sydney 172.18.0.0/16 – S1 Headquater - Fileserver 172.19.0.0/16 – S0 and Sydney is possible! Static route: S0 Static route: S3 172.20.0.0/16 – S0 S1 S2 172.20.0.0/16 – S0 Static route: Static route: 172.20.0.0/16 – S0 172.20.0.0/16 – S0 S0 S0 S0 S0 172.16.0.0 / 16 172.17.0.0 / 16 172.19.0.0 / 16 172.18.0.0 / 16 Adelaide Perth Melbourne Canberra 17 (C) Herbert Haas 2005/03/11

  18. Default Routing � Special static route � Traffic to unknown destinations are forwarded to default router ("Gateway of Last Resort") � Routing table entry "0.0.0.0 0.0.0.0" � Hopefully, default gateway knows more destination networks � Advantage: Smaller routing tables! 18 (C) Herbert Haas 2005/03/11

  19. Default Routing (1) � Default Routes from stub networks Static route: Stub Network 172.19.0.0/16 – S3 172.18.0.0 / 16 172.19.0.0 / 16 S3 S0 Static route: Static routes: Dynamic Routing 172.16.0.0/16 – S2 (RIP, OSPF...) 0.0.0.0/0 – S0 Static routes: 0.0.0.0/0 – S0 S0 S2 172.17.0.0 / 16 172.16.0.0 / 16 Stub Network 19 (C) Herbert Haas 2005/03/11

  20. Default Routing (2) � Default routes in "Hub and Spoke" topologies Static routes: 172.20.0.0 / 16 "Any to Any" 172.16.0.0/16 – S3 172.17.0.0/16 – S2 Communication is now Sydney 172.18.0.0/16 – S1 Headquater - Fileserver 172.19.0.0/16 – S0 established Static route: S0 Static route: S3 0.0.0.0/0 – S0 S1 S2 0.0.0.0/0 – S0 Static route: Static route: 0.0.0.0/0 – S0 0.0.0.0/0 – S0 S0 S0 S0 S0 172.16.0.0 / 16 172.17.0.0 / 16 172.19.0.0 / 16 172.18.0.0 / 16 Adelaide Perth Melbourne Canberra 20 (C) Herbert Haas 2005/03/11

  21. Default Routing (3) � Default Routes to the Internet Host Route: 195.54.190.220/32 – S0 195.54.190.12 S0 C:> ipconfig IP Address. . . . . : 195.54.190.220 Subnet Mask . . . . : 255.255.255.0 Internet Default Gateway . . : 195.54.190.12 C:> route print Network Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 195.54.190.12 195.54.190.220 1 21 (C) Herbert Haas 2005/03/11

  22. On Demand Routing (ODR) � Efficient for hub-and-spoke topologies � Same configuration at each router � Uses CDP to send the prefixes of attached networks from the spokes, or stub networks, to the hub or core router � CDP does this automatically (!) � The hub router sends its interface address of the shared link as the default route for the stub router � Note: � Don't enable routing protocols on spoke routers � CDP must be enabled (don't forget e. g. ATM interfaces) � Every 60 sec a CDP message is sent per default (change with "cdp timer" command) (config)# router odr ! Only on hub router 22 (C) Herbert Haas 2005/03/11

  23. Dymanic IP Routing Protocols OSI TCP/IP Protocol Suite 7 Layer Model Application HTTP FTP SMTP Telnet DNS DHCP TFTP etc. Presentation (US-ASCII and MIME) Routing Protocols Session RIP, OSPF, UDP TCP Transport BGP, EGP (User Datagram (Transmission Control Protocol) Protocol) ICMP Network Internet Protocol (IP) RARP ARP Inverse ARP IP over Link ATM IEEE 802.2 X.25 Frame Relay PPP Physical RFC 1483 RFC 1042 RFC 1356 RFC 1490 RFC 1661 23 (C) Herbert Haas 2005/03/11

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend