Optimal algorithm for scanning servers.

In summary, the person is looking for an optimal algorithm for scanning servers. They have a list of N IP addresses, each with associated datetime values for last known online time and last connection attempt time. They need to sort the list so that the servers most likely to be online are at the top. They are also considering using a mathematical formula to determine the likelihood of a server being online based on these times. The person may also post in a math forum for additional help.
  • #1
noelo2014
45
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
  • #2
For sorting lists take a look at qsort I believe its nLogn and a lot of languages have built in functions for it :)
 
  • #3
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...
 

1. What is an optimal algorithm for scanning servers?

An optimal algorithm for scanning servers is a set of instructions and procedures that efficiently and accurately detects and identifies any issues or vulnerabilities within a server system. It aims to minimize the time and resources required for scanning while maximizing the effectiveness of the scan.

2. What factors should be considered when developing an optimal scanning algorithm?

Several factors should be considered when developing an optimal scanning algorithm, including the type and complexity of the server system, the size and number of servers to be scanned, the type of data and applications running on the servers, and any security or compliance requirements.

3. How does an optimal scanning algorithm improve server security?

An optimal scanning algorithm can improve server security by detecting and identifying any potential vulnerabilities or weaknesses in the system. This allows for prompt remediation and can prevent unauthorized access, data breaches, and other security threats.

4. Are there any drawbacks to using an optimal scanning algorithm?

One potential drawback of using an optimal scanning algorithm is that it may require a significant amount of processing power and resources, which could impact the performance of the servers being scanned. Additionally, if the algorithm is not regularly updated, it may miss new or emerging vulnerabilities.

5. How can an optimal scanning algorithm be implemented?

An optimal scanning algorithm can be implemented by first understanding the specific needs and requirements of the server system and then selecting or developing an algorithm that best fits those needs. It is important to regularly update and test the algorithm to ensure its effectiveness and to make any necessary adjustments as the server system evolves.

Similar threads

  • Programming and Computer Science
Replies
7
Views
458
  • Computing and Technology
Replies
4
Views
1K
  • Programming and Computer Science
Replies
1
Views
977
  • Engineering and Comp Sci Homework Help
Replies
1
Views
619
  • High Energy, Nuclear, Particle Physics
Replies
1
Views
1K
  • Programming and Computer Science
Replies
29
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
Replies
1
Views
806
  • Computing and Technology
Replies
22
Views
5K
Back
Top