CMPE 151 Routing Marc Mosko. 2 Talk Outline Routing basics Why segment networks? IP address/subnet mask The gateway decision based on dest IP address.

Slides:



Advertisements
Similar presentations
IP Routing.
Advertisements

RIP2 CCNA Exploration Semester 2 Chapter 7
The subnet /28 has been selected to be further subnetted to support point-to-point serial links. What is the maximum number of serial links.
RIP V2 W.lilakiatsakun.  RFC 2453 (obsoletes –RFC 1723 /1388)  Extension of RIP v1 (Classful routing protocol)  Classless routing protocol –VLSM is.
RIP V2 CCNP S1(5), Chapter 4.
Courtesy: Nick McKeown, Stanford
1 CCNA 3 v3.1 Module 1. 2 CCNA 3 Module 1 Introduction to Classless Routing.
CSE331: Introduction to Networks and Security Lecture 9 Fall 2002.
Routing So how does the network layer do its business?
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Routing and Routing Protocols
COS 420 Day 17. Agenda Finished Grading Individualized Projects Very large disparity in student grading No two students had same ranking for other students.
CSE 461: Distance Vector Routing. Next Topic  Focus  How do we calculate routes for packets?  Routing is a network layer function  Routing Algorithms.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 RIP version 1&2 Revised by Chakchai So-In, Ph.D.
© N. Ganesan, All rights reserved. Chapter IP Routing.
TCP/IP Protocol Suite1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
CISCO NETWORKING ACADEMY Chabot College ELEC IP Routing Protocol Highlights.
Chapter 8 Routing. Introduction Look at: –Routing Basics (8.1) –Address Resolution (8.2) –Routing Protocols (8.3) –Administrative Classification (8.4)
Interior Gateway Protocols: RIP & OSPF
22.1 Chapter 22 Network Layer: Delivery, Forwarding, and Routing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Routing Information Protocol (RIP). Intra-and Interdomain Routing An internet is divided into autonomous systems. An autonomous system (AS) is a group.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
Slide /2009COMM3380 Routing Algorithms Distance Vector Routing Each node knows the distance (=cost) to its directly connected neighbors A node sends.
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
1 Routing Protocols and Configuration Instructor: Te-Lung Liu Program Associate Researcher NCHC, South Region Office.
Lecture Week 7 RIPv2 Routing Protocols and Concepts.
Sybex CCENT Chapter 8: IP Routing Instructor & Todd Lammle.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
Sybex CCNA Chapter 6: IP Routing Instructor & Todd Lammle.
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
1 3-Oct-15 Distance Vector Routing CCNA Exploration Semester 2 Chapter 4.
Copyright © Lopamudra Roychoudhuri
© Wiley Inc All Rights Reserved. CCNA: Cisco Certified Network Associate Study Guide CHAPTER 5: IP Routing.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 RIPv2 Routing Protocols and Concepts – Chapter 7.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
RIP2 (Routing Information Protocol) Team Agile. Routing Protocols Link State – OSPF – ISIS Distance vector – RIP (version 1 and 2) – IGRP (Cisco Proprietary)
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 7 Internet Protocol (IP) Routing.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Distance Vector Routing Protocols Dynamic Routing.
1 1-Dec-15 S Ward Abingdon and Witney College Distance Vector Routing CCNA Exploration Semester 2 Chapter 4.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vectore Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
Cisco Systems Networking Academy S2 C 12 Routing Protocols.
Routing Protocols and Concepts – Chapter 7
 RIP — A distance vector interior routing protocol  IGRP — The Cisco distance vector interior routing protocol (not used nowadays)  OSPF — A link-state.
+ Routing Concepts 1 st semester Objectives  Describe the primary functions and features of a router.  Explain how routers use information.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Ch 22. Routing Direct and Indirect Delivery.
RIP Routing Protocol. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
1. 2  An autonomous system is a region of the Internet that is administered by a single entity.  Examples of autonomous regions are:  UVA’s campus.
TRANSPORT LAYER BY, Parthasarathy.g.
Kapitel 19: Routing. Kapitel 21: Routing Protocols
Dynamic Routing Protocols part2
Routing BY, P.B.SHANMATHI.
Routing Information Protocol (RIP)
COMP 3270 Computer Networks
Chapter 6 – Routing.
Dynamic Routing Protocols part2
Dynamic Routing and OSPF
Distance Vector Routing
Presentation transcript:

CMPE 151 Routing Marc Mosko

2 Talk Outline Routing basics Why segment networks? IP address/subnet mask The gateway decision based on dest IP address default gateway and static routing gateway discovery (DHCP, IDRP RFC1256) dynamic routing A simple routing protocol RIPv1 All the problems w/ RIP quick RIPv2 differences Demo RIP commands: netstat, route, ip route

3 Why segment networks All systems see all others Broadcast traffic causes load (ARP, etc.) Security (e.g. block Windows file sharing) Over wide-area Want to eliminate L2 broadcasts Different administrative units want different address spaces L3 provides glue between different link technologies, such as Ethernet and DSL.

