为什么失眠| 谷草谷丙比值偏高说明什么| 柠檬苦是什么原因| miss什么意思| 勿忘心安是什么意思| wlp是什么意思| 对唔嗨住什么意思| 又吐又拉是什么原因| 乳房皮肤痒是什么原因| 老打瞌睡犯困是什么原因| skin是什么意思| 五月二十八是什么日子| 咽炎吃什么消炎药| 宝宝风热感冒吃什么药| 鹅蛋炒香菜治什么病| 妃嫔是什么意思| 肚子大是什么原因造成的| 什么的曲线| 12月26是什么星座| 郭靖黄蓉是什么电视剧| 什么样的轮子只转不走| 三皇五帝是什么时期| 家里适合养什么花| 小腿红肿是什么原因引起的| 命硬是什么意思| 吃什么补气养血最快| 竟无语凝噎什么意思| 纵什么意思| 胸部中间痛什么原因引起的| 热络是什么意思| 子官肌瘤吃什么食物| 预谋什么意思| 8月27号是什么星座| 胳膊脱臼是什么症状| 产妇喝什么汤下奶最快最多| 什么是叶黄素| 拉拉裤和纸尿裤有什么区别| 甲醛有什么危害| 澎湃的什么| 电解质是什么| 面部提升做什么项目最好| 什么的笑| 牙龈长泡是什么原因| 黑咖啡什么时候喝| 什么是理科什么是文科| 水平是什么意思| 男生的蛋蛋长什么样| 三叉神经痛吃什么药| 害羞是什么意思| 宫颈糜烂用什么药比较好| 梦见吃蜂蜜是什么预兆| 养胃吃什么食物最好| 酱油色尿是什么原因| 馨是什么意思| 帕金森看什么科室| 风湿吃什么药好| dk是什么牌子| 尿检阳性是什么意思| 左心室肥大是什么意思| 什么花粉| 健康证需要什么材料| 什么体质容易长肿瘤| 视觉感受器是什么| 经常吃海带有什么好处和坏处| 2h是什么意思| 炖鸡放什么调料| 什么地跑步| 什么样的人容易得抑郁症| 布鲁斯是什么意思| 26岁属什么的生肖| 眩晕去医院挂什么科室| 特别想睡觉是什么原因| pa是什么| pigeon是什么牌子| 火鸡面为什么那么辣| 电压不稳定是什么原因| 什么的叮咛| 光天化日什么意思| 舌根痛吃什么药好得快| median什么意思| 喝蜂蜜有什么好处| 药引子是什么意思| 0r是什么意思| dx是什么| 虾膏是什么| 口苦口干吃什么药最好| 医院特需门诊什么意思| 济公原名叫什么| 话说多了声音嘶哑是什么原因| 吃什么补钾| 梦见抽血是什么预兆| 为什么总打喷嚏| 太形象了是什么意思| 2023年属兔的是什么命| 山药和什么搭配最好| 什么样的小手| 人为什么要吃肉| 统招是什么意思| ups是什么快递公司| 曹操的父亲叫什么名字| 怀孕初期需要补充什么营养| 2002年什么年| eau是什么意思| 夏天有什么动物| sma是什么| 别见怪是什么意思| 吃樱桃有什么好处| 肾低密度灶是什么意思| 肺大泡有什么危害| 小宇宙是什么意思| 痔疮是什么| 眩晕症是什么原因引起| 赞什么不已| 掌纹多而乱代表什么| 花白鲢喂养什么长得快| 51年属什么生肖| 阿莫西林不能和什么一起吃| 貌不惊人是什么意思| 什么叫子宫腺肌症| 木马是什么意思| 胃不好适合吃什么食物| 世界上最贵的烟是什么烟| 窥什么意思| 吃什么英语怎么说| 咩是什么意思| 女性睾酮低说明什么| 非经期少量出血是什么原因| 胸上长痘痘是什么原因| 吃中药不能吃什么| 远在天边近在眼前是什么意思| 什么快递便宜| 什么铜钱最值钱| 窝沟封闭是什么意思| 异位性皮炎是什么意思| 解痉镇痛酊有什么功效| 宫内暗区是什么意思| 怀孕牙龈出血是什么原因| 幸灾乐祸什么意思| 什么病| 双侧中耳乳突炎是什么意思| 甲沟炎什么症状| 你想什么| qw医学上是什么意思| 心有灵犀什么意思| 头疼什么原因| 脾与什么相表里| 55岁属什么生肖| 六月二十六是什么星座| 圆脸适合什么眉形| 榴莲对子宫有什么好处| 经常感觉饿是什么原因| 过敏挂什么科| 百合不能和什么一起吃| 吃了什么药不能喝酒| 阳痿挂什么科| 肚子疼是什么原因| 乳房疼挂什么科| 窦性心律过缓吃什么药| 束缚的意思是什么| 特别想睡觉是什么原因| 除权是什么意思| 10.22是什么星座| 涵字属于五行属什么| 心情沉重是什么意思| 毛发旺盛女生什么原因引起的| 梅菜是什么菜| 手发抖是什么病的先兆| 肌肉痛吃什么药| 截胡什么意思| 眼皮浮肿什么原因| 牙龈肿痛吃什么药好| 蛋白质偏高是什么原因| 儿童淋巴结肿大挂什么科| 什么是提肛运动| 上环是什么意思| 湿气是什么东西| 小孩抵抗力差吃什么提高免疫力| 小老头是什么意思| 医院门特是什么意思| 护肝养肝吃什么药最好| 耳浴是什么意思| 什么地飞| 我方了是什么意思| 眼睑炎用什么药效果好| 云仓是什么| 自慰什么意思| 什么是肾功能不全| 卵黄囊偏大是什么原因| 拜土地公时要念什么好| 高什么亮什么| 农历五月二十八是什么日子| 顾名思义的顾什么意思| z什么意思| 1964年出生属什么| 为什么不能摸猫的肚子| 脓毒症是什么引起的| 男性尿道炎是什么原因引起的| 粉的像什么| 新生的什么| 2月11日什么星座| 外耳道湿疹用什么药| 嬛嬛一袅楚宫腰什么意思| 肠癌吃什么好| 小孩晚上睡觉流口水是什么原因| 倚老卖老什么意思| 人突然瘦了要检查什么| 东南方向是什么位置| 狗狗取什么名字| 红霉素软膏和红霉素眼膏有什么区别| 中专属于什么学历| 吐口水有血是什么原因| 什么鸟会说话| 薏米有什么功效| 文玩是什么| 一一是什么意思| 尿频尿急挂什么科| 天秤男喜欢什么样的女生| 什么是生命之本| 嘴巴里长水泡是什么原因| 蓝色妖姬代表什么含义| 木耳中毒什么症状| 翻车了是什么意思| movefree是什么药| 今年男宝宝取什么名字好| 爆菊花是什么意思| 鳄鱼为什么会流泪| 什么是收缩压和舒张压| 无创低风险是什么意思| 什么人从来不看医生| 脸上长斑的原因是什么引起的| 人武部是干什么的| 妈妈的舅舅叫什么| 什么是胰岛素| 什么是子宫憩室| 司长是什么级别的官| 淘宝什么时候有活动| 什么水果能马上通便| 头脑胀痛什么原因| 董五行属什么| 嗓子干疼吃什么药| 猪肝不能和什么一起吃| 湍急是什么意思| 梦见狗咬自己是什么意思| 阴道流黄色分泌物是什么原因| 白芨主治什么病| hib疫苗是什么意思| 心机女是什么意思| 呕吐挂什么科| 好滴是什么意思| 哺乳期什么东西不能吃| 智齿发炎吃什么消炎药| bm什么意思| 颇有是什么意思| 狗尾续貂什么意思| 流水生财是什么意思| hpv病毒通过什么途径传播| 湿热是什么原因引起的| 窦性心律有什么危害| 射进去有什么感觉| 牙龈萎缩用什么药| 猴子是什么颜色| 为什么会打鼾| 追求是什么意思| 嘴馋是什么意思| 百度Jump to content

