ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Computer Networks
    CSI-417
    Progress0 / 18 topics
    Topics
    1. Analogue and Digital Transmission2. Noise3. Media4. Encoding5. Asynchronous and Synchronous Transmission6. Protocol Design Issues7. Network System Architectures (OSI, TCP/IP)8. Error Control9. Flow Control10. Data Link Protocols (HDLC, PPP)11. Local Area Networks and MAC Layer Protocols (Ethernet, Token Ring)12. Multiplexing13. Switched and IP Networks14. Inter-networking15. Routing16. Bridging17. Transport Layer Protocols (TCP/IP, UDP)18. Network Security Issues
    CSI-417›Routing
    Computer NetworksTopic 15 of 18

    Routing

    8 minread
    1,365words
    Intermediatelevel

    Routing in Computer Networks

    Routing refers to the process of determining the path that data packets take from their source to their destination across interconnected networks. This path determination is essential in ensuring that data travels efficiently and reliably from one network device to another, even across different networks (e.g., LANs, WANs, or the Internet).

    Routing is performed by specialized network devices called routers, which examine the destination address of incoming data packets and forward them to the next device on the optimal path. Routers use routing algorithms and routing tables to make decisions about how to direct data across the network.


    Key Concepts in Routing

    1. Routing Table: A routing table is a database stored on each router that contains information about how to reach various network destinations. The routing table consists of:

      • Destination network addresses (the address of the network the router is trying to reach).
      • Next-hop address (the address of the next router or device along the path to the destination).
      • Routing metrics (values such as hop count, delay, or bandwidth that help the router choose the best route).

      The router uses this table to forward data packets to the appropriate next hop on the route to the destination.

    2. Routing Algorithms: These are algorithms used to determine the best possible path for data transmission based on the current network conditions, such as network topology and load. There are two main types of routing algorithms:

      • Static Routing: In static routing, the routing paths are manually configured by a network administrator. The paths do not change unless manually updated, which makes static routing simple but inflexible.
      • Dynamic Routing: Dynamic routing algorithms automatically adjust the paths based on network conditions (like traffic load, link failure, etc.). This allows routers to discover and maintain routes without manual configuration.
    3. Routing Protocols: Routing protocols are used to facilitate dynamic routing, enabling routers to communicate and exchange routing information to automatically adjust to changing network conditions. There are two main types of routing protocols:

      • Interior Gateway Protocols (IGP): Used within an organization or autonomous system (AS). Common IGPs include:

        • RIP (Routing Information Protocol): A distance-vector protocol that uses hop count as its metric to determine the best route. It is simple but not scalable for large networks.
        • OSPF (Open Shortest Path First): A link-state protocol that uses the state of the network to determine the most efficient route. It is more scalable and faster than RIP.
        • EIGRP (Enhanced Interior Gateway Routing Protocol): A hybrid routing protocol developed by Cisco that combines aspects of distance-vector and link-state protocols for more efficient routing.
      • Exterior Gateway Protocols (EGP): Used to route data between different autonomous systems, typically on the Internet. The main EGP is:

        • BGP (Border Gateway Protocol): BGP is the protocol that underpins the Internet's routing system. It uses path vector routing, and its main purpose is to exchange routing information between different autonomous systems (ASes) on the Internet. It considers factors like policy, reachability, and the number of hops.

    Types of Routing

    1. Direct Routing (Single-Hop Routing):

      • In direct routing, a router forwards the data packet directly to its destination network or the next-hop router.
      • Example: A local router directly connects a host to its destination within the same subnet or via a neighboring router.
    2. Indirect Routing (Multi-Hop Routing):

      • In indirect routing, a packet must pass through several routers before reaching its destination. This is common in large networks like the Internet.
      • Example: A packet from a local network in New York needs to traverse multiple routers across different networks to reach a server in Japan.

    Routing Strategies

    1. Shortest Path Routing: This strategy selects the path with the least "cost," where cost can be based on various factors such as:

      • Hop count (the number of routers a packet passes through).
      • Latency (the time it takes for the packet to reach its destination).
      • Bandwidth (the available bandwidth between routers).
      • Packet loss and other reliability metrics.

      Algorithms like Dijkstra’s Algorithm (used by OSPF) are used to find the shortest path in terms of cost.

    2. Load Balancing: Routing can also involve balancing traffic across multiple paths to optimize resource use. Routers with load balancing functionality can distribute packets across multiple routes if more than one viable path exists, preventing any single route from becoming overloaded.

    3. Policy-Based Routing: Policy-based routing allows network administrators to specify routing rules based on factors such as the source address, destination address, type of traffic, or even the time of day. It provides more granular control over how traffic is routed through a network.


    Routing Protocol Categories

    1. Distance-Vector Protocols: Distance-vector protocols determine the best path based on the distance (or "metric") to the destination. The routers periodically send their entire routing table to their neighbors.

      • RIP (Routing Information Protocol): One of the most basic distance-vector protocols, it uses hop count as the metric. A maximum of 15 hops is allowed, making it suitable for smaller networks.
      • IGRP (Interior Gateway Routing Protocol): Cisco's proprietary distance-vector protocol, which uses a combination of several metrics like bandwidth, delay, and load.
    2. Link-State Protocols: Link-state protocols maintain a complete view of the network by knowing the state of each link. Routers exchange link-state information with each other, allowing them to build a complete map of the network. This leads to faster convergence and more efficient routing.

      • OSPF (Open Shortest Path First): A widely used link-state protocol that uses a more sophisticated approach than RIP. It divides the network into areas and performs a flood of link-state advertisements to all routers.
      • IS-IS (Intermediate System to Intermediate System): Another link-state protocol, commonly used in large-scale ISP networks.
    3. Path-Vector Protocols: Path-vector protocols use a combination of distance and the actual path to determine the best route. They maintain the entire path to the destination, which helps in controlling loops.

      • BGP (Border Gateway Protocol): The protocol used for inter-domain (between different autonomous systems) routing on the Internet. BGP allows network administrators to control routing decisions through policies, making it more flexible and scalable for large networks.

    Routing Metrics

    Routing metrics help routers determine the most efficient path for data packets. Common metrics include:

    1. Hop Count: The total number of routers a packet has to pass through to reach its destination. Fewer hops are usually better.

    2. Latency: The time it takes for a packet to travel from the source to the destination. Lower latency is preferred.

    3. Bandwidth: The data transmission capacity of a link. Higher bandwidth means the link can handle more data traffic, leading to faster transmission.

    4. Load: Measures the current traffic on a link. A link with lower load is often preferred, as it is less congested.

    5. Reliability: The probability of a link being up and functioning properly. More reliable paths are preferred.

    6. Cost: A combination of factors like delay, bandwidth, and reliability, which are assigned numerical values to calculate the best route.


    Routing Algorithms in Action

    1. RIP (Routing Information Protocol):

      • Routing Type: Distance-vector.
      • Metric: Hop count (maximum of 15 hops).
      • Convergence Time: Slow.
      • Use Case: Suitable for small networks or networks with minimal complexity.
    2. OSPF (Open Shortest Path First):

      • Routing Type: Link-state.
      • Metric: Cost based on bandwidth.
      • Convergence Time: Fast.
      • Use Case: Suitable for large-scale enterprise networks.
    3. BGP (Border Gateway Protocol):

      • Routing Type: Path-vector.
      • Metric: Path length, policy-based attributes.
      • Convergence Time: Slow (due to extensive policies and path information).
      • Use Case: Used for routing between autonomous systems (ASes) on the Internet.

    Conclusion

    Routing is a fundamental aspect of computer networking, ensuring that data packets are efficiently directed through the network to their destination. Routers, routing tables, and routing protocols work together to facilitate this process. Dynamic routing protocols, such as RIP, OSPF, and BGP, allow routers to adjust to changing network conditions and select the most optimal path based on various metrics, such as hop count, latency, and bandwidth. Routing is crucial for the operation of both local networks (LANs) and large-scale networks like the Internet, where routing decisions are constantly being made to ensure efficient data transmission.

    Previous topic 14
    Inter-networking
    Next topic 16
    Bridging

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time8 min
      Word count1,365
      Code examples0
      DifficultyIntermediate