Optimal algorithm for scanning servers.

  • Thread starter Thread starter noelo2014
  • Start date Start date
  • Tags Tags
    Algorithm Scanning
Click For Summary
SUMMARY

The discussion focuses on developing an optimal algorithm for scanning servers based on their last known online status and recent connection attempts. The user seeks to prioritize servers likely online by analyzing two datetime values associated with each IP address. The proposed approach involves comparing the recency of the last connection attempt with the last online time to determine the likelihood of a server being online. The user suggests that a mathematical formula may exist to refine this decision-making process further.

PREREQUISITES
  • Understanding of datetime manipulation in programming
  • Familiarity with sorting algorithms, specifically qsort
  • Basic knowledge of probability theory
  • Experience with server management and connectivity issues
NEXT STEPS
  • Research mathematical models for probability assessment in server connectivity
  • Explore advanced sorting techniques beyond qsort for optimization
  • Learn about datetime libraries in programming languages for effective manipulation
  • Investigate machine learning algorithms that predict server availability
USEFUL FOR

Software developers, network engineers, and system administrators looking to optimize server scanning processes and improve connection reliability.

noelo2014
Messages
45
Reaction score
0
I'm writing a piece of software and need to find an optimal algorithm for scanning servers. Basically I'm given a list of N IP addresses, each IP address has two associated datetime values: The time the server was last known to be online and the time of the last connection attempt.

Given these values I need to sort the list so the servers most likely to be online right now are at the top of the list.
 
Physics news on Phys.org
For sorting lists take a look at qsort I believe its nLogn and a lot of languages have built in functions for it :)
 
I don't think you understand my question. I'm not concerned with sorting algorithms, I need a way of choosing which server to attempt to connect to based on the last time it was online and the time I last tried to connect to it.

I think I have it figured out though. As a general rule, if the (time I last attempted to connect)* was recent and (the time the server was last online)* was not, then it's unlikely this server is online.
If the situation is reversed then it's more likely the server is online right now.

* these times are relative to the max/min in each of these sets



I'm sure there's some mathematical formula that applies to scenarios like this. that's why I posted it in the maths programming forum, maybe I'll re-post in the maths forum! probably probability...
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 22 ·
Replies
22
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K