<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Actually, I meant I am using the same RavenUSB-Stick adapter for both traffic, NDN and IPV6/4.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Junxiao Shi <shijunxiao@email.arizona.edu><br>
<b>Sent:</b> Thursday, November 7, 2019 3:33 AM<br>
<b>To:</b> Aboodi Ahed Hussein Ali <aboodi@student.usm.my><br>
<b>Cc:</b> <nfd-dev@lists.cs.ucla.edu> <nfd-dev@lists.cs.ucla.edu><br>
<b>Subject:</b> Re: [Nfd-dev] Changing the MTU size</font>
<div> </div>
</div>
<div>
<div dir="auto">Hi Aboodi
<div dir="auto"><br>
</div>
<div dir="auto">'ip link' can set MTU separately for each Ethernet adapter. You can set low MTU on the USB Ethernet adapter only, without affecting traffic on other adapters.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Yours, Junxiao</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Wed, Nov 6, 2019, 14:28 Aboodi Ahed Hussein Ali <<a href="mailto:aboodi@student.usm.my">aboodi@student.usm.my</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thank you for your replay Junxiao. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
The "ip link" command works great when I set the MTU size even to 105 bytes. However, I would prefer to set the MTU within NDN/NFD only, I don't want to force 127/105 mtu to IPV6/4 packets, which I am still using parallel with NDN. I thought we can set NDN
 packet size using the <i>nfdc </i>command (per face) or the <i>tlv.hpp</i> (general).</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Just to clarify why I need that, I have connected my Ubuntu with RavenUSB-Stick which is flashed with the Contiki-based 6lowpan communication protocol (802.15.4). The
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">
RavenUSB-Stick</span> purports the OS to be an ethernet card and accepts the ethernet frames from the USB port, replace the frame header with 6lowpan header, and then sends it using 805.15.4 radio. It fragments the ethernet packet to 127 using the 6lowpan fragmentation
 process because the MTU limit for 6lowpan is 127. However, NDN packets cannot be sent (packet ignored for wrong packet type...) using the 6lowpan Contiki code, thus, I modify the code to accept ethernet frame with NDN packet type (when it comes from the OS),
 and ignore 6lowpan fragmentation as NDN has implemented that in the link-service of NDNLPv2. Therefore, my issue is to make sure that NDN, in my ubuntu,
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">
considers the 802.15.4 MTU limit and </span>fragments the NDN packet if bigger than 127bytes. How can I set the MTU for a specific face (e.g. ethernet multicast face) to 127/105? or How to set it generally for NDN/NFD?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am a beginner here, please forgive if I sent to the<span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important"> wrong mailing list</span>.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thank you,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Ahed</div>
<div id="x_m_-6599525819319474114appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_m_-6599525819319474114divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank" rel="noreferrer">shijunxiao@email.arizona.edu</a>><br>
<b>Sent:</b> Wednesday, November 6, 2019 7:52 PM<br>
<b>To:</b> Aboodi Ahed Hussein Ali <<a href="mailto:aboodi@student.usm.my" target="_blank" rel="noreferrer">aboodi@student.usm.my</a>><br>
<b>Cc:</b> <a href="mailto:nfd-dev@lists.cs.ucla.edu" target="_blank" rel="noreferrer">
nfd-dev@lists.cs.ucla.edu</a> <<a href="mailto:nfd-dev@lists.cs.ucla.edu" target="_blank" rel="noreferrer">nfd-dev@lists.cs.ucla.edu</a>><br>
<b>Subject:</b> Re: [Nfd-dev] Changing the MTU size</font>
<div> </div>
</div>
<div>
<div>
<div dir="auto">Hi Aboodi</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">MTU of Ethernet faces is read from the kernel. You can use ‘ip link’ command to change it before starting NFD.</div>
<div dir="auto"><br>
</div>
<div dir="auto">I doubt you can go as low as 127. IPv4 would stop working at that MTU.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Yours, Junxiao</div>
<div><br>
<div>
<div dir="ltr">On Wed, Nov 6, 2019 at 04:05 Aboodi Ahed Hussein Ali <<a href="mailto:aboodi@student.usm.my" target="_blank" rel="noreferrer">aboodi@student.usm.my</a>> wrote:<br>
</div>
<blockquote style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am trying to change the MTU size for the ethernet multicast face (remote=ether://[01:00:5e:00:17:aa]) to 127 but  I am not sure how to do that. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
I have tried to change the MTU of the multicast face with the below command, but I got "<i>Error 406 when creating face: Cannot create multicast Ethernet faces</i>" </div>
<div style="margin:0px; font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<i>The command: nfdc face create remote ether://[01:00:5e:00:17:aa] local dev://ens33 mtu 127</i></div>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have also tried to change the "MAX_NDN_PACKET_SIZE = 127" in the "~/<i>ndn-cxx/ndn-cxx/encoding/tlv.hpp</i>" but I get a fatal exception, "<i style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">encodes into 413 octets,
 exceeding the implementation limit of 127 octets</i><span style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">,</span> when I run the "<i>nfd-start</i>".</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Could you please advise me on how to change it.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thank you,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Ahed</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>