Section 9: Routing

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/48

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

49 Terms

1
New cards

Router

  • Forwards traffic between subnets, between an internal and external network, or between two external networks

  • Each subnet or external network is going to be its own broadcast domain

  • Multilayer switches (Layer 3 Switches) also perform routing functions

2
New cards

Switch Terminology

  • Switch - Layer 2 Switch

  • Multilayer switch (router) - Layer 3 device

3
New cards

Basic Router Functionality

  • Routers forward traffic between networks based on IP addresses

  • To connect two networks, routers use WAN connections like fiber, serial, satellite, or VPN links

  • When a packet needs to travel between networks, it is forwarded to the router (default gateway)

  • Routers use IP addresses (Layer 3) to route packets between networks

    • MAC addresses are used internally, but IP addresses are used at Layer 3 for communication between routers

  • Routers repackage data frames (Layer 2) as packets (Layer 3) for transmission over the WAN

  • Routers strip off the IP header and converts packets back to data frames for delivery to the destination device on the local network

  • Communication between devices on different networks involves routers forwarding packets based on IP addresses and switches delivering data frames based on MAC addresses

Routing becomes more complex when packets are sent over the internet, which is the world’s largest WAN

4
New cards

Routing Table

  • Helps determine which route entry is the best fit for the network

  • Used to decide where packets need to go inside and outside of networks

  • Routing decisions are based on Layer 3 information and map to Layer 2

    • ARP Cache

      • Used by routers to map IP addresses to MAC addresses within a local area network

  • Entries in a routing table contain a prefix

    • Longer prefixes indicate more specific networks

      • Means fewer available IP addresses in that range

5
New cards

Routing Information Sources (3)

  • Directly Connected

  • Static

  • Dynamic

6
New cards

Directly-Connected route

Learned by a physical connection between routers

7
New cards

Static Routes

  • Configured manually by an administrator

  • 0.0.0.0/0

    • Default static route to handle unknown destinations

    • “If you don’t know where to go just go here”

8
New cards

Dynamic Route

  • Learned through through dynamic routing protocols

  • Learned by exchanging information automatically between routers based on the protocols

  • Dynamic Routing Protocols

    • Negotiate based on factors like number of hops and link bandwidth

9
New cards

Methods for preventing routing loops(2)

  • Split Horizon

  • Poison Reverse

10
New cards

Split Horizon

Prevents a route learned on one interface being advertised back out of the same interface

11
New cards

Poison Reverse

Advertises a route back out the same interface but with a high cost to prevent its use

12
New cards

Dynamic Routing Protocols (2)

  • Internal

    • Interior Gateway Protocol (IGP)

      • Operates with an autonomous system

  • External

    • Exterior Gateway Protocol (EGP)

      • Operates between autonomous systems on exterior networks

13
New cards

Interior Gateway Protocol (IGP)

  • Operates with an autonomous system

14
New cards

Exterior Gateway Protocol (EGP)

  • Operates between autonomous systems on exterior networks

15
New cards

Routing Protocol Characteristics

  • Router Advertisement Method

    • Distance Vector

      • Sends full routing table to directly connected routers at regular intervals

      • Convergence Time

        • Time for all routers to update routing tables in response to topology changes

        • Slow

      • Hold-down Timer

        • Prevents updates for a specific period of time and speeds up convergence

      • Hop Count

        • Number of routers from the source router through which data must pass to reach the destination network

        • Used as a metric for routing decisions

    • Link State

      • Requires all routers to know about the paths that all other routers can reach in the network

      • Faster convergence time compared to distance vector

      • Considers cost, including link speed, as metric for routing decisions

    • Hybrid

      • Combines aspects of both distance vector and link state protocols

16
New cards

Distance Vector

  • Sends full routing table to directly connected routers at regular intervals

  • Convergence Time

    • Time for all routers to update routing tables in response to topology changes

    • Slow

  • Hold-down Timer

    • Prevents updates for a specific period of time and speeds up convergence

  • Hop Count

    • Number of routers from the source router through which data must pass to reach the destination network

    • Used as a metric for routing decisions

17
New cards

Link State

  • Requires all routers to know about the paths that all other routers can reach in the network

  • Faster convergence time compared to distance vector

  • Considers cost, including link speed, as metric for routing decisions

