LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2010, 05:54 AM   #1
dev21082
LQ Newbie
 
Registered: Jul 2010
Location: iit kharagpur , india
Posts: 13

Rep: Reputation: 0
live proxy detection


In my college many proxy : port (like 144.16.192.245:8080)are using to get Internet connection, performance of each proxy changes, how can i decide which one is working well at particular time. is there any way to switch over them automatically ?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-30-2010, 06:25 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
You can generally ping the IP and get a response time.

$ ping -c 4 <IP>
64 bytes from ir1.fp.vip.sp2.yahoo.com (98.137.149.56): icmp_seq=2 ttl=47 time=71.5 ms

Ping all your options and the one with the fastest time (lowest number) is likely the best one (at the time of the ping). Perhaps not the best depending on how it reacts down stream. But it's a start. There probably is a way to automate it. I'm not familiar with said way at this time. And ping may not work if it's blocked by firewall or other quirks. And best might vary depending on what you're trying to reach downstream and not the proxy in general. Sometimes just finding one that works is about as good as it gets.
 
0 members found this post helpful.
Old 07-30-2010, 06:53 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Not helpful ??? Well pardon me for trying. If you don't want help, then fine, don't ask for it.
 
Old 07-30-2010, 07:11 AM   #4
dev21082
LQ Newbie
 
Registered: Jul 2010
Location: iit kharagpur , india
Posts: 13

Original Poster
Rep: Reputation: 0
it was my mistake sorry, i am new here , thanks bye bye
 
Old 07-30-2010, 07:15 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by dev21082 View Post
it was my mistake sorry, i am new here , thanks bye bye
Dev, it is not a mistake to mark a post not helpful,

but it is wrong :
1. When you do not thank the person for trying.

2. When you do not explain what went wrong when you tried the suggested solution or the reason why you did not try the solution.

Last edited by TheIndependentAquarius; 07-30-2010 at 07:16 AM.
 
Old 07-30-2010, 10:30 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Whatever, benchmarking apparently has absolutely no bearing on determining which is best. In that case choose the one with the lowest number. It's obviously best as it's been in service the longest.
 
Old 07-31-2010, 12:47 AM   #7
dev21082
LQ Newbie
 
Registered: Jul 2010
Location: iit kharagpur , india
Posts: 13

Original Poster
Rep: Reputation: 0
i tried ping option for proxy 144.16.192.247 and port 8080 as

$ ping -c 4 144.16.192.247
PING 144.16.192.247 (144.16.192.247) 56(84) bytes of data.

--- 144.16.192.247 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3022ms

and for proxy 144.16.192.145 and port 8080


$ ping -c 4 144.16.192.245
PING 144.16.192.245 (144.16.192.245) 56(84) bytes of data.

--- 144.16.192.245 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3023ms

is it ok ? why here "0 received, 100% packet loss,"
 
Old 07-31-2010, 01:09 AM   #8
dev21082
LQ Newbie
 
Registered: Jul 2010
Location: iit kharagpur , india
Posts: 13

Original Poster
Rep: Reputation: 0
sir one more information i want to give 144.16.192.247 is an http proxy and port 8080 , is not IP address
 
Old 08-01-2010, 02:56 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
ping doesn't use 8080, that's generally used for http at the user level. But ping sends a different type of packet anyway.

The ping does 3 things.

1) verifies that the IP is valid (or not)
2) verifies that the network reaches that address (or not)
3) gives a response time in how long it takes to talk to said computer across the network.
(the lower the number the better)

Assuming it's not blocked by firewall, yours or theirs.

#3 is no guarantee of a particular proxy being best. As even though you can connect to it the fastest, it's no indication of how it performs on the other end of that chain. The only way to really know is to just use all of them and then adjust to the one that is best (at that particular moment in time for that particular use). It's all pretty much an effort in futility though. If your school had a better network you wouldn't need to do any of that. And it's not a skill that's going to make you millions or even minimum wage out in the real world.
 
2 members found this post helpful.
Old 08-01-2010, 11:53 AM   #10
dev21082
LQ Newbie
 
Registered: Jul 2010
Location: iit kharagpur , india
Posts: 13

Original Poster
Rep: Reputation: 0
thank you for this nice information
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Live CD Detection of Drives lostinamerica Linux - General 2 06-13-2009 01:46 PM
Proxy Detection? jon_k Linux - Software 0 11-07-2004 03:06 PM
Live distribution with best network detection ? Ben2210 Linux - Networking 2 10-19-2004 04:16 PM
Live CD Hardware Detection. How? ugenn Linux - General 0 08-30-2004 03:39 AM
No detection of SB Live! 5.1 SaulTurnedPaul Red Hat 5 08-12-2004 07:02 PM


All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration