icmp消息类型报告传输

ICMP shares error reporting and devices status by messages. Messages created by ICMP are divided into 2 categories:

ICMP通过消息共享错误报告和设备状态。 ICMP创建的消息分为两类:

1) Error Reporting Messages

1)错误报告消息

These are messages from which the ICMP reports to errors. The list of common error reporting messages is being given below.

这些是ICMP从中报告错误的消息。 常见错误报告消息的列表如下。

  • Destination Unreachable (Code 3):

    无法到达目的地(代码3):

    If a router cannot locate the path for a packet, then in such an event the packet is discarded and the destination is sent to the destination unreachable message.

    如果路由器无法找到数据包的路径,则在这种情况下,数据包将被丢弃,并且将目标发送到目标不可达消息。

  • Source Quench (Code 4):

    源猝灭(代码4):

    As you know the IP does not have the flow control. The Sending device does not have any information about whether the speed forwarded by the data forwarded by the router forwarding and processing host is according to the host. The IP discards some packets when sending speed is high. In this situation ICMP provides flow control and sends source quench messages to source device.

    如您所知,IP没有流量控制。 发送设备没有有关路由器转发和处理主机转发的数据的转发速度是否符合主机的任何信息。 发送速度较高时,IP会丢弃某些数据包。 在这种情况下,ICMP提供流控制并将源淬灭消息发送到源设备。

  • Redirect (Code 5):

    重定向(代码5):

    Because routing is a dynamic process and only routers participate in it, so a host has information about only one router (gateway). So when this host sends a data, then the data will go through that router to the correct router. In this situation, gateway router redirection message will send so that the host's routing information can be updated and the host can send data directly to the correct router.

    因为路由是一个动态过程,并且只有路由器参与,所以主机仅具有有关一个路由器(网关)的信息。 因此,当该主机发送数据时,数据将通过该路由器到达正确的路由器。 在这种情况下,将发送网关路由器重定向消息,以便可以更新主机的路由信息​​,并且主机可以将数据直接发送到正确的路由器。

  • Time Exceeded (Code 11):

    超过时间(代码11):

    A router uses the routing table to forward any packet. If the routing table is not correct and there are errors, then in such an event, the packet roaps only in the loop. To avoid this situation, every packet contains a time to live field. The value of this field decreases on every router. As soon as the value of this field is zero, this packet is discarded by the router. In this situation, the Time Exceeded message is sent to the router source.

    路由器使用路由表转发任何数据包。 如果路由表不正确并且有错误,则在这种情况下,数据包仅在循环中漫游。 为了避免这种情况,每个数据包都包含一个生存时间字段。 该字段的值在每个路由器上都减小。 一旦该字段的值为零,路由器便会丢弃此数据包。 在这种情况下,“超时”消息将发送到路由器源。

  • Parameter Unintelligible (Code 12):

    参数无法理解(代码12):

    If a router or a destination host packet finds a field empty, then discards that packet and sends the parameter unintelligible message to the source.

    如果路由器或目标主机数据包发现字段为空,则丢弃该数据包并将参数“无法理解”消息发送到源。

2) Query Messages

2)查询讯息

These are the messages from which the ICMP queries for the status of a host. The list of common query messages is being given below with their code.

这些是ICMP从中查询主机状态的消息。 常见查询消息的列表及其代码在下面给出。

  • Echo Request (Code 8) & Echo reply (code 0):

    回音请求(代码8)和回音(代码0):

    This pair of Query Messages is used to diagnose problems in the network. Both of these messages determine whether two hosts can communicate with each other or not.

    这对查询消息用于诊断网络中的问题。 这两个消息都确定两个主机是否可以相互通信。

  • Time-stamp Request (Code 13) & Time stamp Reply (Code 14):

    时间戳记请求(代码13)和时间戳回复(代码14):

    The time it takes to travel a host from one host to another host is detected by time stamp request & reply messages.

    通过时间戳请求和答复消息检测将主机从一台主机传输到另一台主机所花费的时间。

  • Address Mask Request (Code 17) & Address Mask Reply (Code 18):

    地址掩码请求(代码17)和地址掩码回复(代码18):

    A host may be aware of its own IP address but it is not necessary that it is aware of its own subnet mask. To know your subnet mask sends the address mask request to the host router and the router sends this host's subnet mask address as the mask reply message. If the host is aware of the router's address, then he sends the request directly to the router, otherwise this request is broadcast.

    主机可能知道其自己的IP地址,但不必知道其自己的子网掩码。 要知道您的子网掩码将地址掩码请求发送到主机路由器,并且路由器会将该主机的子网掩码地址作为掩码回复消息发送。 如果主机知道路由器的地址,则他将请求直接发送到路由器,否则将广播该请求。