马德里动物园的“熊猫姐妹”

From Wikipedia, the free encyclopedia
百度 据吉列尔莫·德·安达表示,这一发现能让人们更清楚地了解,这个地区的宗教仪式、朝圣地点以及前西班牙殖民地的形成过程。

Classless Inter-Domain Routing (CIDR /?sa?d?r, ?s?-/) is a method for allocating IP addresses for IP routing. The Internet Engineering Task Force introduced CIDR in 1993 to replace the previous classful network addressing architecture on the Internet. Its goal was to slow the growth of routing tables on routers across the Internet, and to help slow the rapid exhaustion of IPv4 addresses.[1][2]

IP addresses are described as consisting of two groups of bits in the address: the most significant bits are the network prefix, which identifies a whole network or subnet, and the least significant set forms the host identifier, which specifies a particular interface of a host on that network. This division is used as the basis of traffic routing between IP networks and for address allocation policies.

Whereas classful network design for IPv4 sized the network prefix as one or more 8-bit groups, resulting in the blocks of Class A, B, or C addresses, under CIDR address space is allocated to Internet service providers and end users on any address-bit boundary. In IPv6, however, the interface identifier has a fixed size of 64 bits by convention, and smaller subnets are never allocated to end users.

CIDR is based on variable-length subnet masking (VLSM), in which network prefixes have variable length (as opposed to the fixed-length prefixing of the previous classful network design). The main benefit of this is that it grants finer control of the sizes of subnets allocated to organizations, hence slowing the exhaustion of IPv4 addresses from allocating larger subnets than needed. CIDR gave rise to a new way of writing IP addresses known as CIDR notation, in which an IP address is followed by a suffix indicating the number of bits of the prefix. Some examples of CIDR notation are the addresses 192.0.2.0/24 for IPv4 and 2001:db8::/32 for IPv6. Blocks of addresses having contiguous prefixes may be aggregated as supernets, reducing the number of entries in the global routing table.

