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

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:

参考文献:

  • Book: Data communication & networking

    图书:数据通信与网络

  • Classless addressing

    无类寻址

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

ipv6寻址

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/546054.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

windows没有软盘 怎么解决

1这种情况我遇到过。 现象为:启动快到桌面之前,会出现红叉错误提示框,标题为“Windows-没有软盘”,内容为“驱动器中没有软盘。请在\Device\Harddisk1\DR5 中插入软盘”,有“取消”、“重试”、“继续”三个按钮。点“…

forth编程语言

forth 是一种基于栈的程序设计语言,其语法使用逆波兰表达式(即后缀表达式),forth的黄金期是上世纪80年代,现在使用的人很少,但是却非常的有趣。还有一个以forth为基础开发的语言factor ,它增加了许多当代的…

安装TPCC-MySQL报错

2019独角兽企业重金招聘Python工程师标准>>> 安装TPCC-MySQL做压力测试,由于TPCC-MySQL是bzr工具进行版本控制的,所以要先安装bzr [rootmha_backup /root] #rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.r…

enumerate_Java Thread类的static int enumerate(Thread [] th)方法与示例

enumerate线程类static int枚举(Thread [] th) (Thread Class static int enumerate(Thread[] th)) This method is available in package java.lang.Thread.enumerate(Thread[] th). 软件包java.lang.Thread.enumerate(Thread [] th)中提供了此方法。 This method is used to …

自由职业的前半年,我是如何度过的?

生活中所受的苦,终会以一种形式回归。我是一个后知后觉的人,从 2009 年毕业到现在,已经有 11 年的光景了,参加工作的前几年我从没想过要快速的提升自己的技能,对待工作也没有全力以赴,这样的迷茫和随大流的…

Microsoft Visual C++ Runtime Library 错误解决办法

今天安装软件时,出现“Microsoft Visual C Runtime Library”错误,网上查了下解决方法,得以解决。现在分享下,给碰到相同问题的朋友。微软官方解释如下:症状在 Microsoft Windows XP 中运行自定义 Microsoft Visual C …

Eucalyptus常用查询命令

前言: Elastic Utility Computing Architecture for Linking Your Programs To Useful Systems (Eucalyptus) 是一种开源的软件基础结构,用来通过计算集群或工作站群实现弹性的、实用的云计算。它最初是美国加利福尼亚大学 Santa …

the blocks problem(uva 101 or poj 1208)

题目描述见:uva 101 or poj 1208 关键在于彻底理解题目中搬积木的几个命令的含义,见具体分析 如果还不能理解题意,那么找一个正确通过的代码,编译并输入测试数据,查看其每一个命令的执行情况。如我的代码中162行注…

调整灰度图像的大小,而无需在Python中使用任何内置函数

In this program, we will be using two functions of OpenCV-python (cv2) module. Lets see their syntax and descriptions first. 在此程序中,我们将使用OpenCV-python(cv2)模块的两个功能。 首先让我们看看它们的语法和说明。 1) imread():It takes an absolu…

第一章 认识计算机

*(%)^*&!*第一讲 了解计算机基础知识一、计算机的发展历程1、计算机的起源(1)世界上第一台计算机:1946年诞生,名称为ENIAC。(2)世界上第一台并行计算机:1950年诞生,名称为EDVAC&…

scoket多线程例子

大体思路,有n台mc,要dump出数据,n台进行对比,看数据是否一致,设计到同时dump的问题,server断发条指令给这n台mc,mc同时去dump把结果返回给server端,server端把这些结果进行对比serve…

csapp bufbomb实验

csapp (《深入理解计算机系统》&#xff09;一书中有一个关于缓冲区溢出的实验&#xff0c;其程序代码如下&#xff1a; /* Bomb program that is solved using a buffer overflow attack */#include <stdio.h> #include <stdlib.h> #include <ctype.h> #in…

漫画:对象是如何被找到的?句柄 OR 直接指针?

小贴士&#xff1a;想要使用并定位 Java 对象&#xff0c;就要用到 Java 虚拟机栈&#xff08;Java Virtual Machine Stack&#xff09;&#xff0c;它描述的是 Java 方法执行的线程内存模型&#xff1a;每个方法被执行的时候&#xff0c;Java 虚拟机都会同步创建一个栈帧&…

在C ++中检查一个数组是否是另一个数组的子数组

Prerequisite: std::equal() function 先决条件&#xff1a; std :: equal()函数 Problem statement: 问题陈述&#xff1a; Check if one array is subarray of another or not. 检查一个数组是否是另一个数组的子数组。 Example: 例&#xff1a; Input 1:Arr1 [3, 4, 5, …

第二章 认识计算机硬件

*(%)^*&!*第一讲 认识计算机主板一、主板的结构1、主板结构分类&#xff08;2&#xff09;AT、Baby-AT型&#xff08;2&#xff09;ATX型&#xff08;3&#xff09;Micro ATX板型&#xff08;4&#xff09;LPX、NLX、Flex ATX板型&#xff08;5&#xff09;EATX、WATX板型&…

IDEA 不为人知的 5 个骚技巧!真香!

工欲善其事&#xff0c;必先利其器&#xff0c;磊哥最近发现了几个特别棒的 IDEA“骚”技巧&#xff0c;已经迫不及待的想要分享给你了&#xff0c;快上车...1.快速补全行末分号使用快捷键 Shfit Ctrl Enter 轻松实现。2.自带的 HTTP 请求工具IDEA 自带了 HTTP 的测试工具&am…

教育编程语言(转)

这是wikipedia上的内容&#xff0c;转载保存&#xff0c;以便以后查阅&#xff0c;英文版见Educational programming language 主要是介绍了一些适合于教育的编程语言&#xff0c;分别适合于不同的个人需求。 详细内容如下&#xff1a; 许多教育性质的程序设计语言都提供建议…

JavaScript | 将十进制转换为十六进制,反之亦然

Sometimes we need to convert an integer value which is in decimal format to the hexadecimal string in JavaScript or need a decimal value from a given hexadecimal string. 有时&#xff0c;我们需要将十进制格式的整数值转换为JavaScript中的十六进制字符串&#xf…

漫画:Integer 竟然有 4 种比较方法?

代码测试public class IntegerTest {public static void main(String[] args) {Integer i1 127;Integer i2 127;System.out.println(i1 i2);Integer i3 128;Integer i4 128;System.out.println(i3 i4);} }以上代码的执行结果为&#xff1a;truefalse首先&#xff0c;当我…

第三章 组装个人计算机

*(%)^*&!*第一讲 选购个人计算机部件1、计算机配件选购的基本原则&#xff08;1&#xff09;组装电脑按需配置&#xff0c;明确电脑使用范围&#xff1b;&#xff08;2&#xff09;衡量装机预算&#xff1b;&#xff08;3&#xff09;衡量整机运行速度。2、电脑配件选购注意…