LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-18-2020, 09:25 PM   #1
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 968

Rep: Reputation: 53
Question on Pinging a address ,how testing sites get away with it and just making a request for service.


I managed to ask the entire question I think in the title of this thread.Lol. I always wondered how websites that will ping other servers in online test get away with doing this. Do they have an arrangement with their ISP? Also ,what if you just run a series trying services on all of the common ports? Wouldn't this achieve the same thing as a ping if the tested computer did not respond?

Thanks for your expertise!
 
Old 06-18-2020, 11:39 PM   #2
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,020

Rep: Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504Reputation: 1504
Quote:
Originally Posted by theKbStockpiler View Post
I managed to ask the entire question I think in the title of this thread.Lol. I always wondered how websites that will ping other servers in online test get away with doing this. Do they have an arrangement with their ISP?
I don't know, but the ISPs I have been using so far let me use ping without any special arrangement:
Code:
$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=58 time=7.402 ms
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=7.266 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=7.381 ms
--- 1.1.1.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 7.266/7.350/7.402/0.060 ms
Quote:
Also ,what if you just run a series trying services on all of the common ports? Wouldn't this achieve the same thing as a ping if the tested computer did not respond?
If the tested computer doesn't respond, the first question I have is: To what does it not respond? Ping does not necessarily answer the question.

Ping sends special network packets named ICMP echo requests. If the destination device is configured to respond to such requests, it will send ICMP echo replies back.

"Trying services on all of the common ports" is also known as "port scanning". You check if the destination device reacts to attempts to create a connection on a range of TCP or UDP ports. Since this is commonly done by crackers who find a weakness in a system, it is absolutely not recommended to scan ports of servers without the owners' permission. You may quickly end up on a black list.

In any case, a successful ping proves that the other side exists and there is connectivity. If you don't receive replies, either the destination device doesn't exist, or there is no connectivity (might be temporary), or the device is configured not to reply. If you receive replies to some of your requests, the connection might be unreliable. A port scan that yields a reaction also proves that the device in question exists and can be connected to, but it also tells you if it blocks ports and if it listens for requests on ports.

In short, ping and port scans are different tools for different purposes.

Last edited by berndbausch; 06-18-2020 at 11:40 PM. Reason: added ping output
 
1 members found this post helpful.
Old 06-19-2020, 02:36 AM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,789

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Maybe those site use a dummy IP to do a ping sweep, able to capture the response and just dispose the IP once they got what they need.

Search the web for Nmap,and see the features of what it does.
 
1 members found this post helpful.
Old 06-20-2020, 07:32 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,434
Blog Entries: 27

Rep: Reputation: 4963Reputation: 4963Reputation: 4963Reputation: 4963Reputation: 4963Reputation: 4963Reputation: 4963Reputation: 4963Reputation: 4963Reputation: 4963Reputation: 4963
I think the premise of the question is, as my old boss would have said, "in error."

Ping is a standard internet protocol used for testing purposes. The same can be said for traceroute, whois, dig, and others.

I use ping whenever I have to test whether my connection is working properly. For example, if a website is not responding, I may ping yahoo.com just to make sure the problem is not on my end.

I'm not "getting away" with anything. I'm testing.

This is not to say that all uses of ping and similar protocols are always innocent, but I think presuming them to be somehow inherently nefarious is, er, presumptuous.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ipv6 question on pinging link local address jzoudavy Linux - Newbie 2 07-25-2013 11:42 AM
LXer: CrazyFlie 6-DOF Review Fly away now, fly away LXer Syndicated Linux News 0 04-20-2013 12:12 AM
#In this perl code, im getting the input as "ip address" from the user and pinging it dawood munavar Linux - Newbie 1 04-07-2011 09:42 PM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:56 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
Open Source Consulting | Domain Registration