ns-3 dce mac80211

317 views
Skip to first unread message

eshn epsilon

unread,
Oct 29, 2013, 9:02:22 AM10/29/13
to ns-3-...@googlegroups.com
Hi.

Trying to figure out if using ns-3 with the DCE module will enable me to use the wireless mac80211 framework for soft mac wifi cards inside ns-3.
Can't find anything about this anywhere.

Can anyone please indicate if I am wasting my time, or if it should be possible.

BR,
eshn

Hajime Tazaki

unread,
Nov 6, 2013, 3:12:16 AM11/6/13
to ns-3-...@googlegroups.com

At Tue, 29 Oct 2013 06:02:22 -0700 (PDT),
eshn epsilon wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]
I'm not sure whether I understand your question correctly,
but if you're considering just a combination of DCE and
Wi-Fi, it's possible. The following example uses wifi.

http://code.nsnam.org/ns-3-dce/file/3f7680e507cb/example/dce-linux.cc

or are you looking for others ? it would be helpful if you
could share your specific idea to use DCE.

-- Hajime

Daniel Camara

unread,
Nov 6, 2013, 3:24:50 AM11/6/13
to ns-3-...@googlegroups.com
I would guess he is refering to
http://wireless.kernel.org/en/developers/Documentation/mac80211, is it
correct?

If yes, well in principle, If I understood the description of the
project on the fast read I just did, I guess if you write your driver
for ns-3 I don't see any "architectural" or major theoretical problem.
Now if the question is if it will work directly, off the shelf....then
the honest response is: The only way to know is trying. Try to
create a simple driver to see, it is possible that functions required
by the framework are not implemented in DCE, but then... it is "only"
a matter of implementing them. :)

Best regards...

Daniel
> --
> 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 http://groups.google.com/group/ns-3-users.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Best regards...

Daniel

eshn epsilon

unread,
Nov 8, 2013, 5:27:58 AM11/8/13
to ns-3-...@googlegroups.com
Thanks Hajime for you reply.

Feel a bit honored by getting reply from you.
I am currently trying to install ns3-dce from your repos and run a simple example inspired from the link you sent.
Goal with my trial was to see if I could run "iw" inside ns-3-dce.
So far managed to compile a liblinux.so after enabling "wireless" with make menuconfig in your net-next-sim
and compile iw.

...currently trying to figure out this one:
"symbol lookup error: elf-cache/0/liblinux.so: undefined symbol: proc_mkdir_data"

BR

eshn epsilon

unread,
Nov 8, 2013, 8:11:32 AM11/8/13
to ns-3-...@googlegroups.com
Hi Daniel.

You understood me correctly.
Sound like I should give it a try, just need to make sure I've get the time =)
Thanks!

BR

Hajime Tazaki

unread,
Nov 12, 2013, 6:26:06 PM11/12/13
to ns-3-...@googlegroups.com

Hi,

At Fri, 8 Nov 2013 02:27:58 -0800 (PST),
eshn epsilon wrote:
>
> [1 <text/plain; ISO-8859-1 (7bit)>]
> Thanks Hajime for you reply.
>
> Feel a bit honored by getting reply from you.
> I am currently trying to install ns3-dce from your repos and run a simple
> example inspired from the link you sent.
> Goal with my trial was to see if I could run "iw" inside ns-3-dce.
> So far managed to compile a liblinux.so after enabling "wireless" with make
> menuconfig in your net-next-sim
> and compile iw.

I think iw command doesn't give an opportunity to configure
ns3::WifiNetDevice as is with DCE. if you want, you need to
implement 'bridging' code at ns-3-dce to forward command
request to WifiNetDevice.

> ...currently trying to figure out this one:
> "symbol lookup error: elf-cache/0/liblinux.so: undefined symbol:
> proc_mkdir_data"

this is due to the lack of symbol defined in liblinux.so,
available at net-next-sim. you need to add a glue code for
the missing function.

you can refer the example of proc_mkdir () at
net-next-sim/arch/sim/proc.c, which is a minimized version
of original function.

