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 PortalCC-214Sub Netting
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
    4 min read
    Topic 16 of 24
    Topic Study Note Illustration
    16

    Sub Netting

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

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

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    4mremaining
    600words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Computer Networks