User Tools

Site Tools


wiki:test_multicast_join

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:test_multicast_join [2017/06/20 07:05] – created walkeradminwiki:test_multicast_join [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Test Multicast Join ======+====== Test Multicast Join (iperf) ====== 
 +<color #db5f0b>Jun 2017</color> 
 +\\  
 +\\ 
  
- +---- 
- +We can test if our device can join a multicast using a tool called <color #ed1c24>iperf</color>. <color #ed1c24>iperf</color> is not installed by default, so you will have to add it by us9ing: 
- +\\  
-[root@env-4e-960565 ~]# iperf -s -u -B 239.0.200.1 -p 10001 -i 1+    yum install iperf 
 +\\  
 +\\  
 +If you see the following error when trying to install iperf: 
 +\\  
 +<file> 
 +Loaded plugins: fastestmirror 
 +base                                                                                  | 3.6 kB  00:00:00 
 +extras                                                                                | 3.4 kB  00:00:00 
 +updates                                                                               | 3.4 kB  00:00:00 
 +(1/4): base/7/x86_64/group_gz                                                         | 156 kB  00:00:00 
 +(2/4): extras/7/x86_64/primary_db                                                     | 110 kB  00:00:00 
 +(3/4): updates/7/x86_64/primary_db                                                    | 2.7 MB  00:00:00 
 +(4/4): base/7/x86_64/primary_db                                                       | 5.7 MB  00:00:01 
 +Determining fastest mirrors 
 + * base: anorien.csc.warwick.ac.uk 
 + * extras: mirrors.clouvider.net 
 + * updates: mirrors.coreix.net 
 +No package iperf available. 
 +Error: Nothing to do 
 +</file> 
 +\\  
 +The last line that states <color #ed1c24>Error: Nothing to do</color> means that CentOS doesn't know where to get iperf from (not in the repositories that CentOS is aware of) then you can run the following. 
 +\\  
 +    yum install epel-release 
 +\\  
 +This will install the relevant repositories for CentOS to find iperf. Once again you can run: 
 +\\  
 +    yum install iperf 
 +\\  
 +Once installed, you can use <color #ed1c24>iperf</color> to connect to a multicast stream by using the following syntax. 
 +\\  
 +    iperf -s -u -B 239.0.200.1 -p 10001 -i 1 
 +\\  
 +==== Example output ==== 
 +<file>
 ------------------------------------------------------------ ------------------------------------------------------------
 Server listening on UDP port 10001 Server listening on UDP port 10001
Line 23: Line 61:
 [  3]  3.0- 4.0 sec  603 datagrams received out-of-order [  3]  3.0- 4.0 sec  603 datagrams received out-of-order
 [  3]  4.0- 5.0 sec   775 KBytes  6.35 Mbits/sec  1264384362197.854 ms    6/    7 (86%) [  3]  4.0- 5.0 sec   775 KBytes  6.35 Mbits/sec  1264384362197.854 ms    6/    7 (86%)
 +</file>
  
wiki/test_multicast_join.1497938716.txt.gz · Last modified: 2023/03/09 22:35 (external edit)