牵牛花什么时候开| 舌苔厚是什么原因引起的| 月经期间洗澡会有什么影响吗| 肩周炎吃什么药效果最好| 跖疣是什么| zs是什么意思| 九天揽月是什么意思| 结婚有什么好处| 酿酒用什么菌| 胆固醇高应注意什么| 宝子是什么意思| 美国现在是什么时间| 脸色蜡黄是什么原因| 梦见别人送钱给我是什么意思| 66年属马是什么命| 怀孕一个月出血是什么情况| 1992是什么年| 物是人非是什么意思| 喜神是什么意思| 背后长痘痘什么原因| 咽炎要注意什么饮食| 吃什么药能来月经| 96年是什么年| 仓鼠爱吃什么| 上午10点半是什么时辰| 为什么会做噩梦| 每天吃松子有什么好处| 尿管型偏高是什么原因| 胎盘有什么用| 帕金森吃什么药最好| 头上出汗是什么原因| 鱼头炖什么好吃| 九月份是什么星座| 白眼球发黄是什么原因| 微信头像 用什么好| 头部ct能检查出什么| 4月4日是什么日子| 绝经三年了突然又出血了什么原因| 男人梦见鱼是什么征兆| 心肾两虚吃什么中成药| 随诊是什么意思| 自言自语是什么意思| 什么是医学检验技术| 三餐两点什么意思| left什么意思| 属狗男和什么属相最配| cancer是什么意思| 直肠窝积液是什么意思| 鼻子一直流血是什么原因| 什么是肠胃炎| 女性睾酮低意味着什么| 二建什么时候考试| 不将就什么意思| member是什么意思| 晚上睡不着是什么原因引起的| 心跳不规律是什么原因| 西游记有什么故事| 小鸭子吃什么| 低血糖是什么症状| 男性尿道口流脓吃什么药最管用| 为什么叫丁克| ojbk是什么意思| 人为什么会长智齿| 家蛇是什么蛇| 过敏性紫癜什么症状| 爱有什么用| 无非是什么意思| 原味是什么意思| 什么是行政职务| 为什么眨眼睛| 今天什么年| 艾灸肚脐有什么好处| 蹒跚什么意思| 大什么针| 怀孕都有什么症状| 书犹药也下一句是什么| 不时之需是什么意思| 动脉血检查是检查什么| 飞机加什么油| 腰椎间盘突出吃什么药好| sb是什么元素符号| 睡觉流鼻血是什么原因| 零点是什么意思| 石家庄有什么好玩的景点| 扫地僧是什么意思| 火把节什么时候| 馥字五行属什么| 72年属什么的生肖| 囊肿与肿瘤有什么区别| lov是什么意思| 喉咙疼吃什么药| 六月二十六是什么星座| 什么叫肝功能不全| 什么是平舌音| 便血是什么原因| 嗅觉失灵是什么原因| 茅台为什么这么贵| 强制是什么意思| 什么掌不能拍| 1973年属牛是什么命| 疤痕憩室什么意思| 脚趾起水泡是什么原因| 低压高吃什么药| 急得很什么| 什么是换手率| 吃榴莲对身体有什么好处| 中暑是什么感觉| 完璧归赵发生在什么时期| 被跳蚤咬了涂什么药膏| eb病毒iga抗体阳性是什么意思| 灵芝泡水喝有什么功效| 心影稍大是什么意思| 西红柿什么时候吃最好| 宫颈炎有什么症状表现| 12月21号是什么星座| 水解是什么意思| 绿原酸是什么| 刚刚怀孕有什么症状| 登基是什么意思| 磁共振和ct有什么区别| 老年人反复发烧是什么原因引起的| more是什么意思| 营长是什么军衔| 肋骨骨折吃什么药| 为什么会被鬼压床| 肠胃不好吃什么| 孕妇便秘吃什么最快排便| 康健是什么意思| 喝什么茶能降低血糖| 对视是什么意思| 啃手指甲是什么毛病| 珍珠疹是什么原因引起的| 去医院验血挂什么科| 晚上八点到九点是什么时辰| 口交是什么| 11月5号是什么星座| 飞蚊症滴什么眼药水| 大便颗粒状是什么原因| 肝郁有什么症状| 庆帝为什么杀叶轻眉| 晚上为什么不能剪指甲| 喝什么助眠| 双胞胎是什么意思| 相位是什么意思| 霸王别姬是什么菜| 鹦鹉拉稀吃什么药| 人参果总皂苷是什么| 杜甫被后人称为什么| 作灶什么意思| 为什么吃火龙果会拉肚子| 国历是什么意思| 梦到蛇预示着什么意思| 藿香正气水有什么功效| 走青是什么意思| 一个王一个月念什么| 物上代位性是什么意思| 有什么症状是肯定没怀孕| 二级以上医院是什么意思| 花是植物的什么器官| 阴道撕裂用什么药| xo什么意思| 冰箱灯不亮是什么原因| 才高八斗是指什么生肖| 井底之蛙的寓意是什么| 胎盘吃了对身体有什么好处| 者羽念什么| 手到擒来是什么意思| 止血敏又叫什么| 100mg是什么意思| dior是什么意思| 为盼是什么意思| 肢体麻木是什么原因| 每天跳绳有什么好处| 羞明畏光是什么意思| 经常流鼻血是什么病| 下焦湿热吃什么药| 教头菜有什么功效| 燕窝补什么| 表妹是什么意思| 5月14日什么星座| 前列腺彩超能查出什么| 大难不死的生肖是什么| 左胸下面是什么部位| 蚊子怕什么| 去非洲要打什么疫苗| 幽门螺杆菌吃什么药最好| 为什么痣上面会长毛| 初秋的天冰冷的夜是什么歌| 什么是虫草| 流鼻血去药店买什么药| 咳嗽有白痰吃什么药| 王维是诗什么| 生殖科是检查什么的| 理工男是什么意思啊| 乳酸杆菌是什么| 西洋参可以和什么一起泡水喝| 9.11是什么星座| 胃酸过多吃什么| 炖鸡汤放什么调料| 蚊子喜欢什么气味| 换肾是什么病| 梦见大狼狗是什么意思| 毛遂自荐什么意思| 白眼球发黄是什么原因| 医保什么时候到账| 五心烦热是什么意思| 宝宝肌张力高会有什么影响| 膳食纤维是什么| 1985年海中金命缺什么| 雌二醇低吃什么补得快| c代表什么| 阳字属于五行属什么| 日龙包是什么意思| 无痛肠镜和普通肠镜有什么区别| 攥是什么意思| 甜瓜是什么瓜| 真好是什么意思| 电离辐射是指什么| 前白蛋白高是什么意思| 卵巢分泌什么激素| 什么叫早教| 叔叔老婆叫什么| 青出于蓝是什么意思| 情愫什么意思| cnv是什么意思| 胃溃疡是什么意思| 矫正是什么意思| 胡子白了是什么原因| 榴莲壳有什么作用| 结肠炎是什么症状| 脑回路什么意思| 白色裤子配什么上衣| 血脂高胆固醇高吃什么食物最好| 视力s和c代表什么| 诸葛亮是什么生肖| 丑时属什么| 口是什么生肖| 水瓶座是什么象| clinique是什么牌子的化妆品| 什么的鱼| 感冒可以吃什么| 苯三酚注射有什么用| 男性粘液丝高什么原因| 大理寺卿是什么职位| 阴囊瘙痒用什么药最好| 手指关节疼痛用什么药| 刮痧用的油是什么油| 脾虚湿气重吃什么药| 健脾祛湿吃什么药效果最好| 晚上右眼跳是什么预兆| 频繁什么意思| 本来无一物何处惹尘埃是什么意思| yy飞机票是什么| 落花生是什么意思| 吩咐是什么意思| 胎教什么时候开始最好| 高锰酸钾加什么会爆炸| 2019属什么| 乳腺结节是什么| 摩羯座跟什么星座最配| TB是什么缩写| 四月八日是什么星座| 洗脑是什么意思| 高考移民是什么意思| 百度
百度 嗜球鞋如本命的她可以说是非常喜欢买运动鞋了!从入门级别的Nike、Converse到潮人都在追的Balenciaga、Yzeezy,简直可以Hold住各种百变的穿搭风格!Vibrate皮质圆环棒球帽官网售价:约1183元Burberry鸟纹纽扣羊毛混纺军风大衣官网售价:17500元Supreme豹纹腰包官网售价:约800元Balenciaga袜靴Re/Done白色印花T恤NobodyDenim粉色牛仔外套NobodyDenim破洞牛仔裤Longchamp手袋Prada球鞋▼▽▼帽子▼▽▼如果要凰尚票选出娜比最爱的凹造型的入门单品,那非帽子莫属了~不仅可以让屏幕前的小仙女免去出门不想洗头的尴尬,还能轻松地为造型加分▼Vibrate黑色棒球帽官网售价:约415元Burberry双面两用混合格纹羊毛混纺大衣官网售价:23500元Chanel大号流浪包官网售价:30700元NikeAirZoomStrong2女子训练鞋官网售价:869元Zara基本款海军帽官网售价:159元Off-White长款毛衣MiuMiu拼贴夹克Balenciaga黑色手袋官网售价:10021元早晚温差比较大的早春时节与针织帽非常契合,尖顶的造型还能很好地修饰脸型哟~复古优雅的贝雷帽自带英伦范儿,很容易给人文静又优雅的感觉▼随着街头运动风潮的复兴,渔夫帽也再度被小仙女们宠幸▼所有帽饰中,最不挑人的款式就是鸭舌帽啦!既可以演绎出帅气的街头风,又能打造出甜美感,真是百搭的不得了!扒了这么多娜比的Ins私服,不知道你最种草的是哪一款单品呢?如果你还想看到哪位明星私服的盘点,不妨也留言告诉凰尚哟!么么哒~