Background

[edit]

Each IP address consists of a network prefix followed by a host identifier. In the classful network architecture of IPv4, the three most significant bits of the 32-bit IP address defined the size of the network prefix for unicast networking, and determined the network class A, B, or C.[3]

Class Most-significant bits Network prefix size (bits) Host identifier size (bits) Address range
A 0 8 24 0.0.0.0–127.255.255.255
B 10 16 16 128.0.0.0–191.255.255.255
C 110 24 8 192.0.0.0–223.255.255.255
D(multicast)
E(reserved)
1110
1111
224.0.0.0–255.255.255.255

The advantage of this system is that the network prefix could be determined for any IP address without any further information. The disadvantage is that networks were usually too big or too small for most organizations to use, because only three sizes were available. The smallest allocation and routing block contained 28 = 256 addresses, larger than necessary for personal or department networks, but too small for most enterprises. The next larger block contained 216 = 65536 addresses, too large to be used efficiently even by large organizations. But for network users who needed more than 65536 addresses, the only other size (224) provided far too many, more than 16 million. This led to inefficiencies in address use as well as inefficiencies in routing, because it required a large number of allocated class-C networks with individual route announcements, being geographically dispersed with little opportunity for route aggregation.

Within a decade after the invention of the Domain Name System (DNS), the classful network method was found not scalable.[4] This led to the development of subnetting and CIDR. The formerly meaningful class distinctions based on the most-significant address bits were abandoned and the new system was described as classless, in contrast to the old system, which became known as classful. Routing protocols were revised to carry not just IP addresses, but also their subnet masks. Implementing CIDR required every host and router on the Internet to be reprogrammed in small ways—no small feat at a time when the Internet was entering a period of rapid growth. In 1993, the Internet Engineering Task Force published a new set of standards, RFC 1518 and RFC 1519, to define this new principle for allocating IP address blocks and routing IPv4 packets. An updated version, RFC 4632, was published in 2006.[5]

After a period of experimentation with various alternatives, Classless Inter-Domain Routing was based on variable-length subnet masking (VLSM), which allows each network to be divided into subnetworks of various power-of-two sizes, so that each subnetwork can be sized appropriately for local needs. Variable-length subnet masks were mentioned as one alternative in RFC 950.[6] Techniques for grouping addresses for common operations were based on the concept of cluster addressing, first proposed by Carl-Herbert Rokitansky.[7][8]

CIDR notation

[edit]

CIDR notation is a compact representation of an IP address and its associated network mask. The notation was invented by Phil Karn in the 1980s.[9][10] CIDR notation specifies an IP address, a slash ('/') character, and a decimal number. The decimal number is the count of consecutive leading 1-bits (from left to right) in the network mask. Each 1-bit denotes a bit of the address range which must remain identical to the given IP address. The IP address in CIDR notation is always represented according to the standards for IPv4 or IPv6.

