LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04: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, 05:25 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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, 05:53 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Not helpful ??? Well pardon me for trying. If you don't want help, then fine, don't ask for it.
 
Old 07-30-2010, 06: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, 06:15 AM   #5
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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 Aquarius_Girl; 07-30-2010 at 06:16 AM.
 
Old 07-30-2010, 09:30 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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-30-2010, 11:47 PM   #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, 12: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, 01:56 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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, 10: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



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 12:46 PM
Proxy Detection? jon_k Linux - Software 0 11-07-2004 02:06 PM
Live distribution with best network detection ? Ben2210 Linux - Networking 2 10-19-2004 03:16 PM
Live CD Hardware Detection. How? ugenn Linux - General 0 08-30-2004 02:39 AM
No detection of SB Live! 5.1 SaulTurnedPaul Red Hat 5 08-12-2004 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:03 AM.

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
Open Source Consulting | Domain Registration