<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Buenos días,
<div class=""><br class="">
</div>
<div class="">Reenvío estos mensajes de la lista de correo de LiMe, interesantes ya que hablan del (no) uso de VLANs por radio-wifi<br class="">
<div class=""><br class="webkit-block-placeholder">
</div>
<div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Times; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span>Atentamente,</span></div>
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Times; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class="Apple-interchange-newline" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Times; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Times; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><span><img apple-inline="yes" id="FD129B7A-6FB6-460A-A124-F89F7512B861" src="cid:CE7BE0EC-44C8-4DB2-B290-00CE7FA98A74@urjc.es" class=""></span>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Times; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
<b style="font-family: UICTFontTextStyleBody; font-size: 17.33333396911621px;" class=""><br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</b><b style="font-family: Calibri, sans-serif; font-size: 14.666666984558105px;" class=""><span style="font-family: "Gill Sans MT", sans-serif; color: rgb(228, 5, 32);" class="">Alejandro Bravo Fernández</span></b></div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Times; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="font-family: UICTFontTextStyleBody;" class=""><strong style="font-size: 17.33333396911621px; background-color: rgba(255, 255, 255, 0);" class=""><font face=".SFUIDisplay" class="">Dpto. Teoría de la Señal y Comunicaciones y Sistemas Telématicos
 y Computación  </font></strong></div>
<div style="font-family: UICTFontTextStyleBody;" class=""><font face=".SFUIDisplay" class=""><span style="font-size: 17.33333396911621px; background-color: rgba(255, 255, 255, 0);" class="">Universidad Rey Juan Carlos</span></font></div>
<div class=""><a href="x-apple-data-detectors://1/1" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="1/1" style="font-family: UICTFontTextStyleBody; font-size: 17.33333396911621px;" class="">Camino
 del Molino, s/n,</a></div>
<div class=""><a href="x-apple-data-detectors://1/1" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="1/1" style="font-family: UICTFontTextStyleBody; font-size: 17.33333396911621px; background-color: rgba(255, 255, 255, 0);" class=""><font color="#000000" face=".SFUIDisplay" class="">28943,
 Fuenlabrada (Madrid), España</font></a></div>
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Times; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
<a href="https://link.getmailspring.com/link/55B6110F-DFA9-44FD-B069-892ED4417AB9@getmailspring.com/0?redirect=mailto%3Asergio.martinez%40urjc.es&recipient=YWxlamFuZHJvLmJyYXZvQHVyamMuZXM%3D" style="font-family: UICTFontTextStyleBody; font-size: 17.33333396911621px;" class="">alejandro.bravo@urjc.es</a><span style="font-family: UICTFontTextStyleBody; font-size: 17.33333396911621px;" class=""> | </span><a href="https://link.getmailspring.com/link/55B6110F-DFA9-44FD-B069-892ED4417AB9@getmailspring.com/1?redirect=www.urjc.es&recipient=YWxlamFuZHJvLmJyYXZvQHVyamMuZXM%3D" style="font-family: UICTFontTextStyleBody; font-size: 17.33333396911621px;" class="">www.urjc.es</a><span style="font-family: UICTFontTextStyleBody; font-size: 17.33333396911621px;" class=""> |
 @URJC |</span></div>
