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
    COMP2119
    Progress0 / 24 topics
    Topics
    1. Introduction and Protocols Architecture2. Basic Concepts of Networking3. Network Topologies4. Layered Architecture5. Physical Layer Functionality6. Data Link Layer Functionality7. Multiple Access Techniques8. Circuit Switching and Packet Switching9. LAN Technologies10. Wireless Networks11. MAC Addressing12. Networking Devices13. Network Layer Protocols14. IPv4 and IPv615. IP Addressing16. Sub Netting17. CIDR18. Routing Protocols19. Transport Layer Protocols20. Ports and Sockets21. Connection Establishment22. Flow and Congestion Control23. Application Layer Protocols24. Latest Trends in Computer Networks
    COMP2119›CIDR
    Computer NetworksTopic 17 of 24

    CIDR

    3 minread
    491words
    Beginnerlevel

    Classless Inter-Domain Routing (CIDR) is a method used to allocate IP addresses and manage routing more efficiently than the traditional classful addressing system. It allows for a more flexible assignment of IP addresses, helping to alleviate issues like address exhaustion and inefficient use of address space. Here’s a detailed overview of CIDR, including its structure, benefits, and examples.

    What is CIDR?

    CIDR was introduced in the 1990s to replace the outdated classful addressing scheme, which divided IP addresses into fixed classes (Class A, B, C, etc.). Instead of being restricted to these classes, CIDR allows for variable-length subnet masking, enabling a more efficient allocation of IP addresses.

    Structure of CIDR

    1. CIDR Notation:

      • CIDR notation combines an IP address with a suffix that indicates the number of bits used for the network portion of the address.
      • Format: IP_address/Prefix_length
      • Example: 192.168.1.0/24
        • Here, 192.168.1.0 is the IP address, and /24 indicates that the first 24 bits are used for the network portion.
    2. Prefix Length:

      • The prefix length indicates how many bits of the IP address are fixed for the network. The remaining bits are used for host addresses within that network.
      • For example, in 192.168.1.0/24, the first 24 bits (255.255.255.0 in decimal) define the network, leaving 8 bits for host addresses.

    Benefits of CIDR

    1. Efficient Use of Address Space:

      • CIDR allows for the allocation of IP address blocks of varying sizes, which can better match the needs of organizations. This flexibility reduces waste.
    2. Aggregation of Routes:

      • CIDR supports route aggregation (also known as supernetting), which allows multiple IP addresses to be represented as a single routing entry. This simplifies routing tables and improves the efficiency of routers.
    3. Reduces the Size of Routing Tables:

      • By summarizing routes, CIDR helps reduce the overall size of routing tables in the internet backbone, improving routing efficiency and speed.
    4. Better Scalability:

      • CIDR facilitates the growth of networks and the internet by allowing more effective management of IP addresses.

    CIDR Examples

    Example 1: Address Allocation

    Suppose an organization is assigned a block of addresses:

    • Block: 192.168.0.0/22
      • This means the organization has 2^(32-22) = 2^10 = 1024 addresses, from 192.168.0.0 to 192.168.3.255.
      • The first 22 bits represent the network, and the remaining 10 bits can be used for hosts.

    Example 2: Route Aggregation

    If several organizations have been assigned the following IP blocks:

    • 192.168.0.0/24
    • 192.168.1.0/24
    • 192.168.2.0/24
    • 192.168.3.0/24

    Using CIDR, these can be aggregated into a single routing entry:

    • Aggregated Route: 192.168.0.0/22
      • This indicates that any address from 192.168.0.0 to 192.168.3.255 is covered by this single entry.

    Conclusion

    CIDR is a powerful method for IP address management that enhances the flexibility and efficiency of networking. It reduces address waste, simplifies routing, and allows for scalable network designs. Understanding CIDR is essential for network professionals and anyone involved in internet technologies. If you have any further questions or would like to explore a specific aspect of CIDR, feel free to ask!

    Previous topic 16
    Sub Netting
    Next topic 18
    Routing Protocols

    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 time3 min
      Word count491
      Code examples0
      DifficultyBeginner