Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1579)

Issue 6458154: fd-net-device: a module to handle interconnection between ns-3 simulation and the 'outside world' i…

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by aquereilhac
Modified:
11 years ago
CC:
ns-3-reviews_googlegroups.com
Base URL:
http://code.nsnam.org/ns-3-dev
Visibility:
Public.

Description

fd-net-device: a module to handle interconnection between ns-3 simulation and the 'outside world' in a flexible way.

Patch Set 1 #

Total comments: 13

Patch Set 2 : Adding throughput measurement examples for FdNetDevice + performance bug-fix #

Total comments: 4

Patch Set 3 : Addressing comments from review https://codereview.appspot.com/6458154/#msg5 #

Patch Set 4 : Added validation for device name set on EmuFdNetDeviceHelper::SetFileDescriptor () #

Patch Set 5 : Added .rst documentation file provided by Tom + further details on the 'Design' section #

Total comments: 16

Patch Set 6 : Addressing comments from review https://codereview.appspot.com/6458154/#msg9 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15332 lines, -0 lines) Patch
A src/fd-net-device/bindings/callbacks_list.py View 1 1 chunk +7 lines, -0 lines 0 comments Download
A src/fd-net-device/bindings/modulegen__gcc_ILP32.py View 1 2 3 4 5 1 chunk +4574 lines, -0 lines 0 comments Download
A src/fd-net-device/bindings/modulegen__gcc_LP64.py View 1 2 3 4 5 1 chunk +4574 lines, -0 lines 0 comments Download
A src/fd-net-device/bindings/modulegen_customizations.py View 1 chunk +12 lines, -0 lines 0 comments Download
A src/fd-net-device/doc/fd-net-device.rst View 1 2 3 4 5 1 chunk +411 lines, -0 lines 0 comments Download
A src/fd-net-device/examples/dummy-network.cc View 1 2 3 4 5 1 chunk +81 lines, -0 lines 0 comments Download
A src/fd-net-device/examples/fd-emu-onoff.cc View 1 2 3 4 5 1 chunk +196 lines, -0 lines 0 comments Download
A src/fd-net-device/examples/fd-emu-ping.cc View 1 2 3 4 5 1 chunk +222 lines, -0 lines 0 comments Download
A src/fd-net-device/examples/fd-emu-udp-echo.cc View 1 2 3 4 5 1 chunk +166 lines, -0 lines 0 comments Download
A src/fd-net-device/examples/fd-planetlab-ping.cc View 1 2 3 4 5 1 chunk +213 lines, -0 lines 0 comments Download
A src/fd-net-device/examples/fd-tap-ping.cc View 1 2 3 4 5 1 chunk +216 lines, -0 lines 0 comments Download
A src/fd-net-device/examples/fd-tap-ping6.cc View 1 2 3 4 5 1 chunk +164 lines, -0 lines 0 comments Download
A src/fd-net-device/examples/fd2fd-onoff.cc View 1 2 3 4 5 1 chunk +127 lines, -0 lines 0 comments Download
A src/fd-net-device/examples/waf View 1 chunk +1 line, -0 lines 0 comments Download
A src/fd-net-device/examples/wscript View 1 1 chunk +28 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/creator-utils.h View 1 1 chunk +70 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/creator-utils.cc View 1 1 chunk +176 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/emu-fd-net-device-helper.h View 1 2 3 4 5 1 chunk +91 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/emu-fd-net-device-helper.cc View 1 2 3 4 5 1 chunk +419 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/encode-decode.h View 1 chunk +33 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/encode-decode.cc View 1 chunk +111 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/fd-net-device-helper.h View 1 chunk +134 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/fd-net-device-helper.cc View 1 1 chunk +204 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/planetlab-fd-net-device-helper.h View 1 2 1 chunk +103 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/planetlab-fd-net-device-helper.cc View 1 1 chunk +343 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/planetlab-tap-creator.cc View 1 1 chunk +235 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/raw-sock-creator.cc View 1 chunk +95 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/tap-creator.cc View 1 2 1 chunk +426 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/tap-fd-net-device-helper.h View 1 1 chunk +159 lines, -0 lines 0 comments Download
A src/fd-net-device/helper/tap-fd-net-device-helper.cc View 1 2 3 4 5 1 chunk +414 lines, -0 lines 0 comments Download
A src/fd-net-device/model/fd-net-device.h View 1 2 3 4 5 1 chunk +462 lines, -0 lines 0 comments Download
A src/fd-net-device/model/fd-net-device.cc View 1 2 3 4 5 1 chunk +719 lines, -0 lines 2 comments Download
A src/fd-net-device/test/examples-to-run.py View 1 chunk +22 lines, -0 lines 0 comments Download
A src/fd-net-device/waf View 1 chunk +1 line, -0 lines 0 comments Download
A src/fd-net-device/wscript View 1 chunk +123 lines, -0 lines 0 comments Download

