Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Optimized remote ping

by sundialsvc4 (Abbot)
on Jul 17, 2015 at 12:49 UTC ( #1135157=note: print w/replies, xml ) Need Help??


in reply to Optimized remote ping

Also, it is my understanding that ping uses ICMP, which is part of the low-level IP protocol, not UDP or TCP in which “ports” are established.   Thus you are simply pinging the address, not “port 80.”

ping is capable of “multi-casting,” but this would not apply if you have a large series of remote servers that you individually want to ping.   That would require an approach such as the one BrowserUK suggests.

Now, BrowserUK, since there isn’t any sort of “connection” being established here, is it ever possible for the returning ping-packets to be dropped as they pile-up waiting to be received?   Would there be any advantage ... or is it possible? ... to send out the pings with one thread, and wait for the replies with another?

Replies are listed 'Best First'.
Re^2: Optimized remote ping
by BrowserUk (Pope) on Jul 17, 2015 at 15:21 UTC
    Now, BrowserUK, since there isn’t any sort of “connection” being established here, is it ever possible for the returning ping-packets to be dropped as they pile-up waiting to be received? Would there be any advantage ... or is it possible? ... to send out the pings with one thread, and wait for the replies with another?

    Why ask me to test your theories? (Especially when you aren't even polite enough to ask in reply to me!)

    You claim to have the expertise; why not simply knock up a little 'extemporaneous' code and test your theories for yourself.

    Surely that is not beyond your legendary (or is that mythical) skills?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
    I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!
Re^2: Optimized remote ping
by Anonymous Monk on Jul 17, 2015 at 13:19 UTC
    Also, it is my understanding that ping uses ICMP

    Net::Ping supports six different types of ping, and TCP is the default.

    ... which you'd know if you'd at least skimmed its documentation before posting.

Re^2: Optimized remote ping
by eyepopslikeamosquito (Chancellor) on Jul 18, 2015 at 01:08 UTC
      However, given the harsh and unrelenting criticism you have endured from BrowserUk, I am puzzled as to why you persist in showering him with such lavish praise.

      Re^3: Just curious: is there a BOT that downvotes "me?" would explain a lot ...

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1135157]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-12-18 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (492 votes). Check out past polls.

    Notices?