[ns] Packet Fragment-Defrag. provision in NS2
Hi, Could anybody please suggest whether there is any provision of fragmentation and reassembling of packet in LL or MAC or PHY in NS2? Regards, Nill
[ns] problem in simulating a wired cum wireless link between two nodes...
Hi Alysson, Thanks for your time and effort. However, I would highly appreciate if you could suggest me something to transfer data between BS or how can I simulate a same kind of topology. My ultimate aim is to simulate a wireless link between two nodes where the other side of both the nodes is a wired interface... Thanking you in anticipation... Regards, Samar -- Forwarded message -- From: Alysson Oliveira lssn.olive...@gmail.com Date: Mon, Jun 20, 2011 at 8:02 PM Subject: Re: [ns] problem in simulating a wired cum wireless link between two nodes... To: sam sha nsu...@gmail.com Hi You had made some hierarquical mistake. But dont transfer data between BS yet. I'll see it latter... See you... Alysson 2011/6/19, sam sha nsu...@gmail.com: Hi Alysson Oliveria, Thanks for your response... I am attaching herewith my scenario.tcl ... I wanted just to make a wireless link between two nodes while another interface of the node is a wired link. I am not sure where I am mistaken... Thanking you for your timely help Regards, Sam On Sat, Jun 18, 2011 at 5:50 PM, Alysson Oliveira lssn.olive...@gmail.comwrote: Hi Sam Sha, Would you send you tcl code? May be you had any topology mistake! Please, see: you exemple file ns-2.34/tcl/ex/wired-cum-wireless-sim.tcl http://www.ece.iupui.edu/tutorials/ns2/index.php?section=9 http://www.isi.edu/nsnam/ns/doc/node192.html Good luck! Alysson Oliveira 2011/6/17, sam sha nsu...@gmail.com: Hi all, I want to simulate a wireless link between two nodes. where both the nodes have a wired interface as well. So my simulation topology is like - I receive the data from the wired link on node-1, I transmit the same on the wireless link to node-2, now node-2 receives the data and sends on the wired interface to other nodes in the network. I tried making the two nodes as the base station nodes I get the following error : num_nodes is set 2 INITIALIZE THE LIST xListHead --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o15: no target for slot -1 _o15 type: Classifier/Hash/Dest content dump: classifier _o15 0 offset 0 shift 2147483647 mask 0 slots -1 default -- Finished standard no-slot{} default handler -- Please provide any suggestion or any documentation that will help me in simulating the scenario Thank you all in anticipation... Regards, Sam -- Alysson Oliveira -- Alysson Oliveira
Re: [ns] Error in Tcl script
Yes, that solved the problem , thank you very much. From: Leo Sánchez sanc...@ugr.es To: ns-users@ISI.EDU Sent: Wednesday, June 22, 2011 8:57 PM Subject: Re: [ns] Error in Tcl script Try defining the process this way: proc discover_ferry { src dst now index } { global ns_ node_ ... ... ... } Hope it helps! Leo Sánchez El 22/06/2011 16:48, Mohamed Ibrahim Salman escribió: Hi, This error appear when I try to invoke discover_ferry{} function ns: discover_ferry 1 13 0.00 3 : can't read node_(1): no such variable while executing $ns_ attach-agent $node_($src) $udp_($index) (procedure discover_ferry line 6) invoked from within discover_ferry 1 13 0.00 3 proc discover_ferry { src dst now index } { global ns_ node_($src) node_($dst) set udp_($index) [new Agent/UDP] $ns_ attach-agent $node_($src) $udp_($index) set null_($index) [new Agent/Null] $ns_ attach-agent $node_($dst) $null_($index) set cbr_($index) [new Application/Traffic/CBR] $cbr_($index) set packetSize_ 256 $cbr_($index) set maxpkts_ 1 $cbr_($index) attach-agent $udp_($index) $ns_ connect $udp_($index) $null_($index) $ns_ at $now $cbr_($index) start }
[ns] Trace Analyzer
Hello everybody, I'm making some simulations, and i 'll need to analyze. So I have been searching trace analyzers, and I wanted to know if you could recommend some trace analyzer that calculates the total average delay. I hope you can help me. thank you!
Re: [ns] 802.11p package Sherbrooke UNI
Hey its all working fine now but I am a bit confuse to define 802.11p parameters in TCL Scripts. Does any one have any example scripts.? Thanks for your help. Nirav Shah wrote: I am trying to add 802.11p package from sherbrooke uni. But when I do make it gives me following error. mac/mac802_11p.cc: In member function ‘virtual int Mac802_11p::command(int, const char* const*)’: mac/mac802_11p.cc:230: warning: unused variable ‘tmp’ mac/mac802_11p.cc: In member function ‘void Mac802_11p::setChan(int)’: mac/mac802_11p.cc:262: warning: unused variable ‘tmp’ mac/mac802_11p.cc: In member function ‘void Mac802_11p::update_client_table(int, int, int)’: mac/mac802_11p.cc:1840: error: cannot convert ‘client_list*’ to ‘client_table*’ in assignment mac/mac802_11p.cc:1841: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1842: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1843: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1844: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc: In member function ‘void Mac802_11p::push(int, int, int)’: mac/mac802_11p.cc:1856: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1857: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1858: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1861: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1869: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1870: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1872: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1872: error: invalid application of ‘sizeof’ to incomplete type ‘client_table’ mac/mac802_11p.cc:1873: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1874: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1875: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1876: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc: In member function ‘int Mac802_11p::find_client(int)’: mac/mac802_11p.cc:1883: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1883: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1883: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc:1888: error: invalid use of incomplete type ‘struct client_table’ mac/mac802_11p.h:251: error: forward declaration of ‘struct client_table’ mac/mac802_11p.cc: In member function ‘void Mac802_11p::update_ap_table(int, double)’: mac/mac802_11p.cc:2796: error: cannot convert ‘ap_list*’ to ‘ap_table*’ in assignment mac/mac802_11p.cc:2797: error: invalid use of incomplete type ‘struct ap_table’ mac/mac802_11p.h:252: error: forward declaration of ‘struct ap_table’ mac/mac802_11p.cc:2798: error: invalid use of incomplete type ‘struct ap_table’ mac/mac802_11p.h:252: error: forward declaration of ‘struct ap_table’ mac/mac802_11p.cc:2799: error: invalid use of incomplete type ‘struct ap_table’ mac/mac802_11p.h:252: error: forward declaration of ‘struct ap_table’ mac/mac802_11p.cc: In member function ‘void Mac802_11p::push_ap(int, double)’: mac/mac802_11p.cc:2811: error: invalid use of incomplete type ‘struct ap_table’ mac/mac802_11p.h:252: error: forward declaration of ‘struct ap_table’ mac/mac802_11p.cc:2812: error: invalid use of