Ping the broadcast address

Source: Internet
Author: User
First, we know that there are four broadcast addresses: Restricted broadcast, CIDR Block broadcast, subnet broadcast, and all subnet broadcasts.

What happens if I ping 10.26.255.255 at 10.26.20.1/16?
Ping output: ping output
C: \ Documents ents and Settings \ Administrator> ping 10.26.0000255-t

Pinging 10.26.0000255 with 32 bytes of data:

Reply from 10.26.0000254: bytes = 32 time <1 ms TTL = 255
Reply from 10.26.000090: bytes = 32 time <1 ms TTL = 64

Notes:
1. ping the broadcast address. However, from the response, the broadcast address is returned from the same network segment.
2. Why are there only two machines in the same network segment responding to me?

The following is a comprehensive explanation:
1. I sent the ping 10.26.0000255 request and sent a multicast frame before the icmp packet went out. The target mac is a multicast mac;
2. all the hosts that can receive this multicast packet. When you see this package, you will know what I want to do (icmp reauest). If the package is supported by the system (not supported by linux or windows ), then, an icmp response is returned, and an arp query is sent to me to query what my arp is, so I responded to the query and learned its arp;
3. In the future, each icmp of my ping broadcast will be responded to by the host that can respond to me in the group. This is the result of ping (255.254 and 20.90 respectively)

This process is not complex. The focus is to clarify the process and how it is in order.

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.