ICMP Internet Control Message Protocol

Source: Internet
Author: User

ICMP Port unreachable authentication.

1. Preparation

window to download the TFTP32 software and set the IP address of the server (window system IP ), and shut down windows firewall. As shown in the following:

2,Ubuntu virtual machine, install tftp service, and install wireshark.

sudo apt-get install TFTP

3.

Open Wireshark.

Start the TFTP service and connect to window, Specify the 8000 port, this port number is not process in use , when need get file, Eventually , the port is unreachable and the timeout is displayed.

Wireshark Display Port unreachable. (Window 's ip:192.168.1.105,ubuntu IP : 192.168.1.114)

IP header content.

The ICMP section includes the IP datagram header that generated the error and the upd datagram header.

The reason for the I p header in the datagram that caused the error is to be sent back because the i p header contains the Protocol field so that i C M P can know how to interpret the following 8 a byte. If we look at the T-C P header .
You can see that the source port and destination port are included in the first 8 bytes of the T- C P header .

WhenI C M Pwhen the message returns, whyt F t Pwill the client program continue to re-send the request? This is due to a factor in network programming, i.e.B S Dsystem does not turn from the socket(S o C K e t)received byI C M Pin the messageU D Pthe data notifies the user process, unless the process has sent ac o n n e c tcommand to the socket. Standard ofBSD TFTPThe client program does not sendc o n n e c tcommand, so that it would never receiveI C M PNotification of error messages.

The map in theTCP/IP detail .

ICMP Internet Control Message Protocol

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.