ICMP protocol specification: A protocol for network management. Control it, you can think about the mechanism of ping command im

zhaozj2021-02-08  246

Internet Control Information Protocol (ICMP) Introduction In a system called CateNet, the IP protocol is used as a host to the host's datagram. Network connection is ready to be a gateway. These gateways exchange information for control through gateway to gateway protocol (GGP). Typically, the gateway or destination host will communicate with the source host, for example, an error in the data report during the report. For this purpose, ICMP is used. It uses IP to do it in the underlying support. It is like it is a high-level protocol, and in fact it is part of IP, it must be implemented by other IP modules. ICMP messages are sent in the following cases: When the datagram cannot reach the destination, when the gateway has lost the cache function, when the gateway can boot the host on a shorter route. IP is not designed to be desirable to be absolutely reliable, the purpose of this protocol is to return control information when the network has problems, rather than making the IP protocol absolutely reliable, and does not guarantee the data report or control information to return. Some datagrams will still be lost without any report. The upper protocol must use its own error control program to determine if the communication is correct. ICMP information usually reports an error in the processing datagram. To avoid information without restrictions, the ICMP message will not be sent separately, and the ICMP information is transmitted only when the processing datagnet offset is 0. Message format ICMP messages are sent in basic IP headers. The first byte of the data is the ICMP type field; the value of this domain determines the format of its remaining data. Any domain labeled "unused" is for future reservations, and must be all 0 during transmission. Unless otherwise formatted, the Baotou domain is in the following format: version: 4 IHL: Internet head length size is in units of 32. Service Type: 0 Total Length: Leather Length and Data Length. The identity used in the segment, the paragraph offset: is used in the segment. Survival period: In seconds, this domain is reduced at each machine to handle datagrams, this value must be greater than the time to transfer its gateway. Agreement: ICMP = 1 Package check code: 16-bit data reverse code and rework. To calculate the check code, this domain should be 0. In the future, this domain can be replaced. Source address: Create an ICMP information gateway or host address unless it is explained, it can be any gateway address. Destination address: Information The gateway or host address to be sent. Not reached Destination Information Figure 1 IP Domain: Destination Address Not arrival; 4 = need segment and DF settings; 5 = source routing failed; check code: 16-bit data (starting from ICMP type) reverse code and rework. To calculate the check code, the check code domain should be zero. These zeros will be replaced by the check code in the future. Internet Baotou Source Dativity News: The Internet Package plus the head 64 bits of the source data. This data is used to match the host matching information to the corresponding process. If the high-level protocol uses the port number, it should be assumed to be in the 64 bytes of the source data. Description: Corresponding to the gateway routing table, if the network specified in the destination domain is not arrogant, if the network distance is unlimited, the gateway will send a dedicated message to the host of the transmit source data. Moreover, in some networks, the gateway has the ability to determine whether the host is up to. If the destination is unreachable, it will send an irreparable information to the host of the transmitted source data.

At the destination host, if the IP module is unavailable because the specified protocol module and the process port are not available, the destination host will send an unreachable information to the host of the source data. Another situation is that when the datagram must be segmented, the "Inseparable" bit is opened, in which case the gateway must discard this datagram and send it to the host of the transmitted source data. Codes 0, 1, 4, and 5 are transmitted by the gateway, and code 2 and 3 are transmitted by the host. Timeout Information Figure 2 IP Domain: Destination Address: Source Data News Data is obtained. ICMP Domain: Type: 11 Code: 0 = Transfer Timeout; 1 = Segmental stage overtime. Check code: 16-bit data (starting from the ICMP type), the reverse code and rework. To calculate the check code, the check code domain should be zero. These zeros will be replaced by the check code in the future. Internet Baotou 64 Bit Source Data Newspaper: The Internet Baotou plus the head 64 bits of the source data. This data is used for host matching information to the corresponding process. If the high-level protocol uses the port number, it should be assumed to be in the 64 bytes of the source data. Note: If the gateway discovers that the living cycle field is zero when the gateway is processed, this datagram must abandon. The gateway must notify the source host through the timeout information. This data report must be discarded if the host is assembled during the assembly segmentation. The gateway sends timeout information. If the paragraph zero is not available, you don't have to send timeout information. Code 0 is sent by the gateway, and the code 1 is transmitted by the host. Parameter problem message Figure 3 IP field: Destination address: obtained from source data. ICMP Domain: Type: 12 Code: 0 = Pointer Pointing Error. Check code: 16-bit data (starting from the ICMP type), the reverse code and rework. To calculate the check code, the check code domain should be zero. These zeros will be replaced by the check code in the future. Pointer If code = 0, pointing to a problematic byte. Internet Baotou 64-bit source Data News: Internet Baotou 64 Bit Source Data News Data: The Internet Package plus the first 64 bits of source data. This data is used to match the host matching information to the corresponding process. If the high-level protocol uses the port number, it should assume that it is in the 64 bytes of the source data. Note: If the network is or the host finds that the header parameters have an error in the processing of the data report, it must be discarded this datagram. A potential reason can be a variable error. The gateway or host will notify the source host through the parameter problem message, which is only sent when the message is abandoned. The pointer points to the discovery of the wrong data report header byte. Code: Receive 0 from the host or gateway. Source Congestion Message Figure 4 IP Domain: Destination Address: Address and source network of source datastum data. ICMP Domain: Type: 4 Code: 0 Check Code: 16-bit data (starting from the ICMP type) inverse code and rework. To calculate the check code, the check code domain should be zero. These zeros will be replaced by the check code in the future. Internet Baotou 64-bit source Data Newspaper data: Internet Baotou 64-bit source Data Newspaper data: Internet Balance plus the head 64 bits of source data. This data is used to match the host matching information to the corresponding process. If the high-level protocol uses the port number, it should be assumed to be in the first 64 bytes of the source data. Description: If there is no buffering, the gateway will discard the datagram. If the gateway is done, it will send the source congestion message to the send host. If the received data report is too much unable to process, the destination host will also send the corresponding message to the sending host.

