ipv6寻址_有类和无类寻址:IPV4寻址| 计算机网络

本文介绍了IPv4的有类寻址和无类寻址。有类寻址分为A, B, C, D, E五类,而无类寻址解决了地址耗尽问题,按需分配地址块,更灵活。" 122849742,10789595,Vue中ref与watch实战解析,"['Vue.js', '前端框架', 'JavaScript', '数据绑定']
摘要由CSDN通过智能技术生成

ipv6寻址

1)分类寻址 (1) Classful Addressing)

IPv4 addressing used the concept of classes. This architecture is known as classful addressing.

IPv4寻址使用类的概念。 这种体系结构称为类寻址

In the classful addressing, there are 5 classes in which the address space is divided: A, B, C, D, and E.

在有类寻址中,地址空间分为5个类: A,B,C,D和E。

Each class occupies some fraction of the address space.

每个类占用一部分地址空间。

We can find the class of an address when given the address in binary notation or dotted-decimal notation by checking the first few bits or first byte.

通过检查前几位或第一个字节,以二进制或点分十进制形式给定地址时,可以找到地址的类别。

类和块 (Classes and Blocks)

There is a problem with the classful addressing that is "each class is divided into a fixed number of blocks with each block having a fixed size".

分类寻址存在一个问题,即“每个类被划分为固定数量的块,每个块具有固定的大小”

Class nameNumber of blocksBlock sizeApplication
A12816,777,216Unicast
B16,38465,536Unicast
C2,097,152256Unicast
D1268,435,456Multicast
E1268,435.456Multicast
班级名称 块数 块大小 应用
一个 128 16,777,216 单播
16,384 65,536 单播
C 2,097,152 256 单播
d 1个 268,435,456 多播
Ë 1个 268,435.456 多播

The "class A addresses" are designed for large organizations to manage a large number of attached hosts or routers.

“ A类地址”是为大型组织设计的,用于管理大量连接的主机或路由器。

The "class B addresses" are designed for midsize organizations to manage tens of thousands of attached hosts or routers.

“ B类地址”是为中型组织设计的,用于管理成千上万个连接的主机或路由器。

The "class C addresses" are designed for small organizations to manage a small number of attached hosts or routers.

“ C类地址”是为小型组织设计的,用于管理少量连接的主机或路由器。

2)无类寻址 (2) Classless Addressing)

Classful addressing leads to address depletion. That's the big issue for this schema and that's why it's not used nowadays.

分类寻址会导致地址耗尽。 这是此架构的主要问题,这就是为什么现在不使用它。

To overcome the problem of address depletion and to give more organizations access to the Internet, the classless addressing was designed and implemented. In this scheme of classless addressing, there are no classes, but the addresses are still granted in blocks.

为了克服地址耗尽的问题,并使更多组织可以访问Internet,设计并实现了无类寻址。 在这种无类别寻址方案中,没有任何类别,但是地址仍以块形式授予。

地址块 (Address Blocks)

In classless addressing, when an entity(organization or a single household (small organization) or whatever which uses the internet) needs to be connected to the Internet, it is granted a block (range) of addresses. The size of the block (the number of addresses) varies based on the nature, size, and need of the entity.

在无类寻址中,当一个实体(组织或单个家庭(小型组织)或使用互联网的任何对象)需要连接到Internet时,将被授予一个地址块(范围)。 块的大小(地址数)根据实体的性质,大小和需要而变化。

For example, a household (small organization) may be given only two addresses; a large organization may be given thousands of addresses. On the other hand. An ISP, as the Internet service provider, may be given hundreds of thousands based on the number of customers it may serve.

例如,一个家庭(小型组织)可能仅获得两个地址。 大型组织可能会获得数千个地址。 另一方面。 作为互联网服务提供商,ISP可能会根据其服务的客户数量而获得数十万的奖励。

Three restrictions on classless address blocks:

无类地址块的三个限制:

  1. The addresses in a block must be contiguous that means one after another.

    块中的地址必须连续,这意味着一个接一个。

  2. The number of classless addresses in a block must be a power of 2.

    块中无类地址的数量必须是2的幂。

  3. The first address must be evenly divisible by the number of addresses.

    第一个地址必须能被地址数平均整除。

References:

参考文献:

翻译自: https://www.includehelp.com/computer-networks/classful-and-classless-addressing-ipv4-addressing.aspx

ipv6寻址

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值