The Internet Control Message Protocol (ICMP) is a supporting protocol[2] in the Internet protocol suite. It is used by network devices, including routers, to send error messages and operational information indicating success or failure when communicating with another IP address. For example, an error is indicated when a requested service is not available or that a host or router could not be reached.[3] ICMP differs from transport protocols such as TCP and UDP in that it is not typically used to exchange data between systems, nor is it regularly employed by end-user network applications (with the exception of some diagnostic tools like ping and traceroute).

Internet Control Message Protocol
Communication protocol
A general header for ICMPv4
PurposeAuxiliary protocol for IPv4[1]:?52?
Developer(s)DARPA
Introduction1981; 44?years ago?(1981)
OSI layerNetwork layer
RFC(s)792

A separate Internet Control Message Protocol (called ICMPv6) is used with IPv6.[4]

Technical details

edit

ICMP is part of the Internet protocol suite as defined in RFC 792. ICMP messages are typically used for diagnostic or control purposes or generated in response to errors in IP operations (as specified in RFC 1122). ICMP errors are directed to the source IP address of the originating packet.[3]

For example, every device (such as an intermediate router) forwarding an IP datagram first decrements the time to live (TTL) field in the IP header by one. If the resulting TTL is 0, the packet is discarded and an ICMP time exceeded message is sent to the datagram's source address.

