Multicast on colibri imx8x doesn't work with AW-CM276NF

I try run multicast on colibri imx8x:

  • start AP on imx8x
  • run iperf -c 239.255.1.1 -p 8899 -u --ttl 5 -t 20 -b 3000M -l 32k
  • connect to AP from PC
  • use wireshark to capture data

I don’t know why but it doesn’t work on AW-CM276NF , I don’t see packets in Wireshark

If I connect USB Wi-FI dongle all works OK , I see packets in Wireshark
I use WU1400 https://www.cudy.com/productinfo/44163.html
It use driver 88x2bu

iperf + TCP/IP works OK on both
multicast works only on USB dongle
Device AW-CM276NF has a worse driver?

Any rational explanation?

Hello @MariusM ,
I will have to reproduce your issue. I will get back to you as soon as I have new information on this topic.

Best regards,
Josep

Dear @MariusM,
Can you tell us which BSP version you are using?

Best regards,
Josep

Hello @MariusM ,
I was able to successfully send multicast packets between two Colibri SoM’s
Here is the test that I performed:

  • Multicast server and client HW: Colibri iMX8XQXP 2GB WB IT V1.0D
  • Multicast server and client SW: TDX Wayland with XWayland 5.7.4+build.25 (dunfell) \n \l
    Colibri-iMX8X_Reference-Multimedia-Image

On the server I created an AP , disabled eth0 and created a rule to redirect all multicat packets to the uap0 interface

route add -net 224.0.0.0 netmask 240.0.0.0 uap0

I then ran iperf -s -u -B 239.1.1.10 -i 1

On the client I connected to the created AP and ran iperf -c 239.1.1.10 -u -T 3 -t 20 -i 1 -b 200M

Output from the client:

root@colibri-imx8x-06748677:~# iperf -c 239.1.1.10 -u -T 3 -t 20 -i 1 -b 200M
------------------------------------------------------------
Client connecting to 239.1.1.10, UDP port 5001
Sending 1470 byte datagrams, IPG target: 56.08 us (kalman adjust)
Setting multicast TTL to 3
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.8.47 port 53552 connected with 239.1.1.10 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec   629 KBytes  5.15 Mbits/sec
[  3]  1.0- 2.0 sec   416 KBytes  3.41 Mbits/sec
[  3]  2.0- 3.0 sec   485 KBytes  3.97 Mbits/sec
[  3]  3.0- 4.0 sec   413 KBytes  3.39 Mbits/sec
[  3]  4.0- 5.0 sec   556 KBytes  4.55 Mbits/sec
[  3]  5.0- 6.0 sec   558 KBytes  4.57 Mbits/sec
[  3]  6.0- 7.0 sec   412 KBytes  3.38 Mbits/sec
[  3]  7.0- 8.0 sec   350 KBytes  2.87 Mbits/sec
[  3]  8.0- 9.0 sec   482 KBytes  3.95 Mbits/sec
[  3]  9.0-10.0 sec   406 KBytes  3.33 Mbits/sec
[  3] 10.0-11.0 sec   411 KBytes  3.36 Mbits/sec
[  3] 11.0-12.0 sec   347 KBytes  2.85 Mbits/sec
[  3] 12.0-13.0 sec   412 KBytes  3.38 Mbits/sec
[  3] 13.0-14.0 sec   701 KBytes  5.74 Mbits/sec
[  3] 14.0-15.0 sec   487 KBytes  3.99 Mbits/sec
[  3] 15.0-16.0 sec   478 KBytes  3.92 Mbits/sec
[  3] 16.0-17.0 sec   412 KBytes  3.38 Mbits/sec
[  3] 17.0-18.0 sec   412 KBytes  3.38 Mbits/sec
[  3] 18.0-19.0 sec   415 KBytes  3.40 Mbits/sec
[  3]  0.0-20.0 sec  8.98 MBytes  3.76 Mbits/sec
[  3] Sent 6403 datagrams

