Information about Subnetwork

Enlarge picture
A graphic representation of relationships and source of the various variables representing a chunk of C subnets


In computer networks which use the Internet Protocol, a subnetwork or subnet is a range of logical addresses within the address space that is assigned to an organization. Subnetting is a hierarchical partitioning of the network address space of an organization (and of the network nodes of an autonomous system) into several subnets. Routers constitute borders between subnets. Communication to and from a subnet is mediated by one specific port of one specific router, at least momentarily.

A typical subnet is a physical network served by one router, for instance an Ethernet network (consisting of one or several Ethernet segments or local area networks, interconnected by network switches and network bridges) or a Virtual Local Area Network (VLAN). However, subnetting allows the network to be logically divided regardless of the physical layout of a network, since it is possible to divide a physical network into several subnets by configuring different host computers to use different routers.

The address to all nodes in a subnet starts with the same binary sequence, which is its network id and subnet id. In IPv4, the subnet may be identified by its base address and subnet mask.

Subnetting simplifies routing, since each subnet typically is represented by one row in the routing tables in each connected router.

Subnetting was originally introduced before the introduction of classful network addresses in IPv4, to allow a single larger network to have a number of smaller networks within it, controlled by several routers. Subnetting made Classless Inter-Domain Routing possible.

In order for computers to communicate on one network, they will all need their own IP address. However, if you have two or more networks, instead of purchasing different numbers for each network, subnetting provides the ability to easily divide one IP address range amongst all the hosts in your network. Subnetting is used in IP networks to break up larger networks into a smaller network. Subnetting involves manually calculating the bits of an IP address and taking them from the host side of bits and adding them to the network side.

Network address and logical address

The term network address sometimes refers to logical address, i.e. network layer address such as the IP address, and sometimes to the first address (the base address) of a classful address range to an organization.

Computers and devices that are part of an internetworking network such as the Internet all have a logical address. The network address is unique to that device and can either be dynamically or statically configured. This address allows the device to communicate with other devices connected to the network. The most common network addressing scheme is IPv4. The IPv4 network address consists of a 32 bit address divided into 4 octets and a subnet mask of like size. In order to facilitate the routing process the address is divided into two pieces, the network address and the host address. This works much like a postal address where the network address would represent the city and the host address would represent the street address. The subnet mask is used in conjunction with the network address to determine which part of the address is the network address and which part is the host address.

Binary subnet masks

While subnet masks are often represented in dot-decimal form, their use becomes clearer in binary. Looking at a network address and a subnet mask in binary, a device can determine which part of the address is the network address and which part is the host address. To do this, it performs a bitwise "AND" operation.

Example
Dot-decimal Address Binary
Full Network Address192.168.5.1011000000.10101000.00000101.00001010
Subnet Mask255.255.255.011111111.11111111.11111111.00000000
Network Portion192.168.5.011000000.10101000.00000101.00000000
Client Portion0.0.0.1000000000.00000000.00000000.00001010


Subnet masks consist of a series of 1s and 0s in binary. The 1s designate that part of the address as being part of the network portion and the 0s designate that part as being part of the host address. Subnet masks do not have to fill a given octet. This allows a classful network to be broken down into subnets. A classful network is a network that has a subnet mask of 255.0.0.0, 255.255.0.0 or 255.255.255.0. Subnet masks can also be expressed in a shorter form, known as Classless Inter-Domain Routing (CIDR) notation, which gives the network number followed by a slash ("/") and the number of 'one' bits in the binary notation of the netmask (i.e. the number of relevant bits in the network number). For example, 192.0.2.96/24 indicates an IP address where the first 24 bits are used as network address (same as 255.255.255.0).

IPv4 classes

IPv4 addresses are broken down into three parts: the network part, the subnet part (now often considered part of the network part, although originally it was part of the rest part), and the host part. Classful networks are obsolete, but the classful and classless networks will both be shown below:

Class Leading bits Start End Default Subnet Mask in dotted decimal
A (CIDR /8)00.0.0.0127.255.255.255255.0.0.0
B (CIDR /16)10128.0.0.0191.255.255.255255.255.0.0
C (CIDR /24)110192.0.0.0223.255.255.255255.255.255.0
D (CIDR /28)1110224.0.0.0239.255.255.255
E1111240.0.0.0255.255.255.0


The 127.0.0.1 network is left out because it is designated for loopback and cannot be assigned to a network.

Class D multicasting

Class E reserved

Subnetting is the process of allocating bits from the host portion as a network portion. The above example shows the bitwise "AND" process being performed on a classful network. The following example shows bits being borrowed to turn a classful network into a subnet.

Enlarge picture
Subnetting
Example
Dot-decimal Address Binary
Full Network Address192.168.5.13011000000.10101000.00000101.10000010
Subnet Mask255.255.255.19211111111.11111111.11111111.11000000
Network Portion192.168.5.12811000000.10101000.00000101.10000000