The address may denote a specific interface address (including a host identifier, such as 10.0.0.1/8), or it may be the beginning address of an entire network (using a host identifier of 0, as in 10.0.0.0/8 or its equivalent 10/8). CIDR notation can even be used with no IP address at all, e.g. when referring to a /24 as a generic description of an IPv4 network that has a 24-bit prefix and 8-bit host numbers.

For example:

  • 198.51.100.14/24 represents the IPv4 address 198.51.100.14 and its associated network prefix 198.51.100.0, or equivalently, its subnet mask 255.255.255.0, which has 24 leading 1-bits.
  • the IPv4 block 198.51.100.0/22 represents the 1024 IPv4 addresses from 198.51.100.0 to 198.51.103.255.
  • the IPv6 block 2001:db8::/48 represents the block of IPv6 addresses from 2001:db8:0:0:0:0:0:0 to 2001:db8:0:ffff:ffff:ffff:ffff:ffff.
  • ::1/128 represents the IPv6 loopback address. Its prefix length is 128 which is the number of bits in the address.

In IPv4, CIDR notation came into wide use only after the implementation of the method, which was documented using dotted-decimal subnet mask specification after the slash, for example, 192.24.12.0/255.255.252.0.[2] Describing the network prefix width as a single number (192.24.12.0/22) was easier for network administrators to conceptualize and to calculate. It became gradually incorporated into later standards documents[11][12] and into network configuration interfaces.

The number of addresses of a network may be calculated as 2address length ? prefix length, where address length is 128 for IPv6 and 32 for IPv4. For example, in IPv4, the prefix length /29 gives: 232?29 = 23 = 8 addresses.

Subnet masks

[edit]

A subnet mask is a bitmask that encodes the prefix length associated with an IPv4 address or network in quad-dotted notation: 32 bits, starting with a number of 1-bits equal to the prefix length, ending with 0-bits, and encoded in four-part dotted-decimal format: 255.255.255.0. A subnet mask encodes the same information as a prefix length but predates the advent of CIDR. In CIDR notation, the prefix bits are always contiguous. Subnet masks were allowed by RFC 950[6] to specify non-contiguous bits until RFC 4632[5]:?Section 5.1? stated that the mask must be left contiguous. Given this constraint, a subnet mask and CIDR notation serve exactly the same function.

CIDR blocks

[edit]

CIDR is principally a bitwise, prefix-based standard for the representation of IP addresses and their routing properties. It facilitates routing by allowing blocks of addresses to be grouped into single routing table entries. These groups, commonly called CIDR blocks, share an initial sequence of bits in the binary representation of their IP addresses. IPv4 CIDR blocks are identified using a syntax similar to that of IPv4 addresses: a dotted-decimal address, followed by a slash, then a number from 0 to 32, i.e., a.b.c.d/n. The dotted decimal portion is the IPv4 address. The number following the slash is the prefix length, the number of shared initial bits, counting from the most-significant bit of the address. When emphasizing only the size of a network, the address portion of the notation is usually omitted. Thus, a /20 block is a CIDR block with an unspecified 20-bit prefix.

An IP address is part of a CIDR block and is said to match the CIDR prefix if the initial n bits of the address and the CIDR prefix are the same. An IPv4 address is 32 bits so an n-bit CIDR prefix leaves 32 ? n bits unmatched, meaning that 232?n IPv4 addresses match a given n-bit CIDR prefix. Shorter CIDR prefixes match more addresses, while longer prefixes match fewer. In the case of overlaid CIDR blocks, an address can match multiple CIDR prefixes of different lengths.

CIDR is also used for IPv6 addresses and the syntax semantic is identical. The prefix length can range from 0 to 128, due to the larger number of bits in the address. However, by convention, a subnet on broadcast MAC layer networks always has 64-bit host identifiers.[13] Larger prefixes (/127) are only used on some point-to-point links between routers, for security and policy reasons.[14]

Assignment of CIDR blocks

[edit]

The Internet Assigned Numbers Authority (IANA) issues to regional Internet registries (RIRs) large, short-prefix CIDR blocks. However, a /8 (with over sixteen million addresses) is the largest block IANA will allocate. For example, 62.0.0.0/8 is administered by RIPE NCC, the European RIR. The RIRs, each responsible for a single, large, geographic area, such as Europe or North America, subdivide these blocks and allocate subnets to local Internet registries (LIRs). Similar subdividing may be repeated several times at lower levels of delegation. End-user networks receive subnets sized according to their projected short-term need. Networks served by a single ISP are encouraged by IETF recommendations to obtain IP address space directly from their ISP. Networks served by multiple ISPs, on the other hand, may obtain provider-independent address space directly from the appropriate RIR.

