ipv6寻址_什么是IPV4寻址?

ipv6寻址

IPV4寻址简介 (Introduction to IPV4 Addressing )

Internet protocol version 4 in any network, is a standard protocol for assigning a logical address (IP address) to hosts. You are currently using the same protocol. This protocol is capable of providing a unique address to the devices available in this world, but will not be available after a few years. Therefore its advanced version IPV6 has been introduced, which you can read in the tutorial of IPV6.

任何网络中的Internet协议版本4是用于为主机分配逻辑地址(IP地址)的标准协议。 您当前正在使用相同的协议。 该协议能够为这个世界上可用的设备提供唯一的地址,但几年后将不可用。 因此,已经引入了其高级版本IPV6,您可以在IPV6教程中阅读。

The IP address in IPV4 is 32 bits. It is represented in 4 blocks of 8 bits. The lower IPV4 address is represented in both binary and decimal form.

IPV4中的IP地址是32位。 它以4个8位的块表示。 较低的IPV4地址以二进制和十进制形式表示。

 Binary:    11000000.10101000.00001010.00000001
Decimal:   192.168.10.1

These blocks represent networks and hosts. The starting block represents the network and represents the subsequent hosts that how many blocks will represent the network and how many hosts will represent these are defined by classes of IP address. If you want to know more about the format and classes of the IPV4 address, you can read it in the Addressing tutorial.

这些块代表网络和主机。 起始块代表网络,并代表随后的主机,这些主机将由IP地址的类别来定义。 如果您想了解有关IPV4地址格式和类别的更多信息,可以在《寻址》教程中阅读它。

IPV4标头 (IPV4 Header )

Internet Protocol (IP) works on layer 3 (Network Layer). They break the segments (when using TCP as protocol) or datagram (when using UDP as protocol) sent through layer layer 4 (Transport Layer) in packets. After breaking in packets, IP header is attached with these packets. This provides the necessary information receiver side related to the header packet. This information is represented by different fields in the IP header.

Internet协议(IP)在第3层(网络层)上工作。 它们破坏通过数据包的第4层(传输层)发送的段(使用TCP作为协议时)或数据报(使用UDP作为协议时)。 破坏数据包后,这些数据包将附加IP标头。 这提供了与报头分组有关的必要的信息接收方。 此信息由IP标头中的不同字段表示。

The lower IP header is represented by a diagram. After this all the fields have been explained in detail:

下层IP标头由图表表示。 之后,将详细解释所有字段:

IPv4标头图 (IPv4 Header Diagram)

IPv4-Header-Diagram
  1. Version Number:

    版本号:

    The version number of Internet Protocol is used to define the version number field. Here the IPV4 header is being spoken, so the version will also be 4th.

    Internet协议的版本号用于定义版本号字段。 这里说的是IPV4标头,因此版本也是4号。

  2. Header Length:

    标头长度:

    The length of the IP header is defined by this field. The length of the IPV4 header is represented by 32 bit words (with options). If no option is defined in the header then this filed has value of 5 set.

    IP头的长度由该字段定义。 IPV4标头的长度由32位字(带选项)表示。 如果标题中未定义任何选项,则该字段的值设置为5。

  3. Types of Service:

    服务类型:

    This field defines the way by which the router should queue the packets when the packets are waiting to be forwarded. If the priority of a packet is high then this field's value is 1. This packet has 0 value for regular packets.

    此字段定义当数据包等待转发时路由器应将数据包排队的方式。 如果数据包的优先级高,则此字段的值为1。对于常规数据包,此数据包的值为0。

  4. Total Length:

    总长度:

    This field shows the total length of the IP data-gram. Define the header length defines the length of the field header and defines the total length of data-gram, including field data and header. This is a 16 bit field.

    该字段显示IP数据报的总长度。 定义标题长度定义字段标题的长度,并定义数据报的总长度,包括字段数据和标题。 这是一个16位字段。

  5. Identification:

    身份证明:

    This field is the identification of a segment. This is a 16 bit number, which together with the source address uniquely identifies a segment.

    该字段是段的标识。 这是一个16位数字,与源地址一起唯一标识一个段。

  6. Flags:

    标志:

    This field shows whether the router can fragment any segment. This field has 3 bits. The first bit is reserved. If the second bit is set in this field then it means do not fragment and if the field is set to a third bit then it means the segment is fragmented.

    此字段显示路由器是否可以对任何网段进行分段。 该字段具有3位。 第一位保留。 如果在该字段中设置了第二位,则表示不分段;如果该字段设置为第三位,则意味着段已分段。

  7. Fragment Offset:

    片段偏移:

    If the packet is fragmented, then this field shows the starting 8 packs of the original packet. This field is of 13 bits.

    如果数据包是分段的,则此字段显示原始数据包的前8包。 该字段是13位。

  8. Time to Live:

    生存时间:

    This field sets a limit. Let the value of this field be 15. If the packet does not reach the destination even after passing from 15 routers, then that packet is discarded. This is an important field from the perspective of authenthenticity. The size of this field is 8 bits.

    此字段设置限制。 将该字段的值设为15。如果即使从15个路由器经过后数据包仍未到达目的地,则该数据包将被丢弃。 从真实性的角度来看,这是一个重要的领域。 该字段的大小为8位。

  9. Protocol:

    协议:

    This field contains the name of the protocol that passed the packet network layer because for de-multiplexing on the receiver side, it should know which protocol to pass the data.

    该字段包含通过分组网络层的协议的名称,因为为了在接收方进行多路分解,它应该知道要通过哪个协议来传输数据。

  10. Header Checksum:

    标头校验和:

    This field is used to check errors. When the packet is sent from source then this field has a value that is calculated by the algorithm through the header. When this packet reaches the receiver side, then the value is calculated by the same algorithm back to the head if the value matches the source side then it is believed that the packet error is free. This field is of 8 bits.

    此字段用于检查错误。 从源发送数据包时,此字段具有一个值,该值由算法通过标头计算。 当该分组到达接收器侧时,则如果该值与源侧匹配,则通过相同的算法将该值返回头部,则认为该分组错误是免费的。 该字段是8位。

  11. Source IP Address:

    源IP地址:

    This represents the IP address of the field source. The size of this field is 32 bits.

    这表示字段源的IP地址。 该字段的大小为32位。

  12. Destination IP Address:

    目的IP地址:

    The destination address is represented by this field. The size of this field is 32 bits.

    目的地址由该字段表示。 该字段的大小为32位。

  13. Options:

    选项:

    This field represents some options that some packets can use. Although this field is not used, whenever it is used, the header length exceeds 32 bits.

    该字段表示某些数据包可以使用的某些选项。 尽管不使用此字段,但无论何时使用,标题头长度都超过32位。

  14. Data:

    数据:

    This field contains the main data that is passed by the transport layer protocols to the IP.

    该字段包含传输层协议传递给IP的主要数据。