</span></span></div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">Inicio del mensaje reenviado:</div>
<br class="Apple-interchange-newline">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">De:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">guifipedro <<a href="mailto:guifipedro@gmail.com" class="">guifipedro@gmail.com</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Asunto:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [lime-dev] MediaTek routers, ethernet and VLAN 802.11ad</b><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Fecha:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">23 de agosto de 2019, 11:24:01 CEST<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Para:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">libremesh development <<a href="mailto:lime-dev@lists.libremesh.org" class="">lime-dev@lists.libremesh.org</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Responder a:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">libremesh development <<a href="mailto:lime-dev@lists.libremesh.org" class="">lime-dev@lists.libremesh.org</a>><br class="">
</span></div>
<br class="">
<div class="">
<div class="">+1 configuring networks and devices without VLAN in routing part. And<br class="">
you provided a great example why not.<br class="">
<br class="">
VLAN thing (by default and for a community network) is very weird,<br class="">
specially when dealing with some hardware - hardware that changes in<br class="">
time. We are talking about lowcost hardware that changes in revisions,<br class="">
remember the case of ubiquiti nanostation m5 having eth0 and eth1 in<br class="">
the past (physical interfaces) and then they changed to eth0.1 and<br class="">
eth0.2 (VLANs, internal switch).<br class="">
<br class="">
in our community network, we are removing VLAN in cable part<br class="">
(depending on the network setup, you can arrange that traffic to a<br class="">
vlan in the managed switch). We would like to completely remove VLAN<br class="">
in the wifi-radio part, but that means reflashing the full network<br class="">
(non retrocompatible change), we will see how we make it.<br class="">
<br class="">
On Sun, Aug 11, 2019 at 8:05 PM Ilario Gelmetti <<a href="mailto:iochesonome@gmail.com" class="">iochesonome@gmail.com</a>> wrote:<br class="">
<blockquote type="cite" class=""><br class="">
Dear all,<br class="">
I posted a revised version of this email also on OpenWrt forum [1] but<br class="">
received no answer until now.<br class="">
Can anyone reproduce on other MediaTek-based router (e.g. most of Xiaomi<br class="">
ones), with the instructions included in the forum post [1] please?<br class="">
In my opinion we have to positively or negatively confirm this *before*<br class="">
the next LibreMesh release, as if it is real I think we should make<br class="">
LibreMesh use Babeld on br-lan (as it already happens for BMX6) and<br class="">
without VLAN.<br class="">
Thanks!!<br class="">
Ilario<br class="">
<br class="">
[1]<br class="">
<a href="https://forum.openwrt.org/t/mediatek-and-vlan-802-1ad-on-ethernet/42346" class="">https://forum.openwrt.org/t/mediatek-and-vlan-802-1ad-on-ethernet/42346</a><br class="">
<br class="">
<br class="">
On 8/7/19 8:30 PM, Ilario Gelmetti wrote:<br class="">
<blockquote type="cite" class="">Dear all,<br class="">
I was testing LibreMesh (together with Gio and SAn, lime-packages master<br class="">
branch compiled on top of OpenWrt's openwrt-18.06 branch) on a<br class="">
MediaTek-based router: YouHua WR1200JS.<br class="">
Everything works fine apart the routing on cabled connections.<br class="">
Seems that these routers does not like VLAN of type 802.1ad on cable.<br class="">
It could be an OpenWrt bug or a bug on the device.<br class="">
Can anyone check and confirm on other MediaTek devices please?<br class="">
<br class="">
Here I make a list of what I tested:<br class="">
<br class="">
* setting the routing protocols to run on 802.1q interfaces (rather than<br class="">
on 802.1ad, we usually don't do it as it gave problems with TP-Link<br class="">
routers, can be done giving a third argument in /etc/config/lime, like<br class="">
"list protocols babeld:17:8021q") and the routing protocols see each<br class="">
other via cable, works well (two identically configured routers see each<br class="">
other as neighbours via eth0-1_17 in Babeld, prompted with "echo dump |<br class="">
nc ::1 30003")<br class="">
<br class="">
* listening with Wireshark on the laptop, I receive from the cable<br class="">
broken IPv6 multicast packets. They are correctly marked as VLAN 802.1ad<br class="">
ID 17 but the rest of the packet content is Error/Malformed.<br class="">
<br class="">
* creating an 802.1ad interface on my laptop (e.g. "ip link add link<br class="">
enp0s25 name enp0s25.17 type vlan proto 802.1ad id 17; ip link set<br class="">
enp0s25.17 up"), adding an /24 IP on both sides and pinging from the<br class="">
router to the laptop. My laptop receives the router's ARP requests and<br class="">
answers, but the router keeps asking as if it did not receive the answer.<br class="">
<br class="">
* while pinging from the laptop (10.2.1.2) to the router (10.2.1.1) on<br class="">
the just created tagged cabled interface, I connect via wifi and ssh to<br class="">
the router and run tcpdump on it:<br class="">
** running it on eth0 shows that my ARP requests physically reach the<br class="">
router and are properly tagged ("tcpdump -i eth0 -nn -e vlan"):<br class="">
21:03:45.354344 54:ee:75:7a:c2:1f > ff:ff:ff:ff:ff:ff, ethertype<br class="">
802.1Q-QinQ (0x88a8), length 64: vlan 1, p 0, ethertype 802.1Q-QinQ,<br class="">
vlan 17, p 0, ethertype ARP, Request who-has 10.2.1.1 tell 10.2.1.2,<br class="">
length 42<br class="">
** running it on eth0-1_17 shows broken UDP packets (the same Malformed<br class="">
IPv6 multicast packets I received with Wireshark) which likely are<br class="">
generated by Babeld, BUT NO ARP request at all:<br class="">
21:05:45.395359 IP6 (class 0xc0, flowlabel 0x854bc, hlim 1, next-header<br class="">
UDP (17) payload length: 89) fe80::d65f:25ff:feeb:7ead.6696 ><br class="">
ff02::1:6.6696: [bad udp cksum 0x77ed -> 0x7ce5!] UDP, length 81<br class="">
21:05:49.255355 IP6 (class 0xc0, flowlabel 0x854bc, hlim 1, next-header<br class="">
UDP (17) payload length: 20) fe80::d65f:25ff:feeb:7ead.6696 ><br class="">
ff02::1:6.6696: [bad udp cksum 0x77a8 -> 0xa0e9!] UDP, length 12<br class="">
21:05:53.225372 IP6 (class 0xc0, flowlabel 0x854bc, hlim 1, next-header<br class="">
UDP (17) payload length: 20) fe80::d65f:25ff:feeb:7ead.6696 ><br class="">
ff02::1:6.6696: [bad udp cksum 0x77a8 -> 0xa0e8!] UDP, length 12<br class="">
21:05:57.385373 IP6 (class 0xc0, flowlabel 0x854bc, hlim 1, next-header<br class="">
UDP (17) payload length: 20) fe80::d65f:25ff:feeb:7ead.6696 ><br class="">
ff02::1:6.6696: [bad udp cksum 0x77a8 -> 0xa0e7!] UDP, length 12<br class="">
21:06:01.245355 IP6 (class 0xc0, flowlabel 0x854bc, hlim 1, next-header<br class="">
UDP (17) payload length: 89) fe80::d65f:25ff:feeb:7ead.6696 ><br class="">
ff02::1:6.6696: [bad udp cksum 0x77ed -> 0x7ce1!] UDP, length 81<br class="">
<br class="">
* flashed the YouHua router with OpenWrt 18.06.4 as downloaded from the<br class="">
OpenWrt website and created the 802.1ad interfaces using the ip command<br class="">
(installing the ip-full package, "ip link add link eth0.1 name eth0-1_17<br class="">
type vlan proto 802.1ad id 17; ip link set eth0-1_17 up; ip address add<br class="">
10.2.1.1/24 dev eth0-1_17") and still it does not ping (my laptop's ARP<br class="">
requests and my laptop's ARP answers does not get to eth0-1_17)<br class="">
<br class="">
* on the same clean router, using nping I sent a raw ethernet packet on<br class="">
the eth0-1_17 interface (using the command "nping --send-eth<br class="">
--source-mac ff:ff:ff:ff:ff:ff --dest-mac ff:ff:ff:ff:ff:ff --data<br class="">
aaaabbbbccccddddeeeeffffffffeeeeddddccccbbbbaaaa -e eth0-1_17 -N<br class="">
8.8.8.8") and captured it on the laptop.<br class="">
What I got is broken (notice that instead of "aa aa bb bb cc cc" on the<br class="">
second line, I have "aa aa 0e 9c cc cc").<br class="">
This is when capturing on enp0s25 (plain ethernet)<br class="">
0000   ff ff ff ff ff ff ff ff ff ff ff ff 88 a8 00 11<br class="">
0010   08 00 08 00 4c 14 ab ea 00 01 aa aa 0e 9c cc cc<br class="">
0020   dd dd ee ee ff ff ff ff ee ee dd dd cc cc bb bb<br class="">
0030   aa aa d6 5f 25 ff fe eb 7e ac ae 2c 00 16 b7 e6<br class="">
0040   4a c6 4f ee f2 fa<br class="">
<br class="">
And this is when capturing on enp0s25.17 (VLAN 802.1ad ID 17 interface)<br class="">
0000   ff ff ff ff ff ff ff ff ff ff ff ff 08 00 08 00<br class="">
0010   2c 48 cb b2 00 05 aa aa 9a 9a cc cc dd dd ee ee<br class="">
0020   ff ff ff ff ee ee dd dd cc cc bb bb aa aa 64 68<br class="">
0030   63 70 20 31 2e 32 38 2e 34 0c 07 4f 70 65 6e 57<br class="">
0040   72 74<br class="">
<br class="">
the latest part of the packet, both when listening on enp0s25 or on<br class="">
enp0s25.17, varies: usually does not have a transcription while<br class="">
sometimes it can be transcribed as:<br class="">
<br class="">
0030   aa aa 64 68 63 70 20 31 2e 32 38 2e 34 0c 07 4f ..dhcp 1.28.4..O<br class="">
0040   70 65 6e 57 72 74                               penWrt<br class="">
<br class="">
where 1.28.4 looks like the busybox version on the router, no idea why<br class="">
or how this got here.<br class="">
<br class="">
Capturing the packet with tcpdump from inside the router, listening on<br class="">
eth0-1_17 I got:<br class="">
0000   ff ff ff ff ff ff ff ff ff ff ff ff 08 00 45 00<br class="">
0010   00 34 f5 88 00 00 40 01 6a 2e 0a 02 01 01 08 08<br class="">
0020   08 08 08 00 2f 89 c8 71 00 05 aa aa bb bb cc cc<br class="">
0030   dd dd ee ee ff ff ff ff ee ee dd dd cc cc bb bb<br class="">
0040   aa aa<br class="">
<br class="">
then, listening on eth0.1 I got:<br class="">
0000   ff ff ff ff ff ff ff ff ff ff ff ff 88 a8 00 11<br class="">
0010   08 00 45 00 00 34 21 a6 00 00 40 01 3e 11 0a 02<br class="">
0020   01 01 08 08 08 08 08 00 26 19 d1 e1 00 05 aa aa<br class="">
0030   bb bb cc cc dd dd ee ee ff ff ff ff ee ee dd dd<br class="">
0040   cc cc bb bb aa aa<br class="">
<br class="">
and listening on eth0:<br class="">
0000   ff ff ff ff ff ff ff ff ff ff ff ff 81 00 00 01<br class="">
0010   88 a8 00 11 08 00 45 00 00 34 4c e4 00 00 40 01<br class="">
0020   12 d3 0a 02 01 01 08 08 08 08 08 00 c8 4f 2f ab<br class="">
0030   00 05 aa aa bb bb cc cc dd dd ee ee ff ff ff ff<br class="">
0040   ee ee dd dd cc cc bb bb aa aa<br class="">
<br class="">
so that all these three captures taken from inside the router look good.<br class="">
<br class="">
As a comparison, I used the same nping command on a TP-Link WDR3600<br class="">
router and the packet captured on my laptop looks perfectly ok, sniffing<br class="">
on enp0s25:<br class="">
0000   ff ff ff ff ff ff ff ff ff ff ff ff 88 a8 00 11<br class="">
0010   08 00 45 00 00 34 88 39 00 00 40 01 6f 59 0a 0d<br class="">
0020   69 1a 08 08 08 08 08 00 da bd 1d 3d 00 05 aa aa<br class="">
0030   bb bb cc cc dd dd ee ee ff ff ff ff ee ee dd dd<br class="">
0040   cc cc bb bb aa aa<br class="">
<br class="">
And capturing on enp0s25.17:<br class="">
0000   ff ff ff ff ff ff ff ff ff ff ff ff 08 00 45 00<br class="">
0010   00 34 33 0e 00 00 40 01 c4 84 0a 0d 69 1a 08 08<br class="">
0020   08 08 08 00 60 93 97 67 00 05 aa aa bb bb cc cc<br class="">
0030   dd dd ee ee ff ff ff ff ee ee dd dd cc cc bb bb<br class="">
0040   aa aa<br class="">
<br class="">
In case this bug a hardware one for all the MediaTek-based routers, I<br class="">
would suggest considering running Babeld on the br-lan bridge without<br class="">
any VLAN (neither 802.1q nor 802.1ad) rather than on eth0-1_17.<br class="">
BMX6 was already running on the bridge and to avoid it to run also<br class="">
inside BATMAN-adv we were using this ebtables rule:<br class="">
https://github.com/libremesh/lime-packages/blob/master/packages/lime-proto-bmx6/src/bmx6.lua#L133-L134<br class="">
we could do the same for Babeld (and for consistency I would also not<br class="">
use VLAN for it on wireless mesh interfaces).<br class="">
<br class="">
Thanks && ciao;<br class="">
Ilario<br class="">
<br class="">
</blockquote>
<br class="">
<br class="">
--<br class="">
Ilario Gelmetti<br class="">
iochesonome@gmail.com<br class="">
igelmetti@iciq.es<br class="">
ilario.gelmetti@estudiants.urv.cat<br class="">
<br class="">
_______________________________________________<br class="">
lime-dev mailing list<br class="">
lime-dev@lists.libremesh.org<br class="">
https://lists.libremesh.org/mailman/listinfo/lime-dev<br class="">
</blockquote>
_______________________________________________<br class="">
lime-dev mailing list<br class="">
<a href="mailto:lime-dev@lists.libremesh.org" class="">lime-dev@lists.libremesh.org</a><br class="">
https://lists.libremesh.org/mailman/listinfo/lime-dev</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>