Many commonly used network utilities are based on ICMP messages. The traceroute command can be implemented by transmitting IP datagrams with specially set IP TTL header fields, and looking for ICMP time exceeded in transit and destination unreachable messages generated in response. The related ping utility is implemented using the ICMP echo request and echo reply messages.

ICMP uses the basic support of IP as if it were a higher-level protocol, however, ICMP is actually an integral part of IP. Although ICMP messages are contained within standard IP packets, ICMP messages are usually processed as a special case, distinguished from normal IP processing. In many cases, it is necessary to inspect the contents of the ICMP message and deliver the appropriate error message to the application responsible for transmitting the IP packet that prompted the ICMP message to be sent.

ICMP is a network-layer protocol; this makes it a layer 3 protocol in the seven-layer OSI model. Based on the four-layer TCP/IP model, ICMP is an internet-layer protocol, which makes it a layer 2 protocol in the Internet Standard RFC 1122 TCP/IP four-layer model or a layer 3 protocol in the modern five-layer TCP/IP protocol definitions (by Kozierok, Comer, Tanenbaum, Forouzan, Kurose, Stallings).[citation needed]

There is no port number associated with an ICMP packet, as these numbers are associated with protocols in the transport layer above, such as TCP and UDP.[5]

Datagram structure

edit

