Stejarel Veres Network Layer Fundamentals 3 rd Tutorial Session for CEG3180B February 1 st, 2005.

Slides:



Advertisements
Similar presentations
Cisco S3 C5 Routing Protocols. Network Design Characteristics Reliable – provides mechanisms for error detection and correction Connectivity – incorporate.
Advertisements

CCNA Guide to Cisco Networking Fundamentals Fourth Edition
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Routing.
1 CCNA 3 v3.1 Module 1. 2 CCNA 3 Module 1 Introduction to Classless Routing.
Mod 10 – Routing Protocols
CCNA 2 v3.1 Module 6.
1 Basics of Dynamic Routing Presented by Aaron Jarvis Network Engineer.
Routing and Routing Protocols
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
Switching and Routing Technique
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
Chapter 8 Advanced TCP/IP Network Design. Classful IP Addressing There are three basic classes of addresses known as class A, B, or C networks.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Routing Dynamically Routing & Switching.
Chapter 7: Routing Dynamically
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Routing Dynamically Routing Protocols.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 3: Routing Dynamically Routing Protocols Assist. Prof. Pongpisit.
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
University of the Western Cape Chapter 11: Routing Aleksandar Radovanovic.
Lecture Week 7 RIPv2 Routing Protocols and Concepts.
Sybex CCENT Chapter 8: IP Routing Instructor & Todd Lammle.
Routing and Routing Protocols 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.
Sybex CCNA Chapter 6: IP Routing Instructor & Todd Lammle.
Introduction to Dynamic Routing Protocol
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
1. 2 Anatomy of an IP Packet IP packets consist of the data from upper layers plus an IP header. The IP header consists of the following:
CCNA 1 Module 10 Routing Fundamentals and Subnets.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 VLSM and CIDR Routing Protocols and Concepts – Chapter 6 05/07/2009.
© Wiley Inc All Rights Reserved. CCNA: Cisco Certified Network Associate Study Guide CHAPTER 5: IP Routing.
© 2002, Cisco Systems, Inc. All rights reserved..
Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Routing Protocols and Concepts Introduction to Dynamic Routing Protocol.
Switching and Routing Technique W.lilakiatsakun. Assessment Final 40 % Final 40 % Midterm 30% Midterm 30% LAB + Assignment 30% LAB + Assignment 30%
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Routing 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.
1 Version 3.1 Module 6 Routed & Routing Protocols.
IP Internet Protocol Fundamental packet format that computers use to exchange information. Is a set of technical rules that defines how computers communicate.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
© 2002, Cisco Systems, Inc. All rights reserved..
 RIP — A distance vector interior routing protocol  IGRP — The Cisco distance vector interior routing protocol (not used nowadays)  OSPF — A link-state.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing Protocols.
Prof. Alfred J Bird, Ph.D., NBCT Office – Science 3rd floor – S Office Hours – Monday and Thursday.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
1 © 2004, Cisco Systems, Inc. All rights reserved. Introduction to Classless Routing.
Prof. Alfred J Bird, Ph.D., NBCT Office – McCormick 3rd floor 607 Office Hours – Monday 3:00 to 4:00 and.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
+ Dynamic Routing Protocols 2 nd semester
Lec4: Introduction to Dynamic Routing Protocol
Working at a Small-to-Medium Business or ISP – Chapter 6
Introduction to Dynamic Routing Protocol
Chapter 5: Dynamic Routing
Chapter 7: Routing Dynamically
Chapter 3: Dynamic Routing
Introduction to Dynamic Routing Protocol
Dynamic Routing and OSPF
Chapter 7: Routing Dynamically
Working at a Small-to-Medium Business or ISP – Chapter 6
Presentation transcript:

Stejarel Veres Network Layer Fundamentals 3 rd Tutorial Session for CEG3180B February 1 st, 2005

2Stejarel Veres The ISO OSI Model  A conceptual, layered model for designing networked systems (i.e., both the hardware and software components that relate to networking a certain system)  7 Layers (from top to bottom): Application, Presentation, Session, Transport, Network, Data Link, Physical  The higher the layer, the more abstract its functions are with respect to the actual physical transmission

3Stejarel Veres The ISO OSI Model  A conceptual, layered model for designing networked systems (i.e., both the hardware and software components that relate to networking a certain system)  7 Layers (from top to bottom): Application, Presentation, Session, Transport, Network, Data Link, Physical  The higher the layer, the more abstract its functions are with respect to the actual physical transmission