ICMP(Internet控制消息协议)消息格式 (ICMP (Internet Control Message Protocol) Message Format )

So far you learned about 2 types of messages sent by ICMP. Let's now try to know the format of ICMP messages. The format of the lower ICMP message is being showcased below:

到目前为止,您了解了ICMP发送的两种消息。 现在,让我们尝试了解ICMP消息的格式。 下层ICMP消息的格式如下所示:

Although ICMP header is different for each message type, 3 fields of the beginning are similar in all messages. The total size of these 3 fields is 4 byte. These fields are being given in detail.

尽管每种消息类型的ICMP头均不同,但是所有消息中开头的3个字段都相似。 这3个字段的总大小为4个字节。 这些字段正在详细说明。

  • Type:

    类型:

    This defines the type of field message. For example, when doing any type of error report, the code related to that error is defined in this field. Similarly if there is a query message then this field will come in that query's code.

    这定义了字段消息的类型。 例如,执行任何类型的错误报告时,都在此字段中定义了与该错误相关的代码。 同样,如果有查询消息,则该字段将出现在该查询的代码中。

  • Code:

    码:

    For error messages, this defines the sub type of field error. For example, if the destination unreachable error has occurred, then the code field will indicate what type of destination is unreachable error such as network unreachable (code 0), host unreachable (code 1) or protocol unreachable (code 2) error etc. These sub types of Errors are also defined by codes.

    对于错误消息,这定义了字段错误的子类型。 例如,如果发生了目的地不可达错误,则代码字段将指示什么类型的目的地不可达错误,例如网络不可达(代码0),主机不可达(代码1)或协议不可达(代码2)错误等。这些错误的子类型也由代码定义。

  • Checksum:

    校验和:

    The checksum is calculated by the header and the data that is used to detect the errors.

    校验和由标头和用于检测错误的数据计算。

  • Rest of the Header:

    标题的其余部分:

    As you know the ICMP message is encapsulated in the IP datagram. Rest of the header section in the ICMP message shows the remaining IP header.

    如您所知,ICMP消息封装在IP数据报中。 ICMP消息中标头部分的其余部分显示了剩余的IP标头。

  • Data:

    数据:

    In the context of error messages, the packet in this section contains the complete information of the packet.

    在错误消息的上下文中,此部分中的数据包包含该数据包的完整信息。

翻译自: https://www.includehelp.com/computer-networks/types-of-icmp-messages-and-icmp-message-format.aspx

icmp消息类型报告传输