This message requires sending a transmission rate to reduce the transmission rate, and the gateway returns the source congestion message to each abandoned message. After receiving this message, the sending host should reduce the transmission rate until the gateway is not received. Source congestion message. After that, the source host can increase the transmission rate until the source congestion message of the destination host is received. The gateway or host will not wait until the limit is exceeded, but it is time to send this message when it is close to its own processing limit, which means that the data report that initiates the source congestion message can still be handled. Code: Receive 0 from the host or gateway. Redirect message Figure 5 IP domain: destination address: The address and source network of source data report data. ICMP Domain: Type: 5 Code: 0 = Redirection Network Data Report; 1 = Redirect the host's datagram; 2 = Detailed duplicate network and service types; 3 = Redirect the network and host type Data report. Check code: 16-bit data (starting from the ICMP type), the reverse code and rework. To calculate the check code, the check code domain should be zero. These zeros will be replaced by the check code in the future. Gateway Internet Address: The gateway address should be sent (which specified in the Internet Data Network Domain of Source Data Data). Internet Baotou 64-bit source Data Newspaper data: Internet Baotou 64-bit source Data Newspaper data: Internet Balance plus the head 64 bits of source data. This data is used for host matching information to the corresponding process. If the high-level protocol uses the port number, it should be assumed to be in the 64 bytes of the source data. Description: The gateway sends a redirect message in the case. The gateway (G1) receives a datagram from the network connected to the gateway, which checks the routing table to get the address (x) of the next gateway (G2). If the G2 and the specified receiving host are on the same network, the redirect message is redirected, and this message is recommended to send the host directly to the gateway G2, because this is closer, and the gateway G1 continues to send this datagram. Because the IP source routing in the datagram is optional, even better routes can sometimes be discovered. Code: The gateway sends 0, 1, 2, and 3. Return or return response message Figure 6 IP domain: Address: The source address of the return message is the destination address of the return response message. To form a feedback response message, the source and destination address should be exchanged, change the type code to 0, and reconstitute check code. IP Domain: Type: 8 Represents a return message; 0 represents the return response message. Code: 0 Check code: 16-bit data (starting from the ICMP type) reverse code and rework. To calculate the check code, the check code domain should be zero. These zeros will be replaced by the check code in the future. Identifier: If code = 0, the code that helps match the feedback and returning response can be 0. Sequence code: If code = 0, the sequence code that helps match the feedback and the return response can be 0. Note: The message received in the return message should return in the returning response message. The identifier and sequence code are used by the return sender to help match the response request. Code: Receive 0 from the host or gateway. Timestamp and Time Stamp Response Message Figure 7 IP Domain: Address: The source address of the timestamp message is the destination address of the timestamp response message. To form a timestamp response message, the source and destination address should be exchanged, change the type code to 14, and re-computer check code. IP domain: Type: 13 represents timestamp messages; 14 represents timestamp response messages.

转载请注明原文地址:https://www.9cbs.com/read-1301.html

New Post(0)