Is there any plan for updating flow monitor to support IPv6

546 views
Skip to first unread message

NAVEEN KAMATH

unread,
Jan 4, 2014, 6:17:21 AM1/4/14
to ns-3-...@googlegroups.com
Hi all,

I would like to know if anyone is actively involved in trying to develop ipv6 support for the flow monitor.

If no, is it possible for me to take up the work.

Tommaso Pecorella

unread,
Jan 4, 2014, 6:39:41 AM1/4/14
to ns-3-...@googlegroups.com
Hi,

thanks for offering, but it's already done. Almost.

Please check the following links on Bugzilla:
1817: IPv4 Identification field should be set to zero for all datagrams but fragments.

1808: FlowMon relies on IPv4's Identification field to trace packets

1818: FlowMonitor needs IPv6 support

1819: FlowMonitor might cause the simulation to run forever

They contain the patches to "fix" the actual FlowMon for IPv4 and add v6 capabilities.
Mind that the v6 capabilities rely on the v4 bugs.

If you have time to review the patches, it will be most welcome.

Cheers,

T.

abdelwahed berguiga

unread,
Feb 10, 2014, 6:41:05 AM2/10/14
to ns-3-...@googlegroups.com
Hi Tommaso,
i check the 4 links on Bugzilla (1817, 1808, 1818 and 1819)
i want to know if the bug 1818 (attached files) is the good one to be applied on ns3-19 in order to take ipv6 capabilities?
Thank you
flow-monitor.rst
Ipv6FlowMon.diff
Message has been deleted

abdelwahed berguiga

unread,
Feb 10, 2014, 11:27:38 AM2/10/14
to ns-3-...@googlegroups.com
Hi,
i have applied the "ipv6flowmon.diff" patch file.
However i have some buid errors :

../src/flow-monitor/model/ipv6-flow-probe.cc: In member function ‘void ns3::Ipv6FlowProbe::DropLogger(const ns3::Ipv6Header&, ns3::Ptr<const ns3::Packet>, ns3::Ipv6L3Protocol::DropReason, ns3::Ptr<ns3::Ipv6>, uint32_t)’:
../src/flow-monitor/model/ipv6-flow-probe.cc:363:14: error: ‘DROP_UNKNOWN_OPTION’ is not a member of ‘ns3::Ipv6L3Protocol’
../src/flow-monitor/model/ipv6-flow-probe.cc:367:14: error: ‘DROP_MALFORMED_HEADER’ is not a member of ‘ns3::Ipv6L3Protocol’
../src/flow-monitor/model/ipv6-flow-probe.cc:371:14: error: ‘DROP_FRAGMENT_TIMEOUT’ is not a member of ‘ns3::Ipv6L3Protocol’

NAVEEN KAMATH

unread,
Feb 10, 2014, 11:50:46 AM2/10/14
to ns-3-...@googlegroups.com
Hi,
      I had used an older version of the patch. That worked for me. It seems that this patch does not contain the changes required to be made to the file ipv6-l3-protocol.h in terms of adding the additional enum constants.

abdelwahed berguiga

unread,
Feb 10, 2014, 11:59:15 AM2/10/14
to ns-3-...@googlegroups.com
Hi Naveen,
Can you please send me the old version?
Thank you.

abdelwahed berguiga

unread,
Feb 12, 2014, 12:43:49 AM2/12/14
to ns-3-...@googlegroups.com
Hi Tommaso,
i applied the Flowmonitor-related patches:
However, when i build ns-3.19, i have this error:

src/flow-monitor/bindings/ns3module.cc: In function ‘PyObject* _wrap_PyNs3FlowMonitor_SetFlowClassifier(PyNs3FlowMonitor*, PyObject*, PyObject*)’:
src/flow-monitor/bindings/ns3module.cc:2372:16: error: ‘class ns3::FlowMonitor’ has no member named ‘SetFlowClassifier’

although i removed the member named "SetFlowClassifier" as it is mentioned in the patches.

So,i edited the "modulegen__gcc_ILP32.py" file and i changed the line:

    ## flow-monitor.h (module 'flow-monitor'): void ns3::FlowMonitor::SetFlowClassifier(ns3::Ptr<ns3::FlowClassifier> classifier) [member function]
    cls.add_method('SetFlowClassifier', 
                   'void', 
                   [param('ns3::Ptr< ns3::FlowClassifier >', 'classifier')])

