[ndnSIM] device faces

amine amine.elabidi at cristal.rnu.tn
Thu May 30 14:11:05 PDT 2013


HI Alex,

Thanks, then you are saying that by only disabling the assert it will work
just fine.

 

 

Amine

 

From: Alex Afanasyev [mailto:alexander.afanasyev at ucla.edu] 
Sent: jeudi 30 mai 2013 17:25
To: amine
Cc: ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] device faces

 

Hi Amine,

 

Thanks for pointing out the problem. After checking the code I realized that
CSMA devices, as they should, pad short packets with empty payload (since
Ethernet standard mandates minimum 46 bytes payload).  There is no real need
to have the assert that was failing for you, so after I disabled it, the
simulation start working for me.   

 

You can fetch the latest commit that I just pushed and try again.

 

---

Alex

 

On May 30, 2013, at 2:26 AM, amine <amine.elabidi at cristal.rnu.tn> wrote:





Hi Alex

Thinks for your quick answer.

It's exactly what I have done. I Took the "ndn-simple" example and I changed
the devices form P2P to csma.  I had a problem in the L3-protocol  layer
when receiving the first interest packet. It gives me the following error
(Interest Payload size must be zero).  

When I use the pcap traces, I find that in the P2P case the size of the data
filed in the Ethernet Frame was 27 bytes, but with csma Frame it was 50
bytes.

 

Amine

 

From: Alex Afanasyev [mailto:alexander.afanasyev at ucla.edu] 
Sent: mercredi 29 mai 2013 18:48
To: amine
Cc: ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] device faces

 

Hi Amine,

 

There are no limitations of the existing ndn::NetDeviceFace to be used only
with PointToPoint devices.  You should be able to use it with csma, wifi,
emu, or any other types of devices without problem.  Just create desired
topology first and then install NDN stack using ndn::StackHelper.

 

Just in case, I want to remind that when packets are send out of the face,
they are send out in "broadcast" fashion (e.g., for ethernet it will use
FF:FF:FF:FF:FF:FF mac address).  This is not really a problem, but I want to
make sure you are aware of that.

 

---

ALex

 

On May 29, 2013, at 12:01 AM, "amine" <
<mailto:amine.elabidi at cristal.rnu.tn> amine.elabidi at cristal.rnu.tn> wrote:






Hi All,

I'm new using ndnsim, I need to use csma and emu devices with CCN stack. I
looked at the code and I find that  only P2P-device face is developed.

Any Help Please!!

Best Regards

_______________________________________________
ndnSIM mailing list
 <mailto:ndnSIM at lists.cs.ucla.edu> ndnSIM at lists.cs.ucla.edu
 <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

 

_______________________________________________
ndnSIM mailing list
 <mailto:ndnSIM at lists.cs.ucla.edu> ndnSIM at lists.cs.ucla.edu
 <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130530/f700d4f4/attachment.html>


More information about the ndnSIM mailing list