For example, in the late 1990s, the IP address 208.130.29.33 (since reassigned) was used by www.freesoft.org. An analysis of this address identified three CIDR prefixes. 208.128.0.0/11, a large CIDR block containing over 2 million addresses, had been assigned by ARIN (the North American RIR) to MCI. Automation Research Systems (ARS), a Virginia VAR, leased an Internet connection from MCI and was assigned the 208.130.28.0/22 block, capable of addressing just over 1000 devices. ARS used a /24 block for its publicly accessible servers, of which 208.130.29.33 was one. All of these CIDR prefixes would be used, at different locations in the network. Outside MCI's network, the 208.128.0.0/11 prefix would be used to direct to MCI traffic bound not only for 208.130.29.33, but also for any of the roughly two million IP addresses with the same initial 11 bits. Within MCI's network, 208.130.28.0/22 would become visible, directing traffic to the leased line serving ARS. Only within the ARS corporate network would the 208.130.29.0/24 prefix have been used.

IPv4 CIDR blocks

[edit]
Address
format
Difference
to last address
Mask Addresses Relative
to class
A, B, C
Restrictions
on a, b, c and d
(0..255 unless noted)
Typical use
Decimal 2n
a.b.c.d/32 255.255.255.255 1 20 1?256 C Host route
a.b.c.d/31 +0.0.0.1 255.255.255.254 2 21 1?128 C d = 0 ... (2n) ... 254 Point-to-point links (RFC 3021)
a.b.c.d/30 +0.0.0.3 255.255.255.252 4 22 1?64 C d = 0 ... (4n) ... 252 Point-to-point links (glue network)
a.b.c.d/29 +0.0.0.7 255.255.255.248 8 23 1?32 C d = 0 ... (8n) ... 248 Smallest multi-host network
a.b.c.d/28 +0.0.0.15 255.255.255.240 16 24 1?16 C d = 0 ... (16n) ... 240 Small LAN
a.b.c.d/27 +0.0.0.31 255.255.255.224 32 25 1?8 C d = 0 ... (32n) ... 224
a.b.c.d/26 +0.0.0.63 255.255.255.192 64 26 1?4 C d = 0, 64, 128, 192
a.b.c.d/25 +0.0.0.127 255.255.255.128 128 27 1?2 C d = 0, 128 Large LAN
a.b.c.0/24 +0.0.0.255 255.255.255.0 256 28 1 C
a.b.c.0/23 +0.0.1.255 255.255.254.0 512 29 2 C c = 0 ... (2n) ... 254
a.b.c.0/22 +0.0.3.255 255.255.252.0 1,024 210 4 C c = 0 ... (4n) ... 252 Small business
a.b.c.0/21 +0.0.7.255 255.255.248.0 2,048 211 8 C c = 0 ... (8n) ... 248 Small ISP/ large business
a.b.c.0/20 +0.0.15.255 255.255.240.0 4,096 212 16 C c = 0 ... (16n) ... 240
a.b.c.0/19 +0.0.31.255 255.255.224.0 8,192 213 32 C c = 0 ... (32n) ... 224 ISP/ large business
a.b.c.0/18 +0.0.63.255 255.255.192.0 16,384 214 64 C c = 0, 64, 128, 192
a.b.c.0/17 +0.0.127.255 255.255.128.0 32,768 215 128 C c = 0, 128
a.b.0.0/16 +0.0.255.255 255.255.0.0 65,536 216 256 C = B
a.b.0.0/15 +0.1.255.255 255.254.0.0 131,072 217 2 B b = 0 ... (2n) ... 254
a.b.0.0/14 +0.3.255.255 255.252.0.0 262,144 218 4 B b = 0 ... (4n) ... 252
a.b.0.0/13 +0.7.255.255 255.248.0.0 524,288 219 8 B b = 0 ... (8n) ... 248
a.b.0.0/12 +0.15.255.255 255.240.0.0 1,048,576 220 16 B b = 0 ... (16n) ... 240
a.b.0.0/11 +0.31.255.255 255.224.0.0 2,097,152 221 32 B b = 0 ... (32n) ... 224
a.b.0.0/10 +0.63.255.255 255.192.0.0 4,194,304 222 64 B b = 0, 64, 128, 192
a.b.0.0/9 +0.127.255.255 255.128.0.0 8,388,608 223 128 B b = 0, 128
a.0.0.0/8 +0.255.255.255 255.0.0.0 16,777,216 224 256 B = A Largest IANA block allocation
a.0.0.0/7 +1.255.255.255 254.0.0.0 33,554,432 225 2 A a = 0 ... (2n) ... 254
a.0.0.0/6 +3.255.255.255 252.0.0.0 67,108,864 226 4 A a = 0 ... (4n) ... 252
a.0.0.0/5 +7.255.255.255 248.0.0.0 134,217,728 227 8 A a = 0 ... (8n) ... 248
a.0.0.0/4 +15.255.255.255 240.0.0.0 268,435,456 228 16 A a = 0 ... (16n) ... 240
a.0.0.0/3 +31.255.255.255 224.0.0.0 536,870,912 229 32 A a = 0 ... (32n) ... 224
a.0.0.0/2 +63.255.255.255 192.0.0.0 1,073,741,824 230 64 A a = 0, 64, 128, 192
a.0.0.0/1 +127.255.255.255 128.0.0.0 2,147,483,648 231 128 A a = 0, 128
0.0.0.0/0 +255.255.255.255 0.0.0.0 4,294,967,296 232 256 A Entire IPv4 Internet, default route.

In routed subnets larger than /31 or /32, the number of available host addresses is usually reduced by two, namely the largest address, which is reserved as the broadcast address, and the smallest address, which identifies the network itself.[15][16]

In such usage, a /31 network, with one binary digit in the host identifier, is unusable, as such a subnet would provide no available host addresses after this reduction. RFC 3021 creates an exception to the "host all ones" and "host all zeros" rules to make /31 networks usable for point-to-point links. /32 addresses (single-host network) must be accessed by explicit routing rules, as there is no address available for a gateway.

IPv6 CIDR blocks

[edit]
IPv6 CIDR prefixes
Prefix size Number of equivalent subnets Interface ID bits
/48 /56 /64
/24 16M 4G 1T 104
/25 8M 2G 512G 103
/26 4M 1G 256G 102
/27 2M 512M 128G 101
/28 1M 256M 64G 100
/29 512K 128M 32G 99
/30 256K 64M 16G 98
/31 128K 32M 8G 97
/32 64K 16M 4G 96
/33 32K 8M 2G 95
/34 16K 4M 1G 94
/35 8K 2M 512M 93
/36 4K 1M 256M 92
/37 2K 512K 128M 91
/38 1K 256K 64M 90
/39 512 128K 32M 89
/40 256 64K 16M 88
/41 128 32K 8M 87
/42 64 16K 4M 86
/43 32 8K 2M 85
/44 16 4K 1M 84
/45 8 2K 512K 83
/46 4 1K 256K 82
/47 2 512 128K 81
/48 1 256 64K 80
/49 128 32K 79
/50 64 16K 78
/51 32 8K 77
/52 16 4K 76
/53 8 2K 75
/54 4 1K 74
/55 2 512 73
/56 1 256 72
/57 128 71
/58 64 70
/59 32 69
/60 16 68
/61 8 67
/62 4 66
/63 2 65
/64 1 64
K = 1,024
M = 1,048,576
G = 1,073,741,824
T = 1,099,511,627,776

The large address size of IPv6 permitted worldwide route summarization and guaranteed sufficient address pools at each site. The standard subnet size for IPv6 networks is a /64 block, which is required for the operation of stateless address autoconfiguration.[17] At first, the IETF recommended in RFC 3177 as a best practice that all end sites receive a /48 address allocation,[18] but criticism and reevaluation of actual needs and practices has led to more flexible allocation recommendations in RFC 6177[19] suggesting a significantly smaller allocation for some sites, such as a /56 block for residential networks.

This IPv6 subnetting reference lists the sizes for IPv6 subnetworks. Different types of network links may require different subnet sizes.[20] The subnet mask separates the bits of the network identifier prefix from the bits of the interface identifier. Selecting a smaller prefix size results in fewer number of networks covered, but with more addresses within each network.[21]

