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›Sub Netting
    Computer NetworksTopic 16 of 24

    Sub Netting

    4 minread
    600words
    Beginnerlevel

    Subnetting is a technique used in IP networking to divide a larger network into smaller, more manageable sub-networks, or subnets. This enhances the organization of a network, improves performance, and increases security. Here’s a detailed overview of subnetting, including its purpose, methods, and examples.

    Purpose of Subnetting

    1. Efficient IP Address Management: Subnetting allows organizations to use their IP address space more efficiently, reducing waste and optimizing allocation.

    2. Improved Network Performance: By dividing a large network into smaller segments, subnetting reduces broadcast traffic and enhances overall network performance.

    3. Enhanced Security: Subnetting can improve security by isolating different parts of a network. For example, sensitive data can be kept in a separate subnet with stricter access controls.

    4. Simplified Network Management: Smaller subnets can be easier to manage, allowing for targeted troubleshooting and monitoring.

    Subnetting Basics

    IP Address Structure

    An IP address consists of two main parts:

    • Network Portion: Identifies the specific network.
    • Host Portion: Identifies the specific device (host) within that network.

    Subnet Mask

    The subnet mask defines how the IP address is divided into the network and host portions. It uses a series of ones followed by zeros in binary form.

    • Example of a Subnet Mask:
      • 255.255.255.0 in decimal or 11111111.11111111.11111111.00000000 in binary.
      • Here, the first 24 bits (ones) represent the network portion, and the last 8 bits (zeros) represent the host portion.

    CIDR Notation

    Classless Inter-Domain Routing (CIDR) notation is a compact way to specify IP addresses and their associated routing prefix. It combines the IP address with the subnet mask length.

    • Example: 192.168.1.0/24
      • The /24 indicates that the first 24 bits are the network part of the address, meaning the subnet mask is 255.255.255.0.

    Subnetting Example

    Let’s walk through an example of subnetting a network.

    Given:

    • Network: 192.168.1.0/24
    • Goal: Create 4 subnets.

    Steps:

    1. Determine New Subnet Mask:

      • Since we need 4 subnets, we need to borrow bits from the host portion.
      • The formula to determine the number of subnets is 2n2^n2n, where nnn is the number of bits borrowed. To get 4 subnets, we need to borrow 2 bits (since 22=42^2 = 422=4).
      • The original subnet mask of /24 becomes /26 (24 + 2 = 26).
    2. Calculate Subnet Addresses:

      • With a /26 mask, each subnet will have 2(32−26)=26=642^{(32-26)} = 2^6 = 642(32−26)=26=64 addresses (including network and broadcast addresses).
      • The subnets are:
        • Subnet 1: 192.168.1.0/26 (Addresses: 192.168.1.0 - 192.168.1.63)
        • Subnet 2: 192.168.1.64/26 (Addresses: 192.168.1.64 - 192.168.1.127)
        • Subnet 3: 192.168.1.128/26 (Addresses: 192.168.1.128 - 192.168.1.191)
        • Subnet 4: 192.168.1.192/26 (Addresses: 192.168.1.192 - 192.168.1.255)
    3. Host Addresses:

      • Each subnet has 62 usable host addresses (subtracting 2 for the network and broadcast addresses).
      • For example, in 192.168.1.0/26, usable addresses range from 192.168.1.1 to 192.168.1.62.

    Summary of Key Terms

    • Subnet: A smaller network created from a larger one.
    • Subnet Mask: Defines the boundary between the network and host portions of an IP address.
    • CIDR Notation: A shorthand way to express IP addresses and their subnet masks.
    • Usable Addresses: The number of IP addresses available for hosts, excluding the network and broadcast addresses.

    Conclusion

    Subnetting is a crucial skill in network management that enhances efficiency, performance, and security. Understanding how to subnet helps network administrators design scalable and organized networks. If you have more questions or want to explore specific subnetting scenarios, feel free to ask!

    Previous topic 15
    IP Addressing
    Next topic 17
    CIDR

    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 time4 min
      Word count600
      Code examples0
      DifficultyBeginner