【Wireshark Lab v8.0】Lab9:ICMP

实验步骤均来自实验指导手册。

实验指导手册下载地址:Jim Kurose Homepage (umass.edu)

In this lab, we’ll explore several aspects of the ICMP protocol:

• ICMP messages generating by the Ping program;

• ICMP messages generated by the Traceroute program;

• the format and contents of an ICMP message.

1.ICMP and Ping

命令ping -n 10 hostnameindicates that 10 ping messages should be sent。

例如:

image-20220301182234792

What hand to in:

  1. What is the IP address of your host? What is the IP address of the destination host?

    src ip:192.168.1.101

    dst ip:143.89.14.34

  2. Why is it that an ICMP packet does not have source and destination port numbers?

    The ICMP packet does not have source and destination port numbers because it was designed to communicate network-layer information between hosts and routers, not between application layer processes. Each ICMP packet has a "Type" and a "Code". The Type/Code combination identifies the specific message being received. Since the network software itself interprets all ICMP messages, no port numbers are needed to direct the ICMP message to an application layer process.

  3. Examine one of the ping request packets sent by your host. What are the ICMP type and code numbers? What other fields does this ICMP packet have? How many bytes are the checksum, sequence number and identifier fields?

    ICMP type:8

    icmp code:0

    2 bytes

    image-20220301182631496

  4. Examine the corresponding ping reply packet. What are the ICMP type and code numbers? What other fields does this ICMP packet have? How many bytes are the checksum, sequence number and identifier fields?

    ICMP type:0

    ICMP code:0

    2 bytes

    image-20220301182846001

2.ICMP and Traceroute

windows平台:tracert hostmane

image-20220301183704702

  1. What is the IP address of your host? What is the IP address of the target destination host?

    src ip:192.168.1.101

    dst ip:138.96.146.2

  2. If ICMP sent UDP packets instead (as in Unix/Linux), would the IP protocol number still be 01 for the probe packets? If not, what would it be?

    No. If ICMP sent UDP packets instead, the IP protocol number should be 0x11(why)

  3. Examine the ICMP echo packet in your screenshot. Is this different from the ICMP ping query packets in the first half of this lab? If yes, how so?

    The ICMP echo packet has the same fields as the ping query packets

  4. Examine the ICMP error packet in your screenshot. It has more fields than the ICMP echo packet. What is included in those fields?

    The ICMP error packet is not the same as the ping query packets. It contains both the IP header and the first 8 bytes of the original ICMP packet that the error is for.

  5. Examine the last three ICMP packets received by the source host. How are these packets different from the ICMP error packets? Why are they different?

    The last three ICMP packets are message type 0 (echo reply) rather than 11 (TTL expired). They are different because the datagrams have made it all the way to the destination host before the TTL expired.

  6. **Within the tracert measurements, is there a link whose delay is significantly longer than others? Refer to the screenshot in Figure 4, is there a link whose delay is significantly longer than others? On the basis of the router names, can you guess the location of the two routers on the end of this link?****(待补充))

posted @   huuyaang  阅读(629)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示