2001:0db8:0123:4567:89ab:cdef:1234:5678
|||| |||| |||| |||| |||| |||| |||| ||||
|||| |||| |||| |||| |||| |||| |||| |||128     Single end-points and loopback
|||| |||| |||| |||| |||| |||| |||| |||127   Point-to-point links (inter-router)
|||| |||| |||| |||| |||| |||| |||| ||124
|||| |||| |||| |||| |||| |||| |||| |120
|||| |||| |||| |||| |||| |||| |||| 116
|||| |||| |||| |||| |||| |||| |||112
|||| |||| |||| |||| |||| |||| ||108
|||| |||| |||| |||| |||| |||| |104
|||| |||| |||| |||| |||| |||| 100
|||| |||| |||| |||| |||| |||96
|||| |||| |||| |||| |||| ||92
|||| |||| |||| |||| |||| |88
|||| |||| |||| |||| |||| 84
|||| |||| |||| |||| |||80
|||| |||| |||| |||| ||76
|||| |||| |||| |||| |72
|||| |||| |||| |||| 68
|||| |||| |||| |||64   Single LAN; default prefix size for SLAAC
|||| |||| |||| ||60   Some (very limited) 6rd deployments (/60 = 16 /64 blocks)
|||| |||| |||| |56   Minimal end sites assignment;[19] e.g. home network (/56 = 256 /64 blocks)
|||| |||| |||| 52   /52 block = 4096 /64 blocks
|||| |||| |||48   Typical assignment for larger sites (/48 = 65536 /64 blocks)
|||| |||| ||44
|||| |||| |40
|||| |||| 36   possible future local Internet registry (LIR) extra-small allocations
|||| |||32   LIR minimum allocations
|||| ||28   LIR medium allocations
|||| |24   LIR large allocations
|||| 20   LIR extra large allocations
|||16
||12   Regional Internet registry (RIR) allocations from IANA[22]
|8
4

Numerical interpretation

[edit]

Topologically, the set of subnets described by CIDR represent a cover of the corresponding address space. The interval described by the notation numerically corresponds to addresses of the form (for IPv4) , where has the lower bits set to 0. (For IPv6, substitute 128.) For a fixed , the set of all subnets constitute a partition, that is a cover of non-overlapping sets. Increasing yields finer and finer subpartitions. Thus two subnets and are either disjoint or one is a subnet of the other.

Prefix aggregation

[edit]

CIDR provides fine-grained routing prefix aggregation. For example, if the first 20 bits of their network prefixes match, sixteen contiguous /24 networks can be aggregated and advertised to a larger network as a single /20 routing table entry. This reduces the number of routes that have to be advertised.

See also

[edit]

References

