Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!ginosko!usc!sargas.usc.edu!tli From: tli@sargas.usc.edu (Tony Li) Newsgroups: comp.protocols.tcp-ip Subject: Re: Counting Internet Hosts (and Users) Message-ID: <20444@usc.edu> Date: 11 Oct 89 07:34:36 GMT References: <8910101451.AA01170@interlan.interlan.com> Sender: news@usc.edu Reply-To: tli@sargas.usc.edu (Tony Li) Organization: University of Southern California, Los Angeles, CA Lines: 23 In article <8910101451.AA01170@interlan.interlan.com> kasten@interlan.interlan.COM (Frank Kastenholz) writes: Gee, Seems like there is a simpler way to do it...... for (i=0; i<0xffffffff; i++) foo = ping(i) if (foo == answered) number_of_hosts++; Its only an order n problem . . . no fancy protocols, no worrying about whether you are allowed to dump the domain tables, etc, etc... Yes, but it probably takes about 136 YEARS to run (assuming that pings take about 1 second to either respond or time out). Thanks, but we're not young enough. Tony Li - USC University Computing Services Internet: tli@usc.edu Uucp: usc!tli Bitnet: tli@gamera, tli@ramoth This is a test. This is a only a test. In the event of a real life you would have been given instructions.