Output from the server:

root@colibri-imx8x-06760713:~# iperf -s -u -B 239.1.1.10 -i 1
------------------------------------------------------------
Server listening on UDP port 5001
Binding to local address 239.1.1.10
Joining multicast group  239.1.1.10
Receiving 1470 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 239.1.1.10 port 5001 connected with 192.168.8.47 port 40816
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3]  0.0- 1.0 sec   349 KBytes  2.86 Mbits/sec  10.983 ms    0/  243 (0%)
[  3]  1.0- 2.0 sec   370 KBytes  3.03 Mbits/sec  18.283 ms    0/  258 (0%)
[  3]  2.0- 3.0 sec   464 KBytes  3.80 Mbits/sec   5.250 ms    0/  323 (0%)
[  3]  3.0- 4.0 sec   362 KBytes  2.96 Mbits/sec  12.764 ms    0/  252 (0%)
[  3]  4.0- 5.0 sec   411 KBytes  3.36 Mbits/sec  12.030 ms    0/  286 (0%)
[  3]  5.0- 6.0 sec   155 KBytes  1.27 Mbits/sec  13.092 ms    0/  108 (0%)
[  3]  6.0- 7.0 sec   376 KBytes  3.08 Mbits/sec  11.162 ms    0/  262 (0%)
[  3]  7.0- 8.0 sec   319 KBytes  2.61 Mbits/sec   5.851 ms    0/  222 (0%)
[  3]  8.0- 9.0 sec   320 KBytes  2.62 Mbits/sec   8.262 ms    0/  223 (0%)
[  3]  9.0-10.0 sec   264 KBytes  2.16 Mbits/sec  18.397 ms    0/  184 (0%)
[  3] 10.0-11.0 sec   369 KBytes  3.02 Mbits/sec   4.847 ms    0/  257 (0%)
[  3] 11.0-12.0 sec   435 KBytes  3.56 Mbits/sec   4.307 ms    0/  303 (0%)
[  3] 12.0-13.0 sec   365 KBytes  2.99 Mbits/sec  14.607 ms    0/  254 (0%)
[  3] 13.0-14.0 sec   467 KBytes  3.82 Mbits/sec   2.647 ms    0/  325 (0%)
[  3] 14.0-15.0 sec   411 KBytes  3.36 Mbits/sec   3.795 ms    0/  286 (0%)
[  3] 15.0-16.0 sec   393 KBytes  3.22 Mbits/sec   4.901 ms    0/  274 (0%)
[  3] 16.0-17.0 sec   423 KBytes  3.47 Mbits/sec   5.888 ms    0/  295 (0%)
[  3] 17.0-18.0 sec   334 KBytes  2.74 Mbits/sec  14.985 ms    0/  233 (0%)
[  3] 18.0-19.0 sec   345 KBytes  2.82 Mbits/sec   6.921 ms    0/  240 (0%)
[  3] 19.0-20.0 sec   260 KBytes  2.13 Mbits/sec  11.689 ms    0/  181 (0%)
[  3]  0.0-20.8 sec  7.27 MBytes  2.93 Mbits/sec  21.525 ms    0/ 5184 (0%)
[  4] local 239.1.1.10 port 5001 connected with 192.168.8.47 port 53552
[  4]  0.0- 1.0 sec   385 KBytes  3.15 Mbits/sec   3.721 ms    0/  268 (0%)
[  4]  1.0- 2.0 sec   415 KBytes  3.40 Mbits/sec   6.391 ms    0/  289 (0%)
[  4]  2.0- 3.0 sec   485 KBytes  3.97 Mbits/sec   4.613 ms    0/  338 (0%)
[  4]  3.0- 4.0 sec   436 KBytes  3.58 Mbits/sec   5.972 ms    0/  304 (0%)
[  4]  4.0- 5.0 sec   538 KBytes  4.41 Mbits/sec   6.985 ms    0/  375 (0%)
[  4]  5.0- 6.0 sec   540 KBytes  4.42 Mbits/sec   7.041 ms    0/  376 (0%)
[  4]  6.0- 7.0 sec   439 KBytes  3.60 Mbits/sec   5.912 ms    0/  306 (0%)
[  4]  7.0- 8.0 sec   376 KBytes  3.08 Mbits/sec  12.903 ms    0/  262 (0%)
[  4]  8.0- 9.0 sec   464 KBytes  3.80 Mbits/sec   3.378 ms    0/  323 (0%)
[  4]  9.0-10.0 sec   395 KBytes  3.23 Mbits/sec   9.514 ms    0/  275 (0%)
[  4] 10.0-11.0 sec   411 KBytes  3.36 Mbits/sec   4.825 ms    0/  286 (0%)
[  4] 11.0-12.0 sec   362 KBytes  2.96 Mbits/sec   3.911 ms    0/  252 (0%)
[  4] 12.0-13.0 sec   373 KBytes  3.06 Mbits/sec  10.541 ms    0/  260 (0%)
[  4] 13.0-14.0 sec   701 KBytes  5.74 Mbits/sec   3.980 ms    0/  488 (0%)
[  4] 14.0-15.0 sec   530 KBytes  4.34 Mbits/sec   3.201 ms    0/  369 (0%)
[  4] 15.0-16.0 sec   445 KBytes  3.65 Mbits/sec   5.868 ms    0/  310 (0%)
[  4] 16.0-17.0 sec   426 KBytes  3.49 Mbits/sec   5.565 ms    0/  297 (0%)
[  4] 17.0-18.0 sec   416 KBytes  3.41 Mbits/sec   4.027 ms    0/  290 (0%)
[  4] 18.0-19.0 sec   403 KBytes  3.30 Mbits/sec   3.114 ms    0/  281 (0%)
[  4] 19.0-20.0 sec   415 KBytes  3.40 Mbits/sec   5.228 ms    0/  289 (0%)
[  4]  0.0-20.8 sec  8.98 MBytes  3.61 Mbits/sec  10.755 ms    0/ 6403 (0%)