by

    ## flow-monitor.h (module 'flow-monitor'): void ns3::FlowMonitor::AddFlowClassifier(ns3::Ptr<ns3::FlowClassifier> classifier) [member function]
    cls.add_method('AddFlowClassifier', 
                   'void', 
                   [param('ns3::Ptr< ns3::FlowClassifier >', 'classifier')])

During the build, it seems that everything works and the build was successfully completed!
Now, i would like to test if the flow monitor supports ipv6, so do you by chance have an example to test it?
Thank you.

Tommaso Pecorella

unread,
Feb 12, 2014, 2:15:44 AM2/12/14
to ns-3-...@googlegroups.com
Hi,

yes, the error in bindings is normal. They have to be rebuilt when a new class is added or when there's an API change.
The easiest way is to rebuild them automatically, tho. See http://www.nsnam.org/wiki/Python_bindings

About a simulation to check it, I don't have one in particular. Try simply using one f the examples. The UDP ones can be used also with IPv6.

Cheers,

T

abdelwahed berguiga

unread,
Feb 12, 2014, 4:36:45 AM2/12/14
to ns-3-...@googlegroups.com
Hi,
i locate some errors during the simulation:

  Simulator::Run ();

  // Print per flow statistics
  monitor->CheckForLostPackets ();
  Ptr<Ipv6FlowClassifier> classifier = DynamicCast<Ipv6FlowClassifier> (flowmon.GetClassifier ());
  std::map<FlowId, FlowMonitor::FlowStats> stats = monitor->GetFlowStats ();

  for (std::map<FlowId, FlowMonitor::FlowStats>::const_iterator iter = stats.begin (); iter != stats.end (); ++iter)
    {
 Ipv6FlowClassifier::FiveTuple t = classifier->FindFlow (iter->first);

      if (t.sourceAddress == Ipv6Address("3ffe:2::1") && t.destinationAddress == Ipv6Address("3ffe:1:4:1:200:ff:fe00:c"))
        {
     NS_LOG_UNCOND("Flow ID: " << iter->first << " Src Addr " << t.sourceAddress << " Dst Addr " << t.destinationAddress);
     NS_LOG_UNCOND("Tx Packets = " << iter->second.txPackets);
     NS_LOG_UNCOND("Rx Packets = " << iter->second.rxPackets);
     NS_LOG_UNCOND("Throughput: " << iter->second.rxBytes * 8.0 / (iter->second.timeLastRxPacket.GetSeconds()-iter->second.timeFirstTxPacket.GetSeconds()) / 1024  << " Kbps");
        }
    }
  monitor->SerializeToXmlFile("lab-5.flowmon", true, true);
  Simulator::Destroy ();

  return 0;

I execute the script under debugger. the following are the errors:
i see that errors are in fivetuple Structure

Program received signal SIGSEGV, Segmentation fault.
0xb6a4d5bf in std::_Rb_tree<ns3::Ipv6FlowClassifier::FiveTuple, std::pair<ns3::Ipv6FlowClassifier::FiveTuple const, unsigned int>, std::_Select1st<std::pair<ns3::Ipv6FlowClassifier::FiveTuple const, unsigned int> >, std::less<ns3::Ipv6FlowClassifier::FiveTuple>, std::allocator<std::pair<ns3::Ipv6FlowClassifier::FiveTuple const, unsigned int> > >::begin (this=0xc)
    at /usr/include/c++/4.6/bits/stl_tree.h:660
660      (this->_M_impl._M_header._M_left));
(gdb) backtrace
#0  0xb6a4d5bf in std::_Rb_tree<ns3::Ipv6FlowClassifier::FiveTuple, std::pair<ns3::Ipv6FlowClassifier::FiveTuple const, unsigned int>, std::_Select1st<std::pair<ns3::Ipv6FlowClassifier::FiveTuple const, unsigned int> >, std::less<ns3::Ipv6FlowClassifier::FiveTuple>, std::allocator<std::pair<ns3::Ipv6FlowClassifier::FiveTuple const, unsigned int> > >::begin (this=0xc)
    at /usr/include/c++/4.6/bits/stl_tree.h:660
#1  0xb6a4d068 in std::map<ns3::Ipv6FlowClassifier::FiveTuple, unsigned int, std::less<ns3::Ipv6FlowClassifier::FiveTuple>, std::allocator<std::pair<ns3::Ipv6FlowClassifier::FiveTuple const, unsigned int> > >::begin (this=0xc) at /usr/include/c++/4.6/bits/stl_map.h:319
#2  0xb6a4c628 in ns3::Ipv6FlowClassifier::FindFlow (this=0x0, flowId=1) at ../src/flow-monitor/model/ipv6-flow-classifier.cc:177
#3  0x0805e8e9 in main (argc=1, argv=0xbfffef44) at ../scratch/pmip6-wifi.cc:441
(gdb) 





