(Read Forouzan Chapters 6 and 7)) IP Forwarding Procedure

Slides:



Advertisements
Similar presentations
ARP AND RARP ROUTED AND ROUTING Tyler Bish. ARP There are a variety of ways that devices can determine the MAC addresses they need to add to the encapsulated.
Advertisements

Lab Practical 2 Study about different types of Networking Device
4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side, delivers.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
10 - Network Layer. Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving.
IP Routing: an Introduction. Quiz
CECS 5460 – Assignment 3 Stacey VanderHeiden Güney.
Introduction to IT and Communications Technology Justin Champion C208 – 3292 Ethernet Switching CE
Network Redundancy Multiple paths may exist between systems. Redundancy is not a requirement of a packet switching network. Redundancy was part of the.
Chapter 4: Managing LAN Traffic
Common Devices Used In Computer Networks
Network Devices.
1/28/2010 Network Plus Network Device Review. Physical Layer Devices Repeater –Repeats all signals or bits from one port to the other –Can be used extend.
Router and Routing Basics
 Network Segments  NICs  Repeaters  Hubs  Bridges  Switches  Routers and Brouters  Gateways 2.
Mr. Mark Welton.  A computer network, or simply a network, is a collection of computers and other hardware interconnected by communication channels.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Local-Area-Network (LAN) Architecture Department of Computer Science Southern Illinois University Edwardsville Fall, 2013 Dr. Hiroshi Fujinoki
Ethernet (LAN switching)
OSI Model. Switches point to point bridges two types store & forward = entire frame received the decision made, and can handle frames with errors cut-through.
Basic Routing Principles V1.2. Objectives Understand the function of router Know the basic conception in routing Know the working principle of router.
LAN Switching Concepts. Overview Ethernet networks used to be built using repeaters. When the performance of these networks began to suffer because too.
Local Area Networks Honolulu Community College
Release 16/7/2009 Internetworking Devices Chapter 10 Jetking Infotrain Ltd.
1 28-Sep-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI network layer CCNA Exploration Semester 1 Chapter 5.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI network layer CCNA Exploration Semester 1 – Chapter 5.
Network Layer Routing Networks: Routing.
Chapter 3 Part 3 Switching and Bridging
Instructor & Todd Lammle
Datagram Forwarding.
ROUTING.
Chapter 4 Network Layer All material copyright
Instructor Materials Chapter 3 Communicating on a Local Network
MAC Address Tables on Connected Switches
Link Layer 5.1 Introduction and services
Local Area Networks Honolulu Community College
Connecting Network Components
Networking Devices.
Part III Datalink Layer 10.
Scaling the Network: The Internet Protocol
Part I. Overview of Data Communications and Networking
Basic Router Troubleshooting
Connecting LANs, Backbone Networks
Lab 2 – Hub/Switch Data Link Layer
MAC Addresses and ARP 32-bit IP address:
Semester 2 1 JEOPARDY CHAPTER 1 REVIEW S2C01 Jeopardy Review.
ISO/OSI Model and Collision Domain
Chapter 6 – Routing.
Lab 2 – Hub/Switch Data Link Layer
Network Architecture Introductory material
Net 323: NETWORK Protocols
Chapter 3 Part 3 Switching and Bridging
Chapter 4-1 Network layer
Review of Important Networking Concepts
Chapter 6 The Data Link layer
Review of Important Networking Concepts
Packet Switch Architectures
Ethernet: A Multi-access Network
Network Layer I have learned from life no matter how far you go
Protocol layering and data
Network Layer Routing Networks: Routing.
Part III Datalink Layer 10.
Routing Fundamentals and Subnets
Chapter 3 Part 3 Switching and Bridging
Scaling the Network: The Internet Protocol
Chapter 15. Connecting Devices
LAN switching and Bridges
Protocol layering and data
Cisco Routers Presented By Dr. Waleed Alseat Mutah University.
Packet Switch Architectures
Presentation transcript:

(Read Forouzan Chapters 6 and 7)) IP Forwarding Procedure 172.16.96.165 172.16.96.129 B Example Network: 172.16.96.240/28 R A eth1 172.16.96.128/26 172.16.96.226 172.16.96.225 R C 172.16.96.224/28 172.16.96.67 R B 172.16.96.65 172.16.96.193 eth0 172.16.96.64/27 172.16.96.192/27 172.16.96.66 R D A 172.16.96.214 172.16.96.96/27 IP Addresses Identify an Interface not a machine (Reference : “ IP Fundamentals” by Maufer Part II)

In Sending An IP Packet From A to B STEP 1: Since B 172.16.96.165 [ 10101100.00010000.01100000.101]00101 and A’s network 172.16.96.192/27 [10101100.00010000.01100000.110]00000 do not match in masked off significant part (Prefix): A must send IP packet to a default gateway which A must know (by set up) to be RB A must send Address Resolution Protocol (ARP) request to find out RB MAC.