The ICMP packet is encapsulated in an IPv4 packet.[3] The packet consists of header and data sections.

edit

The ICMP header starts after the IPv4 header and is identified by its protocol number, 1.[6] All ICMP packets have an eight-byte header and variable-sized data section. The first four bytes of the header have fixed format, while the last four bytes depend on the type and code of the ICMP packet.[3]

ICMP header format
Offset Octet 0 1 2 3
Octet Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 0 Type Code Checksum
4 32 Rest of Header
Type: 8 bits
ICMP type, see §?Control messages.
Code: 8 bits
ICMP subtype, see §?Control messages.
Checksum: 16 bits
Internet checksum[7] for error checking, calculated from the ICMP header and data with value 0 substituted for this field.
Rest of Header: 32 bits
Four-byte field, contents vary based on the ICMP type and code.

Data

edit

ICMP error messages contain a data section that includes a copy of the entire IPv4 header, plus at least the first eight bytes of data from the IPv4 packet that caused the error message. The length of ICMP error messages should not exceed 576 bytes.[1] This data is used by the host to match the message to the appropriate process. If a higher level protocol uses port numbers, they are assumed to be in the first eight bytes of the original datagram's data.[2]

The variable size of the ICMP packet data section has been exploited. In the "Ping of death", large or fragmented ICMP packets are used for denial-of-service attacks. ICMP data can also be used to create covert channels for communication. These channels are known as ICMP tunnels.

Control messages

edit

Control messages are identified by the value in the type field. The code field gives additional context information for the message. Some control messages have been deprecated since the protocol was first introduced.

Notable control messages[8][9]
Type Code Status Description
0 – Echo Reply[2]:?14? 0 Echo reply (used to ping)
1 and 2 unassigned Reserved
3 – Destination Unreachable[2]:?4?[8] 0 Destination network unreachable
1 Destination host unreachable
2 Destination protocol unreachable
3 Destination port unreachable
4 Fragmentation required, and DF flag set
5 Source route failed
6 Destination network unknown
7 Destination host unknown
8 Source host isolated
9 Network administratively prohibited
10 Host administratively prohibited
11 Network unreachable for ToS
12 Host unreachable for ToS
13 Communication administratively prohibited
14 Host Precedence Violation
15 Precedence cutoff in effect
4 – Source Quench 0 deprecated[10] Source quench (congestion control)
5 – Redirect Message 0 Redirect Datagram for the Network
1 Redirect Datagram for the Host
2 Redirect Datagram for the ToS & network
3 Redirect Datagram for the ToS & host
6 deprecated[11] Alternate Host Address
7 unassigned Reserved
8 – Echo Request 0 Echo request (used to ping)
9 – Router Advertisement 0 Router Advertisement
10 – Router Solicitation 0 Router discovery/selection/solicitation
11 – Time Exceeded[2]:?6? 0 Time to live (TTL) expired in transit
1 Fragment reassembly time exceeded
12 – Parameter Problem: Bad IP header 0 Pointer indicates the error
1 Missing a required option
2 Bad length
13 – Timestamp 0 Timestamp
14 – Timestamp Reply 0 Timestamp reply
15 – Information Request 0 deprecated[11] Information Request
16 – Information Reply 0 deprecated[11] Information Reply
17 – Address Mask Request 0 deprecated[11] Address Mask Request
18 – Address Mask Reply 0 deprecated[11] Address Mask Reply
19 unassigned Reserved for security
20 through 29 unassigned Reserved for robustness experiment
30 – Traceroute 0 deprecated[11] Information Request
31 deprecated[11] Datagram Conversion Error
32 deprecated[11] Mobile Host Redirect
33 deprecated[11] Where-Are-You (originally meant for IPv6)
34 deprecated[11] Here-I-Am (originally meant for IPv6)
35 deprecated[11] Mobile Registration Request
36 deprecated[11] Mobile Registration Reply
37 deprecated[11] Domain Name Request
38 deprecated[11] Domain Name Reply
39 deprecated[11] SKIP Algorithm Discovery Protocol, Simple Key-Management for Internet Protocol
40 Photuris, Security failures
41 Experimental ICMP for experimental mobility protocols such as Seamoby.[12]
42 – Extended Echo Request[13] 0 Request Extended Echo
43 – Extended Echo Reply[13] 0 No Error
1 Malformed Query
2 No Such Interface
3 No Such Table Entry
4 Multiple Interfaces Satisfy Query
44 through 252 unassigned Reserved
253 Experimental RFC3692-style Experiment 1[14]
254 Experimental RFC3692-style Experiment 2[14]
255 unassigned Reserved