[edit]
  1. ^ Y. Rekhter; T. Li (September 1993). An Architecture for IP Address Allocation with CIDR. doi:10.17487/RFC1518. RFC 1518.
  2. ^ a b V. Fuller; T. Li; J. Yu; K. Varadhan (September 1993). Classless Inter-Domain Routing (CIDR): an Address Assignment and Aggregation Strategy. doi:10.17487/RFC1519. RFC 1519.
  3. ^ J. Reynolds; J. Postel, eds. (April 1985). Assigned Numbers. doi:10.17487/RFC0943. RFC 943.
  4. ^ R. Hinden, ed. (September 1993). Applicability Statement for the Implementation of Classless Inter-Domain Routing (CIDR). doi:10.17487/RFC1517. RFC 1517.
  5. ^ a b V. Fuller; T. Li (August 2006). Classless Inter-domain Routing (CIDR): The Internet Address Assignment and Aggregation Plan. doi:10.17487/RFC4632. RFC 4632.
  6. ^ a b J. Mogul; J. Postel, eds. (August 1985). Internet Standard Subnetting Procedure. sec. 2.1. doi:10.17487/RFC0950. RFC 950.
  7. ^ Carl-Herbert Rokitansky, "Internet Cluster Addressing Scheme and its Application to Public Data Networks", Proc. 9th International Conference on Computer Communication (ICCC' 88), pp. 482–491, Tel Aviv, Israel, October/November 1988
  8. ^ Cluster Addressing and CIDR in the mail archives of the IETF
  9. ^ Brian Kantor (December 2018). "Re: Stupid Question maybe?". North American Network Operators Group. /24 is certainly cleaner than 255.255.255.0. I seem to remember it was Phil Karn who in the early 80's suggested that expressing subnet masks as the number of bits from the top end of the address word was efficient, since subnet masks were always a series of ones followd by zeros with no interspersing, which was incorporated (or independently invented) about a decade later as CIDR a.b.c.d/n notation in RFC1519.
  10. ^ William Simpson (December 2018). "Re: Stupid Question maybe?". North American Network Operators Group. Actually, Brian is correct. Phil was w-a-y ahead of the times. But I don't remember him talking about it until the late '80s.
  11. ^ T. Pummill; B. Manning (December 1995). Variable Length Subnet Table For IPv4. doi:10.17487/RFC1878. RFC 1878.
  12. ^ S. Williamson; M. Kosters; D. Blacka; J. Singh; K. Zeilstra (June 1997). Referral Whois (RWhois) Protocol V1.5. doi:10.17487/RFC2167. RFC 2167. IP networks are also lexically hierarchical labels using the Classless Inter-Domain Routing (CIDR) notation, but their hierarchy is not easily determined with simple text manipulation; for example, 198.41.0.0/22 is a part of 198.41.0.0/16, which is a part of 198.40.0.0/15.
  13. ^ Carpenter, B.; Jiang, S. (February 2014). Significance of IPv6 Interface Identifiers. doi:10.17487/RFC7136. RFC 7136.
  14. ^ Kohno, M.; Nitzan, B.; Bush, R.; Matsuzaki, Y.; Colitti, L.; Narten, T. (April 2011). Using 127-Bit IPv6 Prefixes on Inter-Router Links. doi:10.17487/RFC6164. RFC 6164.
  15. ^ J. Mogul, ed. (October 1984). Broadcasting Internet Datagrams in the Presence of Subnets. sec. 7. doi:10.17487/RFC0922. RFC 922.
  16. ^ F. Baker, ed. (June 1995). Requirements for IP Version 4 Routers. sec. 4.2.3.1. doi:10.17487/RFC1812. RFC 1812.
  17. ^ RFC 4862
  18. ^ IAB/IESG Recommendation on IPv6 Address Allocations to Sites. IAB/IESG. September 2001. doi:10.17487/RFC3177. RFC 3177.
  19. ^ a b T. Narten; G. Huston; L. Roberts (March 2011). IPv6 Address Assignment to End Sites. doi:10.17487/RFC6177. RFC 6177.
  20. ^ "ARIN IPv6 Addressing Plans". Getipv6.info. 2025-08-05. Retrieved 2025-08-05.
  21. ^ "RIPE IP Allocation Rates". Archived from the original on 2025-08-05.
  22. ^ "IANA IPv6 unicast address assignments". Iana.org. Retrieved 2025-08-05.

Further reading

[edit]
[edit]
不睡人的空床放点什么 颞下颌关节紊乱挂什么科 一月30号是什么星座 08是什么生肖 三级综合医院是什么意思
什么动物没有尾巴 生肖羊生什么生肖最好 排尿困难是什么原因 十多块钱的烟什么好抽 什么样的脸型有福
前庭神经炎吃什么药 吃燕窝有什么好处 蒌蒿是什么 香槟玫瑰花语是什么意思 赭石色是什么颜色
埋头苦干是什么生肖 严什么什么重 上飞机不能带什么 阴道干涩是什么原因 什么的松脂
秋天有什么水果520myf.com 血脂看什么指标hcv9jop6ns5r.cn 歧路亡羊告诉我们什么道理hcv7jop7ns4r.cn 柿子不能和什么一起吃hcv8jop1ns1r.cn 懵懂少年是什么意思hcv8jop3ns2r.cn
脊柱侧弯是什么原因引起的hcv7jop9ns3r.cn 急得什么hcv8jop1ns6r.cn ib是什么单位hcv8jop7ns9r.cn 什么时间入伏hcv8jop6ns2r.cn 吴孟达什么时候去世的hcv9jop2ns8r.cn
4月26日是什么星座hcv8jop7ns3r.cn 耳朵老是痒是什么原因hcv9jop3ns6r.cn 阑尾有什么作用hcv9jop0ns2r.cn 不爱说话的人是什么性格hcv9jop3ns6r.cn 内膜厚吃什么掉内膜hcv9jop1ns2r.cn
梦见被雨淋是什么意思hcv8jop5ns7r.cn 化验痰可以检查出什么hcv8jop4ns9r.cn 梦见摘枣是什么意思mmeoe.com 一天老是放屁是什么原因hcv9jop4ns2r.cn 宫颈病变是什么cj623037.com
百度