IPV4地址类型 (IPV4 Address Types )

Whenever IPV4 packets are sent or received, they are sent / received by one of the three types given address. Let's us learn about them in detail.

每当发送或接收IPV4数据包时,都会通过三种给定地址类型之一发送/接收IPV4数据包。 让我们详细了解它们。

  • Unicast

    单播

    A unicast address represents a specific host. This type of address represents the specific destination host in the IPV4 packet. This type of address is used for one-to-one communication. For example a host of LAN A will send a packet to a host of LAN B, then it will be called unicast addressing.

    单播地址表示特定的主机。 这种类型的地址代表IPV4数据包中的特定目标主机。 此类地址用于一对一通信。 例如,LAN A的主机将向LAN B的主机发送一个数据包,然后将其称为单播寻址。

  • Multicast

    多播

    Multicast addresses are used to send a packet to more than one host. These are used for one-to-many communication. For example, a host can send a packet to an IP address group in another network. These packets are only received by those hosts that are in the multicast group.

    组播地址用于将数据包发送到多个主机。 这些用于一对多通信。 例如,主机可以将数据包发送到另一个网络中的IP地址组。 这些数据包仅由多播组中的那些主机接收。

  • Broadcast

    广播

    Broadcast addresses are used by IPV4 to spread the packet of a single host across the network. This is a one-to-all communication. For example, a host can send a packet to the other available hosts in the LAN.

    IPV4使用广播地址在网络上传播单个主机的数据包。 这是一对一的通信。 例如,主机可以将数据包发送到LAN中的其他可用主机。

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

ipv6寻址

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

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

相关文章

1593: [Usaco2008 Feb]Hotel 旅馆

1593: [Usaco2008 Feb]Hotel 旅馆 Time Limit: 10 Sec Memory Limit: 64 MBSubmit: 489 Solved: 272[Submit][Status][Discuss]Description 奶牛们最近的旅游计划,是到苏必利尔湖畔,享受那里的湖光山色,以及明媚的阳光。作为整个旅游的策划…

最长递增子序列 子串_最长递增子序列

最长递增子序列 子串Description: 描述: This is one of the most popular dynamic programming problems often used as building block to solve other problems. 这是最流行的动态编程问题之一,通常用作解决其他问题的基础。 Problem statement: 问…

beta版本项目冲刺

项目冲刺第一天项目冲刺第二天项目冲刺第三天项目冲刺第四天项目冲刺第五天项目冲刺第六天项目冲刺第七天转载于:https://www.cnblogs.com/malinlin/p/5006041.html

mkdir 函数_PHP mkdir()函数与示例

mkdir 函数PHP mkdir()函数 (PHP mkdir() function) The full form of mkdir is "Make Directory", the function mkdir() is used to create a directory. mkdir的完整格式为“ Make Directory” , 函数mkdir()用于创建目录。 Syntax: 句法&#xff1a…

WPF自定义控件与样式(5)-Calendar/DatePicker日期控件自定义样式及扩展

原文:WPF自定义控件与样式(5)-Calendar/DatePicker日期控件自定义样式及扩展一.前言 申明:WPF自定义控件与样式是一个系列文章,前后是有些关联的,但大多是按照由简到繁的顺序逐步发布的等,若有不明白的地方可以参考本…