-- Hajime


> BR
>
>
> Den onsdagen den 6:e november 2013 kl. 09:12:16 UTC+1 skrev Hajime:
> >
> >
> > At Tue, 29 Oct 2013 06:02:22 -0700 (PDT),
> > eshn epsilon wrote:
> > >
> > > [1 <text/plain; ISO-8859-1 (7bit)>]
> > > Hi.
> > >
> > > Trying to figure out if using ns-3 with the DCE module will enable me to
> > > use the wireless mac80211 framework for soft mac wifi cards inside ns-3.
> > > Can't find anything about this anywhere.
> > >
> > > Can anyone please indicate if I am wasting my time, or if it should be
> > > possible.
> >
> > I'm not sure whether I understand your question correctly,
> > but if you're considering just a combination of DCE and
> > Wi-Fi, it's possible. The following example uses wifi.
> >
> > http://code.nsnam.org/ns-3-dce/file/3f7680e507cb/example/dce-linux.cc
> >
> > or are you looking for others ? it would be helpful if you
> > could share your specific idea to use DCE.
> >
> > -- Hajime
> >
> >
>
> --
> 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 http://groups.google.com/group/ns-3-users.
> For more options, visit https://groups.google.com/groups/opt_out.
> [2 <text/html; ISO-8859-1 (quoted-printable)>]
>

Hyder

unread,
Apr 24, 2014, 8:53:24 AM4/24/14
to ns-3-...@googlegroups.com
Hi,
I am new to the NS3 DCE architecture and had a question. I am familiar with NS3, however, now that I want to use the MAC 80211.ko kernel module and compile it in "liblinux.so" based on dce-linux-cc file. My OS is ubuntu 12.04 LTS.

I have got an error,
Waf: Leaving directory `/home/dce/source/ns-3-dce/build'
'build' finished successfully (4.637s)

assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::LinuxSocketFdFactory not found", file=../src/core/model/type-id.cc, line=539
terminate called without an active exception
Command ['/home/dce/source/ns-3-dce/build/bin/dce-iperf1'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").
root@ubuntu:/home/dce/source/ns-3-dce# ./waf --run <program> --command-template="gdb --args %s <args>"
bash: program: No such file or directory

---------

Hajime Tazaki

unread,
Apr 27, 2014, 9:35:41 AM4/27/14
to ns-3-...@googlegroups.com

Hi again,

this particular error (msg="Assert in TypeId::LookupByName:
ns3::LinuxSocketFdFactory not found") is due to missing
dce-linux module in your execution. did you build DCE with
dce-linux module via bake ?

http://www.nsnam.org/docs/dce/manual/html/getting-started.html#building-dce-advanced-mode-with-linux-kernel

-- Hajime

At Thu, 24 Apr 2014 05:53:24 -0700 (PDT),
Hyder wrote:
>
> [1 <text/plain; UTF-8 (7bit)>]
> --
> 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 http://groups.google.com/group/ns-3-users.
> For more options, visit https://groups.google.com/d/optout.
> [2 <text/html; UTF-8 (quoted-printable)>]
>

Hyder

unread,
Apr 27, 2014, 11:49:03 AM4/27/14
to ns-3-...@googlegroups.com
Dear Hajime,
Thank you for your reply. Yes I was using this link for installing my ns3-dce

Dear epsilon,
I am still trying to do something mac80211 in ns3-dce. If you have any information please help me, and ofcourse if I will get any information I will share with you. I am wasting my time, and I do not know it should be possible or not !!

BR
Hyder.

Pavel Mašek

unread,
Nov 29, 2014, 12:31:03 PM11/29/14
to ns-3-...@googlegroups.com
Dear Hyder,

I would like to ask you, if you solved the mentioned problem (ns3::LinuxSocketFdFactory not found).

Thank you for your response.

Pavel

Dne neděle, 27. dubna 2014 18:49:03 UTC+3 Hyder napsal(a):
Reply all
Reply to author
Forward
0 new messages