--
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/rvzMCHfr6Ds/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Tommaso Pecorella

unread,
Feb 12, 2014, 4:28:37 PM2/12/14
to ns-3-...@googlegroups.com
Hi Abdel,

can you send me the scripts raising the error ? I'll try to fix it.

Cheers,

T.

abdelwahed berguiga

unread,
Feb 12, 2014, 5:48:12 PM2/12/14
to ns-3-...@googlegroups.com
Hi Tommaso,
the attached is the script.
The script is specific to the PMIPv6 protocol that I integrated in ns-3.19.
the script works well, the problem araise when i execute flowmonitor.
Also, I transmit a screen shot of elcipse debugger.
pmip6-wifi.cc
Capture du 2014-02-12 23:36:57.png
Capture du 2014-02-12 23:37:18.png

abdelwahed berguiga

unread,
Feb 13, 2014, 1:38:23 AM2/13/14
to ns-3-...@googlegroups.com
Hi Tommaso,
the attached is the script.
Now, it seems it works quite well!
The script is specific to the PMIPv6 protocol that I integrated in ns-3.19.
Also, I transmit an XML Serialize file.
So, Can you please ensure if the XML file is in standard form?
Thank you.

lab-5.flowmon
pmip6-wifi.cc

Renato Martins

unread,
Feb 19, 2014, 6:07:03 AM2/19/14
to ns-3-...@googlegroups.com
Hi abdelwahed,

I have the same problem with FiveTuple.
Do you have any updates about this topic?

Thanks in advance.

abdelwahed berguiga

unread,
Feb 19, 2014, 6:41:16 AM2/19/14
to ns-3-...@googlegroups.com
Hi Renato,
the problem arise in the Classifier type:
 Ptr<Ipv6FlowClassifier> classifier = DynamicCast<Ipv6FlowClassifier> (flowmon.GetClassifier ());
Must be
Ptr<Ipv6FlowClassifier> classifier = DynamicCast<Ipv6FlowClassifier> (flowmon.GetClassifier6 ());

Renato Martins

unread,
Feb 19, 2014, 9:36:34 AM2/19/14
to ns-3-...@googlegroups.com
Thanks a lot. 
You are right.

May you tell me what are the version of NS3 that you use and where you get the pmipv6 module (ns3.8 or ns3.12)?

Thanks in advance.

abdelwahed berguiga

unread,
Feb 19, 2014, 11:21:53 AM2/19/14
to ns-3-...@googlegroups.com
Hi Renato,
i use the ns-3.19 version.
Following is the link that you can download pmipv6 module:

Renato Martins

unread,
Feb 19, 2014, 11:54:15 AM2/19/14
to ns-3-...@googlegroups.com
Hi abdelwahed,

I have that contribution (ns3.12) installed in my ubuntu to simulate the delay when the station changes the AP connection .

I tried to merge that pmipv6 module with ns3.19 but I get some errors.

I fixed some errors but not all of them. 

Did you manage to merge the pmipv6 module with ns3.12?

Thanks a lot.

abdelwahed berguiga

unread,
Feb 19, 2014, 12:01:07 PM2/19/14
to ns-3-...@googlegroups.com
Hi,
i have extracted the pmipv6 module from ns-3.12 and i have merged it into ns-3.19.

Renato Martins

unread,
Feb 19, 2014, 12:11:55 PM2/19/14
to ns-3-...@googlegroups.com
Hi, 

I get some errors mainly in IPv6L4Protocol that I didn't get to fix.

Could you share with me your ns3.19 merged?

It is very important for me because I cannot use the flowmonitor with ns3.12 and in version ns3.19 the bug 1818 is solved.

Thanks in advance.

abdelwahed berguiga

unread,
Feb 19, 2014, 4:16:03 PM2/19/14
to ns-3-...@googlegroups.com
Hi,
I'll send you the patch file as soon as possible.

Renato Martins

unread,
Feb 19, 2014, 5:42:07 PM2/19/14
to ns-3-...@googlegroups.com
Thanks a lot.

Renato Martins

unread,
Feb 19, 2014, 5:44:34 PM2/19/14
to ns-3-...@googlegroups.com
Will you send for here or for my email?

