{
    "@context": "https://schema.org",
    "@type": "DefinedTerm",
    "@id": "https://hostdir.net/glossary/subnet",
    "name": "Subnet",
    "alternateName": [
        "Subnetwork"
    ],
    "description": "A logical subdivision of an IP network, created by borrowing host bits to form a subnet identifier, allowing efficient address allocation and traffic isolation within a larger network.",
    "url": "https://hostdir.net/glossary/subnet",
    "inDefinedTermSet": "https://hostdir.net/glossary",
    "termCode": "subnet",
    "mainEntityOfPage": "https://hostdir.net/glossary/subnet",
    "license": "https://creativecommons.org/licenses/by/4.0/",
    "_hostdir": {
        "kind": "glossary-term",
        "slug": "subnet",
        "canonical": "https://hostdir.net/glossary/subnet",
        "term": "Subnet",
        "category": "Networking & Routing",
        "category_slug": "networking-routing",
        "summary": "A logical subdivision of an IP network, created by borrowing host bits to form a subnet identifier, allowing efficient address allocation and traffic isolation within a larger network.",
        "definition": "A subnet (short for subnetwork) is a logical partition of an IP network. In IPv4, a subnet is defined by an IP address combined with a subnet mask (or prefix length in CIDR notation), which separates the address into a network portion and a host portion. By extending the network prefix beyond the default classful boundary, administrators can create multiple smaller networks from a single larger address block.\n\nSubnetting works by borrowing bits from the host part of the address. For example, a /24 network (255.255.255.0) provides 254 host addresses. If you borrow one bit from the host field, you get two /25 subnets, each with 126 usable hosts. Routers use the subnet mask to determine whether a destination address is local or must be forwarded to another subnet. All devices on the same subnet can communicate directly at Layer 2; traffic to a different subnet must go through a router or Layer 3 switch.\n\nSubnets are fundamental to IPv4 address management. They reduce broadcast domain size, improve security by isolating traffic, and make routing tables more efficient through route summarization. IPv6 also uses subnetting, typically with a /64 prefix as the standard subnet size for a LAN. The concept is defined in RFC 950 for standard subnetting and RFC 4632 for CIDR, which supersedes classful addressing.",
        "examples": "A company owns the IPv4 block 192.168.1.0/24. It has two departments: Engineering and Sales. The network engineer creates two /25 subnets: 192.168.1.0/25 (hosts .1-.126) for Engineering and 192.168.1.128/25 (hosts .129-.254) for Sales. A router connects the two subnets and enforces access control policies between them. Each subnet can accommodate up to 126 devices, and broadcasts from one side never reach the other.",
        "key_facts": [
            "A subnet mask (e.g., 255.255.255.0) or CIDR prefix (e.g., /24) defines the boundary between network and host bits.",
            "Subnetting reduces broadcast domain size, limiting unnecessary traffic and improving network performance.",
            "Routers use the subnet mask to decide whether a packet's destination is on the local subnet or requires forwarding.",
            "IPv6 almost universally uses /64 subnets for LAN segments, allowing Stateless Address Autoconfiguration (SLAAC).",
            "CIDR (RFC 4632) replaced classful subnetting in 1993, enabling variable-length subnet masks (VLSM)."
        ],
        "related_terms": [
            "CIDR",
            "Subnet Mask",
            "VLSM",
            "Supernet",
            "Broadcast Domain",
            "Default Gateway",
            "IPv4"
        ],
        "references": [
            {
                "title": "RFC 950: Internet Standard Subnetting Procedure",
                "url": "https://datatracker.ietf.org/doc/html/rfc950"
            },
            {
                "title": "RFC 4632: Classless Inter-domain Routing (CIDR)",
                "url": "https://datatracker.ietf.org/doc/html/rfc4632"
            },
            {
                "title": "RFC 4291: IP Version 6 Addressing Architecture",
                "url": "https://datatracker.ietf.org/doc/html/rfc4291"
            }
        ],
        "word_count": 220,
        "license": "CC BY 4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "attribution": "HostDir Glossary — https://hostdir.net/glossary/subnet"
    }
}