… … A then sends IP SA IP Destination Address IP Packet IPA IPB IP packet data … … MAC DA MAC SA FCS MAC Frame RB ( MAC) MACA 0X0800 Ether Type Frame Control Sequence ( CRC ) STEP 2: At RB IP frame is extracted and IP Destination Address is examined and compared for longest match in a forwarding table.

For Example: Known Prefixes Next – Hop Gateway Interface Metric 172.16.96.64/27 172.16.96.67 172.16.96.96/27 172.16.96.66 172.16.96.128/26 172.16.96.65 eth0 172.16.96.192/27 172.16.96.193 172.16.96.224/28 172.16.96.225 172.16.96.240/28 172.16.96.226 Later The destination prefix that has the most leading bits in common with the IP DA 172.16.96.165 is 172.16.96.128/26 172.16.96.165 = 10101100.00010000.01100000.10100101 172.16.96.128/26 = [10101100.00010000.01100000.10]000000 Prefix

STEP 2 : This means we need to forward the packet to whoever has 172.16.96.65 as an IP address. CAUTION: we want to forward at the MAC layer so need to use ARP to find MAC address for 172.16.96.65. DO NOT CHANGE IP DA!!!!! New time to live => new IP header check sum IP SA IP DA IP IPA IPB IP Packet Data Different value from step 1 MAC DA MAC SA MAC RC MAC RB MAC 0x0800 FCS ether Type Frame Control Sequence (CRC)

match in a forwarding table. STEP 3 : At RC IP frame is extracted and IP destination address is examined and compared for longest match in a forwarding table. For Example: Known Prefixes Next – Hop Gateway Interface Metric 172.16.96.64/27 172.16.96.65 172.16.96.96/27 172.16.96.66 172.16.96.128/26 172.16.96.165 eth1 172.16.96.192/27 172.16.96.67 172.16.96.224/27 172.16.96.67 Later Longest prefix match of same old IP DA is with 172.16.96.128/26 Difference from before - since RC is directly connected to destinations subnetwork, the subnetwork layer destination MAC address MACB and IP destination address ( IPB ) are for the same machine.

IP SA IP DA IP Packet Data IPA IPB MAC DA MAC SA FCS RC (MAC) MAC B 0X0800 Ether Type Aside: Routing protocols ( RIP or OSPF ) build forwarding tables (or can do by hand )

What is the difference between routing and switching? LAN interconnection devices operate a “ OSI ” (Open Systems Interconnection Reference Model) Layers: Layer 1 : Physical Layer Layer 2: Data Link Layer Layer 3: Network Layer Application Presentation Application Session Transport Transport Internet Network Subnetwork Data Link Physical Open Systems Interconnection Reference Model Internet Protocol Stack

Layer 1: Repeaters ( Not too common now) HUBS ( Very common ) HUB To Backbone Four HUB rule - only 4 hub hops allowed in a “ Collision Domain ” Hubs are physical layer devices that just “Repeat” what they see, errored frames and all. Endstation 1 -- TD+  2 -- TD-  3 -- RD+  4 5 6 -- RD-  7 8 Hub Side 1 -- TD+ 2 -- TD- 3 -- RD+ 4 5 6 -- RD- 7 8 Endstation 1 -- TD+  2 -- TD-  3 -- RD+  4 5 6 -- RD-  7 8 Endstation 1  TD+ 2  TD- 3  RD+ 4 5 6  RD- 7 8 10 Base-T pinout and Crossover cable HUB attachment Functionality

Layer 2: Bridges ( Not common now ) Switches ( What we call bridges now ) Layer - 2 switches ( Way cool marketing term) Forwarding decisions based only on data link layer header, that is the MAC DA. Use a table made from observing which addresses are seen on each port. No more than 7 bridges in diameter. Today’s ethernet environments use lots of ethernet switches, reducing the collision domain. Collision domain is the set of ethernet segments that can directly hear each others frames. Worst case is all inputs want to go out on the same output. Must have some buffering and some sort of fairness algorithm inside

Layer 3: routers ( Historically Called a Gateway When Different Protocols Were Involved ) Routers forward packets based on the destination address at network layer ( Layer 3 ) 3 2 LAN 1 LAN 2 1 May see “Layer - 3 switching” term this just means Routing !

Early Routing Initially called gateways ( Gateway From One Network To Another ) and later called routers. Used to connect different physical networks into larger unified network. Packets contain a destination address, router attempts to match with one of many possible entries in a table of destination networks, sends out appropriate interface. First generation router architecture: Processor Shared Bus Interface Interface Interface Processor runs routing protocols and maintains forwarding table of next HOP routers Packets flow from interface up to processor then back down to correct interface Performance limited by speed of the bus and processing capability of CPU. Second generation router: Distribute the forwarding computations out to the media interface adapters. Input adapter performs forwarding computation and directs the packet over bus to appropriate output adapter. Performance still limited by speed of the bus.

Third Generation Router: Replace bus with a switch. All ports connected by nonblocking switch fabric. Processor Forwarding Cache Forwarding Cache Adapter Adapter Forwarding Cache Forwarding Cache Adapter Adapter Reference: “IP switching protocols and architectures” by Metz Chapter 1