In this example two bits were borrowed from the original host portion. This is beneficial because it allows a single network portion to be split into several smaller network portions. By design IPv4 addresses are limited in number and each classful network portion is capable of supporting a finite number of hosts. A /24 prefix, such as a classful C block, for example has space for 254 hosts. If a network were to be split into four parts using a classful prefix, four different /24 addresses would have to be used to serve those networks. Using the subnetting example above, if each subnetwork were to have 62 hosts or less (see below for maths), a single /24 prefix could be split up to service the entire network while wasting the fewest host addresses.

Subnets and host count

It is possible to determine the number of hosts and subnetworks available for any subnet mask. In the above example two bits were borrowed to create subnetworks. Each bit can take the value 1 or 0, giving 4 possible subnets ()

Network Network (binary) Broadcast address
192.168.5.0/2611000000.10101000.00000101.00000000192.168.5.63
192.168.5.64/2611000000.10101000.00000101.01000000192.168.5.127
192.168.5.128/2611000000.10101000.00000101.10000000192.168.5.191
192.168.5.192/2611000000.10101000.00000101.11000000192.168.5.255


According to the RFC 950 standard the subnet values consisting of all zeros and all ones are reserved, reducing the number of available subnets by 2. However due to the inefficiencies introduced by this convention it no longer used on the public Internet, and is only relevant when dealing with some legacy equipment that does not understand CIDR. The only reason not to use the all-zeroes subnet is that it is ambiguous when the exact prefix length is not available. All CIDR-compliant routing protocols transmit both length and prefix. See RFC 1878 for a subnetting table with extensive examples.

The remaining bits after the subnet are used for addressing hosts within the subnet. In the above example the subnet mask consists of 26 bits, leaving 6 bits for the address (). This allows for 64 possible combinations (), however the all zeros value and all ones value are reserved for the network ID and broadcast address respectively, leaving 62 addresses.

In general the number of available hosts on a subnet can be calculated using the formula , where n is the number of bits used for the host portion of the address.

RFC 3021 specifies an exception to this rule when dealing with 31 bit subnet masks (i.e. 1 host bit). According to the above rule a 31 bit mask would allow for hosts. The RFC makes allowances in this case for certain types of networks (point-to-point) to disregard the network and broadcast address, allowing two host addresses to be allocated.

Possible subnets for a /24 prefix (traditional Class C):

CIDR notation Network Mask Available Networks Available Hosts per network Total usable hosts
/24255.255.255.01254254
/25255.255.255.1282126252
/26255.255.255.192462248
/27255.255.255.224830240
/28255.255.255.2401614224
/29255.255.255.248326192
/30255.255.255.252642128
/31255.255.255.2541282 *256


''* only applicable on point-to-point links

References

  • RFC 950 Internet Standard Subnetting Procedure
  • RFC 1812 Requirements for IPv4 Routers
  • RFC 917 Utility of subnets of Internet networks
  • RFC 1101 DNS Encodings of Network Names and Other Type
  • RFC 1878 Variable Length Subnet Table For IPv4
  • Blank, Andrew G. TCP/IP Foundations Technology Fundamentals for IT Success. San Francisco, London: Sybex, Copyright 2004.
  • Lammle, Todd. CCNA Cisco Certified Network Associate Study Guide 5th Edition. San Francisco, London: Sybex, Copyright 2005.
  • Groth, David and Toby Skandier. Network + Study Guide, 4th Edition. San Francisco, London: Wiley Publishing, Inc., Copyright 2005.

See also

External links

as a college campus, industrial complex, or a military base. A CAN, may be considered a type of MAN (metropolitan area network), but is generally limited to an area that is smaller than a typical MAN.
..... Click the link for more information.
Internet protocol may refer to:
  • The Internet Protocol, a data-oriented protocol used for communicating data across a packet-switched internetwork
  • The Internet protocol suite, a set of communications protocols that implement the protocol stack on which the Internet runs

..... Click the link for more information.

In Data Networks

In computer networks, a logical address refers to a network layer address such as an IP address, an X.25/X.121 or IPX address.

In Computer Architecture

In computer architectures, a logical address
..... Click the link for more information.
In computing, an address space defines a range of discrete addresses, each of which may correspond to a physical or virtual memory register, a network host, peripheral device, disk sector or other logical or physical entity.
..... Click the link for more information.
In the Internet, an autonomous system (AS) is a collection of IP networks and routers under the control of one entity (or sometimes more) that presents a common routing policy to the Internet. See RFC 1930 for additional detail on this updated definition.
..... Click the link for more information.
router is a device that extracts the destination of a packet it receives, selects the best path to that destination, and forwards data packets to the next device along this path.[1] They connect networks together; a LAN to a WAN for example, to access the Internet.
..... Click the link for more information.
local area network (LAN) is a computer network covering a small geographic area, like a home, office, or group of buildings. The defining characteristics of LANs, in contrast to Wide Area Networks (WANs), include their much higher data transfer rates, smaller geographic range, and
..... Click the link for more information.
A network switch is a computer networking device that connects network segments.

