Will 3.27 supports for Ethernet (full duplex links, switches and mixed L2/L3 networks), when will it be released?

412 views
Skip to first unread message

Zhengchun Liu

unread,
Dec 24, 2016, 11:57:19 AM12/24/16
to ns-3-users
I hope to use ns3 to simulate large ethernet network, but as far as I know, the csma model doesnot fit well with the modern Ethernet, especially because it is not full-duplex. The PointToPoint channel is full duplex but it seems that I can not build bridge over p2p net device to simulate a switch. 


Tom Henderson

unread,
Dec 27, 2016, 10:32:27 AM12/27/16
to ns-3-...@googlegroups.com, Luciano Jerez Chaves
On 12/24/2016 08:57 AM, Zhengchun Liu wrote:
I hope to use ns3 to simulate large ethernet network, but as far as I know, the csma model doesnot fit well with the modern Ethernet, especially because it is not full-duplex. The PointToPoint channel is full duplex but it seems that I can not build bridge over p2p net device to simulate a switch.

Hello, in the past there have been several people who have worked on and contributed improved Ethernet models.  However, it never moved to mainline code.  Please look at:

https://codereview.appspot.com/5615049/

and then the full-duplex CSMA extensions that were forked from it:

https://codereview.appspot.com/187880044/

If we were to try to include it in ns-3.27, we would need someone to work on finishing this up from a testing perspective.  Anyone interested?

I'm cc'ing Luciano who has done work earlier this year on it; Luciano, do you think that this could be quickly finished off?

- Tom






--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.


Zhengchun Liu

unread,
Dec 27, 2016, 10:40:42 AM12/27/16
to ns-3-...@googlegroups.com, Luciano Jerez Chaves
Hello Tom, great thanks! I will try these and report what I found.

- Zhengchun
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/piXGg3DrR9E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

Luciano Jerez Chaves

unread,
Dec 30, 2016, 12:36:25 PM12/30/16
to Zhengchun Liu, ns-3-...@googlegroups.com
Hi Tom and Zhengchun,

I’ve been using the csma full-duplex extension (https://codereview.appspot.com/187880044/) on my simulations since the beginning of 2016, and I have never experienced any erros after applying the fixes indicated in the code review. 

I can help moving this extension to the mainline code. I already have an csma-duplex.cc example that I used to test the code and that can be include in the module to be used as test too (note that the csma module doesn’t have tests, only examples to run). I can also help with the documentation. I just need some orientation on how to submit these things, as this is the first time I’m contributing to the mainline code development.

For the the Ethernet model proposed in https://codereview.appspot.com/5615049/, in my opinion it seems to be a much more complex and realistic model. However, I think that extensive tests are necessary before merging it.

Regards,

--
Luciano Jerez Chaves
Assistant Professor at DCC/UFJF
PhD candidate at LRC/UNICAMP
http://www.lrc.ic.unicamp.br/~luciano

Tom Henderson

unread,
Dec 30, 2016, 3:12:06 PM12/30/16
to ns-3-...@googlegroups.com
On 12/30/2016 09:36 AM, Luciano Jerez Chaves wrote:
Hi Tom and Zhengchun,

I’ve been using the csma full-duplex extension (https://codereview.appspot.com/187880044/) on my simulations since the beginning of 2016, and I have never experienced any erros after applying the fixes indicated in the code review. 

I can help moving this extension to the mainline code. I already have an csma-duplex.cc example that I used to test the code and that can be include in the module to be used as test too (note that the csma module doesn’t have tests, only examples to run). I can also help with the documentation. I just need some orientation on how to submit these things, as this is the first time I’m contributing to the mainline code development.

Our contributing code guidelines are here:
https://www.nsnam.org/developers/contributing-code/

The basic guidelines are to submit code to a tracker issue for small patches, and to use Rietveld for larger contributions.  If you send code to a maintainer, he or she can also help to do these things on your behalf.

For this issue, please either post your patch or changes to this existing issue:
https://www.nsnam.org/bugzilla/show_bug.cgi?id=2354

or else email them to me off list and I will post there.

I created a new issue to remember the link to the switched ethernet model review:

https://www.nsnam.org/bugzilla/show_bug.cgi?id=2602

Help is wanted for finishing off this new model.

- Tom

Zhengchun Liu

unread,
Jan 1, 2017, 2:31:58 PM1/1/17
to ns-3-...@googlegroups.com
Hi Luciano,

Great thanks! I also want to use it. Which NS3 version are you using with the csma full-duplex extension? Thank you!

Zhengchun 
- Tom--

Luciano Jerez Chaves

unread,
Jan 5, 2017, 12:12:51 PM1/5/17
to ns-3-users
Hi,

I've just updated bug 2354 (https://www.nsnam.org/bugzilla/show_bug.cgi?id=2354) with the final patch for this extension. This patch can be applied on top of ns-3.26. I hope it can make for the ns-3.27 :)


On Sunday, January 1, 2017 at 5:31:58 PM UTC-2, Zhengchun Liu wrote:
Hi Luciano,

Great thanks! I also want to use it. Which NS3 version are you using with the csma full-duplex extension? Thank you!

I have already tested this extensions with ns-3.22, 3.23, 3.24.1 and 3.26. It is working perfectly!

Zhengchun Liu

unread,
Jan 5, 2017, 12:19:06 PM1/5/17
to ns-3-users
Perfect, thank you very much! I will try (probably) next week.

Zhengchun 

richard

unread,
Jun 11, 2017, 7:50:51 PM6/11/17
to ns-3-users
Hi all,

Thanks for the patch. However I tried to patch my ns-3.26 today and I got some errors coming from the python bindings. In the patch 4 functions that had no parameters have one now so the binding expects 0 parameters. I compiled disabling bindings and it builds, however since the problem seemed small I tried to update the "modulegen_gcc_LP64.py" of the csma model, and now it does build with the python binding enabled. I just had to change 4 lines I attached the patch for that exact file.

kind regards,
richard
bindings-patch
Reply all
Reply to author
Forward
0 new messages