Source quench

edit

Source Quench requests that the sender decrease the rate of messages sent to a router or host. This message may be generated if a router or host does not have sufficient buffer space to process the request, or may occur if the router or host buffer is approaching its limit.

Data is sent at a very high speed from a host or from several hosts at the same time to a particular router on a network. Although a router has buffering capabilities, the buffering is limited to within a specified range. The router cannot queue any more data than the capacity of the limited buffering space. Thus if the queue gets filled up, incoming data is discarded until the queue is no longer full. But as no acknowledgement mechanism is present in the network layer, the client does not know whether the data has reached the destination successfully. Hence some remedial measures should be taken by the network layer to avoid these kind of situations. These measures are referred to as source quench.

In a source quench mechanism, the router sees that the incoming data rate is much faster than the outgoing data rate, and sends an ICMP message to the clients, informing them that they should slow down their data transfer speeds or wait for a certain amount of time before attempting to send more data. When a client receives this message, it automatically slows down the outgoing data rate or waits for a sufficient amount of time, which enables the router to empty the queue. Thus the source quench ICMP message acts as flow control in the network layer.

Since research suggested that "ICMP Source Quench [was] an ineffective (and unfair) antidote for congestion",[10] routers' creation of source quench messages was deprecated in 1995 by RFC 1812. Furthermore, forwarding of and any kind of reaction to (flow control actions) source quench messages was deprecated from 2012 by RFC 6633.

Source quench message[2]:?9?
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type = 4 Code = 0 Checksum
unused
IP header and first 8 bytes of original datagram's data

Where:

Type must be set to 4
Code must be set to 0
IP header and additional data is used by the sender to match the reply with the associated request

Redirect

edit
?
An example of how an ICMPv4 redirect message works

Redirect requests data packets be sent on an alternative route. ICMP Redirect is a mechanism for routers to convey routing information to hosts. The message informs a host to update its routing information (to send packets on an alternative route). If a host tries to send data through a router (R1) and R1 sends the data on another router (R2) and a direct path from the host to R2 is available (that is, the host and R2 are on the same subnetwork), then R1 will send a redirect message to inform the host that the best route for the destination is via R2. The host should then change its route information and send packets for that destination directly to R2. The router will still send the original datagram to the intended destination.[15] However, if the datagram contains routing information, this message will not be sent even if a better route is available. RFC 1122 states that redirects should only be sent by gateways and should not be sent by Internet hosts.

Redirect message[2]:?11?
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type = 5 Code Checksum
IP address
IP header and first 8 bytes of original datagram's data

Where:

Type must be set to 5.
Code specifies the reason for the redirection, and may be one of the following:
Code Description
0 Redirect for Network
1 Redirect for Host
2 Redirect for Type of Service and Network
3 Redirect for Type of Service and Host
IP address is the 32-bit address of the gateway to which the redirection should be sent.
IP header and additional data is included to allow the host to match the reply with the request that caused the redirection reply.

Time exceeded

edit

Time Exceeded is generated by a gateway to inform the source of a discarded datagram due to the time to live field reaching zero. A time exceeded message may also be sent by a host if it fails to reassemble a fragmented datagram within its time limit.

Time exceeded messages are used by the traceroute utility to identify gateways on the path between two hosts.

Time exceeded message[2]:?5?
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type = 11 Code Checksum
unused
IP header and first 8 bytes of original datagram's data

Where:

Type must be set to 11
Code specifies the reason for the time exceeded message, include the following:
Code Description
0 Time-to-live exceeded in transit.
1 Fragment reassembly time exceeded.
IP header and first 64 bits of the original payload are used by the source host to match the time exceeded message to the discarded datagram. For higher-level protocols such as UDP and TCP the 64-bit payload will include the source and destination ports of the discarded packet.

Timestamp

edit

Timestamp is used for time synchronization. The originating timestamp is set to the time (in milliseconds since midnight) the sender last touched the packet. The receive and transmit timestamps are not used.

Timestamp message[2]:?15?
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type = 13 Code = 0 Checksum
Identifier Sequence number
Originate timestamp
Receive timestamp
Transmit timestamp

Where:

Type must be set to 13
Code must be set to 0
Identifier and Sequence Number can be used by the client to match the timestamp reply with the timestamp request.
Originate timestamp is the number of milliseconds since midnight Universal Time (UT). If a UT reference is not available the most-significant bit can be set to indicate a non-standard time value.

Timestamp reply

edit

Timestamp Reply replies to a Timestamp message. It consists of the originating timestamp sent by the sender of the Timestamp as well as a receive timestamp indicating when the Timestamp was received and a transmit timestamp indicating when the Timestamp reply was sent.

Timestamp reply message[2]:?15?
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type = 14 Code = 0 Checksum
Identifier Sequence number
Originate timestamp
Receive timestamp
Transmit timestamp

Where:

Type must be set to 14
Code must be set to 0
Identifier and Sequence number can be used by the client to match the reply with the request that caused the reply.
Originate timestamp is the time the sender last touched the message before sending it.
Receive timestamp is the time the echoer first touched it on receipt.
Transmit timestamp is the time the echoer last touched the message on sending it.
All timestamps are in units of milliseconds since midnight UT. If the time is not available in milliseconds or cannot be provided with respect to midnight UT then any time can be inserted in a timestamp provided the high order bit of the timestamp is also set to indicate this non-standard value.

The use of Timestamp and Timestamp Reply messages to synchronize the clocks of Internet nodes has largely been replaced by the UDP-based Network Time Protocol and the Precision Time Protocol.[16]

Address mask request

edit

Address mask request is normally sent by a host to a router in order to obtain an appropriate subnet mask.

Recipients should reply to this message with an Address mask reply message.

Address mask request
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type = 17 Code = 0 Checksum
Identifier Sequence number
Address mask

Where:

Type must be set to 17
Code must be set to 0
Address mask can be set to 0

ICMP Address Mask Request may be used as a part of reconnaissance attack to gather information on the target network, therefore ICMP Address Mask Reply is disabled by default on Cisco IOS.[17]

Address mask reply

edit

Address mask reply is used to reply to an address mask request message with an appropriate subnet mask.

Address mask reply
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Type = 18 Code = 0 Checksum
Identifier Sequence number
Address mask

Where:

Type must be set to 18
Code must be set to 0
Address mask should be set to the subnet mask

Destination unreachable

edit

Destination unreachable is generated by the host or its inbound gateway[2] to inform the client that the destination is unreachable for some reason. Reasons for this message may include: the physical connection to the host does not exist (distance is infinite); the indicated protocol or port is not active; the data must be fragmented but the 'don't fragment' flag is on.[18] Unreachable TCP ports notably respond with TCP RST rather than a destination unreachable type 3 as might be expected. Destination unreachable is never reported for IP multicast transmissions.

Destination unreachable message[2]:?4?[19]
Offset Octet 0 1 2 3
Octet Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 0 Type (3) Code Checksum
4 32 Unused (Length) (Next-hop MTU)
8 64 IP header and first bytes of original datagram's data
? ?
572 4576

With the following field contents:

Type: 8 bits; Type == 3
A value of 3 indicates 'Destination unreachable'.
Code: 8 bits
This specifies the type of error, and can be any of the following:[8]
Code Description
0 Network unreachable error.
1 Host unreachable error.
2 Protocol unreachable error (the designated transport protocol is not supported).
3 Port unreachable error (the designated protocol is unable to inform the host of the incoming message).
4 The datagram is too big. Packet fragmentation is required but the 'don't fragment' (DF) flag is on.
5 Source route failed error.
6 Destination network unknown error.
7 Destination host unknown error.
8 Source host isolated error.
9 The destination network is administratively prohibited.
10 The destination host is administratively prohibited.
11 The network is unreachable for Type Of Service.
12 The host is unreachable for Type Of Service.
13 Communication administratively prohibited (administrative filtering prevents packet from being forwarded).
14 Host precedence violation (indicates the requested precedence is not permitted for the combination of host or network and port).
15 Precedence cutoff in effect (precedence of datagram is below the level set by the network administrators).
Unused: 8 - 32 bits; Unused == 0
Unused, must be set to zero. If Length or Next-hop MTU are not used, they are considered part of this field.
Length: 8 bits
Optional. The Length field indicates the length of the original datagram data, in 32-bit words. This allows this ICMP message to be extended with extra information. If used, the original datagram data must be padded with zeroes to the nearest 32-bit boundary.
Next-hop MTU: 16 bits
Optional. Contains the MTU of the next-hop network if a code 4 error occurs.
IP header and data: 20 - 568 bytes
The IP header (20 bytes) and at most 548 bytes of the start of the original datagram (as not to exceed the minimum IPv4 reassembly buffer size). If this message is extended then this field must contain at least 128 bytes of original datagram data (padded with zeroes if necessary).
These data are included to allow the client to match the reply with the request that caused the Destination unreachable reply.

Extensions

edit

ICMP messages can be extended with extra information. This information is carried in one or more Extension Objects, which are preceded by an ICMP Extension Header.[19]

ICMP Extension Header
Offset Octet 0 1 2 3
Octet Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 0 Version Reserved Checksum
4 32 Extension Objects
8 64
? ?
Version: 4 bits; Version == 2
Extension header version.
Reserved: 12 bits; Reserved == 0
Reserved.
Checksum: 16 bits
Checksum over this header and all extension objects. This field itself is included, so it is set to zero while performing the calculation.

Extension objects have the following general structure:

Extension object header
Offset Octet 0 1 2 3
Octet Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
0 0 Length Class-Num C-Type
4 32 (Object payload)
8 64
? ?
Length: 16 bits
The length of the object in octets, including the header.
Class-Num: 8 bits
Identifies the object's class.
C-Type: 8 bits
Identifies the object's subtype.
Object payload: Variable
Optional payload. If nonempty, it contains a data structure, which size is a multiple of 32 bits.

See also

edit

References

