当前位置:网站首页>Ping message and ICMP message header
Ping message and ICMP message header
2022-07-18 11:10:00 【Fog_ in】
Catalog
ICMP Which layer of agreement ?
ping message
Ping yes ICMP An important application of , It is mainly used to test the connectivity between two hosts .
Ping The principle is to send ICMP Echo Request message , The destination host will send Echo Answer message .Ping The number of successful round trips and the response rate of packets are estimated .


This opportunity sends ICMP Send back the request message (request):
![]()

The remote host will send a reply message after receiving it (reply):
![]()

common ping Instructions , stay linux Under the operating system ,request and reply Of data Are all :!”#$%&’()+,-./01234567.
stay windwos In the environment ,ping Of data Part of it is :abcdefghijklmnopqrstuvwabcdefghi
ICMP Message header
ICMP What kind of agreement ?
“icmp yes Internet Control message protocol . It is TCP/IP A sub protocol of a protocol family , Used in IP host 、 Routing control messages between routers . Control message means that the network is not accessible 、 Whether the host can reach 、 Whether the route is available and so on .” Although these control messages do not transmit user data , But it plays an important role in the transmission of user data .
ICMP Which layer of agreement ?
ICMP It belongs to network layer protocol .ICMP yes “InternetControlMessageProtocol” Abbreviation . It is TCP/IP A sub protocol of the protocol family , Used in IP host 、 Routing control messages between routers . Control message means that the network is not accessible 、 Whether the host can reach 、 Whether the route is available and so on .”
ICMP Port number ?
ICMP It's the control protocol , You don't need a port number .
ICMP Message type
ICMP There are mainly two types of messages : One is error report message (1~127), The other is query message ( The value is greater than 128).
ICMP Message format


About ICMP Message points :
( Refer to (16 Bar message ) 9-ICMP Message type _songly_ The blog of -CSDN Blog _icmp What are the message types )
1. For carrying ICMP Datagram of error message , No longer produce ICMP Error message .
If the host A Sent a ICMP Send the data message to the host B, An error occurred when the data passed through one of the routers during transmission , Because the router has received a ICMP The data packet , So there won't be another ICMP Error message .2. For segmented datagrams , If it's not the first slice , It doesn't produce ICMP Error message
For hosts A Sent a piece of data , If the fragment data received by the routing device or host is not the first fragment data , Will not produce ICMP Error message .3. For datagrams with multicast addresses , Do not produce ICMP Error message
If one ip If the address is a broadcast address , Will not produce ICMP Error message .4. For special addresses, such as (127.0.0.0 or 0.0.0.0) Datagram , Do not produce ICMP Error message
边栏推荐
- How to display the prompt box when the wechat applet is loading?
- redis之redis概念、配置、Sentinel高可用
- MQTT——服务质量Qos
- Course design of traffic light single chip microcomputer
- Written at the end of the recruitment of Huazhong University of science and technology
- The relationship between loss function and maximum likelihood estimation | understanding of cross entropy
- Using off heap memory
- 微信小程序在加载中时如何显示提示框?
- 交通灯 单片机课程设计
- SPFA variant question
猜你喜欢
随机推荐
Detailed steps for installing mysql8 in centos7.9
Buckle practice - 15 rain
Application of generator mode
Issue record: “No thread for socket” about Memcached
Buckle practice - Top 18 K high-frequency elements
Filter
剑指 Offer 64. 求 1 + 2 + … + n
MGRE and GRE comprehensive experiment
直流电机控制系统设计
SPFA variant question
第3章业务功能开发(导入市场活动,apache-poi)
Redis concept, configuration and sentinel high availability of redis
实验三 Servlet 相关技术
mosquitto.h 学习
Ultrasonic ranging OLED display
实验一 图像基本变换
基于ADC0832的电量指示电路
关于线程切换问题的一些思考总结
Pytorch分布式训练
Question v: hannnnah_ j’s Biological Test












