<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);">
That is really helpful, thank you very much, Davide. Yes, it works for me, although It will be better if NDN has the possibility to addresses that in nfd.conf.</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);">
Now, the mtu for ethernet multicast is 105 and the UDP multicast is 8800. Besides, I can use the IP traffic normally with mtu = 1298.</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);">
Thanks again <span style="font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">
Davide</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);">
Ahed</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</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> Davide Pesavento <davidepesa@gmail.com><br>
<b>Sent:</b> Thursday, November 7, 2019 11:41 PM<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 class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Correct. That would affect all multicast faces (side note: TCP<br>
multicast doesn't exist). Unicast faces would not be affected.<br>
<br>
If you want to use different MTUs for UDP multicast vs Ethernet<br>
multicast, the (now even uglier) hack becomes as follows:<br>
<br>
1. make sure there are *no* IP addresses on the interface(s) that you<br>
want to use with NDN/UDP multicast.<br>
2. set the interface MTU to whatever you need for NDN over ethernet<br>
mcast traffic<br>
3. start NFD<br>
4. set the interface MTU to whatever you need for NDN over UDP mcast traffic<br>
5. configure whatever IP address(es) you need on the interface(s),<br>
this will trigger NFD to create UDP multicast faces as needed<br>
6. set the interface MTU to the original value prior to step 1, or to<br>
whatever you need for non-NDN traffic<br>
<br>
Again, this is completely untested. You can verify the MTUs of the<br>
various faces are correct with 'nfdc face list'.<br>
<br>
Davide<br>
<br>
On Thu, Nov 7, 2019 at 10:26 AM Aboodi Ahed Hussein Ali<br>
<aboodi@student.usm.my> wrote:<br>
><br>
> If I get that correctly, TCP and UDP multicast faces will be affected too. if yes, how can I make it works only for ethernet multicast face and not affecting the other faces created at start-up?<br>
><br>
> Thank you,<br>
> Ahed<br>
> ________________________________<br>
> From: Davide Pesavento <davidepesa@gmail.com><br>
> Sent: Thursday, November 7, 2019 11:16 PM<br>
> To: Aboodi Ahed Hussein Ali <aboodi@student.usm.my><br>
> Cc: Junxiao Shi <shijunxiao@email.arizona.edu>; <nfd-dev@lists.cs.ucla.edu> <nfd-dev@lists.cs.ucla.edu><br>
> Subject: Re: [Nfd-dev] Changing the MTU size<br>
><br>
> Ahed,<br>
><br>
> Given that NFD does not currently react to MTU changes of the<br>
> underlying network interface while running, you could use the<br>
> following (untested) hack:<br>
><br>
> 1. set the interface MTU to 127, or whatever you need for NDN traffic<br>
> 2. start NFD<br>
> 3. set the interface MTU back to 1500, or whatever it was prior to step 1<br>
><br>
> Now NFD should be using an MTU of 127 for the ethernet face, while IP<br>
> traffic will use 1500.<br>
> As I said, this is an ugly hack and it will stop working when we fix<br>
> issue #3257 in NFD (<a href="https://redmine.named-data.net/issues/3257">https://redmine.named-data.net/issues/3257</a>).<br>
><br>
> Hope that helps!<br>
><br>
> Davide<br>
><br>
> On Wed, Nov 6, 2019 at 2:35 PM Aboodi Ahed Hussein Ali<br>
> <aboodi@student.usm.my> wrote:<br>
> ><br>
> > Actually, I meant I am using the same RavenUSB-Stick adapter for both traffic, NDN and IPV6/4.<br>
> > ________________________________<br>
> > From: Junxiao Shi <shijunxiao@email.arizona.edu><br>
> > Sent: Thursday, November 7, 2019 3:33 AM<br>
> > To: Aboodi Ahed Hussein Ali <aboodi@student.usm.my><br>
> > Cc: <nfd-dev@lists.cs.ucla.edu> <nfd-dev@lists.cs.ucla.edu><br>
> > Subject: Re: [Nfd-dev] Changing the MTU size<br>
> ><br>
> > Hi Aboodi<br>
> ><br>
> > '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.<br>
> ><br>
> > Yours, Junxiao<br>
> ><br>
> > On Wed, Nov 6, 2019, 14:28 Aboodi Ahed Hussein Ali <aboodi@student.usm.my> wrote:<br>
> ><br>
> > Hi all,<br>
> ><br>
> > Thank you for your replay Junxiao.<br>
> ><br>
> > 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 nfdc command (per face) or the tlv.hpp (general).<br>
> ><br>
> > 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 RavenUSB-Stick 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, considers the 802.15.4 MTU limit and 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?<br>
> ><br>
> > I am a beginner here, please forgive if I sent to the wrong mailing list.<br>
> ><br>
> > Thank you,<br>
> > Ahed<br>
> > ________________________________<br>
> > From: Junxiao Shi <shijunxiao@email.arizona.edu><br>
> > Sent: Wednesday, November 6, 2019 7:52 PM<br>
> > To: Aboodi Ahed Hussein Ali <aboodi@student.usm.my><br>
> > Cc: nfd-dev@lists.cs.ucla.edu <nfd-dev@lists.cs.ucla.edu><br>
> > Subject: Re: [Nfd-dev] Changing the MTU size<br>
> ><br>
> > Hi Aboodi<br>
> ><br>
> > MTU of Ethernet faces is read from the kernel. You can use ‘ip link’ command to change it before starting NFD.<br>
> ><br>
> > I doubt you can go as low as 127. IPv4 would stop working at that MTU.<br>
> ><br>
> > Yours, Junxiao<br>
> ><br>
> > On Wed, Nov 6, 2019 at 04:05 Aboodi Ahed Hussein Ali <aboodi@student.usm.my> wrote:<br>
> ><br>
> > Hi,<br>
> ><br>
> > 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.<br>
> ><br>
> > I have tried to change the MTU of the multicast face with the below command, but I got "Error 406 when creating face: Cannot create multicast Ethernet faces"<br>
> > The command: nfdc face create remote ether://[01:00:5e:00:17:aa] local dev://ens33 mtu 127<br>
> ><br>
> > I have also tried to change the "MAX_NDN_PACKET_SIZE = 127" in the "~/ndn-cxx/ndn-cxx/encoding/tlv.hpp" but I get a fatal exception, "encodes into 413 octets, exceeding the implementation limit of 127 octets, when I run the "nfd-start".<br>
> ><br>
> > Could you please advise me on how to change it.<br>
> ><br>
> > Thank you,<br>
> > Ahed<br>
> ><br>
> > _______________________________________________<br>
> > Nfd-dev mailing list<br>
> > Nfd-dev@lists.cs.ucla.edu<br>
> > <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br>
</div>
</span></font></div>
</body>
</html>