icmp消息类型报告传输_ICMP消息的类型和ICMP消息格式相关推荐

  1. java long 对应mybati类型_修改 mybatis-generator 中数据库类型和 Java 类型的映射关系...

    使用 mybatis-generator 发现数据库类型是 tinyint(4) , 生成 model 时字段类型是 Byte ,使用的时候有点不便 数据库的类型和 Model 中 Java 类型的关 ...

  2. Java学习(4)—— 布尔类型、基本数据类型转换、基本数据类型和String类型的转换

    布尔类型 也叫Boolean类型,boolean只允许取true和false. boolean占一个字节. 适用于逻辑运算,流程控制语句. 有默认类型,是false.但是应该声明为成员变量或是静态变量 ...

  3. java long类型判断_Java中的long类型和Long类型比较大小

    Java中我们经常要做一些判断,而对于判断的话,用的最多的便是">"."=="." Java中Long和long的区别 Java的数据类型分为两 ...

  4. 【第3版emWin教程】第42章 emWin6.x窗口管理器之回调消息类型

    教程不断更新中:第3版emWin教程和ThreadX GUIX教程开工,双管齐下,GUIX更新至第28章,emWin更新至第48章(2021-09-13) - uCOS & uCGUI &am ...

  5. 学习ActiveMQ(五):activemq的五种消息类型和三种监听器类型

    一.前面我们一直发送的是字符串类型,其实activemq一共支持五种消息类型: 1.String消息类型:发送者:消费者: 1.String消息类型:发送者:消费者: 1.String消息类型:发送者 ...

  6. 670-聊天服务器和客户端如何保证消息的可靠传输

    如何保证消息的可靠传输? 意思是:客户端把消息发送出去了,只要客户端这里显示他的消息发送成功,就要保证对端一定要收到,要么收不到,客户端就显示发送失败,用户后续选择重新发送消息.如果客户端显示消息发送 ...

  7. dhcp服务器有哪些消息类型,DHCP 协议的 8 种消息类型及功能服务器

    1) 主机发送 DHCP Discover 广播包在网络上寻找 DHCP 服务器: 单播数据包, 地址. 2) DHCP 服务器向主机发送 DHCP Offer 单播数据包,包含 IP 地址.MAC ...

  8. 一种针对SOA的消息类型架构

    SOA治理组织的一个主要目标就是定义能促进开发可重用服务的流程和策略.由此,一个服务治理组织将参与整个服务的生命周期,包括识别.资助.设计.部署.运营.版本管理和退役. \ SOA治理的一个关键问题是 ...

  9. 消息队列(定义、结构、如何创建、消息队列的发送与接收、发送与接收实例)

    一.定义 1.消息队列是一种先进先出的队列型数据结构,实际上是系统内核中的一个内部链表.消息被顺序插入队列中,其中发送进程将消息添加到队列末尾,接受进程从队列头读取消息. 2.多个进程可同时向一个消息 ...

最新文章

  1. 思科认证与华为认证在考题与内容上到底多大差别?
  2. 微软System Center 2012推进私有云计算
  3. vue-router路由示例
  4. 网络与IO知识扫盲(七):仿照Netty工作架构图,手写多路复用模型
  5. SAP CRM呼叫中心activity board的填充逻辑调试
  6. 《JavaScript 高级程序设计》 7.1 正则表达式支持
  7. 【华为云技术分享】【技术总结】从Hash索引到LSM树
  8. JAVA中File转MultiparFile
  9. 黎活明给程序员的忠告(转)
  10. layedit html源码编辑,Kz.layedit-layui.layedit富文本编辑器拓展
  11. colormap保存 matlab_[转载]matlab的colormap的保存
  12. 关于springboot中Cacheable使用说明
  13. 阿诺德给物体加描边_【C4DtoA 27】Arnold渲染器: Toon shader 1/3
  14. opencv------图片转化为视频
  15. Nginx下同域部署多个Vue项目(history路由模式),报404、500错误
  16. C++ vector数据合并去除重复项
  17. gn编译webrtc介绍
  18. 职场的1000+篇文章总结
  19. YOLOv5改进之十七:CNN+Transformer——融合Bottleneck Transformers
  20. isee 处理图片的好工具

热门文章

  1. Linux基础(管道符、重定向、转义字符与环境变量)
  2. python cnn 实例_基于CNN的纹理合成实践【附python实现】
  3. php后台管理员登录密码错误,如果后台管理员的密码错误,我该怎么办,还有两种找回密码的方法...
  4. Angular之ngx-permissions的路由使用
  5. elasticsearch存储空间不足导致索引只读,不能创建
  6. node+socket.io 实现一个聊天室
  7. OpenGL——二维几何变换
  8. centos php 版本升级 至5.3 wordpress3.7
  9. uva 610(tarjan的应用)
  10. repair filesystem 一般是什么引起的和该怎样解决