Multicast Test

네트워크에서 멀티캐스팅이 동작하는지 테스트 하는 방법이다.

iperf 이용

iperf를 이용하는 방법이다. iperf3는 안됨

iperf -B 228.0.0.4 -su -i 1 -p 45564

[root@host ~]# iperf -s -u -B 228.0.0.4 -i 1 -p 45564
------------------------------------------------------------
Server listening on UDP port 45564
Binding to local address 228.0.0.4
Joining multicast group  228.0.0.4
Receiving 1470 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 228.0.0.4 port 45564 connected with 192.168.0.161 port 60183
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3]  0.0- 1.0 sec   129 KBytes  1.06 Mbits/sec   0.028 ms    0/   90 (0%)
[  3]  1.0- 2.0 sec   128 KBytes  1.05 Mbits/sec   0.018 ms    0/   89 (0%)
[  3]  2.0- 3.0 sec   128 KBytes  1.05 Mbits/sec   0.037 ms    0/   89 (0%)
[  3]  0.0- 3.0 sec   385 KBytes  1.05 Mbits/sec   0.037 ms    0/  268 (0%)

iperf -c 228.0.0.4 -u -T 32 -t 3 -i 1 -p 45564

[root@host ~]# iperf -c 228.0.0.4 -u -T 32 -t 3 -i 1 -p 45564
------------------------------------------------------------
Client connecting to 228.0.0.4, UDP port 45564
Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust)
Setting multicast TTL to 32
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.161 port 60183 connected with 228.0.0.4 port 45564
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec   131 KBytes  1.07 Mbits/sec
[  3]  1.0- 2.0 sec   128 KBytes  1.05 Mbits/sec
[  3]  0.0- 3.0 sec   385 KBytes  1.05 Mbits/sec
[  3] Sent 268 datagrams