Cookie介绍及使用

Cookie学习: 作用:解决了发送的不同请求的数据共享问题 使用: Cookie的创建和存储//创建Cookie对象Cookie cnew Cookie("mouse","");//设置cookie(可选)//设置有效期c.setMaxAge(int seconds);//设置有效路径c.setPath(String uri);//响应Cookie信息给客…

acm模式_ACM的完整形式是什么?

acm模式ACM:计算机协会 (ACM: Association for Computing Machinery) ACM is an abbreviation of the "Association for Computing Machinery (ACM)". ACM是“计算机协会(ACM)”的缩写 。 It is an international academic association or scholarly soc…

c语言:用%f输出实数,只能得到6位小数及求float型数据的有效位数

1.用%f输出实数&#xff0c;只能得到6位小数。程序&#xff1a;#include<stdio.h>int main(){double a 1.0;printf("%f\n",a/3);return 0;}结果&#xff1a;0.333333请按任意键继续. . .2.float型数据的有效位数。程序&#xff1a;#include<stdio.h>int…

二分法查找算法

二分法查找索引值 二分法查找算法步骤&#xff1a;(前提&#xff1a;查询数组为一组有序数)1、定义低位和高位指针low&#xff0c;high&#xff1b;2、通过判断low和high的所指的数值中间值mid来判断关键值是在高位段还是低位段。例题解析&#xff1a; 查找5的索引值 sum {1,2…

bba70_BBA的完整形式是什么?

bba70BBA&#xff1a;工商管理学士 (BBA: Bachelor of Business Administration) BBA is an abbreviation of Bachelor of Business Administration also spelled as B.B.A. In the field of Business Administration, it is an undergraduate degree program. This is a degre…

Qt和纹理

2019独角兽企业重金招聘Python工程师标准>>> test 转载于:https://my.oschina.net/assange/blog/537631

计算机图形学图形旋转_计算机图形学翻译

计算机图形学图形旋转计算机图形学| 翻译 (Computer Graphics | Translations) Transformation techniques mean to modify the current shape or object in a particular manner. Changing of an object after creation, in terms of position or even size is known as trans…

AP 1532E register   Cisco 2504 AP注册WLC

客户的环境是&#xff1a;WLC是 2504 的AP的型号是 1532E的首先要是版本匹配&#xff0c;那么我们就要查一个兼容性列表&#xff0c;请看附件同时&#xff0c;我们要把WLC的版本升级到AIR-CT2500-K9-8-1-111-0.aes 这个版本&#xff1b;同时由于瘦AP 1532E的版本是 Cisco IOS S…

Python 位运算、判断、循环

位运算 1、原码、反码和补码 计算机内部使用补码来表示 2、按位运算实现快速计算 (1) 通过^(异或)快速交换两个整数。 a^b b^a a^b (2) 通过a&(-a)快速获取a的最后为1 位置的整数。 00 00 01 01 -> 5 & 11 11 10 11 -> -5 - - - 00 00 00 01-> 14、利用位运…

dbms数据库管理系统_数据库管理系统(DBMS)中的视图

dbms数据库管理系统DBMS College professor once realized that students feel sad when they see their friends marks higher than them and it creates a negative impact on them. It gave the Professor an idea to create a view table in his student academic result d…

C#中IDisposable 回收非托管资源

C#中IDisposable 更多2014/9/7 来源&#xff1a;C#学习浏览量&#xff1a;4185学习标签&#xff1a; IDisposable本文导读&#xff1a;C#中IDisposable接口的主要用途是释放非托管资源。当不再使用托管对象时&#xff0c;垃圾回收器会自动释放分配给该对象的内存。但无法预测进…

css导航栏_使用CSS的导航栏

css导航栏CSS | 导航栏 (CSS | Navigation Bar) Developing websites is great but developing a user-friendly website is even greater. So how does one design a user-friendly website? What tools to use? Well, there are many tools to mention which are quite hel…

Python 集合、序列基础知识

集合 Python 中set与dict类似&#xff0c;也是一组key的集合&#xff0c;但不存储value。由于key不能重复&#xff0c;所以&#xff0c;在set中&#xff0c;没有重复的key。 key为不可变类型&#xff0c;即可哈希的值。 num {} print(type(num)) # <class dict> num …

Java代理系列-静态代理

2019独角兽企业重金招聘Python工程师标准>>> 代理模式可以做很多事&#xff0c;像hibernate&#xff0c;spring都使用了代理模式。 spring的aop就是用代理做的。 本系列分为4章&#xff0c;静态代理&#xff0c;动态代理热身&#xff0c;动态代理&#xff0c;cglib代…

什么是证书颁发机构?

CA&#xff1a;证书颁发机构 (CA: Certificate Authority) CA is an abbreviation of the "Certificate Authority". CA是“证书颁发机构”的缩写 。 It is also known as a "certification authority", is a trusted corporation or organization that i…