[ns] node overlap issue+relay node role
Hi! Why the node are overlapped although I defined their co-ordinates. Also how the relay nodes be configured so that they play active role during communication, here what I am seeing that the source starts communication with the sink directly without interfering with the relay node even you drag the two to large distance... why? I am seeking some useful help from yours side. Thanks --code--- # Generated by Topology Generator for Network Simulator (c) Elmurod Talipov set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy/802_15_4 ;# network interface type set val(mac) Mac/802_15_4 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 100 ;# max packet in ifq set val(nn) 4;# number of mobilenodes1000 ; # X dimension of topography500 ;# Y dimension of topography#set val(energymodel) EnergyModel ;# Energy Model# set ns [new Simulator] $ns color 1 Blue set tracefd [open atif1.tr w] set namtrace [open atif1.nam w] $ns trace-all $tracefd $ns namtrace-all-wireless $namtrace $val(x) $val(y) set val(initialenergy) 100 ;# value#Phy/WirelessPhy set CSThresh_ 3.44283e-09# # set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) create-god $val(nn) # configure the nodes $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channel [new $val(chan)] \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -movementTrace ON #-IncomingErrProc MultistateErrorProc \ #-OutgoingErrProc MultistateErrorProc for {set i 0} {$i $val(nn) } { incr i } { set mnode_($i) [$ns node] } for {set i 0} {$i $val(nn) } { incr i } { $mnode_($i) set X_ [ expr {20 + $i * 10} ] $mnode_($i) set Y_ 20.0 $mnode_($i) set Z_ 0.0 } $mnode_( $mnode_(0) label Source for {set i 1} {$i $mnode_($i) label relay } # Set a TCP connection between node_(0) and node_(1) set tcp0 [new Agent/TCP/Newreno] $ns attach-agent $mnode_(0) $tcp0 set sink0 [new Agent/TCPSink] $ns attach-agent $mnode_( $ns connect $tcp0 $sink0 set ftp0 [new Application/FTP] $ftp0 attach-agent $tcp0 $ns at 0. $ns at 10.0 $ftp0 stop $tcp0 set fid_ 1 # Telling nodes when the simulation ends for {set i 0} {$i $val(nn) } { incr i } { $ns at $val(stop) $mnode_($i) reset; } # ending nam and the simulation $ns at $val(stop) stop $ns at $val(stop) $ns nam-end-wireless $val(stop) $ns at [expr $val(stop) + 0.01] puts \end simulation\; $ns halt proc stop {} { global ns tracefd namtrace $ns flush-trace close $tracefd close $namtrace exec nam atif1.nam exit 0 } $ns run Phy/WirelessPhy set RXThresh_ 1.74293e-08#-energyModel $val(energymodel) \#-initialEnergy $val(initialenergy) \#-rxPower 35.28e-3 \#-txPower 31.32e-3 \#-idlePower 712e-6 \#-sleepPower 144e-9 3) label Sink3} {incr i} {3) $sink0 1$ftp0 start set val(rp) AODV ;# protocol tye set val(x) set val(y) set val(stop) 10 ;# simulation period
[ns] TCP CC and RSVP source code
A new TCP scheme called Congestion Coherence was proposed and as well created by Chunlei et al. (2007). The researchers published a paper entitled as a A Unified TCP Enhancement for Wireless Mesh Networks . In that paper one can find the proposed TCP scheme known as CC. According to the findings of Chunlei et al. (2007) the new TCP enhancement CC performs well when compared with Reno, Vegas, DDA and ECN. Please help me locate a website that offers TCP CC source code or even patch. As well I need RSVP source code. *** Abduaziz Oumer M.Sc.IT Northern University of Malaysia Universiti Utara Malaysia (UUM) College of Arts and Sciences, Faculty of Information Technology, 06010 UUMSintok,Kedah, Phone:+60142276220 M A L A Y S I A
[ns] CFT SyClick symposium on Click Modular Router
~Our apologies if you receive multiple copies of this call for talks~ CALL FOR TALKS AND DEMOS SyClick Symposium on Click Modular Router November 23-24, 2009 Ghent, Belgium sycl...@ua.ac.be http://www.syclick.ua.ac.be/ Keynote: --- Eddie Kohler, creator of the Click Modular Router and ass. professor at UCLA Program: For the first time, a Click symposium will be organized to bring together users and developers of the Click Modular Router framework. This symposium is an opportunity for Click developers and researchers, and others interested in the wider field of networking, to get together to share knowledge and experiences. Over the course of two days attendees will be able to - meet other Click developers/researchers and find out how they use Click - get answers to technical questions - form relationships for future collaboration - hear about some cool Click applications. The first day of the symposium, a developer day will be held to freely exchange amongst each other thoughts and ideas about the future of Click. Topics include but are not limited to: - multiprocessing status and improvements - supporting per-flow state - debugging kernel routers - dynamically adding and removing element subgraphs - GUI development - educational applications - IPv6 status - generic network protocol support (e.g. addressing, generic routing tables) - annotation improvements - ... The next day, experiences about Click applications, development and/or research results using Click will be presented. To this end, we open a call for presentations for the following topics: - novel applications of Click - commercial applications of Click - Click customizations - Click innovations - lessons learned after using Click Submission: Authors are requested to submit a 1 page PDF file containing a description of the work they want to present. Based on the submitted contributions the organising committee will select four presentations for a 30 min talk and additional contributions for a poster session. Demonstrations of Click implementations are also highly encouraged. Contribution descriptions should be submitted through the symposium website before: September 14th, 2009. Organizers and Chairs: -- Prof. Chris Blondia, PhD Peter De Cleyn, PhD Michael Voorhaen, PhD Bart Braem, MSc Contact Information: -- Please direct any questions to sycl...@ua.ac.be IBBT - PATS - University of Antwerp Dep. Mathematics and Computer Science Middelheimlaan 1 B-2020 Antwerp Belgium
Re: [ns] CFT SyClick symposium on Click Modular Router
I just read a little about Click and it sounds really interesting. I have a project and I was thinking in using the default nodes of NS (adding later routing, classification, filtering, etc.) but now that I read about click I think it may be a better approach. There is a link in the Click's wiki in how to use it with NS-2, however I wonder if anybody has any more resources (presentations, tutorials, papers) about the use of Click and NS-2. Thanks, -as On 19 Jun 2009, at 09:47, Peter De Cleyn wrote: ~Our apologies if you receive multiple copies of this call for talks~ = = == CALL FOR TALKS AND DEMOS SyClick Symposium on Click Modular Router November 23-24, 2009 Ghent, Belgium sycl...@ua.ac.be http://www.syclick.ua.ac.be/ = = == Keynote: --- Eddie Kohler, creator of the Click Modular Router and ass. professor at UCLA Program: For the first time, a Click symposium will be organized to bring together users and developers of the Click Modular Router framework. This symposium is an opportunity for Click developers and researchers, and others interested in the wider field of networking, to get together to share knowledge and experiences. Over the course of two days attendees will be able to - meet other Click developers/researchers and find out how they use Click - get answers to technical questions - form relationships for future collaboration - hear about some cool Click applications. The first day of the symposium, a developer day will be held to freely exchange amongst each other thoughts and ideas about the future of Click. Topics include but are not limited to: - multiprocessing status and improvements - supporting per-flow state - debugging kernel routers - dynamically adding and removing element subgraphs - GUI development - educational applications - IPv6 status - generic network protocol support (e.g. addressing, generic routing tables) - annotation improvements - ... The next day, experiences about Click applications, development and/or research results using Click will be presented. To this end, we open a call for presentations for the following topics: - novel applications of Click - commercial applications of Click - Click customizations - Click innovations - lessons learned after using Click Submission: Authors are requested to submit a 1 page PDF file containing a description of the work they want to present. Based on the submitted contributions the organising committee will select four presentations for a 30 min talk and additional contributions for a poster session. Demonstrations of Click implementations are also highly encouraged. Contribution descriptions should be submitted through the symposium website before: September 14th, 2009. Organizers and Chairs: -- Prof. Chris Blondia, PhD Peter De Cleyn, PhD Michael Voorhaen, PhD Bart Braem, MSc Contact Information: -- Please direct any questions to sycl...@ua.ac.be IBBT - PATS - University of Antwerp Dep. Mathematics and Computer Science Middelheimlaan 1 B-2020 Antwerp Belgium
[ns] Installing Is-Is module on ns-2.33 : problem adapting C++ code to gcc 4.1.2
Hello, I am quite new to ns and for a specific project I am doing my best to install the Is-Is module on ns-2.33(the latest version). Since the code has been written for ns-2.1b8a I manually patched Makefile/Makefile.in, dynalink.cc, etc. Everything great. But still, the module has a problem with my gcc 4.1.2 compiler on CentOS. It uses C++ template classes and it seems that the code needs to be fully adapted in order to work. I am posting the error message I got: g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/usr/src/ns-allinone-2.33/tclcl-1.19 -I/usr/src/ns-allinone-2.33/otcl -I/usr/src/ns-allinone-2.33/include -I/usr/src/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o link/dynalink.o link/dynalink.cc In file included from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/backw ard/fstream.h:31, from ./isis/manager.h:31, from ./isis/lspmanager.h:26, from link/dynalink.cc:57: /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/backw ard/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the X header for the X.h header for C++ includes, or iostream instead of the deprecated header iostream.h. To disable this warning use -Wno-deprecated. ./isis/stlext.h:35: error: expected template-name before '' token ./isis/stlext.h:35: error: expected `{' before '' token ./isis/stlext.h:35: error: expected unqualified-id before '' token ./isis/stlext.h:53: error: expected template-name before '' token ./isis/stlext.h:53: error: expected `{' before '' token ./isis/stlext.h:53: error: expected unqualified-id before '' token ./isis/stlext.h:74: error: expected template-name before '' token ./isis/stlext.h:74: error: expected `{' before '' token ./isis/stlext.h:74: error: expected unqualified-id before '' token ./isis/stlext.h:117: error: invalid use of undefined type 'class ISISListint' ./isis/stlext.h:53: error: declaration of 'class ISISListint' ./isis/stlext.h: In constructor 'IntList::IntList(char*, const char*)': ./isis/stlext.h:120: error: type 'ISISListint' is not a direct base of 'IntList' ./isis/stlext.h:123: error: 'push_back' was not declared in this scope ./isis/stlext.h: In member function 'void isiserr::warn(char*)': ./isis/stlext.h:135: error: 'cerr' was not declared in this scope ./isis/stlext.h:135: error: 'endl' was not declared in this scope ./isis/stlext.h: In member function 'void isiserr::err(char*)': ./isis/stlext.h:138: error: 'cerr' was not declared in this scope ./isis/stlext.h:138: error: 'endl' was not declared in this scope ./isis/cpuqueue.h: At global scope: ./isis/cpuqueue.h:38: error: ISO C++ forbids declaration of 'queue' with no type ./isis/cpuqueue.h:38: error: expected ';' before '' token ./isis/manager.h:42: error: field 'areaIds' has incomplete type ./isis/manager.h:52: error: field 'SRMflags' has incomplete type ./isis/manager.h:53: error: field 'SSNflags' has incomplete type ./isis/manager.h:59: warning: 'class ISISNode' has virtual functions but non-virtual destructor ./isis/manager.h:99: warning: 'class Manager' has virtual functions but non-virtual destructor ./isis/lspmanager.h:157: error: aggregate 'ISISMapu_char*, bool inSendersDb' has incomplete type and cannot be defined ./isis/lspmanager.h:158: error: aggregate 'ISISMapu_char*, int counter' has incomplete type and cannot be defined ./isis/lspmanager.h:159: error: aggregate 'ISISListu_char* lista' has incomplete type and cannot be defined ./isis/lspmanager.h:208: error: field 'circuitIds' has incomplete type ./isis/lspmanager.h:211: error: field 'adjacencies' has incomplete type ./isis/lspmanager.h:212: error: field 'l1ips' has incomplete type ./isis/lspmanager.h:221: error: field 'lspThrottleTimers' has incomplete type ./isis/lspmanager.h:222: error: field 'psnpIntervalTimers' has incomplete type ./isis/lspmanager.h:227: error: field 'lspInfos' has incomplete type ./isis/lspmanager.h:228: error: field 'lspDb' has incomplete type ./isis/lspmanager.h:173: warning: 'class LspManager' has virtual functions but non-virtual destructor ./isis/lspmanager.h: In member function 'ISISMapLspId, LspRecord** LspManager::getLspDb()': ./isis/lspmanager.h:196: error: 'lspDb' was not declared in
[ns] compile ns-2 on fedora 11
hi there i m trying to compile xgraph-12.1 from the package ns-allinone-2.33 on a fedora 11 machine but when i run make i got gcc -DHAVE_CONFIG_H -I. -I. -I.-g-c dialog.c dialog.c: In function 'make_msg_box': dialog.c:780: warning: passing argument 2 of 'getline' from incompatible pointer type /usr/include/stdio.h:653: note: expected 'size_t * __restrict__' but argument is of type 'char *' dialog.c:780: error: too few arguments to function 'getline' dialog.c: In function 'getline': dialog.c:899: error: argument 'lptr' doesn't match prototype /usr/include/stdio.h:653: error: prototype declaration dialog.c:899: error: number of arguments doesn't match prototype /usr/include/stdio.h:653: error: prototype declaration make: *** [dialog.o] Error 1 has someone already succed in compiling xgraph? thanks in advance for any help
[ns] wireless ad hoc network mobility nodel simulation in 3 dimension
Has any body tried to generate a mobility model in a 3 dimensional simulation area. I have been trying to modify the setdest.cc file in ns2, which is the default implementation of Random Waypoint Mobility Model in ns2, to generate my own mobility model. I want to set all X, Y and Z coordinates for the movement ofmy mobile nodes. Is it possible in ns2 to do that? Does nam has support for 3D visualisation ? Also can I use the movement scenario file generated as a result of this in my wireless simulation without any modification or will I need to change some other codes as well? Any help in this regard will be useful. -- Prateek Agarwal
[ns] Fw: Re: info. i need your help please
--- On Fri, 6/19/09, mohamed saad mohammed2742...@yahoo.com wrote: From: mohamed saad mohammed2742...@yahoo.com Subject: Re: info. i need your help please To: Hoda Hassan mhel...@aucegypt.edu Date: Friday, June 19, 2009, 7:57 PM a salamo alikom how are you every one i don't understand what you mean please do you explain more and with steps what u mean in details gazak allah khairn mohammed saad --- On Sat, 6/13/09, Hoda Hassan mhel...@aucegypt.edu wrote: From: Hoda Hassan mhel...@aucegypt.edu Subject: Re: [ns] i need your help so much please please please. To: mohamed saad mohammed2742...@yahoo.com Date: Saturday, June 13, 2009, 2:43 PM Do not use configure to compile any new extensions to the ns package. What u need to do is the following 1.first install the ns2 package using ./configure 2. u will find a file called MAKEFILE in the ns2 directory 3. u need to access this file and insert the name of the cc files that u want to include to the ns2 but using a .o extension. 4. Look for the following in the Makefile OBJ_CC = \ and insert ur extensions there. for example if u want to compile a new .cc file called newfile.cc in a directory under the ns2 called Mydir u will need to insert the following line Mydir/newfile.o \ then execute the following in the ns2 directory where the Makefile exists make make depend make install N.B. : make install might need to be executed using sudo command if u r not in administrative mode sudo make install On Jun 12, 2009, at 11:52 PM, mohamed saad wrote: salamo a likom how are u dear, when i tried to install attached file(mobihoc) by typing ../configure it said me permission is not denied but when i typed configure it worked but it configure another installed program ns2(i installed ns2 in a directory called home/mohammed_saad/nsrasha/ns-allinone-2.32/ns-2.32 i delete ns-allinone-2.32 and when i tried to install attached file(mobihoc) again it give me this error make: *** No rule to make target `/home/mohammed_saad/nsrasha/ns-allinone-2..32/tcl8.4.15/unix/Makefile.in', needed by `Makefile'. Stop can you help me what i do to install attached package(mobihoc)? gazak allah khairn mohammed saad --- On Thu, 6/4/09, Rania Kamal engr...@yahoo.com wrote: From: Rania Kamal engr...@yahoo.com Subject: Fw: rasha khairy To: mohammed2742...@yahoo.com Date: Thursday, June 4, 2009, 10:42 AM - Forwarded Message From: mohamed saad mohammed2742...@yahoo.com To: rania engr...@yahoo.com Sent: Wednesday, June 3, 2009 3:31:53 PM Subject: rasha khairy أزيك يارانيا ممكن تنزلى لى هذا الملف وتبعته لى لانى كل ما بنزله عندى مش بيفتح معى http://monarch.cs.rice.edu/~yihchun/mobihoc.tgz ماعليشى يارانيا
[ns] RSSI in 802.11 - distance estimation
Hello, Does anyone have an idea how to get the distance between two nodes in 802.11, using RSSI measurements? Best regards, Senka _ Bing™ brings you maps, menus, and reviews organized in one place. Try it now. http://www.bing.com/search?q=restaurantsform=MLOGENpubl=WLHMTAGcrea=TEXT_MLOGEN_Core_tagline_local_1x1
[ns] Looking for 802.11b wireless support
Hi all, (sorry if you received multiple copies of the email) I'm a new ns-2 and trying to find a more realistic wireless support for 802.11b simulation, such as channel propagation model and link rate adaption (e.g. ARF). Currently my system is Ubuntu 7.10 + ns-2.33. Could anyone share your experience and give me some suggestions? I tried to apply the patch provided by Marco Fiore in the contributed code list (http://nsnam.isi.edu/nsnam/index.php/Contributed_Code#Wireless_and_Mobility). This patch is supposed to work with ns-2.29, but I have problem with the installation ns-2.29 on Ubuntu 7.10 (the same error report as http://ubuntuforums.org/archive/index.php/t-1050882.html). Does anyone have any idea how to solve the problem? I wonder if there is a patch available for newer version of ns-2. Please feel free to give your comments. Thank you for the help. Best, Jiakang