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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fully specialized class template function 21 130
convert char array to number in c 5 83
Socket Programming (Unix) 8 118
Header of docx file 17 98
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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 viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now