ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP2119Cidr
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP2119

    Computer Networks

    Progress0 / 24 done
    Topics24
    1Introduction and Protocols Architecture2Basic Concepts of Networking3Network Topologies4Layered Architecture5Physical Layer Functionality6Data Link Layer Functionality7Multiple Access Techniques8Circuit Switching and Packet Switching9LAN Technologies10Wireless Networks11MAC Addressing12Networking Devices13Network Layer Protocols14IPv4 and IPv615IP Addressing16Sub Netting17CIDR18Routing Protocols19Transport Layer Protocols20Ports and Sockets21Connection Establishment22Flow and Congestion Control23Application Layer Protocols24Latest Trends in Computer Networks
    3 min read
    Topic 17 of 24
    Topic Study Note Illustration
    17

    CIDR

    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...

    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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    3mremaining
    491words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Computer Networks