Docsity

Routing and Routing Protocols, Lecture notes of Computer Networks

Toggle sidebar
bg1
All slides are customized by Engr. Vernon Degala. For educational purposes only.All slides are customized by Engr. Vernon Degala. For educational purposes only.
Module 6: Routing and Routing Protocols
inspired by Cisco Networking Academy
Computer Networks and Security
CCNA 2: Routers and Routing Basics
ORIGINAL COPY
All slides are customized by Engr. Vernon Degala. For educational purposes only.
Watch full discussion: to follow
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Routing and Routing Protocols and more Lecture notes Computer Networks in PDF only on Docsity!

All slides are customized by Engr. Vernon Degala. For educational purposes only.All slides are customized by Engr. Vernon Degala. For educational purposes only.

Module 6: Routing and Routing Protocols

inspired by Cisco Networking Academy Computer Networks and Security CCNA 2: Routers and Routing Basics

ORIGINAL COPY

Watch full discussion: to follow

All slides are customized by Engr. Vernon Degala. For educational purposes only.

Routing

  • Routing is a set of directions to get from one network to another. These directions (routes), can be dynamically given to the router by another router, or they can be statically assigned to the router by an administrator.
  • Routing is the process that a router uses to forward packets toward the destination network. A router makes decisions based upon the destination IP address of a packet.

Static Route Operation

  • Static route operations can be divided into these three parts: - Network administrator configures the route - Router installs the route in the routing table - The static route is used to route packets ip route command used to manually configure a static route.

All slides are customized by Engr. Vernon Degala. For educational purposes only.

Demo: Static Routing & Routing Table

Dynamic Routing Overview – Routing vs. Routed

  • Routing protocols are different from Routed protocols in both function and task.
  • A routing protocol is the communication used between routers. It allows user to share information about networks and their proximity to each other. - Example of Routing Protocols: - RIP – Routing Information Protocol - IGRP – Interior Gateway Routing Protocol - EIGRP – Enhanced Interior Gateway Routing Protocol - OSPF – Open Shortest Path First
  • A routed protocol is used to direct user traffic. It provides enough information in its network layer address to allow a packet to be forward from one host to another based on the addressing scheme. - Example of Routed Protocols: - IP – Internet Protocol - IPX – Internetwork Packet Exchange

All slides are customized by Engr. Vernon Degala. For educational purposes only.

Dynamic Routing Overview - Purpose

  • The goal of a routing protocol is to build and maintain a routing table. This table contains a learned networks and associated ports for those networks.
  • The routing protocol learns all available routes , places the best routes into the routing table, and removes routing when they are no longer valid. The router uses the information in the routing table to forward routed protocol packets.

Categories of Routing Protocols

  • Distance Vector – it determines the direction, or vector , and distance to any link in an internetwork. - Uses distance and direction
  • Link State – it recreates the exact topology of an entire internetwork.
    • Shortest path first

All slides are customized by Engr. Vernon Degala. For educational purposes only.

Link State (Dijkstra’s Routing)

  • It maintains a complex database of topology information.
  • It maintains full knowledge of distant routers and how they interconnect. Link state routing uses the following features: Link state advertisement (LSA) – a small packet of routing information that is sent between routers Topological database – a collection of information gathered from LSAs SPF algorithm – a calculation performed on the database that results in the SPF tree. Routing table – a list of the known paths and interfaces

Routing Protocols Overview – Path Determination

  • The router uses two basic functions:
    • Path determination function – occurs at the network layer. It enables a router to evaluate the paths to a destination and to establish the preferred way to handle a packet. (via Routing Table)
    • Switching function – the internal process used by a router to accept a packet on one interface and forward it to a second interface on the same router. (to encapsulate to next)

All slides are customized by Engr. Vernon Degala. For educational purposes only.

Dijkstra’s Routing

  1. Assign to every node a tentative distance value. Set it to zero for our initial node and to infinity for all other nodes. 2. Mark all nodes unvisited. Set the initial node as current.
  2. For the current node, consider all of its unvisited neighbors and calculate their tentative distances. (Even though a neighbor has been examined, If the distance is less than the previously recorded tentative distance, then overwrite that distance. it is not marked as “visited” at this time, and it remains in the unvisited set.
  3. When we are done considering all of the neighbors of the current node, mark the current node as visited node and remove it from the unvisited set. A visited node will never be checked again.
  4. If the destination node has been marked visited, then stop. The algorithm has finished.
  5. Select the unvisited node that is marked with the smallest tentative distance, and set it as the new “current node” , then go back to step 3.

Demo: Dijkstra’s Routing

AI

All slides are customized by Engr. Vernon Degala. For educational purposes only.

IGRP - Interior Gateway Routing Protocol

  • IGRP uses autonomous number system. Here, only the networks that come under the same autonomous system number will communicate with each other. Autonomous number is provided by ISP. (By default, networks in different Autonomous system will not communicate , for different Autonomous systems to communicate redistribution should be done - CCNP concept)
  • IGRP sends updates for every 90secs and uses bandwidth and delay as unit of metric. Router#debug ip igrp transactions Displays the routing table updates that is sent for every 90sec Router#debug ip routing Displays the dynamic changes made in the routing table

Differences

Difference between Static Routing & Dynamic Routing? o In static routing, we are manually adding the destination network to our Routing table. o In Dynamic Routing, the protocols build the routing table automatically. Difference between RIP & IGRP

All slides are customized by Engr. Vernon Degala. For educational purposes only.

ARP Table

  • The Address Resolution Protocol (ARP) feature performs a required function in IP routing. ARP finds the hardware address, also known as Media Access Control (MAC) address, of a host from its known IP address. ARP maintains a cache (table) in which MAC addresses are mapped to IP addresses. ARP is part of all Cisco systems that run IP.

Dynamic Routing (RIP) (next hop nearest metric)