πŸ”Œ Routing Protocols: IGP and EGP

Routing protocols implement routing algorithms in real-world networks, classified based on their administrative domain:


🏠 IGP (Interior Gateway Protocol)

Used within a single autonomous system (AS).

  • RIP (Routing Information Protocol)

    • Distance-vector protocol using hop count.
    • Max hop count = 15 (limit to small networks).
    • Periodic full-table updates β†’ bandwidth-heavy.
  • OSPF (Open Shortest Path First)

    • Link-state protocol using Dijkstra’s algorithm.
    • Each router constructs full network map.
    • Faster convergence, supports variable-length subnet masks (VLSM), and areas.
  • IS-IS (Intermediate System to Intermediate System)

    • Similar to OSPF.
    • Scales better in large ISPs; TLV-based structure.

🌐 EGP (Exterior Gateway Protocol)

Used between autonomous systems.

  • BGP (Border Gateway Protocol)
    • Path-vector protocol.
    • Considers AS-path, policy, and multiple attributes.
    • Foundation of the global internet routing.
    • Maintains table of paths; avoids loops via AS path tracking.
    • Highly scalable, supports CIDR and route aggregation.

🧠 Insights

  • IGP optimizes for speed and simplicity inside a domain.
  • EGP focuses on policy-based routing and inter-AS stability.
  • BGP’s robustness is essential for the resilience of the internet.

πŸ“Š Comparison Table

FeatureIGP (e.g., RIP, OSPF)EGP (e.g., BGP)
ScopeWithin ASBetween ASes
Convergence SpeedFasterSlower (policy checks)
ComplexityLowerHigher
Policy ControlLimitedExtensive
Loop AvoidanceHop Count (RIP), TopologyAS Path