Low-end network switches appear nearly identical to network hubs, but a switch contains more "intelligence" (and a slightly higher price tag) than a network hub.
..... Click the link for more information.
A network bridge connects multiple network segments at the data link layer (layer 2) of the OSI model. Bridges are similar to repeaters or network hubs, devices that connect network segments at the physical layer, however a bridge works by using bridging where traffic from one
..... Click the link for more information.
A virtual LAN, commonly known as a VLAN, is a group of hosts with a common set of requirements that communicate as if they were attached to the same wire, regardless of their physical location.
..... Click the link for more information.
Internet Protocol version 4 is the fourth iteration of the Internet Protocol (IP) and it is the first version of the protocol to be widely deployed. IPv4 is the dominant network layer protocol on the Internet and apart from IPv6 it is the only standard internetwork-layer protocol
..... Click the link for more information.
In computer networking a routing table, or Routing Information Base (RIB), is an electronic table (file) or database type object that is stored in a router or a networked computer.
..... Click the link for more information.
Classful networking is the name given to the first round of changes to the structure of the IP address in IPv4.

Classful networking is obsolete on the modern Internet. There is no longer any such thing as a class A/B/C network.
..... Click the link for more information.
Classless Inter-Domain Routing (CIDR, pronounced "cider") was introduced in 1993 and is the latest refinement to the way IP addresses are interpreted. It replaced the previous generation of IP address syntax, classful networks.
..... Click the link for more information.

In Data Networks

In computer networks, a logical address refers to a network layer address such as an IP address, an X.25/X.121 or IPX address.

In Computer Architecture

In computer architectures, a logical address
..... Click the link for more information.
network layer is the third layer out of seven in OSI model and the third layer out of five in TCP/IP model. In the TCP/IP reference model it is called the Internet layer.
..... Click the link for more information.
An IP address (Internet Protocol address) is a unique address that certain electronic devices use in order to identify and communicate with each other on a computer network utilizing the Internet Protocol standard (IP)—in simpler terms, a computer address.
..... Click the link for more information.
Classful networking is the name given to the first round of changes to the structure of the IP address in IPv4.

Classful networking is obsolete on the modern Internet. There is no longer any such thing as a class A/B/C network.
..... Click the link for more information.
Dynamic Host Configuration Protocol (DHCP) is a protocol used by networked computers (clients) to obtain IP addresses and other parameters such as the default gateway, subnet mask, and IP addresses of DNS servers from a DHCP server.
..... Click the link for more information.
In computing, an octet is a grouping of eight bits.

In France, French Canada and Romania, the word octet usually means byte; a megabyte (MB) is called a megaoctet in France, Romania and also French Canada. Bit and Byte are homophones in the French language.
..... Click the link for more information.
Routing (or routeing) is the process of selecting paths in a network along which to send data or physical traffic. Routing is performed for many kinds of networks, including the telephone network, the Internet, and transport networks.
..... Click the link for more information.
dot-decimal notation (also known as dotted quad notation [1]) is a method of writing down octet strings using base-10 (decimal) rather than hexadecimal numbers. Adding dots allows for easy separation of the individual octet values.
..... Click the link for more information.
binary numeral system, or base-2 number system, is a numeral system that represents numeric values using two symbols, usually 0 and 1. More specifically, the usual base-2 system is a positional notation with a radix of 2.
..... Click the link for more information.
If two conditions are combined by and, they must both be true for the compound condition to be true as well.

Likewise, two bits may be combined with and:

x y x AND y
0 0 0
0 1 0
1 0 0
1 1 1

I.e.
..... Click the link for more information.
Classless Inter-Domain Routing (CIDR, pronounced "cider") was introduced in 1993 and is the latest refinement to the way IP addresses are interpreted. It replaced the previous generation of IP address syntax, classful networks.
..... Click the link for more information.
Classless Inter-Domain Routing (CIDR, pronounced "cider") was introduced in 1993 and is the latest refinement to the way IP addresses are interpreted. It replaced the previous generation of IP address syntax, classful networks.
..... Click the link for more information.
The term notation can refer to:

Chemistry

  • Chemical formula
  • Lewis structure, denotes chemical bonds

Dance

  • Dance notation
  • Labanotation

..... Click the link for more information.
binary numeral system, or base-2 number system, is a numeral system that represents numeric values using two symbols, usually 0 and 1. More specifically, the usual base-2 system is a positional notation with a radix of 2.
..... Click the link for more information.
An IP address (Internet Protocol address) is a unique address that certain electronic devices use in order to identify and communicate with each other on a computer network utilizing the Internet Protocol standard (IP)—in simpler terms, a computer address.
..... Click the link for more information.
Certain chunks of IPv4 address space are specially allocated by RFCs for special uses such as loopback (RFC 1643), Private networks (RFC 1918), and Zeroconf (RFC 3927) usage, and are not available for allocation by Regional Internet Registries (RIRs).
..... Click the link for more information.


This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
Herod_Archelaus


page counter