Weise-ipedia

Routing

TODO

Routing Table

A routing table has 5 columns:

Network Destination Defines local network
Netmask Defines local network
Gateway IP address of the next hop router 0.0.0.0, etc.
Interface What port to send the packet through WAN, LAN, IP Address, gig0/0, etc
Metric Route priority Positive integers

static route

Default route

a “last resort” network path used by a router for forwarding all packets with destination addresses not listed in its routing table.

Metric

Routes with lower metrics will be used first.

MAC address table

ARP table

Routing Protocols

Calculate the most efficient way to send an IP packet through one or more routers. The cost functions vary, but can be based on things like number of hops, latency, MTU, bandwidth, etc. In the end, these protocols aim to set the Metrics in a router’s routing table.

Distance Vector

Calculates the cost to get from a router to a particular network ID.

  1. A router transfers it’s route table to other routers in the WAN.
  2. The recieving router will add it’s route table to the recieved by splitting network destinations and adding it’s metrics to the the new Netmasks.
  3. The new route table is then forwarded to all other routers.

The eventual result is every router in the WAN will recieve every other routers route table, possibly several times, depending on how many The router can then update it’s own route table to reach other routers if there is a route with an overall lower metric.

Eventually, routers in a WAN will reach steady state. They will, however, continue to send their routing tables, even though nothing has changed. When the network topology changes and certain routes become unavailable, or new, lower cost/metric routes become available, this will be reflected in the entire network.

Distance vector works for relatively few routers in a WAN, but not for the entire internet.

RIPv1

RIPv2

Open Shortest Path First (OSPF)

Upon startup router sends “hello packets” Adjacent routers form a neighborship Link State Advertisement (LSA) is used to flood the router network When flooding is complete each router chooses its own best routes

Intermediate System to Intermediate System (IS-IS)

Border Gateway Protocol (BGP)

A Hybrid routing protocol that is the backbone of the global internet.

Autonomous Systems

Enhanced Interior Gateway Routing Protocol (EIGRP


Notes on Computers

AWS · Bash · C · C++ · Cyber Security · Git · LaTeX · Linux · Networking · Python · Raspberry Pi · Tools · Vim

Notes on Math & Physics

Information Theory · Linear Algebra · Solid State Physics


Copyright 2021 · Eric D. Weise