4Stejarel Veres The ISO OSI Model (cont’d)  Allows for transparent peer-to-peer communication between same layers of two networked systems  Top four layers: “network layers”; the other three layers: “host layers”  Beginning with the upmost half of the Data Link Layer (the LLC Sub-Layer), operations are media-independent

5Stejarel Veres The Network Layer  Two fundamental functions: Logical network topology and Addressing Path determination (i.e., Datagram routing)  The rest of this discussion focuses on the IP (Internet Protocol), version 4 (IPv4) of the TCP/IP Protocol Stack

6Stejarel Veres Original IPv4 Addressing  32-bit addresses ( …)  Most of the times written in the “dotted-decimal” format: 4 numbers between 0 and 255, separated by dots  E.g.,  Theoretically to yield 2 32 ~ 4.3 billion addresses

7Stejarel Veres Original IPv4 Addressing (cont’d)  Address space divided into “classes of addresses” based on the size of the networks it was supposed to be allocated to: Class A – large size networks Class B – medium size networks Class C – small size networks Class D – special (multicast) Class E – special (reserved)

8Stejarel Veres Original IPv4 Addressing (cont’d)  Address space divided into “classes of addresses” based on the size of the networks it was supposed to be allocated to: Class A – large size networks Class B – medium size networks Class C – small size networks Class D – special (multicast) Class E – special (reserved)

9Stejarel Veres Path Determination  I.e., datagram (packet) routing  The “hop-by-hop” routing paradigm: packet passes from router to router, each step bringing it closer to the destination  If a packet travels too many hops, it is discarded (in order to prevent routing loops)

10Stejarel Veres Path Determination  I.e., datagram (packet) routing  The “hop-by-hop” routing paradigm: packet passes from router to router, each step bringing it closer to the destination  If a packet travels too many hops, it is discarded (in order to prevent routing loops)

11Stejarel Veres Path Determination (cont’d)  Routers maintain “routing tables” containing, for each known destination network address: The output interface for that destination The next hop address for that destination  Routing tables updated statically (“by hand”) or dynamically (by using dynamic routing protocols)

12Stejarel Veres Static vs. Dynamic Routing  Static is: Simpler to configure, yet more difficult to maintain Very low CPU time-consuming and memory- consuming Not at all suited for large networks and only marginally suited for redundant topologies  Dynamic is: More difficult to configure, but need not be manually maintained up to date Usually more CPU time-consuming and memory- consuming Virtually a must for redundant topologies and larger networks

13Stejarel Veres Simple Routing Algorithm 1.Examine destination address to determine if class A, B or C 2.Extract the network part from the address 3.Search for the destination network in the routing table 4.If found, and next hop is reachable: route out the specified interface to the next hop 5.Otherwise, discard the packet and send ICMP Destination Host/Network Unreachable message to the sender

14Stejarel Veres Original IPv4 Addressing Issues 1.Inefficient address space allocation - a large part of the address space is being wasted 2.Inefficient routing – large routing tables, routing processes very CPU intensive

15Stejarel Veres Solutions Devised 1.Subnetting 2.Default routing; Classless Inter- Domain Routing (CIDR), also known as “Supernetting”

16Stejarel Veres Subnetting  “Borrowing” bits from the host portion for the network portion of the address  Network addresses expressed as pairs of “address” and “subnet mask”  The concept of “classes” becomes obsolete, yet designs have sometimes to accommodate older equipment with no knowledge of subnetting

17Stejarel Veres  “Borrowing” bits from the host portion for the network portion of the address  Network addresses expressed as pairs of “address” and “subnet mask”  The concept of “classes” becomes obsolete, yet designs have sometimes to accommodate older equipment with no knowledge of subnetting Subnetting

18Stejarel Veres Subnet Masks  32-bit strings with a contiguous left side of 1’s and a contiguous right side of 0’s  The number of 1’s (the “length” of the subnet mask): how many bits of the address corresponds to the network part

19Stejarel Veres Subnet Masks (cont’d)  Written either in dotted-decimal format, or as /number_of_1’s (/length)  Original classes of addresses: A – (/8) B – (/16) C – (/24)