edit
  1. ^ a b F. Baker, ed. (June 1995). Requirements for IP Version 4 Routers. Network Working Group. doi:10.17487/RFC1812. RFC 1812. Proposed Standard. Obsoletes RFC?1716 and 1009. Updated by RFC?2644 and 6633.
  2. ^ a b c d e f g h i j k l J. Postel (September 1981). INTERNET CONTROL MESSAGE PROTOCOL - DARPA INTERNET PROGRAM PROTOCOL SPECIFICATION. Network Working Group. doi:10.17487/RFC0792. STD 5. RFC 792. Internet Standard 5. Updates RFC?760, 777, IENs 109, 128. Updated by RFC?950, 4884, 6633 and 6918.
  3. ^ a b c d Forouzan, Behrouz A. (2007). Data Communications And Networking (Fourth?ed.). Boston: McGraw-Hill. pp.?621–630. ISBN?978-0-07-296775-3.
  4. ^ A. Conta; S. Deering (March 2006). M. Gupta (ed.). Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification. Network Working Group. doi:10.17487/RFC4443. STD 89. RFC 4443. Internet Standard 89. Obsoletes RFC?2463. Updates RFC?2780. Updated by RFC?4884.
  5. ^ "The OSI Model's Seven Layers Defined and Functions Explained". Microsoft Support. Retrieved 2025-08-14.
  6. ^ "Protocol Numbers". Internet Assigned Numbers Authority. Retrieved 2025-08-14.
  7. ^ R. Braden; D. Borman; C. Partridge (September 1988). Computing the Internet Checksum. Network Working Group. doi:10.17487/RFC1071. RFC 1071. Informational. Updated by RFC?1141.
  8. ^ a b c "Internet Control Message Protocol (ICMP) Parameters". IANA. 2025-08-14. Retrieved 2025-08-14.
  9. ^ Kurose, J.F; Ross, K.W. (2006). Computer Networking: A Top-Down Approach. World student series. Addison-Wesley. ISBN?9780321418494.
  10. ^ a b F. Gont (May 2012). Deprecation of ICMP Source Quench Messages. Internet Engineering Task Force. doi:10.17487/RFC6633. ISSN?2070-1721. RFC 6633. Proposed Standard. Updates RFC?792, 1122 and 1812.
  11. ^ a b c d e f g h i j k l m n o F. Gont; C. Pignataro (April 2013). Formally Deprecating Some ICMPv4 Message Types. Internet Engineering Task Force. doi:10.17487/RFC6918. ISSN?2070-1721. RFC 6918. Proposed Standard. Obsoletes RFC?1788. Updates RFC?792 and 950.
  12. ^ J. Kempf (July 2005). Instructions for Seamoby and Experimental Mobility Protocol IANA Allocations. doi:10.17487/RFC4065. RFC 4065. Experimental.
  13. ^ a b R. Bonica; R. Thomas; J. Linkova; C. Lenart; M. Boucadair (February 2018). PROBE: A Utility for Probing Interfaces. Internet Engineering Task Force. doi:10.17487/RFC8335. ISSN?2070-1721. RFC 8335. Proposed Standard. Updates RFC?4884.
  14. ^ a b B. Fenner (November 2006). Experimental Values in IPv4, IPv6, ICMPv4, ICMPv6, UDP, and TCP Headers. IETF Network Working Group. doi:10.17487/RFC4727. RFC 4727. Proposed Standard.
  15. ^ "When Are ICMP Redirects Sent?". Cisco Systems. 2025-08-14. Retrieved 2025-08-14.
  16. ^ D.L. Mills (September 1985). Network Time Protocol (NTP). doi:10.17487/RFC0958. RFC 958. It is evolved from the Time Protocol and the ICMP Timestamp message and is a suitable replacement for both.
  17. ^ "Cisco IOS IP Command Reference, Volume 1 of 4: Addressing and Services, Release 12.3 - IP Addressing and Services Commands: ip mask-reply through ip web-cache". Cisco Systems. Archived from the original on 2025-08-14. Retrieved 2025-08-14.
  18. ^ J. Mogul; S. Deering (November 1990). Path MTU Discovery. Network Working Group. doi:10.17487/RFC1191. RFC 1191. Draft Standard. Obsoletes RFC?1063.
  19. ^ a b R. Bonica; D. Gan; D. Tappan; C. Pignataro (April 2007). Extended ICMP to Support Multi-Part Messages. Network Working Group. doi:10.17487/RFC4884. RFC 4884. Proposed Standard. Updates RFC?792 and 4443. Updated by RFC?8335.
edit
血脂高适合吃什么食物 ahc属于什么档次 皮笑肉不笑是什么生肖 攀缘是什么意思 蟹爪兰什么时候开花
精子不液化吃什么药 有什么好看的三级片 猪心炖什么治失眠 知更鸟是什么鸟 脸颊两边长斑是什么原因
熊是什么生肖 讨好的笑是什么笑 雾化用什么药 月光蓝是什么颜色 金银花入什么经
吃什么减肥效果最好 运动不出汗是什么原因 肌肉紧张是什么症状 过氧化氢是什么意思 什么是精液
久坐脚肿是什么原因hcv8jop3ns4r.cn 8000年前是什么朝代hcv9jop1ns1r.cn 心里难受想吐是什么原因hcv9jop2ns1r.cn 什么时候恢复的高考hcv9jop6ns1r.cn 转氨酶异常有什么症状xscnpatent.com
什么叫桑黄chuanglingweilai.com 奥美拉唑是治什么病的hcv7jop6ns5r.cn 职业年金有什么用hcv8jop4ns1r.cn 三伏天什么意思hcv7jop9ns0r.cn 10月25是什么星座hcv9jop8ns3r.cn
水鸭是什么鸭hcv9jop4ns7r.cn 抗结剂对人有什么伤害hcv8jop4ns0r.cn chest是什么意思hcv9jop0ns1r.cn 晖字五行属什么hcv8jop0ns7r.cn 银屑病是什么引起的96micro.com
康斯坦丁是什么意思hcv8jop4ns2r.cn 口水歌是什么意思hcv8jop4ns9r.cn 腹泻便溏是什么意思inbungee.com 白细胞高是什么意思hcv8jop1ns1r.cn 戒指丢了暗示着什么hcv9jop2ns4r.cn
百度