4 Classful IP addresses 5 classes A: 7-bit net/24-bit host0xx Loopback127 B: 14-bit net/16-bit host10x C: 21-bit net/8-bit host110x D: multicast1110x E: experimental1111x240 – 254 Broadcast No subnet mask used. Bit-size of fields defined by address prefix.

5 Classful examples A networks net=10, host = B networks net=172.16, host = 8.7 C networks net= , host = 5 D network multicast group

6 Classful IP addresses What’s the problem? Not enough networks A = 125 usable B = 16k usable C = 2M usable 2M might seem like a lot, but is not enough for whole world. Point-to-point links would take up a whole class C. No one is going to put 16M hosts on a class A.

7 Enter Classless IP IP address is a 64-bit value: IP and mask. a.b.c.d / a.b.c.d / 24 The mask specifies the network part of the address, used by routers. What is left over (inverse mask) is used by hosts. Example: IP = / A C6 FF.FF.F FF 0A C6 Network= Host=

8 The gateway decision Host IP: / 16 Dest IP: What should host do with packet? & = & = Same network, host should ARP and deliver locally.

9 The gateway decision (2) Host IP: / 16 Dest IP: What should host do with packet? & = & = Different network, host should send packet to default gateway for routing.

10 Common masks Masks /24256 hosts / hosts /26 64 hosts /27 32 hosts /28 16 hosts /29 8 hosts /30 4 hosts /31 not usable /32 single host Learn them There’s only 7 – just memorize it Or, use the addition trick in column 2

11 Miscellaneous Reserved numbers Why is /31 not usable? 0 = ``this net’’ and all-1s = broadcast In /30, 4 addresses, but only 2 usable, etc. Examples /29 = 8 addresses, 6 usable  = 0 ``this net’’ address  = all-1s broadcast  & (inverse mask for host part) There are other rules about subnet zero (not discussed)

12 IP address summary IP address & subnet mask Hosts and routers know both. Given IP, Mask, and destination IP, a host can determine if local delivery or send to gateway. The 0 and all-1s addresses reserved. Just about everything is classless routing now- a-days.

13 Gateway discovery How does a host know which gateway? Static: put in /etc/gateways Simple, but not resilient to failures. DHCP/BOOTP Better administration, can be changed, but still sensitive to gateway failure. IRDP (RFC 1256) Hosts can send a query to the network and available gateways send responses. Allows automatic re-configuration around failures. Routing protocol Host can run a routing protocol and learn full routing information. Can be a ``stub’’ that does not forward.

14 Dynamic routing What is a routing protocol? Exchange reachability information Prevent loops Networks at site

15 Routing Table Information stored (at minimum) Destination (likely w/ subnet mask) Next-hop to reach network Distance (or something else for loop-freedom) Status Chicago router

16 Routing table example Chicago router

17 A simple routing protocol Routing Information Protocol (RIP) Very old protocol (for computers!). Each node periodically broadcasts routing table out each interface. For each received broadcast, for each destination, pick next hop that has the shortest distance. Distance is from 0 to 15. Distance 16 = infinity (not reachable). RIP is in the class of: Distributed Bellman-Ford Distance Vector

18 RIP and subnet mask Does not use subnet masks Exception: If the router is configured with a subnet mask, it will assume that mask for the network. In picture, is class B. But is being used as a class C. As long as all routers have /24 mask, RIP will “do the right thing”.

19 Problems with RIP (1) Based on hop count NY would choose 56k line to reach Ames because it is 1 hop. The 2-hop T1 lines (1.5 Mbps) would be better.

20 Problems with RIP (2) Loops ABC Net 1

21 Problems with RIP (3) What would fix problem? Don’t advertise out I/F what you get in I/F (split horizon) When change to NH, send advert right away If I/F goes down, poison route (poison reverse) ABC Net 1

22 Problems with RIP (4) Summary Count-to-infinity It is built in to RIP. You cannot completely remove it. It is in by design. RIP does not exchange enough information to be loop-free in all cases, so it must detect loops by C2I. Split-horizon & poison reverse Only work for short loops. You can still have long cycles with loops, which C2I will eventually remove.

23 RIP version 2 (RIPv2) Add subnet masks Triggered updates (faster convergence) Authentication Still has loops and C2I Is used today in small networks

24 RIP Demo modestofresnoturlock / /24 switch PC / /24.1.2

25 UNIX routing support routed = RIP mrouted = multicast DVMRP Gated and Zebra = modern protocols Commands route add ip route (linux) netstat –nr arp -a route –nv monitor /etc/gateways

26 Other topics (whiteboard) Distance vector vs. link state OSPF Can DV be loop free? (yes!) What is BGP4? Fault-tolerant network design Two NICs in server Two switches Two Routers Two ISPs How to make it all work together?