Re: ping subnet

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Tue, 9 Aug 2005 19:58:57 -0400, "David H. Lipman"
<DLipman~nospam~@Verizon.Net> wrote:

>I'm not sure the IP stack can handle it and are you really sure you want to put that much
>traffic on the LAN ?

The IP stack can definitely handle this. As written the script
Charles put together would only ping each address twice. A scope of
254 addresses doubled would be 508, doubled again for the replies,
would be 1,016 packets over more than 10 seconds. Each packet ICMP
packet would likely take up a 64 byte ethernet frame, so this would
likely take 6,502 bytes of IP over eithernet traffic per second.
Considering that a 100Mb connection can do 12,500,000 bytes per
second, we're probably covered.

Now, we're the majority of the traffic on a LAN will come from is from
the ARP broadcasts. The total amount of bytes will depend on how many
nodes are on the network (assuming a switched network... does anyone
use hubs anymore?). Each ping will cause an ARP to be sent except for
know MAC addresses.

ARP traffic will typically hit every node on the VLAN/collision
domain. If an ARP reply is not received by the time the 2nd Ping
packet is ready to be sent then another ARP request is sent via
broadcast.

So the worst case is that two ARP requests are sent out for each IP
and there is one successful ping packet sent and a reply received.
That would be about 43,300 frames per second ((254^2 * 2 + half of the
ping packets), which to make the math simple would take about 1/3 of a
percent of the possible bandwidth.

Here's a batch routine I put together for getting MAC addresses
quickly, and I watched a Sniffer while testing this.

http://groups.google.com/group/microsoft.public.win2000.cmdprompt.admin/msg/dfc3acf5a689b214?hl=en&;

Thanks,
Clay Calvert
CCalvert@xxxxxxxxxxx
Replace "W" with "L"
.



Relevant Pages

  • Re: ebtables processing...
    ... I can no longer ping the router. ... The client wants to send an IP packet with an ICMP echo request to 192.168.1.1. ... Before it must learn the associated MAC address using the ARP protocol, ... The ARP query arrives at the interface eth0, which is part of the bridge br0, so the packet goes through ebtables and reaches the BROUTING chain in the broute table. ...
    (comp.os.linux.networking)
  • Re: Printerserver inaccessible from RPC
    ... use arp -a, but that isn't likely to be provided. ... If you ping them all, ... The packet is then sent to the ethernet address. ...
    (comp.sys.acorn.networking)
  • Re: Routing problems
    ... The request comes to the LAN default GW and fells through to ... What happens if you try to "ping" from the eth2 interface of the router? ... again and compare the packet counts for every iptables rule, ...
    (Fedora)
  • Re: ask for sample ping source code without IP protocal stack
    ... First do ping, then ARP, ... ICMP Echo Replies need to match the signature of the Echo or they will ... Goto http://www.ethereal.com and get their packet sniffer. ...
    (comp.arch.embedded)
  • Re: get all IP-Adresses of the PCs connected of one subnet
    ... >> LAN? ... >> ping 192.168.0.1 ... Arp only lists hosts that have had recent communication with the computer ... Fundamentalism is fundamentally wrong. ...
    (comp.os.linux.networking)