HTTP Ping Question

Posted on 2001-06-06
Last Modified: 2010-04-02
I have a few http servers in the network that I need to ping to find out which server is the closest route to send a service request.  I need to know what is the most efficient solution to this problem.  Please send suggestions.  This solution will be implemented in a COM component.

Thanks in advance
Question by:ramrocket
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 32

Expert Comment

ID: 6160575
This is a difficult problem without access to a "map" of the available routes.  A series of ICMP ECHO (i.e. PING) packets can be used to trace a network route from end to end (i.e. the common traceroute program) but this is not only time-consuming to run, but can cause you to be labelled a poor "netizen" by those being pinged if you do it too often.

Now if this is a private network and its topology is relatively stable, you may be able to make some sort of database of optimal route that machines could use.  For example, anytime A wants to talk to B it would query the database for the best route from A -> B.  Similarly, if it wanted to talk to C, it would again ask.

Seems like a lot of trouble though.  Usually network administrators setup routers and servers in such a manner as to make things work pretty smoothly for most situations.  So is this really a programming problem or might it be better solved by some network evaluation and engineering?
LVL 32

Accepted Solution

jhance earned 100 total points
ID: 6160581
Oh, I'm sorry, I'm told that we need to post all comments as ANSWERS to avoid unecessary confusion.

Expert Comment

ID: 6401483
This question was LOCKED with a PROPOSED ANSWER and awaits your decision today.  Once a question is LOCKED with a Proposed Answer, few new experts will step in to help on that question, since the assumption is, you've been helped.  If the Proposed Answer helped you, please accept it and award that expert.  If it did not help you, please reject it and add comments as to status and what else is needed.

If you wish to award multiple experts, just comment here with detail, I'll respond as soon as possible.  As it stands today, you asked the question, got help and not one expert was awarded for the contribution(s) made.  Your response is needed.  I'll monitor through month end, and if you've not returned to complete this, we'll need to decide.  Expert input is welcome (as always) to determine the outcome here if the Asker does not respond.

Your response in finalizing this (and ALL) your question(s) is appreciated.

Site-related HELP:
Community Support Moderator @ Experts Exchange

Expert Comment

ID: 6451124

You logged in recently, but did not return to update or finalize this question.

PLEASE RETURN here and accept/grade this if it helped you, or reject the proposed answer with comments as to what else is needed.

This remains open today, awaiting your next action.


Community Support Moderator @ Experts Exchange

Expert Comment

ID: 6811472
Community Support Moderator @ Experts Exchange

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question