[Introduction] In systems called CateNet, the IP protocol is used as a host to the host's data newspaper service. Network connection devices are called gateways. 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 as the underlying support, as if it is a high-level protocol, and it is actually part of IP, and each IP module must implement ICMP. 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 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 that the data report or control information can return. Some datagrams will still be lost without any reports. 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 message is sent in the basic IP header. The first byte of the data is an ICMP type field; this domain value determines the format of the remaining data. Any domain labeled "unused" is for future reservations, and must be all 0 during transmission. Unless in individual formats, the Baotou domain is formatted:. Version: 4. IHL: The internet header size is in units of 32. . Service type: 0. Total length: Leather length and data length. . Identification, Sign (Flags), Segment Offset: Use when segmented. . 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. Baotou 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.
[Destination Information] Figure 1IP Domain: Destination Address, Sending Original Data Data Network Address ICMP Domain:. Type: 3. Code: 0 = network is not arrival; 1 = host is not reached; 2 = protocol is not available; 3 = Port is not arrogant; 4 = require segment and DF settings; 5 = source routing failed; 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 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. The other 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 an irreparable information to the host data of the 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 2IP Domain: Destination Address: Source Data News Data is obtained. ICMP domain:. Type: 11. Code: 0 = Transfer timeout; 1 = Segment stage dressing timeout. . 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 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. . 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 3IP domain: Destination address: obtained from source data. ICMP domain:. Type: 12. Code: 0 = Pointer pointer points. . 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, point to the problem with a problem.
. 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 64 bytes of the source data. . Note: If the gateway or host finds that the header parameter is wrong when the datagram is handled, it must not complete the job, it must abandon 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 error data 报 包 头 字 (may be the middle of the option). For example, 1 means that the service type has an error. If there is an option, 20 indicates that the type of the first option has an error. Code 0 may be received from the host or gateway. [Source Congestion Message] Figure 4IP Domain: Destination Address: Address and Source Network of Source Data News. ICMP domain:. Type: 4. Code: 0. 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 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 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 0 may be received from the host or gateway. [Redirection Message] Figure 5IP Domain: Destination Address: Address and Source Network of Source Data News Data. ICMP domain:. Type: 5. Code: 0 = Redirect network data report; 1 = Redirect the host's Data report; 2 = Detailed Data report for 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: The Internet Baotou 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: 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 G2 and the specified receiving host are issued on the same network, the redirect message is issued. 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. Codes 0, 1, 2, and 3 may be sent from the gateway. [Recycling or Retile Response Message] Figure 6IP 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. ICMP 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), 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. . 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 codes are used by the return sender to help match the response request. Code 0 may be received from the host or gateway. [Time Stamp and Time Stamp Response Message] Figure 7IP 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. ICMP domain:. Type: 13 represents a timestamp message; 14 represents the timestamp response message. . Code: 0. 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. . Identifier: If code = 0, the code to help match the timestamp and timestamp response can be 0. . Sequence code: If code = 0, help match the timestamp and timestamp response can be 0. . Description: The received timestamp is attached to the response, and the time is called unit calculation in one million, and the time is started at midnight at midnight. The original timestamp is the time before the sender is sent. The receiving timestamp is the time received by the returner, and the transmission time is the time transmitted by the sender. If the time is invalid in one million seconds, or if it is not available, it can be filled in the data in the high byte of the timestamp to indicate that this is not standard data. The identifier and sequence code are in response to the sender's matching request. Code 0 may be received from the host or gateway. Information Request or Information Response Message Figure 8IP Domain: Address: The source address of the information request message is the destination address of the information response message. To form an information response message, the source and destination address should be exchanged, change the type code to 16, and reconstitute check code. ICMP domain:. Type: 15 represents a message request message; 16 represents a message response message.