I then repeated the same tests but but switching the roles of the client and the server

root@colibri-imx8x-06748677:~# iperf -s -u -B 239.1.1.10 -i 1
------------------------------------------------------------
Server listening on UDP port 5001
Binding to local address 239.1.1.10
Joining multicast group  239.1.1.10
Receiving 1470 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 239.1.1.10 port 5001 connected with 192.168.8.1 port 41431
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3]  0.0- 1.0 sec  86.1 KBytes   706 Kbits/sec  21.136 ms   15/   75 (20%)
[  3]  1.0- 2.0 sec   108 KBytes   882 Kbits/sec  19.886 ms    0/   75 (0%)
[  3]  2.0- 3.0 sec   108 KBytes   882 Kbits/sec  37.067 ms   21/   96 (22%)
[  3]  3.0- 4.0 sec   108 KBytes   882 Kbits/sec  41.695 ms   18/   93 (19%)
[  3]  4.0- 5.0 sec   108 KBytes   882 Kbits/sec  43.342 ms   18/   93 (19%)
[  3]  5.0- 6.0 sec   108 KBytes   882 Kbits/sec  39.340 ms   19/   94 (20%)
[  3]  6.0- 7.0 sec   108 KBytes   882 Kbits/sec  43.493 ms   18/   93 (19%)
[  3]  7.0- 8.0 sec  99.1 KBytes   811 Kbits/sec  42.285 ms   19/   88 (22%)
[  3]  8.0- 9.0 sec  94.7 KBytes   776 Kbits/sec  21.125 ms   21/   87 (24%)
[  3]  9.0-10.0 sec  86.1 KBytes   706 Kbits/sec  35.548 ms   34/   94 (36%)
[  3] 10.0-11.0 sec   106 KBytes   870 Kbits/sec  21.476 ms   20/   94 (21%)
[  3] 11.0-12.0 sec   106 KBytes   870 Kbits/sec  21.167 ms   20/   94 (21%)
[  3] 12.0-13.0 sec   108 KBytes   882 Kbits/sec  20.971 ms   21/   96 (22%)
[  3] 13.0-14.0 sec  83.3 KBytes   682 Kbits/sec  36.408 ms   38/   96 (40%)
[  3] 14.0-15.0 sec   108 KBytes   882 Kbits/sec  21.104 ms   18/   93 (19%)
[  3] 15.0-16.0 sec   108 KBytes   882 Kbits/sec  44.528 ms   21/   96 (22%)
[  3] 16.0-17.0 sec  89.0 KBytes   729 Kbits/sec  20.009 ms   18/   80 (22%)
[  3] 17.0-18.0 sec  83.3 KBytes   682 Kbits/sec  22.605 ms   33/   91 (36%)
[  3] 18.0-19.0 sec  86.1 KBytes   706 Kbits/sec  33.628 ms   35/   95 (37%)
[  3] 19.0-20.0 sec   108 KBytes   882 Kbits/sec  23.283 ms   18/   93 (19%)
[  3] 20.0-21.0 sec  86.1 KBytes   706 Kbits/sec  22.092 ms   33/   93 (35%)
[  3]  0.0-21.5 sec  2.08 MBytes   811 Kbits/sec  64.534 ms  477/ 1961 (24%)
root@colibri-imx8x-06760713:~# iperf -c 239.1.1.10 -u -T 3 -t 20 -i 1 -b 200M
------------------------------------------------------------
Client connecting to 239.1.1.10, UDP port 5001
Sending 1470 byte datagrams, IPG target: 56.08 us (kalman adjust)
Setting multicast TTL to 3
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.8.1 port 41431 connected with 239.1.1.10 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec   340 KBytes  2.79 Mbits/sec
[  3]  1.0- 2.0 sec   139 KBytes  1.14 Mbits/sec
[  3]  2.0- 3.0 sec   135 KBytes  1.11 Mbits/sec
[  3]  3.0- 4.0 sec   131 KBytes  1.07 Mbits/sec
[  3]  4.0- 5.0 sec   138 KBytes  1.13 Mbits/sec
[  3]  5.0- 6.0 sec   132 KBytes  1.08 Mbits/sec
[  3]  6.0- 7.0 sec   134 KBytes  1.09 Mbits/sec
[  3]  7.0- 8.0 sec   139 KBytes  1.14 Mbits/sec
[  3]  8.0- 9.0 sec   134 KBytes  1.09 Mbits/sec
[  3]  9.0-10.0 sec   135 KBytes  1.11 Mbits/sec
[  3] 10.0-11.0 sec   139 KBytes  1.14 Mbits/sec
[  3] 11.0-12.0 sec   134 KBytes  1.09 Mbits/sec
[  3] 12.0-13.0 sec   139 KBytes  1.14 Mbits/sec
[  3] 13.0-14.0 sec   118 KBytes   964 Kbits/sec
[  3] 14.0-15.0 sec   155 KBytes  1.27 Mbits/sec
[  3] 15.0-16.0 sec  38.8 KBytes   318 Kbits/sec
[  3] 16.0-17.0 sec   134 KBytes  1.09 Mbits/sec
[  3] 17.0-18.0 sec   136 KBytes  1.12 Mbits/sec
[  3] 18.0-19.0 sec   134 KBytes  1.09 Mbits/sec
[  3]  0.0-20.1 sec  2.75 MBytes  1.15 Mbits/sec
[  3] Sent 1961 datagrams

Best regards,
Josep

Hello @MariusM ,
Do you have any updates on this toic? Were you able to solve your issue?

Best regards,
Josep