Trace file is empty with dual interface wireless node

48 views
Skip to first unread message

Rajeshwari M

unread,
Mar 24, 2021, 1:42:31 PM3/24/21
to Network Simulator 2 (NS2)
Hi everyone,

I am trying to set up a wireless node with 2 interfaces; one interface with 802.11 Mac and the other with 802.11Ext Mac.
1. The 802.11 interface is used to communicate with the road side unit (or Access Point)
2. The 802.11Ext is for communicating with other stations.

to include multi-interface support.
However, in my scenario, communication is not taking place between AP and station and trace files are empty.
I have shared my code in the below link. Can someone please suggest me where I am going wrong.




Rajeshwari Madli

unread,
Mar 28, 2021, 6:26:16 AM3/28/21
to ns-u...@googlegroups.com
Hi everyone,

My script works correctly with one wireless node having dual interfaces ( 802.11 and 802.11Ext). 
I have configured the 802.11 interface for accomplishing handoff with the access points, and the interface with 802.11Ext is reserved for inter-vehicle communication.

However, when I try to add another vehicle with 2 interfaces, nothing happens after node creation and trace files are empty.
It would be great if someone can guide me with this. Please have a look at my code at 

Thank you



--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/becc6a09-8e2a-4e38-9f27-8daf3f968777n%40googlegroups.com.


--
Thanks and Regards
Rajeshwari Madli
Research Scholar
Department of CSE
B.M.S College of Engineering
Bengaluru

knudfl

unread,
Mar 28, 2021, 8:54:18 AM3/28/21
to Network Simulator 2 (NS2)
The simulation example.tcl in https://personales.unican.es/aguerocr/files/ucMultiIfacesSupport.pdf
.... has no "dual Mac version" ? ?

The code is about "multi interface", I think, like  
set val(ni) 4 ;# number of interfaces, <= number of channels  ( "numifs" )

Some usable examples here .... Multi-channel-ex-1.tar.gz

The code / patch that I am using : CRN-D2CARP_ns235.patch  (year 2017)
Ref.  D2CARP.diff,  Multi-Channel.diff  

( D2CARP-ex → D2CARP-ex.tar.gz

Rajeshwari Madli

unread,
Mar 29, 2021, 2:50:09 PM3/29/21
to ns-u...@googlegroups.com
Dear Mr. Knudfl

Thank you for your reply.  I understand that the patch I used only offers multi-channel support for the same mac.
I need to configure wireless nodes with dual interfaces with different mac and phy entities, i.e. one with 802.11 (Mac/802_11 and Phy/WirelessPhy) and the other interface with 802_11Ext (Mac/802_11Ext and Phy/WirelessPhyExt)
The MobileNode's add-interface procedure allows us to configure an interface with different mac and phy entities. 
//˜ns/tcl/lib/ns-mobilenode.tcl 
Node/MobileNode instproc add-interface { channel pmodel lltype mactype qtype qlen iftype anttype topo }
{
....
}
Can we use this to configure multiple interfaces? Do you have any examples/documentation that caters my requirements?



knudfl

unread,
Mar 30, 2021, 5:03:03 AM3/30/21
to Network Simulator 2 (NS2)
Hi.

Find information :  Google,  ns3 Cross-Layer MAC
(ns2 is old,  e.g. ns3 or OmNet++ should be preferred.)

....... There were some "dual Mac" examples, I think,  for Wimax / nist-mob ....
.  wimax-ex-all_10.2015.tar.gz
.  nist-mob_examples-02.19.tar.gz
...........  ............  that would be Mac 802.16 + "?"  though ,   not 802.11 + 802.11p .

802.11Ext is a general term : Can be  802.11p or a.     
I.e. the ns2.35/mac/*Ext* C++ code covers both ......  I guess you mean "p".
802.11Ext :  ns-2.35/tcl/ex/802.11/  →  802.11p  ....
* 802.11p  ex,  802.11p-examples-06.19.tar.gz
* All  802.11Ext_examples.tar.xz

All ~2500 ns2 ex,  all_tcl-examples-5.tar.xz

Rajeshwari Madli

unread,
Mar 31, 2021, 12:28:02 PM3/31/21
to ns-u...@googlegroups.com
Thank you sir for sharing the examples. 
Yes, by 802.11Ext, I meant 802.11p and I am trying to set up a dual interface node with different technologies.
I shall refer to the examples pointed by you.


Basavaraj Bidanoor

unread,
Apr 24, 2021, 12:54:13 AM4/24/21
to ns-u...@googlegroups.com
Hi please download your project using below link



India Ki Dukan


Regards

Reply all
Reply to author
Forward
0 new messages