LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2010, 09:58 AM   #1
Zyndarius
Member
 
Registered: May 2008
Location: Chile - Viña del Mar
Distribution: Debian
Posts: 50

Rep: Reputation: 16
Why RTTs of unicast are different to the RTTs of broadcast?


Greetings.

I was recently "playing" with ping in order to measure some RTT both in unicast and broadcast cases but ran into something that left me like O.o wtf!

Here is the output of a ping to a private host in my LAN, a normal unicast case:
Code:
64 bytes from 192.168.2.3: icmp_seq=1 ttl=64 time=0.617 ms
64 bytes from 192.168.2.3: icmp_seq=2 ttl=64 time=1.27 ms
64 bytes from 192.168.2.3: icmp_seq=3 ttl=64 time=0.595 ms
64 bytes from 192.168.2.3: icmp_seq=4 ttl=64 time=2.22 ms
64 bytes from 192.168.2.3: icmp_seq=5 ttl=64 time=0.654 ms
64 bytes from 192.168.2.3: icmp_seq=6 ttl=64 time=0.630 ms
And here is the sudo ping -b 255.255.255.255 with the answers of the same host as in the unicast case:
Code:
64 bytes from 192.168.2.3: icmp_seq=1 ttl=64 time=1.87 ms
64 bytes from 192.168.2.3: icmp_seq=2 ttl=64 time=66.5 ms
64 bytes from 192.168.2.3: icmp_seq=3 ttl=64 time=88.9 ms
64 bytes from 192.168.2.3: icmp_seq=4 ttl=64 time=1.88 ms
64 bytes from 192.168.2.3: icmp_seq=5 ttl=64 time=1.89 ms
64 bytes from 192.168.2.3: icmp_seq=6 ttl=64 time=53.5 ms
Can somebody explain me why do those ugly numbers appear? Is there a different process that ping uses to calculate RTTs in the case of a broadcast. As far as i know the RTTs to a host should be more or less equal either in unicast or broadcast case.

Is something I am forgetting here?

Thanks in advance for your help. =)
 
Old 06-14-2010, 07:47 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I am pretty sure that waits for all others to reply. What are you trying to do? Are you trying to smurf?
 
Old 06-15-2010, 02:58 AM   #3
Zyndarius
Member
 
Registered: May 2008
Location: Chile - Viña del Mar
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 16
No, nothing like that. I am testing a virtual network and I needed to compare the RTTs in broadcast and in unicast. That's why I am interested in the high RTTs appreciated in the broadcast responses.
 
Old 06-15-2010, 03:11 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
-b is looking for all replies on lan isn't it?
 
0 members found this post helpful.
Old 06-16-2010, 03:50 AM   #5
Zyndarius
Member
 
Registered: May 2008
Location: Chile - Viña del Mar
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 16
Yes, but shouldn't the process be like independent per reply? I mean, the broadcast message is sent to everybody and gets to each machine in different time, and each machine responses with different delay. But this delay should be similar to the delay of a normal ping to a machine. Becuase in the end the the physical path is the same for both unicast or broadcast. Or am I mistaken in the last?
 
Old 06-16-2010, 11:47 AM   #6
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
If using a share media network (Wi-Fi, DOCSIS, Ethernet with hubs, Ethernet over coax) collisions between replies, followed by retransmission after a random delay are possible.
 
Old 06-17-2010, 05:15 AM   #7
Zyndarius
Member
 
Registered: May 2008
Location: Chile - Viña del Mar
Distribution: Debian
Posts: 50

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by TimothyEBaldwin View Post
If using a share media network (Wi-Fi, DOCSIS, Ethernet with hubs, Ethernet over coax) collisions between replies, followed by retransmission after a random delay are possible.
But in the case of a switched LAN, if there are no collisions why do the RTTs show a higher value? Is there something to do with the algorithm? Becuase doing a test, for example between two hosts at a distance of 0 hops, exactly in the same LAN there is a difference, slight, but a difference anyway. (such as 0.980ms for unicast and 1.2ms for broadcast)
 
  


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
TV broadcast davholla General 1 10-20-2006 02:16 PM
Broadcast without broadcast Mammuth Linux - Networking 1 10-01-2006 04:58 PM
What is a broadcast ip? snocked Linux - Newbie 7 01-28-2003 09:56 AM
Unicast - Multicast Ebouffon Linux - Networking 1 11-08-2002 08:56 AM
What does Broadcast mean? BHanrahan Linux - Newbie 3 09-03-2002 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:29 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