Thanks again. It's very important for me.

Renato Martins

unread,
Feb 21, 2014, 9:57:40 AM2/21/14
to ns-3-...@googlegroups.com
Hi abdelwahed,

Could you send me your ns3.19 folder compressed instead of the patch file?

Maybe, it will be faster.

Thanks a lot

Renato Martins

unread,
Mar 10, 2014, 5:38:09 AM3/10/14
to ns-3-...@googlegroups.com
Hi abdelwahed,

when do you send me the files?

Thanks

abdelwahed berguiga

unread,
Mar 10, 2014, 5:49:38 AM3/10/14
to ns-3-...@googlegroups.com
Hi Renato,
I'm so sorry about my late reply.
for the patch, i'm still working because i have some problems with tagging and callback!
i will send you the patch file once i elminate these errors.


For more options, visit https://groups.google.com/d/optout.

Renato Martins

unread,
Mar 11, 2014, 11:52:47 AM3/11/14
to ns-3-...@googlegroups.com
Hi abdelwahed,

thanks for your reply.

I will wait.

abdelwahed berguiga

unread,
Mar 15, 2014, 7:41:07 PM3/15/14
to ns-3-...@googlegroups.com
Hi Renato,
the attached is a PMIPv6 patch file for ns-3.19.
as I already told you, there are some erros due to a change in Unicast and Multicast forward callbacks.
So, any correction is welcome to be shared.
output-ns-3.19-pmipv6.patch

Agnes Ling

unread,
Mar 16, 2014, 1:16:49 PM3/16/14
to ns-3-...@googlegroups.com
HI abdelwahed,

i would like to ask , is there any patches for ns-3.18?
currently i m using that version, i need the patch to add the flow monitor in ipv6.
or i also can use the same patches as ns-3.19?

regards,
agnes

Tommaso Pecorella

unread,
Mar 16, 2014, 1:37:26 PM3/16/14
to ns-3-...@googlegroups.com
Question.... why don't you upgrade to 3.19 ?

T.

abdelwahed berguiga

unread,
Mar 16, 2014, 2:17:14 PM3/16/14
to ns-3-...@googlegroups.com
Hi Anges,
as noted by Tommaso, I think it is better to upgrade to ns-3.19.
Also, Tommaso has developed a fine ipv6 support for the flow monitor.
You can check the following links on Bugzilla:

1817: IPv4 Identification field should be set to zero for all datagrams but fragments.

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

 

1808: FlowMon relies on IPv4's Identification field to trace packets

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

 

1818: FlowMonitor needs IPv6 support

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

 

1819: FlowMonitor might cause the simulation to run forever

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

 

Best regards,

A.B.

Renato Martins

unread,
Mar 17, 2014, 7:34:40 AM3/17/14
to ns-3-...@googlegroups.com
Hi abdelwahed,

thanks a lot.

I will try to fix some errors. ;)

Agnes Ling

unread,
Mar 18, 2014, 10:59:24 AM3/18/14
to ns-3-...@googlegroups.com
Hi Tommaso...

thanks for replying.

Ok. i will try to upgrade my ns version to ns-3.19.

thanks for your advise.

regards,
Agnes

Agnes Ling

unread,
Mar 18, 2014, 11:00:43 AM3/18/14
to ns-3-...@googlegroups.com
Hi A.B.

i will look through the links once i have update my ns to ns-3.19.

Thanks a lot ya..

have a nice day :)

Regards,
Agnes

Agnes Ling

unread,
Mar 20, 2014, 6:22:00 AM3/20/14
to ns-3-...@googlegroups.com
Hi A.B

i had this error when i tried to build my ns-3.19 after have add in the patches..