18
New cards

Link State/ Distance Vector Hybrid

  • Combines aspects of both distance vector and link state protocols

19
New cards

Routing Protocols (5)

  • RIP

  • OSPF

  • IS-IS

  • EIGRP

  • BGP

<ul><li><p><strong>RIP</strong></p></li><li><p><strong>OSPF</strong></p></li><li><p><strong>IS-IS</strong></p></li><li><p><strong>EIGRP</strong></p></li><li><p><strong>BGP</strong></p></li></ul><p></p>
20
New cards

Routing Information Protocol (RIP)

  • An interior gateway protocol that is used internal to the networks

  • Oldest dynamic routing protocol

  • Uses distance vector and hop count

    • 15 maximum hops

  • Updates every 30 seconds

  • Easy to configure

  • Runs over UDP

21
New cards

Open Shortest Path First (OSPF)

  • Interior gateway protocol

  • Uses link state and cost for routing decisions

    • Cost is based on link speed

  • Faster convergence than RIP

22
New cards

Intermediate System to Intermediate System (IS-IS)

  • An interior gateway protocol similar to OSPF

  • Uses cost based on link speed for routing decisions

  • Functions like OSPF but not as popular

23
New cards

Enhanced Interior Gateway Routing Protocol (EIFRP)

  • Advanced distance vector protocol

  • Hybrid of distance vector and link state

  • Uses bandwidth, delay, and cost for routing decisions

  • A Cisco-developed upgrade to OSPF, popular in Cisco-only networks

24
New cards

Border Gateway Protocol (BGP)

  • An external gateway protocol

  • Uses path vector and autonomous system hops for routing decisions

  • Backbone protocol of the internet

  • Slow convergence time

25
New cards

Route Selection

Determines which path router could take

26
New cards

Believability of a Route

  • Administrative Distance (AD)

    • An index of believability used by routers

    • Lower value = more believable

    • Administrative Distance of Routing Protocols

      • Directly connected - 0 (most believable)

      • Static - 1

      • EIGRP - 90

      • OSPF - 110

      • RIP - 120

      • External EIGRP - 170

      • Unknown/Unreachable - 255 (unreachable)

27
New cards

Metrics for Route Selection

  • Factors

    • Hop count

      • Least number of hops gives less distance to cover

    • Believability

      • Lowest number is the most believable

    • Reliability

    • Bandwidth

      • Lowest cost of bandwidth means the highest amount of bandwidth to use

    • Delay

      • Want the least amount of delay

    • Costs

    • Other metrics

  • Each protocol uses a different metric based on its programming to determine best routes

  • Lower numbers are better

28
New cards

Address Translation

  • Allows private IP addresses to be translated into public IP addresses for routing over public networks like the internet

    • IPv4 faced address exhaustion, prompting the development of address translation

29
New cards

Address Translation Types (2)

  • NAT

  • PAT

30
New cards

Network Address Translation (NAT)

  • Conserves limited IPv4 addresses by translating private IPs into public IPs

  • Dynamic NAT

    • Automatically assigns IP addresses from a pool of IPs for one-to-one translation

  • Static NAT

    • Manually assigns private IPs to public IPs for one-to-one translation

    • Used as a security feature

31
New cards

Port Address Translation (PAT)

  • Allows multiple devices to share a single public IP address by using different port numbers to differentiate traffic

  • Many-to-one translation

32
New cards

NAT IP Address Terminology

  • Inside Local

    • Private IP address referencing an inside device

  • Inside Global

    • Public IP address referencing an inside device

  • Outside Local

    • Private IP address referencing an outside device

  • Outside Global

    • Public IP address referencing an outside device

33
New cards

Comparison of NAT and PAT

  • NAT translates private IPs to public IPs for individual devices

  • PAT uses port numbers to differentiate between multiple devices sharing a single public IP

34
New cards

Routing Redundancy Protocol

  • A network protocol that prevents disruptions in communication by automatically rerouting data traffic in case of path or device failure

35
New cards

First Hop Redundancy Protocol (FHRP)

  • A group of protocols ensuring network reliability by providing automatic failover to a backup router if the primary router fails

    Components

    • Vir

36
New cards

FHRP Benefits

  • Benefits

    • Reliability

      • Ensures communications remain up if a router fails

    • Load Balancing

      • Distributes network traffic across multiple routers to prevent overload

    • Seamless Transitions

      • Quick and seamless transitions from sending data to one router to another

37
New cards

FHRP Components

  • Components

    • Virtual IP

      • Represents one or more devices

    • Subinterface

      • Allows a single physical interface to be divided into multiple logical interfaces, improving network management and security

38
New cards

FHRP Protocols (3)

  • HSRP

  • VRRP

  • GLBP

39
New cards

Hot Standby Router Protocol (HSRP)

  • Establishes a fault-tolerant default gateway for devices on a local network segment

  • Enables two or more routers to work together

    • Active router

      • Handles all the networks routing responsibilities

    • Standby router

      • Designed to wait to take over when the active router fails

  • Preempting

    • Allows a higher priority router to take over as the active router

40
New cards

Virtual Router Redundancy Protocol (VRRP)

  • Functions similar to HSRP but is an open standard

    • Not tied to a specific vendor

  • Enables multiple routers to act as a single virtual router

    • Active router and backup routers

  • Provides a simple and automatic election scheme

41
New cards

Gateway Load Balancing Protocol (GLBP)

  • Adds load balancing capabilities, allowing multiple routers to simultaneously forward packets to distribute traffic load

  • Assigns different virtual MAC addresses to each group member for load balancing

  • Automatically redirects traffic to other routers in the group if any fail

42
New cards

Importance of Routing Redundancy Protocols

Critical for network designs to ensure continuous network availability, reliability and efficiency as networks are relied upon for global communication and entertainment

43
New cards

Multicast Routing

  • Sending traffic to a class D IP address (multicast group) to deliver messages to multiple recipients efficiently

  • Objective

    • Send traffic out once and have all interested devices receive it, while others ignore it

44
New cards

Methods of Multicast Routing (2)

  • IGMP

  • PIM

45
New cards

Internet Group Management Protocol (IGMP)

  • Used by clients and routers to let the routers know which interfaces have multicast receivers

  • Allows clients to join multicast groups and receive messages

  • More about clients and servers together

  • IGMPv1

    • Caused unnecessary traffic due to periodic group queries

  • IGMPv2

    • Improved by allowing clients to send leave messages

  • IGMPv3

    • Added support for source specific multicast

46
New cards

Protocol Independent Multicast (PIM)

  • Enables multicast traffic routing between multicast-enabled routers

  • Forms multicast distribution trees

  • Focuses more on routing

  • PIM Dense Mode (PIM-DM)

    • Uses flood and prune behavior, causing network performance issues

      • Floods traffic initially, then prunes non-optimal routes

      • High network performance impact due to periodic flooding

    • Not commonly used in modern networks

  • PIM Sparse Mode (PIM-SM)

    • Uses shared distribution tree initially, then switches to optimal tree (Shortest Path Tree/SPT)

    • Lower impact on network performance

    • Preferred in modern networks for efficiency

47
New cards

Generic Routing Encapsulation (GRE)

  • A tunneling protocol used to encapsulate a wide variety of network layer protocols inside a virtual point-to-point link over an Internet Protocol network

  • GRE tunnels operate at Layer 3(Network Layer) of the OSI model

  • Serves as a universal translator

    • Allows different protocols to communicate and traverse over a shared network infrastructure

    • Useful for connecting similar network topologies over a different intermediate network

48
New cards

GRE Use Cases

  • Connecting branch offices securely and efficiently over the internet without expensive dedicated leased lines

  • Encapsulating protocols for tunneling without the additional overhead of encryption techniques inside a VPN, making it ideal for connecting heterogenous networks

49
New cards

GRE Comparison with VPN

  • GRE

    • Favored for:

      • Simplicity

      • Efficiency

      • Lightweight compared to a full site-to-site VPN

      • Versatility

        • Allow different network protocols to co-exist and collaborate in heterogeneous network environments

    • Preferred when the main objective is to encapsulate protocols for tunneling without additional overhead created by encryption techniques

    • GRE tunnels are set up and configured on network routers

  • VPN

    • Could provide more robust security features, but with additional overhead due to encryption