Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Subnet
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Network addressing and routing== [[File:Subnetting Concept.svg|thumb|400px|The concept of subnetting the IPv4 address space 200.100.10.0/24, which contains 256 addresses, into two smaller address spaces, namely 200.100.10.0/25 and 200.100.10.128/25 with 128 addresses each]] Computers participating in an IP network have at least one [[network address]]. Usually, this address is unique to each device and can either be configured automatically by a network service with the [[Dynamic Host Configuration Protocol]] (DHCP), manually by an administrator, or automatically by the operating system with [[stateless address autoconfiguration]]. An address fulfills the functions of identifying the host and locating it on the network in destination routing. The most common network addressing architecture is [[Internet Protocol version 4]] (IPv4), but its successor, [[IPv6]], has been increasingly [[IPv6 deployment|deployed]] since approximately 2006. An [[IPv4 address]] consists of 32 bits. An [[IPv6 address]] consists of 128 bits. In both architectures, an IP address is divided into two logical parts, the ''network prefix'' and the ''host identifier''. All hosts on a subnet have the same network prefix. This prefix occupies the most significant bits of the address. The number of bits allocated within a network to the prefix may vary between subnets, depending on the network architecture. The host identifier is a unique local identification and is either a host number on the local network or an interface identifier. This addressing structure permits the selective [[routing]] of IP packets across multiple networks via special gateway computers, called [[Router (computing)|router]]s, to a destination host if the network prefixes of origination and destination hosts differ, or sent directly to a target host on the local network if they are the same. Routers constitute logical or physical borders between the subnets, and manage traffic between them. Each subnet is served by a designated default router but may consist internally of multiple physical [[Ethernet]] segments interconnected by [[network switch]]es. The routing prefix of an address is identified by the ''subnet mask'', written in the same form used for IP addresses. For example, the subnet mask for a routing prefix that is composed of the most-significant 24 bits of an IPv4 address is written as {{IPaddr|255.255.255.0}}. The modern standard form of specification of the network prefix is CIDR notation, used for both IPv4 and IPv6. It counts the number of bits in the prefix and appends that number to the address after a ''slash'' (/) character separator. This notation was introduced with [[Classless Inter-Domain Routing]] (CIDR).<ref name="rfc4632">{{Cite IETF|rfc=4632|title=Classless Inter-domain Routing (CIDR): The Internet Address Assignment and Aggregation Plan|author1=V. Fuller|author2=T. Li|date=August 2006|publisher=Network Working Group}}</ref> In IPv6 this is the only standards-based form to denote network or routing prefixes. For example, the IPv4 network {{IPaddr|192.0.2.0}} with the subnet mask {{IPaddr|255.255.255.0}} is written as {{IPaddr|192.0.2.0|24}}, and the IPv6 notation {{IPaddr|2001:db8::|32}} designates the address {{IPaddr|2001:db8::}} and its network prefix consisting of the most significant 32 bits. In [[classful network]]ing in IPv4, before the introduction of CIDR, the network prefix could be directly obtained from the IP address, based on its highest-order bit sequence. This determined the class (A, B, C) of the address and therefore the subnet mask. Since the introduction of CIDR, however, the assignment of an IP address to a network interface requires two parameters, the address and a subnet mask. Given an IPv4 source address, its associated subnet mask, and the destination address, a router can determine whether the destination is on a locally connected network or a remote network. The subnet mask of the destination is not needed, and is generally not known to a router.<ref name="rfc1122">{{Cite IETF|rfc=1122|title=Requirements for Internet Hosts -- Communication Layers|section=3.3.1|editor=R. Braden|publisher=Network Working Group [[IETF]]|date=October 1989}} Updated by RFC 1349, RFC 4379, RFC 5884, RFC 6093, RFC 6298, RFC 6633, RFC 6864, RFC 8029.</ref> For IPv6, however, on-link determination is different in detail and requires the [[Neighbor Discovery Protocol]] (NDP).<ref name="rfc4861">{{Cite IETF|rfc=4861|title=Neighbor Discovery for IP version 6 (IPv6)|author1=T. Narten|author2=E. Nordmark|author3=W. Simpson|author4=H. Soliman|date=September 2007|publisher=Network Working Group}}</ref><ref name="rfc5942">{{Cite IETF|rfc=5942|title=IPv6 Subnet Model: The Relationship between Links and Subnet Prefixes|author1=H. Singh|author2=W. Beebee|author3=E. Nordmark|date=July 2010|publisher=[[IETF]]}}</ref> IPv6 address assignment to an interface carries no requirement of a matching on-link prefix and vice versa, with the exception of [[link-local address]]es. Since each locally connected subnet must be represented by a separate entry in the [[routing table]]s of each connected router, subnetting increases routing complexity. However, by careful design of the network, routes to collections of more distant subnets within the branches of a tree hierarchy can be aggregated into a [[supernetwork]] and represented by single routes.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Subnet
(section)
Add topic