Unicast and Unicast Routing Protocols
Introduction
Computer networks carry many kinds of traffic, but the most common is unicast: one sender communicating with one specific receiver. When you open a website, download a file, or make a voice call over the internet, your device sends packets to the unique address of a destination host. Ensuring these packets take an efficient, reliable path across many interconnected networks is the job of unicast routing protocols. This topic is central to computer networking and is essential for understanding how the Internet and enterprise networks operate.
In this answer, we define unicast clearly, explain how unicast routing works, and discuss major unicast routing protocols such as RIP, OSPF, IS-IS, EIGRP, and BGP. We also cover algorithms (Bellman–Ford, Dijkstra, and path-vector), metrics, IPv6 considerations, security, best practices, and real-world applications. The goal is to provide a comprehensive, easy-to-understand, and exam-ready guide.
What Is Unicast?
Unicast is a one-to-one communication model where data is sent from a single source host to a single destination host, identified by a unique IP address. In IPv4 and IPv6, unicast addresses uniquely identify interfaces, ensuring packets are delivered to the intended device only.
Common examples include:
- Web browsing: Your PC (source) sends requests to a web server’s IP (destination).
- Email and file transfer: SMTP/IMAP/POP, FTP/SFTP use unicast to connect two endpoints.
- Voice and video calls (VoIP): Media streams are exchanged between two specific endpoints.
Unicast vs Broadcast, Multicast, and Anycast
It helps to contrast unicast with other delivery models:
- Broadcast: One-to-all on a local network segment (IPv4), e.g., ARP requests. Not routable across the Internet.
- Multicast: One-to-many for subscribers of a group (e.g., IPTV). Uses special multicast addresses.
- Anycast: One-to-nearest (according to routing). Multiple servers share the same IP; the network delivers to the “closest” instance (e.g., DNS root servers).
How Unicast Routing Works
Routing is the process of selecting a path through a network for packet delivery. Routers use control-plane protocols to learn network topology and compute best paths. The result is installed into a forwarding table (FIB), which the data plane uses to forward packets at high speed.
- Control plane: Builds the routing table using static routes and/or dynamic routing protocols (e.g., OSPF, BGP).
- Data plane: Forwards packets according to the FIB (Forwarding Information Base), often optimized via CEF (Cisco Express Forwarding) or similar mechanisms.
A router receiving a packet looks up the destination IP, finds the longest-prefix match in its FIB, and forwards the packet to the next-hop router until it reaches the destination.
Types of Unicast Routing
Two primary distinctions guide the choice and operation of routing:
- Static vs Dynamic:
- Static routing: Manually configured routes; simple and secure but does not adapt to failures automatically.
- Dynamic routing: Protocols learn and advertise routes, automatically adapting to topology changes.
- Intra-domain vs Inter-domain:
- Intra-domain (IGP): Inside a single Autonomous System (AS), e.g., OSPF, IS-IS, EIGRP, RIP.
- Inter-domain (EGP): Between Autonomous Systems, primarily BGP on the public internet.
Core Algorithms and Metrics in Unicast Routing
Routing protocols differ mainly by the algorithm they use to compute paths and the metrics they use to measure “best.”
Distance-Vector (Bellman–Ford)
Distance-vector protocols (e.g., RIP, early IGRP) make decisions based on neighbors’ advertised distances to destinations. Each router periodically shares its routing table with neighbors. The Bellman–Ford algorithm computes the shortest path in terms of a selected metric.
- Loop-avoidance techniques: Split horizon, route poisoning, hold-down timers, and triggered updates.
- Pros: Simple, low CPU/memory usage.
- Cons: Slower convergence, prone to loops without safeguards, limited scalability.
Link-State (Dijkstra’s Shortest Path First, SPF)
Link-state protocols (e.g., OSPF, IS-IS) flood link-state information so every router builds an identical view (LSDB) of the network. Each router then runs Dijkstra’s SPF to compute shortest paths.
- Pros: Fast convergence, scalable with areas/levels, precise control using metrics.
- Cons: More memory and CPU use, careful design required to avoid excessive flooding.
Path-Vector (Used by BGP)
BGP advertises full AS paths to destinations, enabling policy-based decision-making and avoiding loops across different autonomous systems. Path-vector is ideal for inter-domain routing where policy and scalability dominate over simple shortest-path metrics.
- Pros: Scalability to internet size, policy control (local preference, communities).
- Cons: Slower convergence than IGPs, complex configuration and policy management.
Routing Metrics
Common metrics include:
- Hop count (RIP): Number of routers traversed.
- Cost (OSPF/IS-IS): Typically based on bandwidth or configured “cost.”
- Composite metrics (EIGRP): Bandwidth and delay (primary), optionally reliability and load.
- Attributes (BGP): AS_PATH, LOCAL_PREF, MED, ORIGIN, NEXT_HOP, and vendor-specific Weight.
Major Unicast Routing Protocols
Routing Information Protocol (RIP)
RIP is a classic distance-vector IGP using hop count as the metric. It is simple but limited in modern networks.
- Versions:
- RIP v1: Classful; no subnet masks in updates; no VLSM support.
- RIP v2: Classless; carries subnet masks; supports authentication and multicast updates to 224.0.0.9.
- RIPng: Supports IPv6; uses FF02::9 multicast.
- Hop count limit: 15 (16 is unreachable), which limits network size.
- Timers: 30-second periodic updates; 180-second invalid timer; 240-second flush timer.
- Loop prevention: Split horizon, poison reverse, hold-down timers.
- Use cases: Small, simple networks and labs; rarely used in large enterprises today.
Open Shortest Path First (OSPF)
OSPF is a link-state IGP standardized by the IETF. It scales well via hierarchical design and converges quickly.
- Areas:
- Backbone Area 0: Central area to which all other areas connect.
- Area types: Standard, Stub, Totally Stubby (vendor-specific), and NSSA (Not-So-Stubby Area) to control LSA flooding and summarization.
- LSAs: Multiple types carry topology and routing information (e.g., Router LSA, Network LSA, Summary LSA, AS-External LSA).
- Adjacency: Routers exchange Hello packets (e.g., 10-second hello/40-second dead per broadcast networks by default) to form neighbor relationships.
- DR/BDR: On multiaccess networks (like Ethernet), a Designated Router (DR) and Backup DR reduce flooding overhead.
- Metric: Cost often derived from reference bandwidth (e.g., cost = 108 / interface bandwidth in Mbps; configurable).
- Equal-Cost Multi-Path (ECMP): Supports load sharing across equal-cost routes.
Intermediate System to Intermediate System (IS-IS)
IS-IS is a link-state IGP originally designed for OSI networks but widely used by service providers for IP routing due to its scalability and stability.
- Levels: Level-1 (intra-area), Level-2 (inter-area); similar to OSPF areas but with different terminology.
- Metrics: Wide metrics allow fine-grained cost; operates with TLVs (Type-Length-Value) that make it extensible.
- Adjacency: Uses Hello packets on point-to-point and broadcast networks; supports DIS (Designated Intermediate System) on LANs.
- IPv6: Supported via Multi-Topology IS-IS or integrated IPv6 TLVs.
- Pros: Fast convergence, robust scaling, simpler LSP flooding in large cores.
- Use cases: Large service provider cores; some large enterprises.
Enhanced Interior Gateway Routing Protocol (EIGRP)
EIGRP is a Cisco-originated hybrid protocol (sometimes categorized as advanced distance-vector). It uses the DUAL (Diffusing Update Algorithm) to achieve fast convergence without loops.
- DUAL concepts:
- Successor: Primary next hop with the best feasible distance.
- Feasible successor: Backup path that satisfies the feasibility condition (reported distance < feasible distance), enabling immediate failover.
- Metric: Composite metric primarily using bandwidth and delay (K-values configure metric weighting; defaults: K1=1 bandwidth, K3=1 delay).
- Operation: Partial, bounded updates—only when topology changes, and only to affected neighbors.
- Authentication and summarization: Supports manual summarization at any interface (useful for hierarchical designs).
- IPv6: EIGRP for IPv6 is supported in modern Cisco environments.
- Use cases: Many Cisco-based enterprise networks due to simplicity and fast convergence.
IPv6 Unicast and Protocol Support
IPv6 retains unicast as the primary delivery model, with larger address space and enhanced features.
- Address types:
- Global Unicast Addresses (2000::/3): Routable on the public internet.
- Unique Local Addresses (ULA, FC00::/7): Private, not publicly routed.
- Link-Local (FE80::/10): Required for local link communication and neighbor discovery.
- Routing protocols for IPv6:
- OSPFv3: OSPF for IPv6 with support for multiple address families and IPsec-based security.
- IS-IS: Naturally extensible for IPv6 via TLVs (often preferred by SPs for dual-stack cores).
- EIGRP for IPv6: Similar operation with separate process and interface activation.
- BGP-4+: Multiprotocol BGP (MP-BGP) carries IPv6 reachability (AFI/SAFI).
- RIPng: IPv6 variant of RIP; limited use in modern networks.
Advantages and Disadvantages of Major Unicast Routing Protocols
- RIP:
- Advantages: Simple to configure, low resource usage.
- Disadvantages: Hop-count limit (15), slow convergence, no traffic engineering, inefficient in large networks.
- OSPF:
- Advantages: Fast convergence, hierarchical design with areas, rich features (stub/NSSA, authentication, ECMP).
- Disadvantages: Complex in very large or poorly designed networks; requires careful area planning and LSA control.
- IS-IS:
- Advantages: Scalable, robust flooding, flexible TLV extensions, widely used in SP cores.
- Disadvantages: Less familiar in some enterprise environments; different addressing (NSAP/NET) concepts may be new to students.
- EIGRP:
- Advantages: Rapid convergence via DUAL, simple summarization, efficient updates, good for enterprise.
- Disadvantages: Historically proprietary (now partly open), less common outside Cisco; limited multi-vendor interoperability in some cases.
Comparison: Distance-Vector vs Link-State vs Path-Vector
- Information shared:
- Distance-vector: Shares routes and distances with neighbors.
- Link-state: Shares link-state information with all routers in an area/level.
- Path-vector: Shares entire path (AS sequence) with attributes.
- Convergence:
- Distance-vector: Slower; loop-prone without safeguards.
- Link-state: Fast, deterministic SPF recomputation.
- Path-vector: Moderate to slow; controlled by policy and timers.
- Scalability:
- Distance-vector: Limited (e.g., RIP).
- Link-state: High within an AS using hierarchy (areas/levels).
- Path-vector: Global Internet scale across ASes.
Administrative Distance and Route Selection (Implementation Detail)
On multi-protocol routers, “administrative distance” (AD) ranks the trustworthiness of route sources. Lower AD is preferred. Common Cisco defaults:
- Connected: 0
- Static: 1
- eBGP: 20
- EIGRP internal: 90
- OSPF: 110
- IS-IS: 115
- RIP: 120
- iBGP: 200
If two protocols know a route to the same prefix, the one with lower AD wins (unless route policies override).
Security in Unicast Routing
Routing protocols are critical infrastructure and must be secured:
- Authentication:
- RIP v2/RIPng, OSPF, IS-IS, EIGRP support authentication (plain/MD5/HMAC; OSPFv3 often via IPsec).
- BGP uses TCP MD5/TCP-AO; implement prefix filtering to block bogus routes.
- Session protection:
- GTSM (Generalized TTL Security Mechanism) for BGP prevents off-path attacks by expecting high TTL.
- Control-plane policing (CoPP) rate-limits routing traffic.
- Policy and hygiene:
- Prefix-lists, route-maps, and communities to filter and mark routes appropriately.
- RPKI/ROA validation helps prevent route hijacks on the Internet.
- Avoid leaking private prefixes (e.g., RFC1918) to upstream providers.
Real-World Applications and Use Cases
- Enterprise networks:
- Use OSPF or EIGRP as the IGP for campus and data center routing.
- Use BGP for WAN multi-homing to ISPs and for cloud connectivity.
- Service providers:
- Use IS-IS or OSPF for the core IGP with MPLS underlay.
- BGP for customer VPNs, internet peering, and large-scale route control.
- Cloud and content delivery:
- Extensive use of BGP with anycast for globally distributed services (DNS, CDN edge nodes).
- IGPs optimized for fast convergence in data center fabrics (often OSPF/IS-IS with ECMP).
Conclusion
Unicast routing plays a vital role in ensuring reliable, point-to-point communication between devices across modern networks. It enables data to travel efficiently from one specific source to a unique destination using well-defined routing paths. Protocols such as RIP, OSPF, EIGRP, and BGP make this possible by discovering the best routes, maintaining updated routing tables, and ensuring fast and secure data delivery. A well-structured unicast routing design focuses on scalability, quick convergence, and strong security measures, allowing networks to perform efficiently even as they grow.
Overall, unicast routing forms the foundation for stable and effective communication in both small and large-scale network environments.
How that differs from group delivery is in unicast vs multicast routing.