src/flow-monitor/bindings/ns3module.cc: In function ‘PyObject* _wrap_PyNs3FlowMonitor_SetFlowClassifier(PyNs3FlowMonitor*, PyObject*, PyObject*)’:
src/flow-monitor/bindings/ns3module.cc:2372:16: error: ‘class ns3::FlowMonitor’ has no member named ‘SetFlowClassifier’
Waf: Leaving directory `/home/agnes90/tarballs/ns-allinone-3.19/ns-3.19/build'
Build failed
 -> task in 'ns3module_flow-monitor' failed (exit status 1):
    {task 154604620: cxx ns3module.cc -> ns3module.cc.7.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-fvisibility=hidden', '-Wno-array-bounds', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I.', '-I..', '-Isrc/flow-monitor/bindings', '-I../src/flow-monitor/bindings', '-I/usr/include/python2.7', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNS_DEPRECATED=', '-DNS3_DEPRECATED_H', '-DNDEBUG', '-DNDEBUG', 'src/flow-monitor/bindings/ns3module.cc', '-c', '-o', 'src/flow-monitor/bindings/ns3module.cc.7.o']




can you help me to point out what is the problem?  or i have build it with the wrong step?


regards,
Agnes

abdelwahed berguiga

unread,
Mar 20, 2014, 10:20:46 AM3/20/14
to ns-3-...@googlegroups.com
Hi Anges,
Your code is missing the member function "SetFlowClassifier"
verify your "flow-monitor.cc" file, you should have the bellow member function: 

void
FlowMonitor::SetFlowClassifier (Ptr<FlowClassifier> classifier)
{
  m_classifier = classifier;
}

Also, verify your "modulegen__gcc_LP64.py", you shoud have the bellow declararion:

## flow-monitor.h (module 'flow-monitor'): void ns3::FlowMonitor::SetFlowClassifier(ns3::Ptr<ns3::FlowClassifier> classifier) [member function]
    cls.add_method('SetFlowClassifier', 
                   'void', 
                   [param('ns3::Ptr< ns3::FlowClassifier >', 'classifier')])

Abdelwahed.
Message has been deleted

Agnes Ling

unread,
Mar 21, 2014, 7:12:04 AM3/21/14
to ns-3-...@googlegroups.com
Hi A.B,

i still have the same error when i have applied code that you had gave.

src/flow-monitor/bindings/ns3module.cc: In function ‘PyObject* _wrap_PyNs3FlowMonitor_SetFlowClassifier(PyNs3FlowMonitor*, PyObject*, PyObject*)’:
src/flow-monitor/bindings/ns3module.cc:2372:16: error: ‘class ns3::FlowMonitor’ has no member named ‘SetFlowClassifier’
Waf: Leaving directory `/home/agnes90/tarballs/ns-allinone-3.19/ns-3.19/build'
Build failed
 -> task in 'ns3module_flow-monitor' failed (exit status 1): 
{task 153170348: cxx ns3module.cc -> ns3module.cc.7.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-fvisibility=hidden', '-Wno-array-bounds', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I.', '-I..', '-Isrc/flow-monitor/bindings', '-I../src/flow-monitor/bindings', '-I/usr/include/python2.7', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNS_DEPRECATED=', '-DNS3_DEPRECATED_H', '-DNDEBUG', '-DNDEBUG', 'src/flow-monitor/bindings/ns3module.cc', '-c', '-o', 'src/flow-monitor/bindings/ns3module.cc.7.o']



 by the way, i would like to ask... 
 At your previous post (Feb 12) , 
 " So,i edited the "modulegen__gcc_ILP32.py" file and i changed the line:

    ## flow-monitor.h (module 'flow-monitor'): void ns3::FlowMonitor::SetFlowClassifier(ns3::Ptr<ns3::FlowClassifier> classifier) [member function]
    cls.add_method('SetFlowClassifier', 
                   'void', 
                   [param('ns3::Ptr< ns3::FlowClassifier >', 'classifier')])

by

    ## flow-monitor.h (module 'flow-monitor'): void ns3::FlowMonitor::AddFlowClassifier(ns3::Ptr<ns3::FlowClassifier> classifier) [member function]
    cls.add_method('AddFlowClassifier', 
                   'void', 
                   [param('ns3::Ptr< ns3::FlowClassifier >', 'classifier')])" 

but you asked me to do some editing in "modulegen__gcc_LP64.py". so, should i change the code in modulegen__gcc_LP64.py or modulegen__gcc_ILP32.py ?

and which line should i replace? 
 is this  " ## flow-monitor.h (module 'flow-monitor'): void ns3::FlowMonitor::SetFlowClassifier(ns3::Ptr<ns3::FlowClassifier> classifier) [member function]
    cls.add_method('SetFlowClassifier', 
                   'void', 
                   [param('ns3::Ptr< ns3::FlowClassifier >', 'classifier')])" 

or   " ## flow-monitor.h (module 'flow-monitor'): void ns3::FlowMonitor::AddFlowClassifier(ns3::Ptr<ns3::FlowClassifier> classifier) [member function]
    cls.add_method('AddFlowClassifier', 
                   'void', 
                   [param('ns3::Ptr< ns3::FlowClassifier >', 'classifier')])" 

i have get comfuse..... :( 


Regards,
Agnes

Tommaso Pecorella

unread,
Mar 21, 2014, 4:35:05 PM3/21/14
to ns-3-...@googlegroups.com
Hi,

the files modulegen[xxx].py are the Python bindings. Usually they're not changed manually. We recreate them when needed.

The easiest way to correct errors related to them is to generate the PyBindings in your computer (or to disable Python).

Check this:

Cheers,

T.


PS: the first bunch of changes related to FlowMonitor IPv6 support has been merged. Soon the missing ones.

Agnes Ling

unread,
Mar 23, 2014, 3:42:06 AM3/23/14
to ns-3-...@googlegroups.com
hi,

I have this error when i tried to disable the python with this command
"./waf --disable-python"

" Build failed
-> task in 'pybindgen(ns3 module antenna)' failed (exit status 1):
{task 164314156: command_task ns3modulegen-modular.py,modulegen__gcc_ILP32.py -> ns3module.cc,ns3module.h,ns3modulegen.log}
''
May i know what is the problem has cause this error come out? and how to fix it?


regards,
Agnes

Tommaso Pecorella

unread,
Mar 23, 2014, 4:19:56 AM3/23/14
to ns-3-...@googlegroups.com
Hi,

 --disable-python is to be used with configure.


./waf clean

./waf configure --disable-python (add other options if you want)

./waf


Cheers,


T.

Agnes Ling

unread,
Mar 24, 2014, 6:28:02 AM3/24/14
to ns-3-...@googlegroups.com
Hi T,

I have a question here.... i have tried to build for so many times..

But there is still have an error, the "ipv6-flow-classifier.h" cannot be detected.
 
Perhaps, i had save "ipv6-flow-classifier.h"  in src/flow-monitor/model/ipv6-flow-classifier.h along with the iov6-flow-classifier.cc

../src/flow-monitor/helper/flow-monitor-helper.cc:27:38: fatal error: ns3/ipv6-flow-classifier.h: No such file or directory
compilation terminated.

Build failed
 -> task in 'ns3-flow-monitor' failed (exit status 1):
    {task 150016748: cxx flow-monitor-helper.cc -> flow-monitor-helper.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-pthread', '-I.', '-I..', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/libxml2', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '../src/flow-monitor/helper/flow-monitor-helper.cc', '-c', '-o', 'src/flow-monitor/helper/flow-monitor-helper.cc.1.o']


can you please guide me here?

thanks in advanced.

Regards,
Agnes

Tommaso Pecorella

unread,
Mar 24, 2014, 11:25:27 AM3/24/14
to ns-3-...@googlegroups.com


On Monday, March 24, 2014 11:28:02 AM UTC+1, Agnes Ling wrote:
Hi T,

I have a question here.... i have tried to build for so many times..

But there is still have an error, the "ipv6-flow-classifier.h" cannot be detected.
 
Perhaps, i had save "ipv6-flow-classifier.h"  in src/flow-monitor/model/ipv6-flow-classifier.h along with the iov6-flow-classifier.cc


Hem.... you bet you had to !
Where did you put it ? Never mind, I don't wanna know. Just place it where it should be. In the same directory as the .cc file.
Double check that the headers and source files are listed in the script file, and try again.


T.

Raj

unread,
Aug 3, 2014, 8:13:18 AM8/3/14
to ns-3-...@googlegroups.com
Hello Dear All,

when i am installing 3.12 i am getting the following error whn we run ./build.py. please help to find out it.

debug/libns3-pmip6.so: undefined reference to `typeinfo for ns3::RegularWifiMac'
debug/libns3-pmip6.so: undefined reference to `typeinfo for ns3::PointToPointNetDevice'
debug/libns3-pmip6.so: undefined reference to `ns3::WifiNetDevice::GetMac() const'
debug/libns3-pmip6.so: undefined reference to `typeinfo for ns3::WifiNetDevice'
debug/libns3-pmip6.so: undefined reference to `ns3::RegularWifiMac::GetTypeId()'
debug/libns3-pmip6.so: undefined reference to `ns3::WifiNetDevice::GetTypeId()'
debug/libns3-pmip6.so: undefined reference to `ns3::PointToPointNetDevice::GetTypeId()'

thanks ,
Raj


Tommaso Pecorella

unread,
Aug 3, 2014, 8:35:33 AM8/3/14
to ns-3-...@googlegroups.com
Ignored due to multiple posting policy violations.
No further comment is necessary.
Reply all
Reply to author
Forward
0 new messages