Messages

Total messages: 13
Tom Henderson
http://codereview.appspot.com/6458154/diff/1/src/fd-net-device/examples/fd-emu-udp-echo.cc File src/fd-net-device/examples/fd-emu-udp-echo.cc (right): http://codereview.appspot.com/6458154/diff/1/src/fd-net-device/examples/fd-emu-udp-echo.cc#newcode56 src/fd-net-device/examples/fd-emu-udp-echo.cc:56: // "eth1" this diagram doesn't correspond to the example ...
11 years, 7 months ago (2012-08-31 23:25:25 UTC) #1
aquereilhac
On 2012/08/31 23:25:25, Tom Henderson wrote: > > http://codereview.appspot.com/6458154/diff/1/src/fd-net-device/examples/fd-emu-udp-echo.cc#newcode115 > src/fd-net-device/examples/fd-emu-udp-echo.cc:115: EmuFdNetDeviceHelper emu; > I ...
11 years, 7 months ago (2012-09-09 17:17:46 UTC) #2
aquereilhac
Adding throughput measurement examples for FdNetDevice + performance bug-fix
11 years, 1 month ago (2013-03-07 14:26:52 UTC) #3
aquereilhac
Adding throughput measurement examples for FdNetDevice + performance bug-fix
11 years, 1 month ago (2013-03-07 15:09:54 UTC) #4
Fred
tap-creator.cc already exists under tap-bridge/model https://codereview.appspot.com/6458154/diff/20001/src/fd-net-device/examples/fd2fd-onoff.cc File src/fd-net-device/examples/fd2fd-onoff.cc (right): https://codereview.appspot.com/6458154/diff/20001/src/fd-net-device/examples/fd2fd-onoff.cc#newcode45 src/fd-net-device/examples/fd2fd-onoff.cc:45: // 2 - Run ...
11 years, 1 month ago (2013-03-11 16:57:11 UTC) #5
aquereilhac
Addressing comments from review https://codereview.appspot.com/6458154/#msg5
11 years, 1 month ago (2013-03-12 18:10:02 UTC) #6
aquereilhac
Added validation for device name set on EmuFdNetDeviceHelper::SetFileDescriptor ()
11 years, 1 month ago (2013-03-12 22:31:17 UTC) #7
aquereilhac
Added .rst documentation file provided by Tom + further details on the 'Design' section
11 years, 1 month ago (2013-03-15 18:26:47 UTC) #8
Tom Henderson
Please add ns-3-reviews as cc to this issue. I reviewed this earlier to write the ...
11 years, 1 month ago (2013-03-16 14:41:35 UTC) #9
aquereilhac
Addressing comments from review https://codereview.appspot.com/6458154/#msg9
11 years, 1 month ago (2013-03-17 13:20:00 UTC) #10
aquereilhac
I have partially addressed these comments on Patch Set 6. More detail inline below: On ...
11 years, 1 month ago (2013-03-17 13:44:51 UTC) #11
Hajime Tazaki
I've reviewed through helper/model codes and am mostly fine. A couple of minor comments left ...
11 years, 1 month ago (2013-03-22 13:05:31 UTC) #12
aquereilhac
11 years ago (2013-03-27 00:28:45 UTC) #13
On 2013/03/22 13:05:31, Hajime Tazaki wrote:
> I've reviewed through helper/model codes and am mostly fine.
> A couple of minor comments left are not critical.
> 
>
https://codereview.appspot.com/6458154/diff/43001/src/fd-net-device/model/fd-...
> File src/fd-net-device/model/fd-net-device.cc (right):
> 
>
https://codereview.appspot.com/6458154/diff/43001/src/fd-net-device/model/fd-...
> src/fd-net-device/model/fd-net-device.cc:265: //std::cerr << std::endl <<
> "EmuNetDevice read thread: m_pendingReadCount is " << m_pendingReadCount <<
> std::endl;
> remove unused comment
> 

Ok. I'll modify this directly when I do the merge.

>
https://codereview.appspot.com/6458154/diff/43001/src/fd-net-device/model/fd-...
> src/fd-net-device/model/fd-net-device.cc:279: struct timespec time = { 0,
> 100000000L }; // 100 ms
> i'm not sure whether this hard-coded timeout value is appropriate or not.
using
> an attribute?

I am not sure it would make sense to let users modify this parameter... this
nano sleep occurs when the FdNetDevice is 'saturated' and can't handle any more
packets. If no sleep is done there (or it is too small) the next packets will be
dropped as well. So the nano sleep serves to let packets be processed before the
next read. If on the contrary the sleep is too big the performance of the device
will be unnecessarily low.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b