20Stejarel Veres Default Routing  Specifies a way to handle packets for which no specific entry exists in the routing table  “Fall-back”: the packed is routed via a “default gateway” that is supposed to know better what to do with it  Especially useful for “stub networks”  Helps keeping routing tables small  Default route entry: /0

21Stejarel Veres Classless Inter-Domain Routing  Grouping a number of contiguous network addresses into a larger routing table entry  E.g., /24 through /24 can be written as /21  Helps keeping routing tables small

22Stejarel Veres Modified Routing Algorithm 1.For each routing table entry: perform AND between destination address and entry subnet mask; if result equals the entry network address and entry more specific (i.e., longer subnet mask) than the previous one, keep it and discard the other 2.If matched, and next hop is reachable: route out the specified interface to the next hop 3.Otherwise, discard the packet and send ICMP Destination Host/Network Unreachable message to the sender

23Stejarel Veres Subnetting Examples  Given the following two address/mask pairs, how can we tell whether they are on the same subnet or not?  /28 and /28 1.AND and (/28) = AND and =  NO ( != )

24Stejarel Veres Subnetting Examples (cont’d)  Given the following two address/mask pairs, how can we tell whether they are on the same subnet or not?  /26 and /26 1.AND and (/26) = AND and =  YES ( == )

25Stejarel Veres Subnetting Examples (cont’d)  Given the following address/mask pair, can you determine the subnet address and the address range for that subnet?  /29 1.AND and (/29) = (subnet address) 2.OR and NOT = (broadcast address)  Address range: (6 usable addresses, )

26Stejarel Veres Routing Table Example  Given the following routing table: Serial Serial Serial2  Address will route by entry 1  Address will route by entry 2  Address will route by entry 3 (via the default gateway)

27Stejarel Veres Dynamic Routing Protocols  Can be classified from multiple points of view  By the algorithm they use for building routing tables: Distance Vector: use “distance” metrics Link State: use “cost” metrics and SPF algorithms Hybrid  By the way they use and advertise subnet information: Classless: they accept and advertise subnets Classful: they ignore and don’t advertise subnets  By their intended use: Exterior Gateway Protocols (EGP): inter-AS Interior Gateway Protocols (IGP): intra-AS

28Stejarel Veres Examples of Routing Protocols  RIPv1: IGP, distance vector, classful  RIPv2: IGP, distance vector, classless  IGRP (Cisco): IGP, distance vector, classful  EIGRP (Cisco): IGP, advanced distance vector (sometimes called “hybrid”), classless  OSPF, IS-IS: IGP, link state, classless  BGP-4: EGP, hybrid, classless

29Stejarel Veres Distance Vector vs. Link State  Distance Vector are: Simpler Less CPU time-consuming and often less memory- consuming Slower-converging More bandwidth-consuming Less scalable  Link State are: More complicated CPU and memory intensive Faster-converging Less bandwidth-consuming Very scalable

30Stejarel Veres So, Which One To Choose?  Distance vector: in small and simple networks, or in networks with slower- CPU and small-sized memory routers  Link state: in large networks, and in networks requiring Shortest Path Tree calculation for the purpose of Traffic Engineering (i.e., MPLS-TE)

31Stejarel Veres Our Labs  Will consist of configuring Cisco routers for Static Routing (Lab 2), for OSPF routing within a single area (Lab 3), and for OSPF routing within a multi-area topology (Lab 4)  Technical documentation to be consulted listed in the References section of this presentation

32Stejarel Veres References 1.J. Postel, STD0005/RFC0791: Internet Protocol 2.J. Postel, STD0005/RFC0792: Internet Control Message Protocol 3.J. C. Mogul, J. Postel, STD0005/RFC0950: Internet Standard Subnetting Procedure 4.Y. Rekhter, T. Li, RFC1518: An Architecture for IP Address Allocation with CIDR 5.IANA, RFC3330: Special-Use IPv4 Addresses 6.Y. Rekhter, B. Moskowitz, D. Karrenberg, G. J. de Groot, E. Lear, RFC1918: Address Allocation for Private Internets 7.Cisco IOS IP Command Reference, Volume 1 of 4: Addressing and Services, Release /123cgcr/ipras_r/ip1bookg.pdf 8.Cisco IOS IP Command Reference, Volume 2 of 4: Routing Protocols, Release /123cgcr/iprrp_r/ip2bookg.pdf