From salcaraz69 at gmail.com Sun Mar 1 01:05:08 2009 From: salcaraz69 at gmail.com (Salvador Alcaraz) Date: Sun, 1 Mar 2009 10:05:08 +0100 Subject: [ns] ns QoS implementation In-Reply-To: <621241.37537.qm@web45514.mail.sp1.yahoo.com> References: <621241.37537.qm@web45514.mail.sp1.yahoo.com> Message-ID: <558ed4630903010105j73805a67na65dbab44657c1c2@mail.gmail.com> Dear Pop: In [NS-PATH]/ns-2.33/diffserv you can find some QoS implementations good luck /salva 2009/3/1 Pop Barbie > > > Dear ALL > Can any one help me where i can find implementation CODE for QoS BASED > for ns2.33? > Thanks > > > > > From mayur at ee.iitd.ac.in Sun Mar 1 01:06:53 2009 From: mayur at ee.iitd.ac.in (Mayur Mansukhlal Vegad) Date: Sun, 1 Mar 2009 14:36:53 +0530 (IST) Subject: [ns] carrier sense In-Reply-To: <20090228072855.31523.qmail@f6mail-145-185.rediffmail.com> References: <20090228072855.31523.qmail@f6mail-145-185.rediffmail.com> Message-ID: <33378.10.64.24.129.1235898413.squirrel@www.iitd.ac.in> NAV is not a table. For a particular node its NAV is a simple variable used to store a number which is the duration (in microseconds) for which it freezes its backoff downcounting, it it is ON. You can know this value by accessing the nav_ (a double type of variable of Mac802_11 class in mac/mac-802_11.h). Hope this helps Mayur > > > hi all > > it's true the node uses the carrier sense before sending the data. as per > my understanding the NAV for the nodes in the carrier sense rage is > updated. Nodes uses this nav to determine the time after which the it is > permited to send the data. my promblem is to use the entries in nav for > my work.how can i access the nav table. > > Neeraj Gupta > Assistant Professor > HOD, CSE & IT Department > Hindu College of Engineering > Sonepat > From armirikar at gmail.com Sun Mar 1 04:04:19 2009 From: armirikar at gmail.com (Abhijeet Mirikar) Date: Sun, 1 Mar 2009 17:34:19 +0530 Subject: [ns] Running c++ code in NS Message-ID: <9d7beec90903010404g19957df8r97124840db718f51@mail.gmail.com> Dear all, I want to run my C++ code in NS. How it can be done? Please help. Regards, Abhijeet Mirikar From aservin at cs.york.ac.uk Sun Mar 1 04:49:08 2009 From: aservin at cs.york.ac.uk (Arturo Servin) Date: Sun, 1 Mar 2009 12:49:08 +0000 Subject: [ns] Running c++ code in NS In-Reply-To: <9d7beec90903010404g19957df8r97124840db718f51@mail.gmail.com> References: <9d7beec90903010404g19957df8r97124840db718f51@mail.gmail.com> Message-ID: You have to include your code (I am not sure but I think that you should do it in the same path were the rest of the ns code is) and to modify the make files in order to compile your code. Check the own ns makefiles as an example, they will give you a hint of what to include. -as On 1 Mar 2009, at 12:04, Abhijeet Mirikar wrote: > > Dear all, > I want to run my C++ code in NS. How it can be done? > Please help. > > Regards, > Abhijeet Mirikar From fudgy.geek at gmail.com Sun Mar 1 05:40:51 2009 From: fudgy.geek at gmail.com (Firdaus Alias) Date: Sun, 1 Mar 2009 21:40:51 +0800 Subject: [ns] how to access mac layer from upper layers Message-ID: <41df069c0903010540i37fd8a81u698a6ce3cb71e71a@mail.gmail.com> Hi, I am developing a code in c++ that needs to access the power transmitted by an adjacent node from the routing layer. How do I access the value of return by : Propagation::getDist(double Pr, double Pt, double Gt, double Gr, double hr, double ht, double L, double lambda) from the routing layer? The other concern is to attach the received power transmission value and store/attach this value to the mobile node that had sent the packet. Thank you in advance! Fir. From jiee.xu at gmail.com Sun Mar 1 18:14:27 2009 From: jiee.xu at gmail.com (Jie Xu) Date: Mon, 2 Mar 2009 10:14:27 +0800 Subject: [ns] carrier sense (neeraj gupta) In-Reply-To: References: Message-ID: > In my understanding, there is no nav table. Actually there is only one NAV > timer in NS implementation. > > the timer is updated by receiving packets withing its receiving range and > carrier sense range. In this way, the carrier sense makes sense. Jie Xu @ GUCAS, China > > > >> >> hi all >> >> it's true the node uses the carrier sense before sending the data. as per >> my understanding the NAV for the nodes in the carrier sense rage is updated. >> Nodes uses this nav to determine the time after which the it is permited to >> send the data. my promblem is to use the entries in nav for my work.how can >> i access the nav table. >> >> Neeraj Gupta >> Assistant Professor >> HOD, CSE & IT Department >> Hindu College of Engineering >> Sonepat >> >> > From scharan20 at gmail.com Sun Mar 1 19:11:55 2009 From: scharan20 at gmail.com (Sri Charan) Date: Mon, 2 Mar 2009 08:41:55 +0530 Subject: [ns] Capturing Packets Message-ID: Hi, I need to capture each packet arriving at each node in the network (in order to calculate a hash on the *whole* packet, not just its header). Another way to ask this is that I need to sniff the packet as it arrives at each node and save/dump it to a file. Is this possible in NS2? If yes, how? - scharan. From scharan20 at gmail.com Sun Mar 1 19:23:16 2009 From: scharan20 at gmail.com (Sri Charan) Date: Mon, 2 Mar 2009 08:53:16 +0530 Subject: [ns] Capturing Packets In-Reply-To: References: Message-ID: Hi, I need to capture each packet arriving at each node in the network (in order to calculate a hash on the whole packet, not just its header). Another way to ask this is that I need to sniff the packet as it arrives at each node and save/dump it to a file. Is this possible in NS2? If yes, how? - scharan. From thanes.aus at gmail.com Sun Mar 1 21:14:25 2009 From: thanes.aus at gmail.com (Thanes Vela) Date: Mon, 2 Mar 2009 16:14:25 +1100 Subject: [ns] Classification decision and node id Message-ID: <189170510903012114x563d1eb0j736e47d2391dc8ef@mail.gmail.com> Dear all The the following is the unanswered question in this forum. Please share your knowledge. Classifier works on the node entry point. Each packet which is received by the node is classified and accordingly it is either forwarded to the port demux or next link. My question is that: 1. Where the decision is taking place. (I am expecting exact code in classifier.cc or some where) ? 2. Can i access node-id (or address) from the classify function? if so how? Thanks in advance Cheers Thanes University of Melbourne From mshrehmani at gmail.com Sun Mar 1 22:39:57 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Mon, 2 Mar 2009 07:39:57 +0100 Subject: [ns] Capturing Packets In-Reply-To: References: Message-ID: Hi Sri Charan, Yes it is possible. You need to work in the recv() packet function and dump the contents of all the packet in the trace file. Regards Mubashir Husain Rehmani ASAP/INRIA and LIP6, UPMC www-rp.lip6.fr/~rehmani http://www.irisa.fr/asap/Members/mrehmani/Mubashir 2009/3/2 Sri Charan > > Hi, > > I need to capture each packet arriving at each node in the network (in > order > to calculate a hash on the *whole* packet, not just its header). Another > way > to ask this is that I need to sniff the packet as it arrives at each node > and save/dump it to a file. Is this possible in NS2? If yes, how? > > - scharan. > -- Mubashir Husain Rehmani From scharan20 at gmail.com Sun Mar 1 22:57:28 2009 From: scharan20 at gmail.com (scharan) Date: Sun, 1 Mar 2009 22:57:28 -0800 (PST) Subject: [ns] Capturing Packets In-Reply-To: References: Message-ID: <22283043.post@talk.nabble.com> Thanks! I have the following clarification: Do I have to reimplement recv() function for each protocol that I need to capture the packets for? Can u provide some examples or links to some examples on how this should be done? - scharan. Mubashir Rehmani wrote: > > > Hi Sri Charan, > > Yes it is possible. You need to work in the recv() packet function and > dump > the contents of all the packet in the trace file. > > Regards > > Mubashir Husain Rehmani > ASAP/INRIA and LIP6, UPMC > www-rp.lip6.fr/~rehmani > http://www.irisa.fr/asap/Members/mrehmani/Mubashir > > > 2009/3/2 Sri Charan > >> >> Hi, >> >> I need to capture each packet arriving at each node in the network (in >> order >> to calculate a hash on the *whole* packet, not just its header). Another >> way >> to ask this is that I need to sniff the packet as it arrives at each node >> and save/dump it to a file. Is this possible in NS2? If yes, how? >> >> - scharan. >> > > > > -- > Mubashir Husain Rehmani > > -- View this message in context: http://www.nabble.com/Capturing-Packets-tp22281401p22283043.html Sent from the ns-users mailing list archive at Nabble.com. From mshrehmani at gmail.com Sun Mar 1 23:19:57 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Mon, 2 Mar 2009 08:19:57 +0100 Subject: [ns] Capturing Packets In-Reply-To: <22283043.post@talk.nabble.com> References: <22283043.post@talk.nabble.com> Message-ID: Hi Scharan You just need to modify the recv function of each protocol that you need to capture the packets for. You need to declare a header file #include ofstream DRN("abc.tr"); //your output file Then in the recv() function, you will just do this: struct hdr aodv reply * rp = HDR_AODV_REPLY(p); //declare the header DRN<rp_dst < > > > Thanks! > I have the following clarification: > > Do I have to reimplement recv() function for each protocol that I need to > capture the packets for? Can u provide some examples or links to some > examples on how this should be done? > > - scharan. > > > Mubashir Rehmani wrote: > > > > > > Hi Sri Charan, > > > > Yes it is possible. You need to work in the recv() packet function and > > dump > > the contents of all the packet in the trace file. > > > > Regards > > > > Mubashir Husain Rehmani > > ASAP/INRIA and LIP6, UPMC > > www-rp.lip6.fr/~rehmani < > http://www-rp.lip6.fr/%7Erehmani> > > http://www.irisa.fr/asap/Members/mrehmani/Mubashir > > > > > > 2009/3/2 Sri Charan > > > >> > >> Hi, > >> > >> I need to capture each packet arriving at each node in the network (in > >> order > >> to calculate a hash on the *whole* packet, not just its header). Another > >> way > >> to ask this is that I need to sniff the packet as it arrives at each > node > >> and save/dump it to a file. Is this possible in NS2? If yes, how? > >> > >> - scharan. > >> > > > > > > > > -- > > Mubashir Husain Rehmani > > > > > > -- > View this message in context: > http://www.nabble.com/Capturing-Packets-tp22281401p22283043.html > Sent from the ns-users mailing list archive at Nabble.com. > > -- Mubashir Husain Rehmani From scharan20 at gmail.com Sun Mar 1 23:30:29 2009 From: scharan20 at gmail.com (scharan) Date: Sun, 1 Mar 2009 23:30:29 -0800 (PST) Subject: [ns] Capturing Packets In-Reply-To: References: <22283043.post@talk.nabble.com> Message-ID: <22283355.post@talk.nabble.com> Thanks again! But is there no way to dump the entire packet, instead of first the header and then the payload etc? Mubashir Rehmani wrote: > > > Hi Scharan > > You just need to modify the recv function of each protocol that you need > to > capture the packets for. > > You need to declare a header file > #include > > ofstream DRN("abc.tr"); //your output file > > Then in the recv() function, you will just do this: > > struct hdr aodv reply * rp = HDR_AODV_REPLY(p); //declare the header > > DRN<rp_dst < abc.tr). In this way, you will dump all the contents of the packet that > you > have captured or dropped. > > Regards > Mubashir Husain Rehmani > > 2009/3/2 scharan > >> >> >> Thanks! >> I have the following clarification: >> >> Do I have to reimplement recv() function for each protocol that I need to >> capture the packets for? Can u provide some examples or links to some >> examples on how this should be done? >> >> - scharan. >> >> >> Mubashir Rehmani wrote: >> > >> > >> > Hi Sri Charan, >> > >> > Yes it is possible. You need to work in the recv() packet function and >> > dump >> > the contents of all the packet in the trace file. >> > >> > Regards >> > >> > Mubashir Husain Rehmani >> > ASAP/INRIA and LIP6, UPMC >> > www-rp.lip6.fr/~rehmani < >> http://www-rp.lip6.fr/%7Erehmani> >> > http://www.irisa.fr/asap/Members/mrehmani/Mubashir >> > >> > >> > 2009/3/2 Sri Charan >> > >> >> >> >> Hi, >> >> >> >> I need to capture each packet arriving at each node in the network (in >> >> order >> >> to calculate a hash on the *whole* packet, not just its header). >> Another >> >> way >> >> to ask this is that I need to sniff the packet as it arrives at each >> node >> >> and save/dump it to a file. Is this possible in NS2? If yes, how? >> >> >> >> - scharan. >> >> >> > >> > >> > >> > -- >> > Mubashir Husain Rehmani >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Capturing-Packets-tp22281401p22283043.html >> Sent from the ns-users mailing list archive at Nabble.com. >> >> > > > -- > Mubashir Husain Rehmani > > -- View this message in context: http://www.nabble.com/Capturing-Packets-tp22281401p22283355.html Sent from the ns-users mailing list archive at Nabble.com. From mmm59 at aub.edu.lb Mon Mar 2 01:42:29 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Mon, 02 Mar 2009 11:42:29 +0200 Subject: [ns] How to assign different transmission ranges for different nodes ?? Message-ID: <20090302114229.ia3z382e80s4w0gw@imail.aub.edu.lb> Hi All, I was wondering if anyone knows how to assign different transmission ranges for various Nodes in the network. In my network i have sinks and sensor and i want the sinks to have a larger transmission range than that of the sensors. we usually assign the transmission range of nodes using a command in tcl similar to : #Phy/WirelessPhy set Pt_ 0.2818 ;# 250m and so i was also wondering what the constant "RANGE" in mobile/god.h stood for and what range it controlled ?? The RANGE is used in god.cc by method isNeighbor to calculate if 2 nodes are neighbors. I hope someone can help we this because it's urgent, thanks. Mathiew From mmm59 at aub.edu.lb Mon Mar 2 01:42:14 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Mon, 02 Mar 2009 11:42:14 +0200 Subject: [ns] How to assign different transmission ranges for different nodes ?? Message-ID: <20090302114214.83mmnqbeo4c8c0s4@imail.aub.edu.lb> Hi All, I was wondering if anyone knows how to assign different transmission ranges for various Nodes in the network. In my network i have sinks and sensor and i want the sinks to have a larger transmission range than that of the sensors. we usually assign the transmission range of nodes using a command in tcl similar to : #Phy/WirelessPhy set Pt_ 0.2818 ;# 250m and so i was also wondering what the constant "RANGE" in mobile/god.h stood for and what range it controlled ?? The RANGE is used in god.cc by method isNeighbor to calculate if 2 nodes are neighbors. I hope someone can help we this because it's urgent, thanks. Mathiew From mmm59 at aub.edu.lb Mon Mar 2 04:21:16 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Mon, 02 Mar 2009 14:21:16 +0200 Subject: [ns] How to assign different transmission ranges for different nodes ?? In-Reply-To: <9d53a7ed0903020334sf699a32i41bcbf445e9fe31b@mail.gmail.com> References: <20090302114229.ia3z382e80s4w0gw@imail.aub.edu.lb> <9d53a7ed0903020334sf699a32i41bcbf445e9fe31b@mail.gmail.com> Message-ID: <20090302142116.5f88u002yokksows@imail.aub.edu.lb> Hi Kiran, Thanks for the reply. I didnt really understand what you tried to say, do you mean i set the range for each node in the initialization loop, if yes, can you attach a small example. I'm new to ns2, so I was also wondering, can you retrieve the transmission range value of the nodes in C++ ? Thanks alot. Mathiew Quoting Kiran K Chauhan : > Hi Mathiew, > > You can do the same using the node-config for all nodes separately. > Since Phy/WirelessPhy set Pt_ 0.2818 ;# 250m gets used during node > configuration. > So node-config for one node followed by initializing the node and wise versa > > Regards > > Kiran > > On Mon, Mar 2, 2009 at 3:12 PM, Mathiew Moussa wrote: > >> >> Hi All, >> >> I was wondering if anyone knows how to assign different transmission >> ranges for various Nodes in the network. >> >> In my network i have sinks and sensor and i want the sinks to have a >> larger transmission range than that of the sensors. >> >> we usually assign the transmission range of nodes using a command in >> tcl similar to : >> >> #Phy/WirelessPhy set Pt_ 0.2818 ;# 250m >> >> and so i was also wondering what the constant "RANGE" in mobile/god.h >> stood for and what range it controlled ?? The RANGE is used in god.cc >> by method isNeighbor to calculate if 2 nodes are neighbors. >> >> >> I hope someone can help we this because it's urgent, thanks. >> >> Mathiew >> >> > > > -- > ........................................................................................................................................................ > Every footstep in life is full of possibilities we just need to know our > ability to explore them > ........................................................................................................................................................ > ........................................................................................................................................................ > From teerawat at ece.ubc.ca Mon Mar 2 07:29:34 2009 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Mon, 02 Mar 2009 15:29:34 +0000 Subject: [ns] Classification decision and node id In-Reply-To: <189170510903012114x563d1eb0j736e47d2391dc8ef@mail.gmail.com> Message-ID: Dear Thanes, You may find the answer about classifier at http://t-issariyakul.blogspot.com/ For more information about Classifiers, see Chapter 6 in the following book from Springer: T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator NS2", Springer 2008. http://www.springer.com/engineering/signals/book/978-0-387-71759-3 You may also find the following website useful: http://www.ece.ubc.ca/~teerawat/NS2.htm As for the second question, the quick answer is NO. A classifier is installed in a link, not a node. So you cannot find the node-id for a link. Best Regards, Teerawat On 3/2/2009, "Thanes Vela" wrote: > >Dear all > >The the following is the unanswered question in this forum. >Please share your knowledge. > >Classifier works on the node entry point. Each packet which is >received by the node is classified and accordingly it is either forwarded to >the port demux or next link. >My question is that: > >1. Where the decision is taking place. (I am expecting exact code in >classifier.cc or some where) ? > >2. Can i access node-id (or address) from the classify function? if so how? > >Thanks in advance > >Cheers >Thanes >University of Melbourne > From spyros_mar at yahoo.gr Mon Mar 2 12:35:25 2009 From: spyros_mar at yahoo.gr (Spyros Marinis) Date: Mon, 2 Mar 2009 20:35:25 +0000 (GMT) Subject: [ns] Mobile ip- Handovers- Sctp--HELP!! Message-ID: <898522.43600.qm@web25501.mail.ukl.yahoo.com> Hi! I have a problem in making handovers in my script when I use sctp at transport layer. I use the topology and the method just like in the standard wireless3.tcl. However, when I run my script, only the first init and init-ack messages are transmitted and received more than once but nothing more and of course no data packets are exchanged... Can anyone please help me?? How else can I do it?? In order to use hierarchical addresses with sctp I have found that I must use the -wiredRouting ON? option even for mobile nodes, and I wonder if that's why it doesn't work. Any help will be appreciated!! Any ideas what may be wrong??? I am in a great hurry.... Thanks in advance, My full tcl script: set ns_??? ??? [new Simulator] set opt(chan)?????? Channel/WirelessChannel set opt(prop)?????? Propagation/TwoRayGround set opt(netif)????? Phy/WirelessPhy set opt(mac)??????? Mac/802_11 set opt(ifq)??????? Queue/DropTail/PriQueue set opt(ll)???????? LL set opt(ant)??????? Antenna/OmniAntenna set opt(x)????????????? 1000?? ;# X dimension of the topography set opt(y)????????????? 1000?? ;# Y dimension of the topography set opt(ifqlen)???????? 50??????????? ;# max packet in ifq #set val(seed)?????????? 0.0 set opt(rp)???????????? DSDV????????????????????? ; # routing protocol set opt(nn)??????????? 1???????????? ;# how many nodes are simulated set num_wired_nodes????? 2 set num_bs_nodes???????? 2? set topo??? [new Topography] $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 3?????????? ;# number of domains lappend cluster_num 2 1 1??????????? ;# number of clusters in each domain AddrParams set cluster_num_ $cluster_num lappend eilastlevel? 1 1 2 1???????????? ;# number of nodes in each cluster AddrParams set nodes_num_ $eilastlevel ;# of each domain # create trace object for ns and nam set tracefd? [open apop.tr w] set namtrace [open apop.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) # define topology $topo load_flatgrid $opt(x) $opt(y) #create wired nodes set Server [$ns_ node 0.0.0] $Server set X_ 500.0 $Server set Y_ 850.0 $Server set Z_ 0.0 set W_node [$ns_ node 0.1.0] $W_node set X_ 500.0 $W_node set Y_ 710.0 $W_node set Z_ 0.0 set god_ [create-god $opt(nn)+2] # Create channel #1 and #2 set chan_1 [new $opt(chan)] ;#umts Mac/802_11 set dataRate_ 2.0Mb ;# UMTS data rate Phy/WirelessPhy set Pt_ 4.5099 ;# UMTS coverage: r=500m Phy/WirelessPhy set freq_ 2.175e9 ;# UMTS radio frequency $chan_1 set delay 10ms Phy/WirelessPhy set bandwidth_ 384k $ns_ node-config -mobileIP ON \ ??? ??? ?-adhocRouting $opt(rp) \ ???????????????? -llType $opt(ll) \ ???????????????? -macType $opt(mac) \ ???????????????? -ifqType $opt(ifq) \ ???????????????? -ifqLen $opt(ifqlen) \ ???????????????? -antType $opt(ant) \ ???????????????? -propType $opt(prop) \ ???????????????? -phyType $opt(netif) \ ??? ??? ?-topoInstance $topo \ ??? ??? ?-agentTrace ON \ ???????????????? -routerTrace OFF \ ???????????????? -macTrace ON \ ???????????????? -wiredRouting ON \ ??? ??? ?-channel $chan_1 ??? ??? # Create BSs set BS_umts [$ns_ node 1.0.0] $BS_umts random-motion 0 $BS_umts set X_ 150.0 $BS_umts set Y_ 610.0 $BS_umts set Z_ 0.000000000000 set MN [$ns_ node 1.0.1]? $MN random-motion 0? ??????????????? $MN set X_ 160.0 $MN set Y_ 530.0 $MN set Z_ 0.0 set HAaddress [AddrParams addr2id [$BS_umts node-addr]] [$MN set regagent_] set home_agent_ $HAaddress set BS_umts2 [$ns_ node 2.0.0] ??? ?????????????????????????????????? ??? $BS_umts2 random-motion 0 ??? $BS_umts2 set X_ 850.0 $BS_umts2 set Y_ 610.0 $BS_umts2 set Z_ 0.000000000000 $ns_ at 1.0 "$MN setdest 950.0 530.0 15.0" $ns_ duplex-link $Server $W_node 50Mb 0.2ms DropTail $ns_ duplex-link-op $Server $W_node orient down $ns_ duplex-link $W_node $BS_umts 50Mb 0.2ms DropTail $ns_ duplex-link-op $W_node $BS_umts orient down-left $ns_ duplex-link $W_node $BS_umts2 50Mb 0.2ms DropTail $ns_ duplex-link-op $W_node $BS_umts2 orient down-right set sctp0 [new Agent/SCTP] $ns_ attach-agent $Server $sctp0 $sctp0 set fid_ 0 $sctp0 set debugMask_ -1 $sctp0 set debugFileIndex_ 0 $sctp0 set mtu_ 1500 $sctp0 set dataChunkSize_ 1468 $sctp0 set numOutStreams_ 1 $sctp0 set oneHeartbeatTimer_ 1 # one heartbeat timer shared for all dests $sctp0 set heartbeatInterval_ 1 #kathe 1 sec ena heartbeat set trace_ch [open trace.sctp w] $sctp0 set trace_all_ 1?????????? # trace them all on oneline $sctp0 trace cwnd_ $sctp0 trace rto_ $sctp0 trace errorCount_ $sctp0 attach $trace_ch set sctp1 [new Agent/SCTP] $ns_ attach-agent $MN $sctp1 $sctp1 set debugMask_ -1 $sctp1 set debugFileIndex_ 1 $sctp1 set mtu_ 1500 $sctp1 set initialRwnd_ 131072 $sctp1 set useDelayedSacks_ 1 $sctp1 set oneHeartbeatTimer_ 1 $sctp1 set heartbeatInterval_ 1 #kathe 1 sec ena heartbeat $ns_ color 0 Red $ns_ color 1 Blue $ns_ connect $sctp0 $sctp1 set ftp0 [new Application/FTP] $ftp0 attach-agent $sctp0 $ns_ at 0.5 "$ftp0 start" $ns_ at 50 "stop"; $ns_ at 50 "puts \"NS EXITING...\" ; $ns_ halt" proc stop {} { ??? global ns_ tracefd ??? $ns_ flush-trace ??? close $tracefd exec nam apop.nam & ??? exit 0 } $ns_ run ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From p4ck37f1lt3r at gmail.com Mon Mar 2 16:31:06 2009 From: p4ck37f1lt3r at gmail.com (Richardson Lima) Date: Mon, 2 Mar 2009 21:31:06 -0300 Subject: [ns] Released Antnet the manual for implementation in Ns-2.33 Message-ID: <706efd330903021631p26e015dcv45eca1233bc2a7ba@mail.gmail.com> Dear all, Based on the manual written by Lavina Jain for the Ns-2.28, I launched the manual for implementation of AntNet altorithm for Ns-2.33. Click here to download. Hope that I have helped. Regards, ----------------------------------------------- Richardson Lima http://antnet.wordpress.com http://securityfusion.sourceforge.net (Security Fusion intrusion detection system) Position: Security System Administrator Location: Networking and Telecommuncations Research Group Federal University of Pernambuco Informatics Center, Brazil P.O. Box: 7851, ZIP: 50732-970 Phone: +55-81-2126-8954 Fax:+55-81-2126-8955 Gsm Mobile: +55 81 88725173 Este e-mail ? confidencial e de uso exclusivo do destinat?rio. Seu conte?do n?o deve ser revelado a terceiros. Caso voc? n?o seja o destinat?rio, por favor notifique o remetente e elimine esta mensagem imediatamente. Alerto que esta mensagem transitou por rede p?blica de comunica??o, estando, portanto, sujeita aos riscos inerentes a essa forma de comunica??o. This e-mail is private and confidential, and of exclusive use of the addressee only. Its contents should not be revealed to third parties. If you are not the intended addressee, please notify the sender and promptly delete this message. It should be advised that this correspondence has been transmitted through a public communication channel, being, therefore, subject to the inherent risks of such kind of communication. From paraguayita_69 at hotmail.com Mon Mar 2 21:17:11 2009 From: paraguayita_69 at hotmail.com (Diana Benitez) Date: Tue, 3 Mar 2009 00:17:11 -0500 Subject: [ns] goodput measurement Message-ID: Hello: I trace the variables of TCP ndatabytes : number of bytes transmited (throughput) nrexmitbytes: number of bytes retrasmited The goodput is defined as the diference beetween these two values. Since the TCP makes: ++ndatabytes and ++nrexmitbytes, this means that is the total of the simulation. If I want to do a graph of the goodput/s, I made: set good [expr (ndatabytes - nrexmitbytes)/$now)] where $now is the time of the simulation for tracing. Is this correct? Thanks, DIANA. _________________________________________________________________ Windows Live?: Life without walls. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009 From fudgy.geek at gmail.com Mon Mar 2 22:12:07 2009 From: fudgy.geek at gmail.com (Firdaus Alias) Date: Tue, 3 Mar 2009 14:12:07 +0800 Subject: [ns] How to get SNR for 802.11 wireless simulations Message-ID: <41df069c0903022212j2c8bbeaexbec765d90bc7937f@mail.gmail.com> I'm trying to calculate the signal strength from another node connected wireless-ly by 802.11 protocol. How do I get the SNR in ns-2 so that I can roughly calculate the signal strength? Thank you in advance! Firdaus. From mmm59 at aub.edu.lb Tue Mar 3 01:14:01 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Tue, 03 Mar 2009 11:14:01 +0200 Subject: [ns] How to assign different transmission ranges for different nodes ?? In-Reply-To: <49ABDDE9.5020908@rt-solutions.de> References: <20090302114229.ia3z382e80s4w0gw@imail.aub.edu.lb> <9d53a7ed0903020334sf699a32i41bcbf445e9fe31b@mail.gmail.com> <20090302142116.5f88u002yokksows@imail.aub.edu.lb> <49ABDDE9.5020908@rt-solutions.de> Message-ID: <20090303111401.kgho06x3k8cs8gco@imail.aub.edu.lb> Hello Daniel, Thanks for offering the help. Its weird that in NS2 the solution for my query isn't built in easily. I think i got what your proposed solution is and i will try it soon. You see all i wanted initially is to have a wireless sensor networks who's sinks can transmit at a radius of say 500m and sensors can transmit say around 200m and after that run a setup algorithm to see what sensors can reach which sinks. The main problems I encountered were: -setting the transmission ranges (the question you replied to) -and constructing the neighbor lists, not at each node but rather at a command node which is central. For this I used god.cc because it has global parameters, it also had a constant "RANGE" which i ignored initially and then started asking what made it different from the parameters you explained below. Basically these were the main inquiries. Do you think there's something i'm doing wrong (im still a beginner). Thanks. Mathiew Quoting Daniel Mahrenholz : > Hi Mathiew, > > you should keep one very important thing in mind: You CANNOT set > transmission ranges. You can set transmitter and antenna properties for > each node (power, gain, ...). Now the transmission range is the result > of the combination of a sender (how strong is the signal transmitted), > a propagation model aka environment (how strong is the signal > attenuated), and a receiver (how sensitive is the antenna). > > Now for your initial question. If you instantiate a wireless node, you > set all properties like transmission power, antenna gain etc. > beforehand. If you change these properties before instantiating the > next node, you will get nodes with different properties and hence > "transmission ranges". > > If you plan to do serious wireless research you should take some time > to understand wireless propagation - most CS people misunderstand this > point. If you like to learn more, just ask me. > > Daniel. > > Mathiew Moussa schrieb: >> Hi Kiran, >> >> Thanks for the reply. >> >> I didnt really understand what you tried to say, do you mean i set >> the range for each node in the initialization loop, if yes, can you >> attach a small example. >> >> I'm new to ns2, so I was also wondering, can you retrieve the >> transmission range value of the nodes in C++ ? >> >> Thanks alot. >> Mathiew >> >> Quoting Kiran K Chauhan : >> >> >>> Hi Mathiew, >>> >>> You can do the same using the node-config for all nodes separately. >>> Since Phy/WirelessPhy set Pt_ 0.2818 ;# 250m gets used during node >>> configuration. >>> So node-config for one node followed by initializing the node and >>> wise versa >>> >>> Regards >>> >>> Kiran >>> >>> On Mon, Mar 2, 2009 at 3:12 PM, Mathiew Moussa wrote: >>> >>> >>>> Hi All, >>>> >>>> I was wondering if anyone knows how to assign different transmission >>>> ranges for various Nodes in the network. >>>> >>>> In my network i have sinks and sensor and i want the sinks to have a >>>> larger transmission range than that of the sensors. >>>> >>>> we usually assign the transmission range of nodes using a command in >>>> tcl similar to : >>>> >>>> #Phy/WirelessPhy set Pt_ 0.2818 ;# 250m >>>> >>>> and so i was also wondering what the constant "RANGE" in mobile/god.h >>>> stood for and what range it controlled ?? The RANGE is used in god.cc >>>> by method isNeighbor to calculate if 2 nodes are neighbors. >>>> >>>> >>>> I hope someone can help we this because it's urgent, thanks. >>>> >>>> Mathiew >>>> >>>> >>>> >>> -- >>> ........................................................................................................................................................ >>> Every footstep in life is full of possibilities we just need to know our >>> ability to explore them >>> ........................................................................................................................................................ >>> ........................................................................................................................................................ >>> >>> >> >> >> >> >> >> From kiran.nc2k2 at gmail.com Tue Mar 3 01:54:26 2009 From: kiran.nc2k2 at gmail.com (kiran nc) Date: Tue, 3 Mar 2009 15:24:26 +0530 Subject: [ns] How to print the neighbors of a node Message-ID: <176e9e080903030154x424026afh6d822997a49c191c@mail.gmail.com> Hi all, I am a newbie to NS-2. I want to know how to print the neighbors of a particular node, through the TCL script. I have read in NS Manual that the class Node has the component neighbor_ to store the list of neighbors. Can anybody please tell me how to call this in TCL, so that the neighbors of the nodes can be printed? Thanking you in Advance Regards, Kiran From linoh_9 at hotmail.com Tue Mar 3 01:57:02 2009 From: linoh_9 at hotmail.com (Lynoh MaGee) Date: Tue, 3 Mar 2009 11:57:02 +0200 Subject: [ns] how to measure handover delay Message-ID: Hi, I have run "wireless3.tcl" example from Marc Greis' Tutorial and I obtained both trace files ("wireless3-out.tr" and "wireless3-out.nam"). Now, the problem I am having is to determine the handover delay of Mobile IP in this scenario. Does anyone know how it is determined from the files? Thanking you in advance for your help. Lynoh _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx From Faraz_Hasan-S at email.ulster.ac.uk Tue Mar 3 02:55:23 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Tue, 3 Mar 2009 10:55:23 +0000 Subject: [ns] Multiple interfaces for a mobile node Message-ID: Hi Everyone! Can some one please direct me to something explaining the use of multiple interface cards for a single mobile node in a wireless environment. I want to simulate a mobile node installed with two interface cards; both communicating to separate nodes. Please write back soon. Faraz From spyros_mar at yahoo.gr Tue Mar 3 03:30:58 2009 From: spyros_mar at yahoo.gr (martini.spy) Date: Tue, 3 Mar 2009 03:30:58 -0800 (PST) Subject: [ns] Mobile ip- Handovers- Sctp--HELP!! In-Reply-To: <898522.43600.qm@web25501.mail.ukl.yahoo.com> References: <898522.43600.qm@web25501.mail.ukl.yahoo.com> Message-ID: <22306886.post@talk.nabble.com> nobody knows a hint?? :-( please answer if you know.... martini.spy wrote: > > > Hi! > I have a problem in making handovers in my script when I use > sctp at transport layer. I use the topology and the method just like in > the standard wireless3.tcl. > However, when I run my script, only > the first init and init-ack messages are transmitted and received more > than once but nothing more and of course no data packets are > exchanged... > Can anyone please help me?? How else can I do it?? > In > order to use hierarchical addresses with sctp I have found that I must > use the -wiredRouting ON? option even for mobile nodes, and I wonder if > that's why it doesn't work. > Any help will be appreciated!! Any ideas what may be wrong??? I am in a > great hurry.... > > Thanks in advance, > > My full tcl script: > set ns_??? ??? [new Simulator] > > set opt(chan)?????? > Channel/WirelessChannel > set opt(prop)?????? Propagation/TwoRayGround > set opt(netif)????? Phy/WirelessPhy > set opt(mac)??????? Mac/802_11 > set opt(ifq)??????? Queue/DropTail/PriQueue > set opt(ll)???????? LL > set opt(ant)??????? Antenna/OmniAntenna > set opt(x)????????????? 1000?? ;# X dimension of the topography > set opt(y)????????????? 1000?? ;# Y dimension of the topography > set opt(ifqlen)???????? 50??????????? ;# max packet in ifq > #set > val(seed)?????????? 0.0 > set opt(rp)???????????? DSDV????????????????????? ; # routing protocol > set opt(nn)??????????? 1???????????? ;# how many nodes are simulated > set num_wired_nodes????? 2 > set num_bs_nodes???????? 2? > > set topo??? [new Topography] > > $ns_ node-config -addressType hierarchical > > AddrParams set domain_num_ 3?????????? ;# number of domains > lappend cluster_num 2 1 1??????????? ;# number of clusters > in each domain > AddrParams set cluster_num_ $cluster_num > lappend eilastlevel? 1 1 2 1???????????? ;# number of nodes in each > cluster > AddrParams set nodes_num_ $eilastlevel ;# of each domain > > > # create trace object for ns and nam > > set tracefd? [open apop.tr w] > set namtrace [open apop.nam w] > > $ns_ trace-all $tracefd > $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) > > # define topology > $topo load_flatgrid $opt(x) $opt(y) > > > #create wired nodes > set Server [$ns_ node 0.0.0] > $Server set X_ 500.0 > $Server set Y_ 850.0 > $Server set Z_ 0.0 > > set W_node [$ns_ node 0.1.0] > $W_node set X_ 500.0 > $W_node set Y_ 710.0 > $W_node set Z_ 0.0 > > set god_ [create-god $opt(nn)+2] > > # Create channel #1 and #2 > set chan_1 [new $opt(chan)] ;#umts > > Mac/802_11 set dataRate_ 2.0Mb ;# UMTS data rate > Phy/WirelessPhy > set Pt_ 4.5099 ;# UMTS coverage: r=500m > Phy/WirelessPhy set freq_ 2.175e9 ;# UMTS radio frequency > > $chan_1 set delay 10ms > Phy/WirelessPhy set bandwidth_ 384k > > $ns_ node-config -mobileIP ON \ > ??? ??? ?-adhocRouting $opt(rp) \ > ???????????????? -llType $opt(ll) \ > ???????????????? -macType $opt(mac) \ > ???????????????? -ifqType $opt(ifq) \ > ???????????????? -ifqLen $opt(ifqlen) \ > ???????????????? -antType $opt(ant) > \ > ???????????????? -propType $opt(prop) \ > ???????????????? -phyType $opt(netif) \ > ??? ??? ?-topoInstance $topo \ > ??? ??? ?-agentTrace ON \ > ???????????????? -routerTrace OFF \ > ???????????????? -macTrace ON \ > ???????????????? -wiredRouting ON \ > ??? ??? ?-channel $chan_1 ??? ??? > > # Create BSs > set BS_umts [$ns_ node 1.0.0] > $BS_umts random-motion 0 > > $BS_umts set X_ 150.0 > $BS_umts set Y_ > 610.0 > $BS_umts set Z_ 0.000000000000 > > set MN [$ns_ node 1.0.1]? > $MN random-motion 0? > ??????????????? > $MN set X_ 160.0 > $MN set Y_ 530.0 > $MN set Z_ 0.0 > > set HAaddress [AddrParams addr2id [$BS_umts node-addr]] > [$MN set regagent_] set home_agent_ $HAaddress > > set BS_umts2 [$ns_ node 2.0.0] ??? ?????????????????????????????????? ??? > $BS_umts2 random-motion 0 > ??? > $BS_umts2 set X_ 850.0 > $BS_umts2 set Y_ 610.0 > $BS_umts2 set Z_ 0.000000000000 > > $ns_ at 1.0 "$MN setdest 950.0 530.0 15.0" > > $ns_ duplex-link $Server $W_node 50Mb 0.2ms DropTail > $ns_ duplex-link-op $Server $W_node orient > down > > $ns_ duplex-link $W_node $BS_umts 50Mb 0.2ms DropTail > $ns_ duplex-link-op $W_node $BS_umts orient down-left > > $ns_ duplex-link $W_node $BS_umts2 50Mb 0.2ms DropTail > $ns_ duplex-link-op $W_node $BS_umts2 orient down-right > > set sctp0 [new Agent/SCTP] > $ns_ attach-agent $Server $sctp0 > $sctp0 set fid_ 0 > $sctp0 set debugMask_ -1 > $sctp0 set debugFileIndex_ 0 > $sctp0 set mtu_ 1500 > $sctp0 set dataChunkSize_ 1468 > $sctp0 set numOutStreams_ 1 > $sctp0 set oneHeartbeatTimer_ 1 # one heartbeat timer shared for all dests > $sctp0 set heartbeatInterval_ 1 #kathe 1 sec ena heartbeat > set trace_ch [open trace.sctp w] > $sctp0 set trace_all_ 1?????????? # trace them all on oneline > $sctp0 trace cwnd_ > $sctp0 trace rto_ > $sctp0 trace errorCount_ > $sctp0 attach $trace_ch > > set sctp1 [new Agent/SCTP] > $ns_ attach-agent $MN $sctp1 > $sctp1 set debugMask_ > -1 > $sctp1 set debugFileIndex_ 1 > $sctp1 set mtu_ 1500 > $sctp1 set initialRwnd_ 131072 > $sctp1 set useDelayedSacks_ 1 > $sctp1 set oneHeartbeatTimer_ 1 > $sctp1 set heartbeatInterval_ 1 #kathe 1 sec ena heartbeat > $ns_ color 0 Red > $ns_ color 1 Blue > $ns_ connect $sctp0 $sctp1 > > set ftp0 [new Application/FTP] > $ftp0 attach-agent $sctp0 > > $ns_ at 0.5 "$ftp0 start" > $ns_ at 50 "stop"; > $ns_ at 50 "puts \"NS EXITING...\" ; $ns_ halt" > > proc stop {} { > > ??? global ns_ tracefd > > ??? $ns_ flush-trace > > ??? close $tracefd > exec nam apop.nam & > ??? exit 0 > > } > > $ns_ run > > > > ___________________________________________________________ > ?????????????? Yahoo!; > ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail > ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? > ????????? http://login.yahoo.com/config/mail?.intl=gr > > -- View this message in context: http://www.nabble.com/Mobile-ip--Handovers--Sctp--HELP%21%21-tp22296240p22306886.html Sent from the ns-users mailing list archive at Nabble.com. From wagnerfbm at yahoo.com.br Tue Mar 3 04:17:34 2009 From: wagnerfbm at yahoo.com.br (Helber Wagner) Date: Tue, 3 Mar 2009 04:17:34 -0800 (PST) Subject: [ns] Res: Multiple interfaces for a mobile node In-Reply-To: References: Message-ID: <434804.30675.qm@web51408.mail.re2.yahoo.com> Hi, Try this tutorial written by Ram?n Aguero: http://telecom.inescporto.pt/~rcampos/ucMultiIfacesSupport.pdf Good luck, ?___________________________________ Helber Wagner da Silva MSc. Student in Applied Informatics University of Fortaleza - Cear? - Brazil URL: http://www.nr2.ufpr.br/~helber ________________________________ De: Syed Faraz Hasan Para: "ns-users at isi.edu" Enviadas: Ter?a-feira, 3 de Mar?o de 2009 7:55:23 Assunto: [ns] Multiple interfaces for a mobile node Hi Everyone! Can some one please direct me to something explaining the use of multiple interface cards for a single mobile node in a wireless environment. I want to simulate a mobile node installed with two interface cards; both communicating to separate nodes. Please write back soon. Faraz Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From daniel.tadesse at ti-wmc.nl Tue Mar 3 04:41:53 2009 From: daniel.tadesse at ti-wmc.nl (Daniel Tadesse) Date: Tue, 03 Mar 2009 13:41:53 +0100 Subject: [ns] if you know any power-based topology control algorithm implementation Message-ID: <49AD2591.8090600@ti-wmc.nl> hi all if you know where i can get any power-based topology control algorithm implementations in ns2 please help!!! thanking you in advance! regards, aweke From ham_senda at yahoo.fr Tue Mar 3 07:57:53 2009 From: ham_senda at yahoo.fr (sanfoura) Date: Tue, 3 Mar 2009 07:57:53 -0800 (PST) Subject: [ns] enable arp trace for wired network Message-ID: <20994006.post@talk.nabble.com> hi, please i want to have in my trace file ARP traces for a wired network simulation. how can i do that?? Please help me. -- View this message in context: http://www.nabble.com/enable-arp-trace-for-wired-network-tp20994006p20994006.html Sent from the ns-users mailing list archive at Nabble.com. From fhg07 at c3sl.ufpr.br Tue Mar 3 14:35:10 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Tue, 3 Mar 2009 19:35:10 -0300 (BRT) Subject: [ns] now allowing energy model to change colors Message-ID: Well, I am using energy model, but I don't want it to keep changing my node colors to green or yellow depending on their energy. Is there any way to avoid it? I want to use it, but I do not want it changing my node colors ! Thanks, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science undergraduate student. From cool.shivaji at yahoo.com Tue Mar 3 21:12:33 2009 From: cool.shivaji at yahoo.com (Pop Barbie) Date: Tue, 3 Mar 2009 21:12:33 -0800 (PST) Subject: [ns] Trace queue Message-ID: <370844.47825.qm@web45508.mail.sp1.yahoo.com> Dear all I'm using ns2.31 and i've given? the command to trace the? queue after starting the traffic..... I want to trace the queue also the packet loss... but i got an error when i execute the tcl script.. Please anyone help me to execute the code.... set gh [open que.tr w] $ns trace-queue $n0 $m0 $gh wrong # args: should be "_o3 self class proc n1 n2 ?file?" ??? (Simulator trace-queue line 1) ??? invoked from within "$ns trace-queue $gh" ??? (file "jex.tcl" line 12) THANKS From geekreader at gmail.com Wed Mar 4 05:05:23 2009 From: geekreader at gmail.com (J S) Date: Wed, 4 Mar 2009 08:05:23 -0500 Subject: [ns] Out of memory error Message-ID: <51c600f80903040505h678e00acx4e4dad85c01f33fb@mail.gmail.com> Hello- I have a simulation set up in which I am using ping, packmime and pareto(udp) traffcs among 150 odd nodes. Now when I tried to run my simulation for longer time (24 hours), the process was killed and the kernel reported out of memory. The ns process could only last for 3 hours of simulation time. Does any one know how do I fix this problem? I reviewed the page http://isi.edu/nsnam/ns/ns-largesim.html It suggest that I should remove all packet headers and add specific headers, but since I have 3 different types of packets (ping-ICMP, packmime-tcp and pareto-UDP), how do I implement this? Is there any way I can check for memory leak? Thanks JS From kraraar at yahoo.com Wed Mar 4 22:55:24 2009 From: kraraar at yahoo.com (Sohel Rahman) Date: Wed, 4 Mar 2009 22:55:24 -0800 (PST) Subject: [ns] AODV existing neighbor list Message-ID: <194127.73329.qm@web38602.mail.mud.yahoo.com> ear ns-users: Can anyone tell me what is the function of existing neighbor list and how it is integrated with routing table? I tried to access the value using following code, but didnt get anything. What did I wrong in my code? Can anyone help me? aodv_rt_entry *rt; rt = rtable.head(); cout<<"AA"<rt_nblist.lh_first; for (; nb; nb = nb->nb_link.le_next) { cout<<"Neighbor :"<nb_addr<nb_expire<rt_link.le_next; } Thanks and Regards Sohel Get your new Email address! Grab the Email name you've always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ From akshatha_lavi at yahoo.co.in Thu Mar 5 00:00:18 2009 From: akshatha_lavi at yahoo.co.in (akshatha h.k) Date: Thu, 5 Mar 2009 13:30:18 +0530 (IST) Subject: [ns] problem regarding NS2 Message-ID: <314078.78708.qm@web94006.mail.in2.yahoo.com> Respected sir/madam, I am doing my final year B-tech project in NS2.All the installations procedures were really good for the beginners like us. But i have a huge hurdle on my way I don't know how to write a code for the spectrum sensing or a passive listener who can sense the medium and just report back.Please do reply, i have really got struck.awaiting for your reply. Thanking you, Akshatha.H.K Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From saikrish.g at gmail.com Thu Mar 5 00:31:45 2009 From: saikrish.g at gmail.com (sai krishna gumudavally) Date: Thu, 5 Mar 2009 03:31:45 -0500 Subject: [ns] how to call multiple targets to receive a packet. Message-ID: Hello, I need to simulate a scenario where a node on receiving a packet will send it out on all the out going links.I do not want to use multicast protocols due to some other issue.Can any one help me with implementing it?. Thank you, Regards -Saikrishna From dagamayank at gmail.com Thu Mar 5 01:05:48 2009 From: dagamayank at gmail.com (Mayank Daga) Date: Thu, 5 Mar 2009 16:05:48 +0700 Subject: [ns] NAM Problem Message-ID: <8bb0d1210903050105u656041f6id2b851a62240d5c0@mail.gmail.com> Hey, I am using a scenario file which comes with ns2. scen-3-test. But the issue is, when I see the topology in NAM, there is just one node and that too is not at the co-ordinates where it has been assigned to. I have tried with various scenario files but non luck. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India From mmm59 at aub.edu.lb Thu Mar 5 04:55:56 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Thu, 05 Mar 2009 14:55:56 +0200 Subject: [ns] need an example of wireless sensor network using SMAC Message-ID: <20090305145556.r0b0g49w08w0kck4@imail.aub.edu.lb> Hello All, Does anyone know where i can find a package (TCL and some C++ algorithm) for NS2 the simulates a Wireless Sensor Network using SMAC at the Mac Layer. I couldn't find something sufficient. All I need is something to start with i.e. some code that the I can slightly modify, add components, and get it running asap. Any Ideas ? Thanks in Advance. Mathiew Moussa From palucci at smar.com.br Thu Mar 5 06:33:24 2009 From: palucci at smar.com.br (Rodrigo Palucci Pantoni) Date: Thu, 5 Mar 2009 11:33:24 -0300 Subject: [ns] 802.15.4 modulation Message-ID: Hello, I would like to know if there is some code available of 802.15.4 to NS that supports modulation of TDMA (Time Division Multiple Access) and Channel Hopping simultaneously. Somebody can give me a tip? Thanks in advance, Rodrigo From linoh_9 at hotmail.com Thu Mar 5 07:37:52 2009 From: linoh_9 at hotmail.com (Lynoh MaGee) Date: Thu, 5 Mar 2009 17:37:52 +0200 Subject: [ns] NIST Mobility Package Message-ID: Hi, Does the NIST mobility package extension to NS-2 support MIPv6 ? Furthermore, which files need to be modified to implement PMIPv6 ? Thank you. _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx From giuffsalvo at gmail.com Thu Mar 5 08:06:33 2009 From: giuffsalvo at gmail.com (Salvo Danilo Giuffrida) Date: Thu, 5 Mar 2009 17:06:33 +0100 Subject: [ns] Promiscous mode in DSR... Message-ID: Hi, I saw that in the DSR implementation of NS2, promiscous listening for source routes and automatic route shortening is by default enabled. In real life scenarios (sensor networks, etc...), is it enabled? I'm wondering this because I know that promiscous listening consumes more power, and maybe in battery-operated devices it might not be worth it... From binome_ini at hotmail.com Thu Mar 5 09:43:07 2009 From: binome_ini at hotmail.com (sarym binome) Date: Thu, 5 Mar 2009 17:43:07 +0000 Subject: [ns] AODV new pkt send error Message-ID: Hello i create a new packet ?newpkt? aodv and I create a function send_newpkt (for neighbor only )and recv_newpkt and I call it in constructor (bold underlined ) AODV::AODV(nsaddr_t id) : Agent(PT_AODV), btimer(this), htimer(this), ntimer(this), rtimer(this), lrtimer(this), rqueue() { ... logtarget = 0; ifqueue = 0; /// sendnewpkt(); } and I have this error when I run a tcl example Scheduler: attempt to schedule an event with a NULL handler. Don't DO that. I think it's happen when my newpkt is sent: I create a newpkt exactly like sendhello() but I didn't use any timer exactly here: Scheduler::instance().schedule(target_, p, 0.); must I use a timer ??? I don't need to send my newpkt periodically, I just send it once . void AODV::sendHello() { Packet *p = Packet::alloc(); struct hdr_cmn *ch = HDR_CMN(p); struct hdr_ip *ih = HDR_IP(p); struct hdr_aodv_reply *rh = HDR_AODV_REPLY(p); #ifdef DEBUG fprintf(stderr, "sending Hello from %d at %.2f\n", index, Scheduler::instance().clock()); #endif // DEBUG rh->rp_type = AODVTYPE_HELLO; //rh->rp_flags = 0x00; rh->rp_hop_count = 1; rh->rp_dst = index; rh->rp_dst_seqno = seqno; rh->rp_lifetime = (1 + ALLOWED_HELLO_LOSS) * HELLO_INTERVAL; // ch->uid() = 0; ch->ptype() = PT_AODV; ch->size() = IP_HDR_LEN + rh->size(); ch->iface() = -2; ch->error() = 0; ch->addr_type() = NS_AF_NONE; ch->prev_hop_ = index; // AODV hack ih->saddr() = index; ih->daddr() = IP_BROADCAST; ih->sport() = RT_PORT; ih->dport() = RT_PORT; ih->ttl_ = 1; Scheduler::instance().schedule(target_, p, 0.0); } Regards _________________________________________________________________ Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live?? Lancez-vous ! http://www.microsoft.com/windows/windowslive/default.aspx From jsarora1 at gmail.com Thu Mar 5 20:38:16 2009 From: jsarora1 at gmail.com (Jaspreet Singh) Date: Fri, 6 Mar 2009 10:08:16 +0530 Subject: [ns] problem with DSDV In-Reply-To: <65809cfe0903052029h6543e4ecu4202fa83fd0226bb@mail.gmail.com> References: <65809cfe0903052029h6543e4ecu4202fa83fd0226bb@mail.gmail.com> Message-ID: <65809cfe0903052038xd64b4faxd22c3ad34e35a26c@mail.gmail.com> On 3/6/09, Jaspreet Singh wrote: > > Hi All, > > I am facing a problem with wireless ad hoc simulation. It works fine with > AODV & DSR protocols for any no of nodes. Now, if I change the protocol to > DSDV, it works fine only for 5 nodes. If I increase the nodes to 10, it does > not produce the result even after 30 minutes. It just stays there without > showing any error or result. When I open the trace file after some time, the > file is not complete. Pls tell whats the problem. I have to create a > scenario with upto 100 nodes & its not working with even 10. > > Also tell which other protocols I can directly use in NS2 apart from AODV, > DSR & DSDV. > > -- > Jaspreet Singh Arora > > > From muralikrishna4g at gmail.com Thu Mar 5 21:03:18 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Fri, 6 Mar 2009 10:33:18 +0530 Subject: [ns] ns2 pushback Message-ID: hi to all i am new to ns2, i am using ns-2.33, here i like to simulate the pushback in this i like to do push incoming packets sender address to up stream router.. for this scenario i got some code it is like this * * * * * Node instproc add-pushback-agent {} { $self instvar pushback_ set pushback_ [new Agent/Pushback] [Simulator instance] attach-agent $self $pushback_ # puts "Pushback Agent = $pushback_" $pushback_ initialize $self [[Simulator instance] get-routelogic] return $pushback_ } Node instproc get-pushback-agent {} { $self instvar pushback_ if [info exists pushback_] { return $pushback_ } else { return -1 } } Simulator instproc pushback-duplex-link {n1 n2 bw delay} { $self pushback-simplex-link $n1 $n2 $bw $delay $self pushback-simplex-link $n2 $n1 $bw $delay } Simulator instproc pushback-simplex-link {n1 n2 bw delay} { set pba [$n1 get-pushback-agent] if {$pba == -1} { puts "Node does not have a pushback agent" exit } $self simplex-link $n1 $n2 $bw $delay RED/Pushback $pba set link [$self link $n1 $n2] set qmon [new QueueMonitor/ED] $link attach-monitors [new SnoopQueue/In] [new SnoopQueue/Out] [new SnoopQueue/Drop] $qmon set queue [$link queue] $queue set pushbackID_ [$pba add-queue $queue] $queue set-monitor $qmon $queue set-src-dst [$n1 set id_] [$n2 set id_] } Agent/Pushback instproc get-pba-port {nodeid} { set node [[Simulator instance] set Node_($nodeid)] set pba [$node get-pushback-agent] if {$pba == -1} { return -1 } else { return [$pba set agent_port_] } } Agent/Pushback instproc check-queue { src dst qToCheck } { set link [[Simulator instance] set link_($src:$dst)] set queue [$link queue] if {$qToCheck == $queue} { return 1 } else { return 0 } } Queue/RED/Pushback set pushbackID_ -1 Queue/RED/Pushback set rate_limiting_ 1 Agent/Pushback set last_index_ 0 Agent/Pushback set intResult_ -1 Agent/Pushback set enable_pushback_ 1 Agent/Pushback set verbose_ false # # Added to be able to trace the drops in rate-limiter # Queue/RED/Pushback instproc attach-traces {src dst file {op ""}} { $self next $src $dst $file $op set ns [Simulator instance] #set this up late if you want. # set type [$self mon-trace-type] #nam does not understand anything else yet # if {$op == "nam"} { # set type "Drop" # } set type "Drop" set rldrop_trace [$ns create-trace $type $file $src $dst $op] set oldTrace [$self rldrop-trace] if {$oldTrace!=0} { puts "exists" $rldrop_trace target $oldTrace } else { # puts "Does not exist" $rldrop_trace target [$ns set nullAgent_] } $self rldrop-trace $rldrop_trace } * * * * help me in how to use this code for that scenario.. i much awaitng for this your help.. and asking about pushback in the forum for many days i am getting no response.. please help me *my mail id* : muralikrishna4g at gmail.com From renuka_prabhu at rediffmail.com Thu Mar 5 21:24:26 2009 From: renuka_prabhu at rediffmail.com (renuka uday prabhu) Date: 6 Mar 2009 05:24:26 -0000 Subject: [ns] ns error invalid command name "Node/DelayBox" Message-ID: <20090306052426.26935.qmail@f4mail-235-244.rediffmail.com> ? Dear ns-users I am using ns-2.33 version installed on Cygwin . It was working fine. Now I tried to add Cluster Based Routing Protocol(CBRP), the source code for which I got from the internet for version 2.1b5. I modified the code and removed all the errors to fit for the new version. I modified the makefile.in to include the cbrp/.o files.Then I executed ./configure make clean and make. Everything was o.k. But when I run ns by typing ns at the command prompt,after setting the env. variables ,I get the following error code omitted because of length :invalid command name "Node/DelayBox" while executing "Node/DelayBox instproc init args { eval $self next $args $self instvar db_classifier_ set db_classifier_ [new Classifier/DelayBox ] $self insert-etr..." invoked from within "if {[ns-hasSTL]==1} { Simulator instproc set-nix-routing{} Simulator set nix-routimg 1 Node enable-module "Nix" } Simulator instproc get-link-...." Can anyone please help me out in this regard. nam and startx commands are working properly. I tried to edit the makefile.in in different ways but not successful. Is there anything that I should do specifically for cygwin version Thanx renuka From sahoojagruti at yahoo.com Thu Mar 5 22:43:01 2009 From: sahoojagruti at yahoo.com (sahoo jagruti) Date: Thu, 5 Mar 2009 22:43:01 -0800 (PST) Subject: [ns] Ns-users Digest, Vol 63, Issue 4 References: Message-ID: <961293.4712.qm@web52306.mail.re2.yahoo.com> Dear J S, To check memory leaks , you can go for valgrind tool. Check the link below. http://valgrind.org/ Sometimes, out of of memory occurs if the trace file is large. In that case, just keep the traces that u need and turn off all other traces. For example, u may turn on AGT only and turn off MAC and RTR traces. Thanks Jagruti ________________________________ From: "ns-users-request at ISI.EDU" To: ns-users at ISI.EDU Sent: Thursday, March 5, 2009 9:00:29 AM Subject: Ns-users Digest, Vol 63, Issue 4 Send Ns-users mailing list submissions to ??? ns-users at isi.edu To subscribe or unsubscribe via the World Wide Web, visit ??? http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ??? ns-users-request at isi.edu You can reach the person managing the list at ??? ns-users-owner at isi.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Ns-users digest..." Today's Topics: ? 1. Trace queue (Pop Barbie) ? 2. Out of memory error (J S) ---------------------------------------------------------------------- Message: 1 Date: Tue, 3 Mar 2009 21:12:33 -0800 (PST) From: Pop Barbie Subject: [ns] Trace queue To: "ns-users at isi.edu" Message-ID: <370844.47825.qm at web45508.mail.sp1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Dear all I'm using ns2.31 and i've given? the command to trace the? queue after starting the traffic..... I want to trace the queue also the packet loss... but i got an error when i execute the tcl script.. Please anyone help me to execute the code.... set gh [open que.tr w] $ns trace-queue $n0 $m0 $gh wrong # args: should be "_o3 self class proc n1 n2 ?file?" ??? (Simulator trace-queue line 1) ??? invoked from within "$ns trace-queue $gh" ??? (file "jex.tcl" line 12) THANKS ? ? ? ------------------------------ Message: 2 Date: Wed, 4 Mar 2009 08:05:23 -0500 From: J S Subject: [ns] Out of memory error To: ns-users at ISI.EDU Message-ID: ??? <51c600f80903040505h678e00acx4e4dad85c01f33fb at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Hello- I have a simulation set up in which I am using ping, packmime and pareto(udp) traffcs among 150 odd nodes. Now when I tried to run my simulation for longer time? (24 hours), the process was killed and the kernel reported out of memory. The ns process could only last for 3 hours of simulation time. Does any one know how do I fix this problem? I reviewed the page http://isi.edu/nsnam/ns/ns-largesim.html It suggest that I should remove all packet headers and add specific headers, but since I have 3 different types of? packets (ping-ICMP, packmime-tcp and pareto-UDP), how do I implement this? Is there any way I can check for memory leak? Thanks JS ------------------------------ _______________________________________________ Ns-users mailing list Ns-users at isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 63, Issue 4 *************************************** From veronicadiaza at gmail.com Thu Mar 5 22:46:51 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Fri, 6 Mar 2009 14:46:51 +0800 Subject: [ns] please help.... Message-ID: Hello ns2 users....Iam Veronica,pursuing my final year Bachelor of Technology............Iam working on AODV implementation with power consumption as cost metric..... Please suggest me which CC.FILES i have to modify for replacing shortest path with power consumption as cost metric..and in which way.....please suggest me which files are to be edited for implementation of our own protocols......thanks in advance .... From veronicadiaza at gmail.com Thu Mar 5 23:04:06 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Fri, 6 Mar 2009 15:04:06 +0800 Subject: [ns] which files are to be modified for implementing a new protocol.....i want 2 create a new protocol by modifying AODV.... Message-ID: Hello ns2 users....Iam Veronica,pursuing my final year Bachelor of Technology............Iam working on AODV implementation with power consumption as cost metric..... Please suggest me which CC.FILES i have to modify for replacing shortest path with power consumption as cost metric......please suggest me which files are to be edited for implementation of our own protocols......this is a bit urgent, so was not able 2 go thru previously asked questions....thanks in advance .... From jsarora1 at gmail.com Fri Mar 6 00:43:00 2009 From: jsarora1 at gmail.com (Jaspreet Singh) Date: Fri, 6 Mar 2009 00:43:00 -0800 (PST) Subject: [ns] [bug] Problem with DSDV Message-ID: <200903060843.AAA27369@www.isi.edu> [Bug Report] ----------------------------- Category: Other Package: ns ns-2.1 OS: Red Hat Enterprise Ed-5 Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= ----------------------------- Description: I am facing a problem with wireless ad hoc simulation. It works fine with AODV & DSR protocols for any no of nodes. Now, if I change the protocol to DSDV, it works fine only for 5 nodes. If I increase the nodes to 10, it does not produce the result even after 30 minutes. It just stays there without showing any error or result. When I open the trace file after some time, the file is not complete. Pls tell whats the problem. I have to create a scenario with upto 100 nodes & its not working with even 10. From sakhilemichael at gmail.com Fri Mar 6 01:22:36 2009 From: sakhilemichael at gmail.com (S M Ncanana) Date: Fri, 6 Mar 2009 01:22:36 -0800 (PST) Subject: [ns] [bug] run protocol that is alredy implemented in ns2 Message-ID: <200903060922.BAA29250@www.isi.edu> [Bug Report] ----------------------------- Category: Other Package: ns ns-2.31 OS: Linux ubuntu 8.0 Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= ----------------------------- Description: Description of Problem: How to get and run tcl script for the protocol that already implemented in ns2 How Easily Reproducible: (e.g. every time, intermittent, once only, etc.) Steps to Reproduce: (describe the minimal set of steps necessary to trigger the bug) 1. 2. 3. Actual Results: (describe what the application did after performing the above steps) Expected Results: (describe what the application should have done, were the bug not present) Additional Information: (the following infomation is helpful to debug: 1. simulation script, detailed output files, packet trace 2. patch file if you modify some source code 3. a backtrace from gdb if you get a segment fault If they are big files, PLEASE put them in your web space and include the URL here.) From sakhilemichael at gmail.com Fri Mar 6 01:33:39 2009 From: sakhilemichael at gmail.com (Sakhile Michael Ncnana) Date: Fri, 6 Mar 2009 11:33:39 +0200 Subject: [ns] Please Assist Message-ID: <4de0b0a10903060133w5908abbdrf784c56e2aba1645@mail.gmail.com> Dear all, May you please help me, I want to run the protocol that is already implemented in ns2. I want to run TFRC (TCP friendly rate control) protocol, but I do not the TCL script for TFRC and I do not know how to run it. Thank you in advance, -- S. M. Ncanana Research Student University of Zululand Department of Computer Science Fax 035 902 6706 Tel 035 902 6569 From binome_ini at hotmail.com Fri Mar 6 03:19:39 2009 From: binome_ini at hotmail.com (sarym binome) Date: Fri, 6 Mar 2009 11:19:39 +0000 Subject: [ns] shedule Null handler timer pb Message-ID: hello i introduced a new pkt in AODV protocol ,witch i want to send it once when i start a simulation i want to broadcast it , so i write a send_newpkt () and I have this error when I run a tcl example Scheduler: attempt to schedule an event with a NULL handler. Don't DO that. i didn't use any timer cause i don't send the newpkt periodically but only once at the beginning plz look the code below : this is the code and i call it in AODV.CC AODV::AODV(nsaddr_t id) : Agent(PT_AODV), btimer(this), htimer(this), ntimer(this), rtimer(this), lrtimer(this), rqueue() { index = id; seqno = 2; bid = 1; LIST_INIT(&nbhead); LIST_INIT(&bihead); logtarget = 0; ifqueue = 0; sendnewpkt(); } void AODV::sendnewpkt() { Packet *p = Packet::alloc(); struct hdr_cmn *ch = HDR_CMN(p); struct hdr_ip *ih = HDR_IP(p); struct hdr_srs_aodv_reply *rh = HDR_srs_AODV_REPLY(p); #ifdef DEBUG fprintf(stderr, "sending newpkt from %d at %.2f\n", index, Scheduler::instance().clock()); #endif // DEBUG rh->rp_type = AODVTYPE_newpkt; //rh->rp_flags = 0x00; rh->rp_hop_count = 1; rh->rp_dst = index; rh->rp_dst_seqno = seqno; rh->rp_lifetime = (1 + ALLOWED_HELLO_LOSS) * HELLO_INTERVAL; // ch->uid() = 0; ch->ptype() = PT_AODV; ch->size() = IP_HDR_LEN + rh->size(); ch->iface() = -2; ch->error() = 0; ch->addr_type() = NS_AF_NONE; ch->prev_hop_ = index; //AODV hack ih->saddr() = index; ih->daddr() = IP_BROADCAST; ih->sport() = RT_PORT; ih->dport() = RT_PORT; ih->ttl_ = 1; Scheduler::instance().schedule(target_, p, 0.0); //send(p,0); } i tried send(p,0) but i had a segment fault best regards _________________________________________________________________ D?couvrez Windows Live Spaces et cr?ez votre site Web perso en quelques clics ! http://spaces.live.com/signup.aspx From fabian.wolff at fokus.fraunhofer.de Fri Mar 6 07:25:43 2009 From: fabian.wolff at fokus.fraunhofer.de (Fabian Wolff) Date: Fri, 06 Mar 2009 16:25:43 +0100 Subject: [ns] Bad DSR performance due to packet drop at IFQ Message-ID: <49B14077.4010504@fokus.fraunhofer.de> Hi, I started simulating AODV, DSDV and DSR with some basic "dumb" scenarios using ns-2.29 (namely 200 nodes, high mobility, 2000x2000, 10 tcp connections at the same time, simulation time 360s) just to get a feeling for some first results. When using DSR I realized that the amount of transmitted packets is around 8-10 times less than compared to AODV (the ratio of delivered packets "received/sent" is pretty similar). Analysis of the trace file showed that there seem to be some problems with the IFQ/MAC (802.11) as most packets are getting dropped here. Looking at the mailling-lists-archive showed that this problem seems to be known. I am not sure whether I missed some threads, but I couldn't find a suitable solution for this problem, yet. Can you please help and tell me which modifications I need to do to solve this problem? best regards, Fabian From naveenprabu32 at gmail.com Fri Mar 6 07:22:37 2009 From: naveenprabu32 at gmail.com (naveen prabu) Date: Fri, 6 Mar 2009 20:52:37 +0530 Subject: [ns] How clustering is done in LEACH......? Message-ID: <3eb5e9570903060722j57e9fa97qa5a05ac5e373dd5b@mail.gmail.com> Hi, I read how clustering is formed in LEACH protocol.Each paper say it in different way and i dont know its implemented.So help me in " how clustering of nodes is done in LEACH " THANKS.... From spyros_mar at yahoo.gr Fri Mar 6 09:09:48 2009 From: spyros_mar at yahoo.gr (Spyros Marinis) Date: Fri, 6 Mar 2009 17:09:48 +0000 (GMT) Subject: [ns] How to assign a new address to a node Message-ID: <391638.99589.qm@web25505.mail.ukl.yahoo.com> Hi all! I have a mobile node that has been defined with a certain hierarchical address and bound to the appropriate base station, like this: set if_1 [$ns_ node 1.0.1] ??? ?????????????????????????????????? ??? $if_1 base-station [AddrParams addr2id [$BS_umts node-addr]] How can I change this afterwards and assign to the same node a new hierarchical address that corresponds with another base station, with which it should communicate so on? What must I modify in the c++ code? (I have tried -MobileIP ON option, with no result. After all, I am using sctp and I don't know if that's applicable.) Please let me know if anybody knows something about it. Any help will be highly appreciated. Thanks in advance. Spyros ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From v_mandhare at yahoo.com Fri Mar 6 09:20:07 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Fri, 6 Mar 2009 22:50:07 +0530 (IST) Subject: [ns] to improve tcp or improve maodv in ad-hoc network Message-ID: <25404.31142.qm@web94816.mail.in2.yahoo.com> hi, I am doing project in ad-hoc multicast routing and evaluate performance of tcp and cbr in maodv. How can I improve tcp or improve maodv protocol? which get improvement in tcp and cbr.Plz help me as early as possible. ? thanks! Regards vaishau? Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.webmessenger.yahoo.com/ From binome_ini at hotmail.com Fri Mar 6 09:20:38 2009 From: binome_ini at hotmail.com (sarym binome) Date: Fri, 6 Mar 2009 17:20:38 +0000 Subject: [ns] ormat_aodv: invalid _AODV packet type Message-ID: hello i introduce a new packet in AODV protocol #define AODVTYPE_HELLO1 0x12 and i create a functions (sendhello1 and recvhello1) , i use a timer to shedule this task , when i run a tcl script, i've got these errors send hello1 send hello1 format_aodv: invalid _AODV packet type so i think that a packet is sent twice but when it is received it isn't recognized , cause if it folow the recv function (look at bold lines only) void AODV::recvAODV(Packet *p) { struct hdr_aodv *ah = HDR_AODV(p); assert(HDR_IP (p)->sport() == RT_PORT); assert(HDR_IP (p)->dport() == RT_PORT); /* * Incoming Packets. */ switch(ah->ah_type) { case AODVTYPE_RREQ: recvRequest(p); break; case AODVTYPE_RREP: recvReply(p); break; case AODVTYPE_RERR: recvError(p); break; case AODVTYPE_HELLO: recvHello(p); break; case AODVTYPE_HELLO1: recvHello1(p); break; default: fprintf(stderr, "Invalid AODV type (%x)\n", ah->ah_type); exit(1); } } it dosen't take the case AODVTYPE_HELLO1.....it's strange , isn't it???????????????? best regards _________________________________________________________________ D?couvrez Windows Live Spaces et cr?ez votre site Web perso en quelques clics ! http://spaces.live.com/signup.aspx From binome_ini at hotmail.com Fri Mar 6 11:01:15 2009 From: binome_ini at hotmail.com (sarym binome) Date: Fri, 6 Mar 2009 19:01:15 +0000 Subject: [ns] invalid _AODV packet type Message-ID: hello i introduce a new packet in AODV protocol #define AODVTYPE_HELLO1 0x12 and i create a functions (sendhello1 and recvhello1) , i use a timer to shedule this task , when i run a tcl script, i've got these errors send hello1 send hello1 format_aodv: invalid _AODV packet type so i think that a packet is sent twice but when it is received it isn't recognized , cause if it folow the recv function (look at bold lines only) void AODV::recvAODV(Packet *p) { struct hdr_aodv *ah = HDR_AODV(p); assert(HDR_IP (p)->sport() == RT_PORT); assert(HDR_IP (p)->dport() == RT_PORT); /* * Incoming Packets. */ switch(ah->ah_type) { case AODVTYPE_RREQ: recvRequest(p); break; ....... ...... case AODVTYPE_HELLO1: recvHello1(p); break; default: fprintf(stderr, "Invalid AODV type (%x)\n", ah->ah_type); exit(1); } } it dosen't take the case AODVTYPE_HELLO1.....it's strange , isn't it???????????????? what about the file CMUtrace , must i change it ??? to avoid this error? cause when i change the message fprintf(stderr, "Invalid AODV type (%x)\n", ah->ah_type); to fprintf(stderr, " may be here (%x)\n", ah->ah_type); i had exactly the first error message format_aodv: invalid _AODV packet type i find that the message was not from this procedure . i'm really surprised!!! somebody help me please! best regards Tous vos amis discutent sur Messenger, et vous ? T?l?chargez Messenger, c'est gratuit ! _________________________________________________________________ D?couvrez toutes les possibilit?s de communication avec vos proches http://www.microsoft.com/windows/windowslive/default.aspx From paraguayita_69 at hotmail.com Fri Mar 6 11:47:35 2009 From: paraguayita_69 at hotmail.com (Diana Benitez) Date: Fri, 6 Mar 2009 14:47:35 -0500 Subject: [ns] Bandwidth estimation Message-ID: Hello: Do someone knows a algoritm with code to estimate the available bandwidth of a network by a sender? I know Tcp Westwood but have some inconveniences. Thanks, DIANA. _________________________________________________________________ Windows Live? Contacts: Organize your contact list. http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009 From ygor_amaral at hotmail.com Fri Mar 6 14:35:09 2009 From: ygor_amaral at hotmail.com (Ygor Amaral) Date: Sat, 7 Mar 2009 01:35:09 +0300 Subject: [ns] Script TCL Message-ID: Anybody have any script for simulation with TCP's in high-speed networks? Regards, Ygor Amaral _________________________________________________________________ Conhe?a o Windows Live Spaces, a rede de relacionamentos do Messenger! http://www.amigosdomessenger.com.br/ From giuffsalvo at gmail.com Fri Mar 6 16:05:02 2009 From: giuffsalvo at gmail.com (Salvo Danilo Giuffrida) Date: Sat, 7 Mar 2009 01:05:02 +0100 Subject: [ns] New option type for DSR Message-ID: Hello, I added a new flag (an int variable) to the hdr_sr class. Should I then decrease by 1 the constant MAX_SR_LEN from 16 to 15, given the space occupied by this new flag, when it's set? If it would be really implemented in DSR, would it occupy 4 bytes (for alignment) or just 1 (actually, it's just a flag, it would need only 1 bit)? In any case, should I care about this? I did some measurements, and found out that with a value of 15, there is a slight increase in the variance of some parameters across different scenarios... From zaferalbayrak at hotmail.com Sat Mar 7 02:16:04 2009 From: zaferalbayrak at hotmail.com (Zafer ALBAYRAK) Date: Sat, 7 Mar 2009 10:16:04 +0000 Subject: [ns] Ns-users Digest, Vol 63, Issue 6 In-Reply-To: References: Message-ID: Hello I want to do wireless sensor networks simulations under NS2.32. what changes i need to do in ns2.32 Can you please give me a tcl sample code in order to have an idea on simulating wsn under NS2? thank you. _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ From veronicadiaza at gmail.com Sat Mar 7 05:06:14 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Sat, 7 Mar 2009 18:36:14 +0530 Subject: [ns] How to patch a file into ns2 directory.....what are the types of files (essential) to be present in patch file to make it run in ns2.... Message-ID: Hello ns-2 users......I am Veronica....I got a patch file in internet which is a bit relevant to my project....i want to run it in ns2 and check it....please tell me what are the files to be present in a patch file to make it run...That file is about implementing a new protocol.....please tell me the procedure of patching a file of new protocol into ns2...please send me the links if you have any.....and your suggestions are welcome....Thanks in advance.... From vinioktm at hotmail.com Sat Mar 7 17:37:29 2009 From: vinioktm at hotmail.com (Vinicio Guanochanga) Date: Sat, 7 Mar 2009 20:37:29 -0500 Subject: [ns] Error in EURANE install Message-ID: Hi ns users I'm trying to install EURANE patch to support UMTS in ns2.28. The process of installation is succeed, however, when I typing ns in a console, this error message appears: ns: [code omitted because of length] : invalid command name "UMTS/RLC/UM" while executing "UMTS/RLC/UM set avoidReordering_ false" Anyone knows what happen?? How I'd solve this problem? Any idea??? Please help me.... Thanks in advance...... Vinicio Guanochanga ESCUELA POLITECNICA NACIONAL +59322316183 _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From gohchinleong at hotmail.com Sat Mar 7 23:03:59 2009 From: gohchinleong at hotmail.com (Edwin Goh) Date: Sun, 8 Mar 2009 07:03:59 +0000 Subject: [ns] Help...AOMDV setup Message-ID: Hai, I am refering to http://wpage.unina.it/marcello.caleffi/ns2/aomdv.html to setup my AOMDV in ns-2.32. Can anyone teach me how to read the tcl scripts provided and how to setup the scenario? The scenario i want to simulate is=20 number of nodes - 50 area - 670 X 670 simulated time - 300s pause time - 0,2, 25, 50, 150, 300 max speed - 5, 10, 15, 20 traffic type - CBR packet size - 64 bytes max connection - 10, 20, 30 mobility model - random way point Regards Chin Leong _________________________________________________________________ Windows Live? Contacts: Organize your contact list. http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009 From hnsanadhya.08 at gmail.com Sun Mar 8 06:27:51 2009 From: hnsanadhya.08 at gmail.com (hARI nARAYAN sANADHYA) Date: Sun, 8 Mar 2009 18:57:51 +0530 Subject: [ns] trouble in executing wireless examples Message-ID: <49512740903080627g3cf7bc08pabbe8ebfeca7e9fa@mail.gmail.com> sir i have tried to execute wireless1.tcl file and have got following error *$ ns wireless1.tcl$ * num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... couldn't read file "../mobility/scene/cbr-3-test": no such file or directory while executing "source.orig ../mobility/scene/cbr-3-test" ("uplevel" body line 1) invoked from within "uplevel source.orig [list $fileName]" invoked from within "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ..." (procedure "source" line 8) invoked from within "source $val(cp)" (file "wireless1.tcl" line 121) $ ns wireless1.tcl num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... couldn't read file "../mobility/scene/cbr-3-test": no such file or directory while executing "source.orig ../mobility/scene/cbr-3-test" ("uplevel" body line 1) invoked from within "uplevel source.orig [list $fileName]" invoked from within "if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ..." (procedure "source" line 8) invoked from within "source $val(cp)" (file "wireless1.tcl" line 121) --------------------------------------------------------------------------------------------------------------------------------------------- *i had then moved wireless1.tcl to tcl/ex folder where on executing it i have got output as* ** *./ns wireless1.tcl* num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... Loading scenario file... Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! NS EXITING... ---------------------------------------------------------------------------------------------------------------------------------------------- please tell me 1. rather this output is correct or not 2. what i have to do in order to run all wireless examples without moving them to tcl/ex folder From akdalim at yahoo.com Thu Mar 5 08:27:11 2009 From: akdalim at yahoo.com (Syed Md. Ashraful Karim) Date: Thu, 5 Mar 2009 08:27:11 -0800 (PST) Subject: [ns] Introducing delay before routing packet delivery Message-ID: <780523.18203.qm@web34408.mail.mud.yahoo.com> Hi I want to add some delay before forwarding some types routing packet in ns-2, i.e. in the Agent's send_packet() function which eventually call the Scheduler for a packet dispatch. e.g. A node should delay say for 50 microsecond before the packet delivery. I want to add delay in C++ code to my extended Agent, or if there is any easy solution that is welcome too. I should mention, it is not like using DelayBox. I tried with usleep(), but it seems its not working. Can anyone tell me a little bit more or any sample code? Thanks in advance. regards, ashraf From simayeji at 163.com Sun Mar 8 20:08:22 2009 From: simayeji at 163.com (simayeji) Date: Mon, 9 Mar 2009 11:08:22 +0800 (CST) Subject: [ns] How to change node configuration when simulation is running? Message-ID: <7008073.146351236568102288.JavaMail.coremail@bj163app80.163.com> Hello everyone, I want to change the node configuration when simulation is running. For example, i want to change RXthreshold of all nodes at 2.5s. How can I make it in my tcl script? thanks very much. ÍřŇ×ÓĘĎ䣬ÖĐąúµÚŇ»´óµç×ÓÓĘĽţ·ţÎńÉĚ From spyros_mar at yahoo.gr Mon Mar 9 01:48:16 2009 From: spyros_mar at yahoo.gr (Spyros Marinis) Date: Mon, 9 Mar 2009 08:48:16 +0000 (GMT) Subject: [ns] Mobile ip and sctp Message-ID: <695883.3003.qm@web25507.mail.ukl.yahoo.com> Hello all! Does anyone know how I can use mobile ip with sctp at transport layer, in a wired-cum-wireless topology with hierarchical addresses? The standard method doesn't work in this case; should I modify something??? I would be very grateful if you could help in any way, Spyros ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From spyros_mar at yahoo.gr Mon Mar 9 02:37:01 2009 From: spyros_mar at yahoo.gr (martini.spy) Date: Mon, 9 Mar 2009 02:37:01 -0700 (PDT) Subject: [ns] How to assign a new address to a node In-Reply-To: <391638.99589.qm@web25505.mail.ukl.yahoo.com> References: <391638.99589.qm@web25505.mail.ukl.yahoo.com> Message-ID: <22409732.post@talk.nabble.com> nobody knows???? :( martini.spy wrote: > > > Hi all! > I have a mobile node that has been defined with a certain hierarchical > address and bound to the appropriate base station, like this: > > set if_1 [$ns_ node 1.0.1] ??? ?????????????????????????????????? ??? > $if_1 base-station [AddrParams addr2id [$BS_umts node-addr]] > > How can I change this afterwards and assign to the same node a new > hierarchical address that corresponds with another base station, with > which it should communicate so on? What must I modify in the c++ code? > > (I have tried -MobileIP ON option, with no result. After all, I am using > sctp and I don't know if that's applicable.) > > Please let me know if anybody knows something about it. Any help will be > highly appreciated. Thanks in advance. > Spyros > > > > > ___________________________________________________________ > ?????????????? Yahoo!; > ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail > ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? > ????????? http://login.yahoo.com/config/mail?.intl=gr > > -- View this message in context: http://www.nabble.com/How-to-assign-a-new-address-to-a-node-tp22376659p22409732.html Sent from the ns-users mailing list archive at Nabble.com. From mrbalador at yahoo.com Mon Mar 9 14:28:01 2009 From: mrbalador at yahoo.com (ali bala) Date: Mon, 9 Mar 2009 14:28:01 -0700 (PDT) Subject: [ns] nam problem Message-ID: <423217.60603.qm@web45112.mail.sp1.yahoo.com> I have installed ns-2.33 on cygwin on xp. while running simple example programs, I get error, $ nam: no display name and no $DISPLAY environment variable. ? I tried set it with export DSIPLAY=:0..0 it gives error ? $ nam: couldn't connect to display "0.0" I also tried ?startx before running programs, it gives following error, $ nam: [code omitted because of length] : no event type or button # or keysym ? ?while executing "bind Listbox { %W yview scroll [expr {- (%D / 120) * 4}] units }" ? ?invoked from within "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { bind Listbox { %W yview scroll [expr {- (%D)}] units } bind Li..."? can anybody figure out where the problem lies? I am new to ns-2 as well as linux environment so please..... ? Thanks in anticipation. ? Regards,? ali balador, From gaurav.84in at gmail.com Mon Mar 9 23:55:13 2009 From: gaurav.84in at gmail.com (Gaurav Joshi) Date: Tue, 10 Mar 2009 02:55:13 -0400 Subject: [ns] packet forwarding In-Reply-To: References: Message-ID: Hello all, Does anyone has an idea how to send a packet in multi-hops? This, I guess will include packet forwarding at the intermediate node. Please let me know it. Thanks a lot. -- Warm regards, Gaurav Joshi +1-352-214-2527 From payalnraj at gmail.com Tue Mar 10 03:16:03 2009 From: payalnraj at gmail.com (PTM) Date: Tue, 10 Mar 2009 03:16:03 -0700 (PDT) Subject: [ns] implementing malicious node Message-ID: <22388115.post@talk.nabble.com> hi all, I am trying to add security to AODV. In which , i need to implement malicious node in AODV. I tried to see previous post but could not find a reply for the same kinda post. Can anyone help in this?? -- View this message in context: http://www.nabble.com/implementing-malicious-node-tp22388115p22388115.html Sent from the ns-users mailing list archive at Nabble.com. From lukman_hanif at yahoo.com Tue Mar 10 04:23:30 2009 From: lukman_hanif at yahoo.com (lukman_hanif@yahoo.com) Date: Tue, 10 Mar 2009 04:23:30 -0700 (PDT) Subject: [ns] How to change node configuration when simulation is running? In-Reply-To: References: Message-ID: <345917.55364.qm@web50904.mail.re2.yahoo.com> Hi simayeji, I don't know about RXthreshold setting but usually people change the running simulation parameter in Tcl script by using the command like $ns at 2.5 " put your Tcl configuration command here " That's all I know to change some configuration in the running simulation... Lukman ________________________________ From: "ns-users-request at ISI.EDU" To: ns-users at ISI.EDU Sent: Tuesday, March 10, 2009 12:00:31 AM Subject: Ns-users Digest, Vol 63, Issue 9 Send Ns-users mailing list submissions to ns-users at isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-request at isi.edu You can reach the person managing the list at ns-users-owner at isi.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Ns-users digest..." Today's Topics: 1. How to change node configuration when simulation is running? (simayeji) 2. Mobile ip and sctp (Spyros Marinis) 3. Re: How to assign a new address to a node (martini.spy) 4. nam problem (ali bala) ---------------------------------------------------------------------- Message: 1 Date: Mon, 9 Mar 2009 11:08:22 +0800 (CST) From: simayeji Subject: [ns] How to change node configuration when simulation is running? To: ns-users at ISI.EDU Message-ID: <7008073.146351236568102288.JavaMail.coremail at bj163app80.163.com> Content-Type: text/plain; charset=gbk Hello everyone, I want to change the node configuration when simulation is running. For example, i want to change RXthreshold of all nodes at 2.5s. How can I make it in my tcl script? thanks very much. ?????????????????????????????????? ------------------------------ Message: 2 Date: Mon, 9 Mar 2009 08:48:16 +0000 (GMT) From: Spyros Marinis Subject: [ns] Mobile ip and sctp To: ns-users at ISI.EDU Message-ID: <695883.3003.qm at web25507.mail.ukl.yahoo.com> Content-Type: text/plain; charset=iso-8859-7 Hello all! Does anyone know how I can use mobile ip with sctp at transport layer, in a wired-cum-wireless topology with hierarchical addresses? The standard method doesn't work in this case; should I modify something??? I would be very grateful if you could help in any way, Spyros ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr ------------------------------ Message: 3 Date: Mon, 9 Mar 2009 02:37:01 -0700 (PDT) From: "martini.spy" Subject: Re: [ns] How to assign a new address to a node To: ns-users at ISI.EDU Message-ID: <22409732.post at talk.nabble.com> Content-Type: text/plain; charset=UTF-8 nobody knows???? :( martini.spy wrote: > > > Hi all! > I have a mobile node that has been defined with a certain hierarchical > address and bound to the appropriate base station, like this: > > set if_1 [$ns_ node 1.0.1] ??? ?????????????????????????????????? ??? > $if_1 base-station [AddrParams addr2id [$BS_umts node-addr]] > > How can I change this afterwards and assign to the same node a new > hierarchical address that corresponds with another base station, with > which it should communicate so on? What must I modify in the c++ code? > > (I have tried -MobileIP ON option, with no result. After all, I am using > sctp and I don't know if that's applicable.) > > Please let me know if anybody knows something about it. Any help will be > highly appreciated. Thanks in advance. > Spyros > > > > > ___________________________________________________________ > ?????????????? Yahoo!; > ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail > ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? > ????????? http://login.yahoo.com/config/mail?.intl=gr > > -- View this message in context: http://www.nabble.com/How-to-assign-a-new-address-to-a-node-tp22376659p22409732.html Sent from the ns-users mailing list archive at Nabble.com. ------------------------------ Message: 4 Date: Mon, 9 Mar 2009 14:28:01 -0700 (PDT) From: ali bala Subject: [ns] nam problem To: ns-users at ISI.EDU Message-ID: <423217.60603.qm at web45112.mail.sp1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 I have installed ns-2.33 on cygwin on xp. while running simple example programs, I get error, $ nam: no display name and no $DISPLAY environment variable. ? I tried set it with export DSIPLAY=:0..0 it gives error ? $ nam: couldn't connect to display "0.0" I also tried ?startx before running programs, it gives following error, $ nam: [code omitted because of length] : no event type or button # or keysym ? ?while executing "bind Listbox { %W yview scroll [expr {- (%D / 120) * 4}] units }" ? ?invoked from within "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { bind Listbox { %W yview scroll [expr {- (%D)}] units } bind Li..."? can anybody figure out where the problem lies? I am new to ns-2 as well as linux environment so please..... ? Thanks in anticipation. ? Regards,? ali balador, ------------------------------ _______________________________________________ Ns-users mailing list Ns-users at isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 63, Issue 9 *************************************** From lukman_hanif at yahoo.com Tue Mar 10 04:32:13 2009 From: lukman_hanif at yahoo.com (lukman_hanif@yahoo.com) Date: Tue, 10 Mar 2009 04:32:13 -0700 (PDT) Subject: [ns] nam problem In-Reply-To: References: Message-ID: <944984.11803.qm@web50901.mail.re2.yahoo.com> Hi Ali balador, I also have the same problem in linux fedora.... it happens to people who use fedora 9 & 10.... you can go to this link http://forums.fedoraforum.org/showthread.php?t=206795 for the solution in linux fedora.....sorry, it's not for cygwin windows but maybe you could get some info from there... Lukman ________________________________ From: "ns-users-request at ISI.EDU" To: ns-users at ISI.EDU Sent: Tuesday, March 10, 2009 12:00:31 AM Subject: Ns-users Digest, Vol 63, Issue 9 Send Ns-users mailing list submissions to ns-users at isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-request at isi.edu You can reach the person managing the list at ns-users-owner at isi.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Ns-users digest..." Today's Topics: 1. How to change node configuration when simulation is running? (simayeji) 2. Mobile ip and sctp (Spyros Marinis) 3. Re: How to assign a new address to a node (martini.spy) 4. nam problem (ali bala) ---------------------------------------------------------------------- Message: 1 Date: Mon, 9 Mar 2009 11:08:22 +0800 (CST) From: simayeji Subject: [ns] How to change node configuration when simulation is running? To: ns-users at ISI.EDU Message-ID: <7008073.146351236568102288.JavaMail.coremail at bj163app80.163.com> Content-Type: text/plain; charset=gbk Hello everyone, I want to change the node configuration when simulation is running. For example, i want to change RXthreshold of all nodes at 2.5s. How can I make it in my tcl script? thanks very much. ?????????????????????????????????? ------------------------------ Message: 2 Date: Mon, 9 Mar 2009 08:48:16 +0000 (GMT) From: Spyros Marinis Subject: [ns] Mobile ip and sctp To: ns-users at ISI.EDU Message-ID: <695883.3003.qm at web25507.mail.ukl.yahoo.com> Content-Type: text/plain; charset=iso-8859-7 Hello all! Does anyone know how I can use mobile ip with sctp at transport layer, in a wired-cum-wireless topology with hierarchical addresses? The standard method doesn't work in this case; should I modify something??? I would be very grateful if you could help in any way, Spyros ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr ------------------------------ Message: 3 Date: Mon, 9 Mar 2009 02:37:01 -0700 (PDT) From: "martini.spy" Subject: Re: [ns] How to assign a new address to a node To: ns-users at ISI.EDU Message-ID: <22409732.post at talk.nabble.com> Content-Type: text/plain; charset=UTF-8 nobody knows???? :( martini.spy wrote: > > > Hi all! > I have a mobile node that has been defined with a certain hierarchical > address and bound to the appropriate base station, like this: > > set if_1 [$ns_ node 1.0.1] ??? ?????????????????????????????????? ??? > $if_1 base-station [AddrParams addr2id [$BS_umts node-addr]] > > How can I change this afterwards and assign to the same node a new > hierarchical address that corresponds with another base station, with > which it should communicate so on? What must I modify in the c++ code? > > (I have tried -MobileIP ON option, with no result. After all, I am using > sctp and I don't know if that's applicable.) > > Please let me know if anybody knows something about it. Any help will be > highly appreciated. Thanks in advance. > Spyros > > > > > ___________________________________________________________ > ?????????????? Yahoo!; > ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail > ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? > ????????? http://login.yahoo.com/config/mail?.intl=gr > > -- View this message in context: http://www.nabble.com/How-to-assign-a-new-address-to-a-node-tp22376659p22409732.html Sent from the ns-users mailing list archive at Nabble.com. ------------------------------ Message: 4 Date: Mon, 9 Mar 2009 14:28:01 -0700 (PDT) From: ali bala Subject: [ns] nam problem To: ns-users at ISI.EDU Message-ID: <423217.60603.qm at web45112.mail.sp1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 I have installed ns-2.33 on cygwin on xp. while running simple example programs, I get error, $ nam: no display name and no $DISPLAY environment variable. ? I tried set it with export DSIPLAY=:0..0 it gives error ? $ nam: couldn't connect to display "0.0" I also tried ?startx before running programs, it gives following error, $ nam: [code omitted because of length] : no event type or button # or keysym ? ?while executing "bind Listbox { %W yview scroll [expr {- (%D / 120) * 4}] units }" ? ?invoked from within "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { bind Listbox { %W yview scroll [expr {- (%D)}] units } bind Li..."? can anybody figure out where the problem lies? I am new to ns-2 as well as linux environment so please..... ? Thanks in anticipation. ? Regards,? ali balador, ------------------------------ _______________________________________________ Ns-users mailing list Ns-users at isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 63, Issue 9 *************************************** From veronicadiaza at gmail.com Tue Mar 10 04:35:28 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Tue, 10 Mar 2009 17:05:28 +0530 Subject: [ns] How to implement Bellman Ford Algorithm with energy consumption as cost metric in ns2..... Message-ID: Hiiii ns users......Please help me regarding the implementation of Bellman Ford Algorithm with Energy consumption as cost metric....I have to replace shortest path with Energy consumption as cost metric....Please send me links if you have any regarding this and your suggestions are welcome.....Thanks in advance..... From palucci at smar.com.br Tue Mar 10 06:30:45 2009 From: palucci at smar.com.br (palucci) Date: Tue, 10 Mar 2009 10:30:45 -0300 Subject: [ns] 802.15.4 simple example Message-ID: <49b66b85.2b6.33e.845416996@smar.com.br> Hello, I am starting using 802.15.4 in ns2.33. Do you have any simple example (.tcl) that works in ns2.33? Thanks in advance, Rodrigo From Faraz_Hasan-S at email.ulster.ac.uk Tue Mar 10 07:00:05 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Tue, 10 Mar 2009 14:00:05 +0000 Subject: [ns] Walls and structure in ns-2 Message-ID: Hi everyone! I am trying to add walls, roofs and structures in my simulation. I want to simulate two rooms, each equipped with two separate antennas and separate mobile devices. I wish to see the impact of one antenna in one room on another on another room. Motivation is to simulate femtocell some how! Can some one help please. Faraz From palucci at smar.com.br Tue Mar 10 07:22:36 2009 From: palucci at smar.com.br (palucci) Date: Tue, 10 Mar 2009 11:22:36 -0300 Subject: [ns] 802.15.4 simple example Message-ID: <49b677ac.225.2be9.2101170869@smar.com.br> Hello, I would like to learn how to use 802.15.4 to try to implement a new routing protocol using ns 2.33. This code can be ZibBee for instance (for upper layers). Yep, I am going to work in Low RatePersonal Area Network Standard(ZIGBEE)802.15.4. There is any simple tcl code for learning how to call 802.15.4 functions? Thank you for helping. Rodrigo ----- Original Message ----- Para: karthi keyen Para: palucci Assunto: Re: [ns] 802.15.4 simple example Data: Tue, 10 Mar 2009 19:34:28 +0530 > hope u r going to work in Low RatePersonal Area Network > Standard(ZIGBEE)802.15.4 > may i know the objective of urs, for which u r using > NS2... > > > > > wit luv > karthik > > On Tue, Mar 10, 2009 at 7:00 PM, palucci > wrote: > > > > > Hello, > > I am starting using 802.15.4 in ns2.33. Do you have any > > simple example (.tcl) that works in ns2.33? > > > > Thanks in advance, > > Rodrigo > > > > > From mshrehmani at gmail.com Tue Mar 10 07:27:09 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Tue, 10 Mar 2009 15:27:09 +0100 Subject: [ns] Walls and structure in ns-2 In-Reply-To: References: Message-ID: Hi Faraz I just want to share you a trick that you can use to simulate walls and roofs with different physical channel characteristics. Walls and structures impacts over the channel physical characteristics. It means that if you have two rooms with two different antennas, the overall impact will be over the channel characteristics. It means you have two seperated channels with different characteristics, which are located in two different rooms with certain characteristics. Thus, i suggest you to play with multiple channels and their characteristics. And then assign these channels to your nodes. I hope it helps. Regards 2009/3/10 Syed Faraz Hasan > > Hi everyone! > > I am trying to add walls, roofs and structures in my simulation. I want to > simulate two rooms, each equipped with two separate antennas and separate > mobile devices. I wish to see the impact of one antenna in one room on > another on another room. Motivation is to simulate femtocell some how! > > Can some one help please. > > Faraz > -- Mubashir Husain Rehmani From giuffsalvo at gmail.com Tue Mar 10 08:30:59 2009 From: giuffsalvo at gmail.com (Salvo Danilo Giuffrida) Date: Tue, 10 Mar 2009 16:30:59 +0100 Subject: [ns] Energy consumption for mobile nodes not receiving/transmitting Message-ID: Hello, is it normal that a mobile node that does not transmit, receive, or forward data in an ad-hoc network, consumes anyway energy, just because it's in the range of two nodes communicating (in-between, but it doesn't forward packets to or from them, they are able to talk directly)? Thanks a lot From basimjaved at gmail.com Tue Mar 10 08:42:52 2009 From: basimjaved at gmail.com (Basim Javed) Date: Tue, 10 Mar 2009 16:42:52 +0100 Subject: [ns] Walls and structure in ns-2 In-Reply-To: References: Message-ID: Hello Is there some way to activate multiple channels for 802.11? e.g. two single hop networks operating nearby to each other will impact each other's performance, or even a microwave oven can be considered to be one of the channel, and it will interfere with some nodes nearby. How can we get the model of the two or more channels together? thanks On Tue, Mar 10, 2009 at 3:27 PM, Mubashir Rehmani wrote: > > Hi Faraz > > I just want to share you a trick that you can use to simulate walls and > roofs with different physical channel characteristics. > > Walls and structures impacts over the channel physical characteristics. It > means that if you have two rooms with two different antennas, the overall > impact will be over the channel characteristics. It means you have two > seperated channels with different characteristics, which are located in two > different rooms with certain characteristics. Thus, i suggest you to play > with multiple channels and their characteristics. And then assign these > channels to your nodes. > > I hope it helps. > > Regards > > 2009/3/10 Syed Faraz Hasan > > > > > Hi everyone! > > > > I am trying to add walls, roofs and structures in my simulation. I want > to > > simulate two rooms, each equipped with two separate antennas and separate > > mobile devices. I wish to see the impact of one antenna in one room on > > another on another room. Motivation is to simulate femtocell some how! > > > > Can some one help please. > > > > Faraz > > > > > > -- > Mubashir Husain Rehmani > From mshrehmani at gmail.com Tue Mar 10 08:59:32 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Tue, 10 Mar 2009 16:59:32 +0100 Subject: [ns] Energy consumption for mobile nodes not receiving/transmitting In-Reply-To: References: Message-ID: Hi Salvo, Yes, it is normal. For instance there are 10 nodes that are within the range of each other. If node 1 sends packet to node 10, then all the nodes overhear the packet, and discard the packet (because the packet is not destined to it). Thus, it is obvious that, in this case, nodes will consume some energy. Regards Mubashir Husain Rehmani http://www.irisa.fr/asap/Members/mrehmani/Mubashir 2009/3/10 Salvo Danilo Giuffrida > > Hello, is it normal that a mobile node that does not transmit, > receive, or forward data in an ad-hoc network, consumes anyway energy, > just because it's in the range of two nodes communicating (in-between, > but it doesn't forward packets to or from them, they are able to talk > directly)? > Thanks a lot > > -- Mubashir Husain Rehmani From gaurav.84in at gmail.com Tue Mar 10 10:29:49 2009 From: gaurav.84in at gmail.com (Gaurav Joshi) Date: Tue, 10 Mar 2009 13:29:49 -0400 Subject: [ns] packet forwarding In-Reply-To: References: Message-ID: Dear Mubashir, thank you so much for your help. But do we have to set ttl in tcl script or in source code. also how do i change the dst and src address dynamically. Can you please give me a little more insight about it, or fwd me a link from where I can follow in detail. thanks again, Regards, Gaurav. On Tue, Mar 10, 2009 at 3:24 AM, Mubashir Rehmani wrote: > Hi Gaurav Joshi, > > To forward a packet to multi-hops, you need to first set the TTL value of > the packet and dst address. Let's suppose you set the TTL=5 and dst=Node 1. > Then you send this packet. This packet will be received by Node1. Node 1 > then reduce the TTL-- and reassign the dst and forward the packet. > > To forward the packet, you don't need to call sendpkt function. Instead, > you need to schedule a packet. > > Scheduler::instance ().schedule (target_ , p, delay); > > > > Hope it helps > > Regards > Mubashir Husain Rehmani > Lip6, UPMC, Paris, France > www-npa.lip6.fr/~rehmani > > 2009/3/10 Gaurav Joshi > > >> Hello all, >> >> Does anyone has an idea how to send a packet in multi-hops? This, I guess >> will include packet forwarding at the intermediate node. >> Please let me know it. >> Thanks a lot. >> >> >> -- >> Warm regards, >> Gaurav Joshi >> +1-352-214-2527 >> > > > > -- > Mubashir Husain Rehmani > > > -- Warm regards, Gaurav Joshi +1-352-214-2527 From mshrehmani at gmail.com Tue Mar 10 10:52:44 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Tue, 10 Mar 2009 18:52:44 +0100 Subject: [ns] packet forwarding In-Reply-To: References: Message-ID: Hi Gaurav Joshi You need to work on the c++ files of ns2. Let me give you an example of aodv protocol (its just an example to make you understand and you need to create your own packet type in order to proceed). Suppose that you are in the sendRequest() function of AODV. First they are filling the packets fields: http://rp.lip6.fr/ns-doc/ns226-doc/html/aodv_8cc-source.htm // Fill out the RREQ packet // ch->uid() = 0; ch->ptype() = PT_AODV; ch->size() = IP_HDR_LEN + rq->size(); ch->iface() = -2; ch->error() = 0; ch->addr_type() = NS_AF_NONE; ch->prev_hop_ = index; // AODV hack ih->saddr() = index; ih->daddr() = IP_BROADCAST; ih->sport() = RT_PORT; ih->dport() = RT_PORT; // Fill up some more fields. rq->rq_type = AODVTYPE_RREQ; rq->rq_hop_count = 1; rq->rq_bcast_id = bid++; rq->rq_dst = dst; rq->rq_dst_seqno = (rt ? rt->rt_seqno : 0); rq->rq_src = index; seqno += 2; assert ((seqno%2) == 0); rq->rq_src_seqno = seqno; rq->rq_timestamp = CURRENT_TIME; Scheduler::instance().schedule(target_, p, 0.); and then this packet is received and the function recvRequest() is called. In the recvRequest() you can manipulate all the fields of packet including ttl and write your logic. For instance, you can decrease the ttl by one and forward the packet to one of its neighbors. I hope it helps. Regards 2009/3/10 Gaurav Joshi > Dear Mubashir, > thank you so much for your help. But do we have to set ttl in tcl script or > in source code. also how do i change the dst and src address dynamically. > Can you please give me a little more insight about it, or fwd me a link from > where I can follow in detail. > > thanks again, > Regards, > Gaurav. > > > On Tue, Mar 10, 2009 at 3:24 AM, Mubashir Rehmani wrote: > >> Hi Gaurav Joshi, >> >> To forward a packet to multi-hops, you need to first set the TTL value of >> the packet and dst address. Let's suppose you set the TTL=5 and dst=Node 1. >> Then you send this packet. This packet will be received by Node1. Node 1 >> then reduce the TTL-- and reassign the dst and forward the packet. >> >> To forward the packet, you don't need to call sendpkt function. Instead, >> you need to schedule a packet. >> >> Scheduler::instance ().schedule (target_ , p, delay); >> >> >> >> Hope it helps >> >> Regards >> Mubashir Husain Rehmani >> Lip6, UPMC, Paris, France >> www-npa.lip6.fr/~rehmani >> >> 2009/3/10 Gaurav Joshi >> >> >>> Hello all, >>> >>> Does anyone has an idea how to send a packet in multi-hops? This, I guess >>> will include packet forwarding at the intermediate node. >>> Please let me know it. >>> Thanks a lot. >>> >>> >>> -- >>> Warm regards, >>> Gaurav Joshi >>> +1-352-214-2527 >>> >> >> >> >> -- >> Mubashir Husain Rehmani >> >> >> > > > -- > Warm regards, > Gaurav Joshi > +1-352-214-2527 > -- Mubashir Husain Rehmani From ygor_amaral at hotmail.com Tue Mar 10 15:09:54 2009 From: ygor_amaral at hotmail.com (Ygor Amaral) Date: Wed, 11 Mar 2009 01:09:54 +0300 Subject: [ns] Script -> TCP / High-Speed Message-ID: Anybody have any script for simulation with TCP's in high-speed networks? Regards, Ygor Amaral _________________________________________________________________ Windows Live Messenger. O melhor em multitarefa. http://www.microsoft.com/windows/windowslive/products/messenger.aspx From vinioktm at hotmail.com Tue Mar 10 17:39:18 2009 From: vinioktm at hotmail.com (Vinicio Guanochanga) Date: Tue, 10 Mar 2009 19:39:18 -0500 Subject: [ns] Error in EURANE patch install Message-ID: Hi ns users... I have this error message when I'm trying to install EURANE patch in ns2.28. ./tcp/tcp.h:128: aviso: ?class RtxTimer? tiene funciones virtuales pero destructores no virtuales ./tcp/tcp.h:136: aviso: ?class DelSndTimer? tiene funciones virtuales pero destructores no virtuales ./tcp/tcp.h:144: aviso: ?class BurstSndTimer? tiene funciones virtuales pero destructores no virtuales ./mobile/energy-model.h:56: aviso: ?class AdaptiveFidelityEntity? tiene funciones virtuales pero destructores no virtuales ./mobile/energy-model.h:75: aviso: ?class SoftNeighborHandler? tiene funciones virtuales pero destructores no virtuales ./mac/mac.h:142: aviso: ?class Tap? tiene funciones virtuales pero destructores no virtuales ./mac/mac.h:150: aviso: ?class MacHandlerResume? tiene funciones virtuales pero destructores no virtuales ./mac/mac.h:158: aviso: ?class MacHandlerSend? tiene funciones virtuales pero destructores no virtuales umts/umts-timers.h:71: aviso: ?class UmtsTimer? tiene funciones virtuales pero destructores no virtuales umts/umts-timers.h:86: aviso: ?class HsdpaMacTimer? tiene funciones virtuales pero destructores no virtuales make: *** [umts/am.o] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems What is the problem??? any idea?? Vinicio Guanochanga Estudiante EPN Quito-Ecuador _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From muralikrishna4g at gmail.com Tue Mar 10 23:40:15 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Wed, 11 Mar 2009 12:10:15 +0530 Subject: [ns] classifier- how to get current tcl object and make new new fuctionality Message-ID: hi users.. here i have to provide a special functionality to a node.. so i am getting the node id.. in classifier class i have to compare the node id with current tcl object how to get the current tcl object id and compare it with the particular node to provide special functionality From huunal at gmail.com Wed Mar 11 02:46:20 2009 From: huunal at gmail.com (hakki) Date: Wed, 11 Mar 2009 02:46:20 -0700 (PDT) Subject: [ns] starting Cygwin in windows vista Message-ID: <22439492.post@talk.nabble.com> Hi, I dowloaded all the packages in cygwin also `xinit`, however, while I have been trying to install ns-2, it gives a such error " Xfree86 package is not installed". I have never seen Xfree86 packages in setup of cygwin, I downloaded all the packages. What do you offer? best hakki trihedraldoc wrote: > > Hi. > I used ns-2 on Cygwin on XP. Worked like a charm, > Now I am struggling with installing it on the newest cygwin running on > vista home premium. However I am seeing some light after few trials. > here's my suggestions > 1- Install every package Cygwin offers (do not "hide obsolete" packages. > you need those since they include the xorg libraries that are vital to > ns-2) > 2- when you installed all packages of cygwin you will see in your Windows > start menu two entries > -Cygwin > -Cygwin-x > In Cygwin-x click on xwinserver and that opens the xterminal magically. > > Good luck > > > Bello Lawal wrote: >> >> >> Hello, >> Pls. am getting difficulities in starting cygwin in windows vista. Pls. >> can some? one help? >> >> Many thanks >> >> >> >> >> >> > > -- View this message in context: http://www.nabble.com/starting-Cygwin-in-windows-vista-tp20874488p22439492.html Sent from the ns-users mailing list archive at Nabble.com. From palucci at smar.com.br Wed Mar 11 04:15:58 2009 From: palucci at smar.com.br (Rodrigo Palucci Pantoni) Date: Wed, 11 Mar 2009 08:15:58 -0300 Subject: [ns] Energy consumption for mobile nodes notreceiving/transmitting References: Message-ID: Hi Mubashir, This node state that Salvo mentionde is called "Sleep mode" for the wireless node (defined in the specifications) ? Thank you ----- Original Message ----- From: "Mubashir Rehmani" To: "Salvo Danilo Giuffrida" Cc: "ns-users" Sent: Tuesday, March 10, 2009 12:59 PM Subject: Re: [ns] Energy consumption for mobile nodes notreceiving/transmitting > > Hi Salvo, > > Yes, it is normal. For instance there are 10 nodes that are within the > range > of each other. If node 1 sends packet to node 10, then all the nodes > overhear the packet, and discard the packet (because the packet is not > destined to it). Thus, it is obvious that, in this case, nodes will > consume > some energy. > > Regards > Mubashir Husain Rehmani > http://www.irisa.fr/asap/Members/mrehmani/Mubashir > > 2009/3/10 Salvo Danilo Giuffrida > >> >> Hello, is it normal that a mobile node that does not transmit, >> receive, or forward data in an ad-hoc network, consumes anyway energy, >> just because it's in the range of two nodes communicating (in-between, >> but it doesn't forward packets to or from them, they are able to talk >> directly)? >> Thanks a lot >> >> > > > -- > Mubashir Husain Rehmani From muralikrishna4g at gmail.com Wed Mar 11 05:13:02 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Wed, 11 Mar 2009 17:43:02 +0530 Subject: [ns] How to get incoming packets source and destination address Message-ID: hi to all... i am working with network simulator ns-2.33, here at an intermediate node i have to know the incoming packets source and destination address. how to get this please help me thank you From pratiti.bhadra at gmail.com Wed Mar 11 05:13:29 2009 From: pratiti.bhadra at gmail.com (pratiti bhadra) Date: Wed, 11 Mar 2009 17:43:29 +0530 Subject: [ns] Need help to use Rayleigh fading in ZigBee Message-ID: <75dca74e0903110513g29449254md694f203b16b92b@mail.gmail.com> Hi all, How can I use rayleigh fading model in ZigBee stack. Tworayground radio propagation model used in ZigBee/IEEE 802.15.4 . Can I use rayleigh fading propagation model instead of tworayground. How can I change it. -- With best regards, Pratiti From akdalim at yahoo.com Wed Mar 11 05:17:14 2009 From: akdalim at yahoo.com (Syed Md. Ashraful Karim) Date: Wed, 11 Mar 2009 05:17:14 -0700 (PDT) Subject: [ns] segmenation fault for more than 20 nodes in OLSR Message-ID: <204626.9054.qm@web34404.mail.mud.yahoo.com> Hi I modified the UM-OLSR protocol to add some security elements. it works fine until the number nodes crosses 20. with more nodes i am getting a segmentation fault. can anybody help me , why segmentation fault may occur? help with some causes and remedies.? how can i debug it? i think the memory is not overloaded, as OLSR runs with more than 50/100 nodes. thanks in advance. /Ashraf From obaidabbasi at gmail.com Wed Mar 11 06:04:42 2009 From: obaidabbasi at gmail.com (obaid abbasi) Date: Wed, 11 Mar 2009 14:04:42 +0100 Subject: [ns] How to get incoming packets source and destination address In-Reply-To: References: Message-ID: <26a7b1700903110604y6def9976g59220bd1511ff2f3@mail.gmail.com> Hello, In the receive "recv(Packet* p, Handler*)" function of agent You can easily access the IP header of a packet. hdr_ip* iph = hdr_ip::access(p); You can get source ( iph->src_.addr_) and destination (iph->dst_.addr_) address. Regards, Ubaid Abbasi INRIA-CNRS Lab (LaBRI) University Of Bordeaux France 2009/3/11 muralikrishna g > > hi to all... > > i am working with network simulator ns-2.33, here at an intermediate > node i have to know the incoming packets source and destination > address. how to get this please help me > > thank you > > From spyros_mar at yahoo.gr Wed Mar 11 08:18:17 2009 From: spyros_mar at yahoo.gr (Spyros Marinis) Date: Wed, 11 Mar 2009 15:18:17 +0000 (GMT) Subject: [ns] Scheduler: Event UID not valid! Message-ID: <718455.53560.qm@web25504.mail.ukl.yahoo.com> Hi all! I use ns-2.33 and I am running a simulation for wireless sctp. However the simulation stops at the very beginning, and it shows: Scheduler: Event UID not valid! I have read some older posts here about this, but they are all, as well as the proposed solutions, for older versions of ns, and some of the changes indicated are already on ns-2.33. Can anyone help me and guide me what to do? Thank you very much in advance. Any help will be appreciated, Spyros ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From mrbalador at yahoo.com Wed Mar 11 08:59:17 2009 From: mrbalador at yahoo.com (ali bala) Date: Wed, 11 Mar 2009 08:59:17 -0700 (PDT) Subject: [ns] ns problem Message-ID: <729799.70327.qm@web45115.mail.sp1.yahoo.com> hi i wrote?a simple example and run at ns but i see this: --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- ??????? _o18: no target for slot -1 ??????? _o18 type: Classifier/Hash/Dest content dump: classifier _o18 ??????? 0 offset ??????? 0 shift ??????? 2147483647 mask ??????? 1 slots ??????????????? slot 2: _o116 (Classifier/Port) ??????? -1 default ---------- Finished standard no-slot{} default handler ---------- i?havent understanding about that i wanted to know about that thanks From ssdoria at gmail.com Wed Mar 11 09:29:01 2009 From: ssdoria at gmail.com (Sidney Doria) Date: Wed, 11 Mar 2009 13:29:01 -0300 Subject: [ns] Scheduler: Event UID not valid! In-Reply-To: <718455.53560.qm@web25504.mail.ukl.yahoo.com> References: <718455.53560.qm@web25504.mail.ukl.yahoo.com> Message-ID: <1bc975700903110929s45490fc3w2620f657791f0bae@mail.gmail.com> A good answer is here: http://web.syr.edu/~dchen02/FAQ.txt QUESTION 1. Sidney Doria UFCG / BRAZIl 2009/3/11 Spyros Marinis : > > Hi all! > I use ns-2.33 and I am running a simulation for wireless sctp. > However the simulation stops at the very beginning, and it shows: > Scheduler: Event UID not valid! > I have read some older posts here about this, but they are all, as well as the proposed solutions, for older versions of ns, and some of the changes indicated are already on ns-2.33. > Can anyone help me and guide me what to do? > Thank you very much in advance. Any help will be appreciated, > Spyros > > > > > > ___________________________________________________________ > ?????????????? Yahoo!; > ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail > ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? > ????????? http://login.yahoo.com/config/mail?.intl=gr > -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From kiran.cabs at gmail.com Wed Mar 11 09:39:20 2009 From: kiran.cabs at gmail.com (Kiran K Chauhan) Date: Wed, 11 Mar 2009 22:09:20 +0530 Subject: [ns] M ulti Channel Multi interface 802.11 Message-ID: <9d53a7ed0903110939p29f3a51eu22ce2831efc200ab@mail.gmail.com> Hello Friends, Did anyone try the Notebook:multi channel multi interface for NS2? I could make the changes in file and do propoer installation ut while running the example file twoflows2channel.tcl it gives error as: num_nodes is set 4 INITIALIZE THE LIST xListHead INITIALIZE THE LIST xListHead INITIALIZE THE LIST xListHead INITIALIZE THE LIST xListHead INITIALIZE THE LIST xListHead (_o25 cmd line 1) invoked from within "_o25 cmd add-route-tag 1 999" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o25" line 2) (SplitObject unknown line 2) invoked from within "$node_(0) add-route-tag 1 999" (file "2.tcl" line 84) Calling superclass Agent's command function!Calling superclass Agent's command function!Calling superclass Agent's command function!Calling superclass Agent's command function! It will be really helpful if somebody helps me in this regard Thanks Regards Kiran -- ........................................................................................................................................................ Every footstep in life is full of possibilities we just need to know our ability to explore them ........................................................................................................................................................ ........................................................................................................................................................ From huunal at gmail.com Wed Mar 11 10:00:02 2009 From: huunal at gmail.com (hakki) Date: Wed, 11 Mar 2009 10:00:02 -0700 (PDT) Subject: [ns] starting Cygwin in windows vista In-Reply-To: <22440958.post@talk.nabble.com> References: <391241.40456.qm@web57003.mail.re3.yahoo.com> <21521241.post@talk.nabble.com> <22439492.post@talk.nabble.com> <22440958.post@talk.nabble.com> Message-ID: <22459620.post@talk.nabble.com> Thanks for everyting, I downloaded them however, while I have been installing ns-2 I faced an error message such that "tclcl-1.15 make failed". And I don't know how can I solve this. best hakki trihedraldoc wrote: > > I don't think you did download all packages otherwise Xfree86 libraries > would have been found. > Did you make sure you did not "Hide Obsolete packages"? > Sorry but I acnnot see any other reason why those libraries wouldn't be > there. > > > hakki wrote: >> >> Hi, I dowloaded all the packages in cygwin also `xinit`, however, while I >> have been trying to install ns-2, it gives a such error " Xfree86 package >> is not installed". I have never seen Xfree86 packages in setup of cygwin, >> I downloaded all the packages. What do you offer? >> >> best >> hakki >> >> >> trihedraldoc wrote: >>> >>> Hi. >>> I used ns-2 on Cygwin on XP. Worked like a charm, >>> Now I am struggling with installing it on the newest cygwin running on >>> vista home premium. However I am seeing some light after few trials. >>> here's my suggestions >>> 1- Install every package Cygwin offers (do not "hide obsolete" packages. >>> you need those since they include the xorg libraries that are vital to >>> ns-2) >>> 2- when you installed all packages of cygwin you will see in your >>> Windows start menu two entries >>> -Cygwin >>> -Cygwin-x >>> In Cygwin-x click on xwinserver and that opens the xterminal >>> magically. >>> >>> Good luck >>> >>> >>> Bello Lawal wrote: >>>> >>>> >>>> Hello, >>>> Pls. am getting difficulities in starting cygwin in windows vista. Pls. >>>> can some? one help? >>>> >>>> Many thanks >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/starting-Cygwin-in-windows-vista-tp20874488p22459620.html Sent from the ns-users mailing list archive at Nabble.com. From wagnerfbm at yahoo.com.br Wed Mar 11 10:37:53 2009 From: wagnerfbm at yahoo.com.br (Helber Wagner) Date: Wed, 11 Mar 2009 10:37:53 -0700 (PDT) Subject: [ns] Res: Scheduler: Event UID not valid! In-Reply-To: <718455.53560.qm@web25504.mail.ukl.yahoo.com> References: <718455.53560.qm@web25504.mail.ukl.yahoo.com> Message-ID: <206313.67237.qm@web51411.mail.re2.yahoo.com> Hi, Take a look at this post: http://mailman.isi.edu/pipermail/ns-users/2006-May/055823.html Hope it helps, ___________________________________ Helber Wagner da Silva MSc. Student in Applied Informatics University of Fortaleza - Cear? - Brazil URL: http://www.nr2.ufpr.br/~helber ________________________________ De: Spyros Marinis Para: ns-users at ISI.EDU Enviadas: Quarta-feira, 11 de Mar?o de 2009 12:18:17 Assunto: [ns] Scheduler: Event UID not valid! Hi all! I use ns-2.33 and I am running a simulation for wireless sctp. However the simulation stops at the very beginning, and it shows: Scheduler: Event UID not valid! I have read some older posts here about this, but they are all, as well as the proposed solutions, for older versions of ns, and some of the changes indicated are already on ns-2.33. Can anyone help me and guide me what to do? Thank you very much in advance. Any help will be appreciated, Spyros ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From spyros_mar at yahoo.gr Wed Mar 11 12:08:12 2009 From: spyros_mar at yahoo.gr (martini.spy) Date: Wed, 11 Mar 2009 12:08:12 -0700 (PDT) Subject: [ns] Re s: Scheduler: Event UID not valid! In-Reply-To: <206313.67237.qm@web51411.mail.re2.yahoo.com> References: <718455.53560.qm@web25504.mail.ukl.yahoo.com> <206313.67237.qm@web51411.mail.re2.yahoo.com> Message-ID: <22462312.post@talk.nabble.com> Thanks for your reply! I have already read that post, though, and I think that my problem is indicated by: 1. You are using timers. When a timer is scheduled again without the previous schedule expiring - Trace which timer is scheduled and when it will expire. But how can I find which timer is scheduled again?? This will be found in scheduler.cc or mac-802.11.cc? Plus, I am using the Infrastructure mode support for IEEE 802.11 when I get that message. So, I found here: http://nsnam.cvs.sourceforge.net/viewvc/nsnam/ns-2/CHANGES.html?view=log&r1=1.662&pathrev=MAIN that there is a patch for "802.11 infra code; bug fixes" but haven't found where to download it from, since there's nothing from the link above... Does anybody know something more on that? Thank you very much everyone! Spyros Helber Wagner wrote: > > > Hi, > > Take a look at this post: > http://mailman.isi.edu/pipermail/ns-users/2006-May/055823.html > > Hope it helps, > > ___________________________________ > Helber Wagner da Silva > MSc. Student in Applied Informatics > University of Fortaleza - Cear? - Brazil > URL: http://www.nr2.ufpr.br/~helber > > > > > > ________________________________ > De: Spyros Marinis > Para: ns-users at ISI.EDU > Enviadas: Quarta-feira, 11 de Mar?o de 2009 12:18:17 > Assunto: [ns] Scheduler: Event UID not valid! > > > Hi all! > I use ns-2.33 and I am running a simulation for wireless sctp. > However the simulation stops at the very beginning, and it shows: > Scheduler: Event UID not valid! > I have read some older posts here about this, but they are all, as well as > the proposed solutions, for older versions of ns, and some of the changes > indicated are already on ns-2.33. > Can anyone help me and guide me what to do? > Thank you very much in advance. Any help will be appreciated, > Spyros > > > > > > ___________________________________________________________ > ?????????????? Yahoo!; > ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail > ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? > ????????? http://login.yahoo.com/config/mail?.intl=gr > > > > Veja quais s?o os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com > -- View this message in context: http://www.nabble.com/Scheduler%3A-Event-UID-not-valid%21-tp22457449p22462312.html Sent from the ns-users mailing list archive at Nabble.com. From nadine341 at yahoo.fr Wed Mar 11 13:22:22 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Wed, 11 Mar 2009 20:22:22 +0000 (GMT) Subject: [ns] the function generating a node in NS2.33 Message-ID: <263282.59309.qm@web28310.mail.ukl.yahoo.com> Hi all, Do you know please where can I find the function that generates the node in NS2.33? Thank you. From mshrehmani at gmail.com Wed Mar 11 13:58:39 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Wed, 11 Mar 2009 21:58:39 +0100 Subject: [ns] the function generating a node in NS2.33 In-Reply-To: <263282.59309.qm@web28310.mail.ukl.yahoo.com> References: <263282.59309.qm@web28310.mail.ukl.yahoo.com> Message-ID: Hi Nadine, The objects of nodes are created in Node.cc, present in the common folder of ns2. http://rp.lip6.fr/ns-doc/ns226-doc/html/node_8cc-source.htm http://rp.lip6.fr/ns-doc/ns226-doc/html/node_8h.htm Regards Mubashir Husain Rehmani www-npa.lip6.fr/~rehmani 2009/3/11 Nadine Chen > > Hi all, > Do you know please where can I find the function that generates the node in > NS2.33? > Thank you. > > > > > -- Mubashir Husain Rehmani From neggin at gmail.com Wed Mar 11 14:40:14 2009 From: neggin at gmail.com (negin fathoalahnejad) Date: Wed, 11 Mar 2009 22:40:14 +0100 Subject: [ns] Fwd: ns-2.31 and Gnutellasim In-Reply-To: <128a4f2d0903110957m5f6564av22400c18ddbb75c6@mail.gmail.com> References: <128a4f2d0903110957m5f6564av22400c18ddbb75c6@mail.gmail.com> Message-ID: <128a4f2d0903111440w4e1705d9hedb6de79d669a165@mail.gmail.com> ---------- Forwarded message ---------- From: negin fathoalahnejad Date: Wed, Mar 11, 2009 at 5:57 PM Subject: ns-2.31 and Gnutellasim To: ns-users at isi.edu Hello, I am trying to add gnutellasim to ns-2.31. Does anybody have an idea about the possible changes I have to do regarding some files, as it is mentioned for previous versions of ns? Thanks, Negin From teerawat at ece.ubc.ca Wed Mar 11 19:46:46 2009 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Thu, 12 Mar 2009 02:46:46 +0000 Subject: [ns] ns problem In-Reply-To: <729799.70327.qm@web45115.mail.sp1.yahoo.com> Message-ID: Hi, Basically, you are accessing the slot -1 which does not exist. I posted the details at http://t-issariyakul.blogspot.com/2009/03/no-slot-error-for-classifiers.html For more information about Classifiers, see Chapter 6 in the following book from Springer: T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator NS2", Springer 2008. http://www.springer.com/engineering/signals/book/978-0-387-71759-3 You may also find the following website useful: http://www.ece.ubc.ca/~teerawat/NS2.htm Best, Teerawat On 3/11/2009, "ali bala" wrote: > >hi >i wrote?a simple example and run at ns but i see this: > >--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- >??????? _o18: no target for slot -1 >??????? _o18 type: Classifier/Hash/Dest >content dump: >classifier _o18 >??????? 0 offset >??????? 0 shift >??????? 2147483647 mask >??????? 1 slots >??????????????? slot 2: _o116 (Classifier/Port) >??????? -1 default >---------- Finished standard no-slot{} default handler ---------- > >i?havent understanding about that >i wanted to know about that >thanks > > > > > From muralikrishna4g at gmail.com Wed Mar 11 20:48:57 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Thu, 12 Mar 2009 09:18:57 +0530 Subject: [ns] a special function required in queue Message-ID: hi to all users... now i am working with ns-2.33, here i required is that, keeping a threshold level to queue and if the threshold level is reached i have to intimate the upstream node.. how to do it.. please help me as early as possible i am in need.. thank you all by Muralikrishna Gaddam From chekhov_space at yahoo.co.in Wed Mar 11 22:30:31 2009 From: chekhov_space at yahoo.co.in (chekhov_neo) Date: Wed, 11 Mar 2009 22:30:31 -0700 (PDT) Subject: [ns] Please Help - wireless nodes - packets dropping problem when more than one agent is attached Message-ID: <22453839.post@talk.nabble.com> Hi, I'm new to ns2. I've been trying to simulate a wireless scenario in which a mobile node sends data to another mobile node. I attached two udp agents with node0 with cbr traffic for both of them. Then i attached two null agents to node1 to receive the data. Both the agents are started at the same time and made to run simultaneously. While I do so most of the packets get dropped. Is there any problem if i attach two agents to a wireless node and make them work at the same time? The following is my tcl code: # ====================================================================== # Define options # ====================================================================== set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# 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) 50 ;# max packet in ifq set val(nn) 2 ;# number of mobilenodes set val(rp) DSR ;# routing protocol set val(x) 300 ;# X dimension of the topography in meters set val(y) 300 ;# Y dimension of the topography in meters # ===================================================================== # Main Program # ====================================================================== set ns [new Simulator] $ns use-newtrace set tf [open out.tr w] $ns trace-all $tf set nf [open out.nam w] $ns namtrace-all-wireless $nf $val(x) $val(y) set topo [new Topography] $topo load_flatgrid $val(x) $val(y) create-god $val(nn) # configure node $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) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -movementTrace ON set n0 [$ns node] set n1 [$ns node] $n0 set X_ 100.0 $n0 set Y_ 100.0 $n0 set Z_ 0.0 $n1 set X_ 200.0 $n1 set Y_ 100.0 $n1 set Z_ 0.0 $ns at 0.1 "$n0 setdest 50.0 100.0 0.5" $ns at 0.1 "$n1 setdest 150.0 100.0 0.5" set udp0 [new Agent/UDP] $ns attach-agent $n0 $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 500 $cbr0 set interval .005 $cbr0 attach-agent $udp0 set udp1 [new Agent/UDP] $ns attach-agent $n0 $udp1 set cbr1 [new Application/Traffic/CBR] $cbr1 set packetSize_ 500 $cbr1 set interval .005 $cbr1 attach-agent $udp1 set null0 [new Agent/Null] $ns attach-agent $n1 $null0 set null1 [new Agent/Null] $ns attach-agent $n1 $null1 $ns connect $udp0 $null0 $ns connect $udp1 $null1 $ns at 0.1 "$cbr0 start" $ns at 0.1 "$cbr1 start" $ns at 4.5 "$cbr0 stop" $ns at 4.5 "$cbr1 stop" $ns at 5.0 "finish" proc finish {} { global ns tf nf $ns flush-trace close $tf close $nf exec nam out.nam & exit 0 } $ns run --------------------------------------------------------------------------- Please help. Regards, arun chekhov -- View this message in context: http://www.nabble.com/Please-Help---wireless-nodes---packets-dropping-problem-when-more-than-one-agent-is-attached-tp22453839p22453839.html Sent from the ns-users mailing list archive at Nabble.com. From neerajgupta37 at rediffmail.com Wed Mar 11 23:57:08 2009 From: neerajgupta37 at rediffmail.com (neeraj gupta) Date: 12 Mar 2009 06:57:08 -0000 Subject: [ns] where to create routing buffer Message-ID: <20090312065708.19036.qmail@f6mail-144-203.rediffmail.com> ? hi all i just went through the one of papers for calculating the available bandwidth . the question i encountered in the paper is where is routing buffer located for maintaining the table. is it in the node.cc ot it is the routing protocol we are using in the simulation e.g. AODV . Also how can i calculate the neighbors of the node and know which of them is transmitting or not. Neeraj Gupta Assistant Professor HOD, CSE & IT Department Hindu College of Engineering Sonepat From spyros_mar at yahoo.gr Thu Mar 12 02:30:38 2009 From: spyros_mar at yahoo.gr (Spyros Marinis) Date: Thu, 12 Mar 2009 09:30:38 +0000 (GMT) Subject: [ns] 802.11 infra mode and Scheduler: Event UID not valid! error Message-ID: <417011.87274.qm@web25505.mail.ukl.yahoo.com> Hello! I have read older posts about the Scheduler: Event UID not valid error I get and I think that my problem is indicated by: 1. You are using timers. When a timer is scheduled again without the previous schedule expiring - Trace which timer is scheduled and when it will expire. But how can I find which timer is scheduled again?? This will be found in scheduler.cc or mac-802.11.cc? Plus, I am using the Infrastructure mode support for IEEE 802.11 when I get that message. So, I found here: http://nsnam.cvs.sourceforge.net/viewvc/nsnam/ns-2/CHANGES.html?view=log&r1=1.662&pathrev=MAIN that there is a patch for "802.11 infra code; bug fixes" but haven't found where to download it from, since there's nothing from the link above... Does anybody know something more on that? Thank you very much everyone! Spyros --- ???? ???., 11/03/09, ?/? Helber Wagner ??????: ???: Helber Wagner ????: [ns] Res: Scheduler: Event UID not valid! ????: ns-users at ISI.EDU ??????????: ???????, 11 ??????? 2009, 19:37 Hi, Take a look at this post: http://mailman.isi.edu/pipermail/ns-users/2006-May/055823.html Hope it helps, ___________________________________ Helber Wagner da Silva MSc. Student in Applied Informatics University of Fortaleza - Cear? - Brazil URL: http://www.nr2.ufpr.br/~helber ________________________________ De: Spyros Marinis Para: ns-users at ISI.EDU Enviadas: Quarta-feira, 11 de Mar?o de 2009 12:18:17 Assunto: [ns] Scheduler: Event UID not valid! Hi all! I use ns-2.33 and I am running a simulation for wireless sctp. However the simulation stops at the very beginning, and it shows: Scheduler: Event UID not valid! I have read some older posts here about this, but they are all, as well as the proposed solutions, for older versions of ns, and some of the changes indicated are already on ns-2.33. Can anyone help me and guide me what to do? Thank you very much in advance. Any help will be appreciated, Spyros ? ? ? ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr ? ? ? Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From muralikrishna4g at gmail.com Thu Mar 12 02:56:18 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Thu, 12 Mar 2009 15:26:18 +0530 Subject: [ns] ns2-classifier to add additional functionality to a particular node Message-ID: hi to all.. i am using th command [ puts "{$n9 id} ] to print the node_id.. i have to use this node id at classifier to add additional functionality to the node 9 from classifier, like using the if condition as if current tcl object = node_id { } for this i dont know the exact if condition code and where it is add to the classifier.. please help me regarding this.. thank you From lukman_hanif at yahoo.com Thu Mar 12 03:19:19 2009 From: lukman_hanif at yahoo.com (lukman_hanif@yahoo.com) Date: Thu, 12 Mar 2009 03:19:19 -0700 (PDT) Subject: [ns] How to do LEO satellite simulation with many GSL terminals ?? Message-ID: <992202.36927.qm@web50906.mail.re2.yahoo.com> Hi, Does anybody knows how to do LEO satellite simulation with many GSL terminals on the source side and many GSL terminals on the destination side ?? For example if i want to have 3 polar GSL terminal (S1, S2, S3) at the source side and 3 polar GSL terminal (D1, D2, D3) at the destination side, how to make sure that S1 is in connection with D1, S2 with D2 , and S3 with D3 ?? So far in the ns manual & examples only show satellite simulation with one-to-one GSL terminal connection, but is there possible to simulate many-to-many GSL terminal connections in LEO satellite network ?? Lukman Audah From dagamayank at gmail.com Thu Mar 12 05:13:32 2009 From: dagamayank at gmail.com (Mayank Daga) Date: Thu, 12 Mar 2009 19:13:32 +0700 Subject: [ns] Classifier no slot. Message-ID: <8bb0d1210903120513y6814c168u4a2a4cb5aafedebd@mail.gmail.com> Hey all, I have been trying to implement normal wireless scenario using DSDV protocol. The scenario has 49 equispaced nodes and there is some traffic applied. The problem is when I run the TCL script, i get the following output: linux-v1gr:~/tcl # ns test_soma.tcl num_nodes is set 49 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o139: no target for slot -1 _o139 type: Classifier/Port content dump: classifier _o139 0 offset 0 shift 2147483647 mask 2 slots slot 0: _o875 (CMUTrace/Recv) slot 255: _o130 (Agent/DSDV) ---------- Finished standard no-slot{} default handler ---------- Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India From dagamayank at gmail.com Thu Mar 12 08:08:17 2009 From: dagamayank at gmail.com (Mayank Daga) Date: Thu, 12 Mar 2009 22:08:17 +0700 Subject: [ns] DSDV Protocol Message-ID: <8bb0d1210903120808o76122b6foe1845d8b3fc55ac8@mail.gmail.com> Hey all, I am making a simple DSDV application. I found out that when source and destination nodes are not immediate neighbors, i.e., destination is out of range of the source node, then the packets get dropped. I mean wont the source route through its immediate neighbors and eventually reach destination? Will it transmit packets only when the destination is a neighbor. FYI I am using UDP with CBR. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India From dagamayank at gmail.com Thu Mar 12 08:12:12 2009 From: dagamayank at gmail.com (Mayank Daga) Date: Thu, 12 Mar 2009 22:12:12 +0700 Subject: [ns] Range Proble...Again :( Message-ID: <8bb0d1210903120812v12adcd00uea1be51aefd0d596@mail.gmail.com> Hey Mubashir, Sorry for bugging you again but I am totally clueless as to how to set the range. Since past few days, I have been trying to set the range by the setting the value of radius variable of a particular node. This is what radius variable does according to NS Manual: $mobilenode radius The radius denotes the node?s range. All mobilenodes that fall within the circle of radius with the node at its center are considered as neighbours. This info is typically used by the gridkeeper. But, today I found out that this is not affecting the way the traffic is sent, i.e., the range is still 250m, the default value. Please help me as to how can I set the range of the nodes. This is is very much imperative for my project. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India From teerawat at ece.ubc.ca Thu Mar 12 08:42:57 2009 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Thu, 12 Mar 2009 15:42:57 +0000 Subject: [ns] Classifier no slot. In-Reply-To: <8bb0d1210903120513y6814c168u4a2a4cb5aafedebd@mail.gmail.com> Message-ID: On 3/12/2009, "Mayank Daga" wrote: Hi, Basically, you are accessing the slot -1 which does not exist. I posted the details at http://t-issariyakul.blogspot.com/2009/03/no-slot-error-for-classifiers.html For more information about Classifiers, see Chapter 6 in the following book from Springer: T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator NS2", Springer 2008. http://www.springer.com/engineering/signals/book/978-0-387-71759-3 You may also find the following website useful: http://www.ece.ubc.ca/~teerawat/NS2.htm Best, Teerawat > >Hey all, > >I have been trying to implement normal wireless scenario using DSDV >protocol. The scenario has 49 equispaced nodes and there is some traffic >applied. The problem is when I run the TCL script, i get the following >output: > >linux-v1gr:~/tcl # ns test_soma.tcl >num_nodes is set 49 >warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl >INITIALIZE THE LIST xListHead >Starting Simulation... >channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ >highestAntennaZ_ = 1.5, distCST_ = 550.0 >SORTING LISTS ...DONE! >--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- > _o139: no target for slot -1 > _o139 type: Classifier/Port >content dump: >classifier _o139 > 0 offset > 0 shift > 2147483647 mask > 2 slots > slot 0: _o875 (CMUTrace/Recv) > slot 255: _o130 (Agent/DSDV) >---------- Finished standard no-slot{} default handler ---------- > > >Please help. > >-- >Regards, >Mayank Daga >Senior Undergraduate Student, >Department of Information Technology, >National Institute of Technology, Durgapur, >India > From giuffsalvo at gmail.com Thu Mar 12 08:52:38 2009 From: giuffsalvo at gmail.com (Salvo Danilo Giuffrida) Date: Thu, 12 Mar 2009 16:52:38 +0100 Subject: [ns] [DSR] How to check if a packet contains application-level data... Message-ID: Hello, if I have an SRPacket, how can I check that it contains, other than some possible Route Request/Reply/Error in its DSR Options Header, some kind of application-level data in its payload? Should I check that p.pkt->datalen()>0, or does it take into consideration also the size of the header? Basically, I need to do certain thing only if a node receives a DSR packet, which might contain Route Request/Reply/Errors piggybacked in its header, but it must also contain some data in the payload of the IP packet. Thanks a lot From nick51502 at yahoo.com Thu Mar 12 12:02:22 2009 From: nick51502 at yahoo.com (Nick K) Date: Thu, 12 Mar 2009 12:02:22 -0700 (PDT) Subject: [ns] Unequal Cost Multipath Routing Message-ID: <574084.53960.qm@web53704.mail.re2.yahoo.com> Hello, I have seen several other posts regarding this but never saw an answer.? I know the DV routing protocol uses equal cost multipath routing in a round robin fashion.? I would like it to be able to use "unequal" cost multipath routing in a weighted round robin fashion (i.e. eventually I'd like to assign a percentage of usage to each path).? I have narrowed the code to be modified down to ~/tcl/rtglib/route-proto.tcl.? I have put tons of debug in the rtObject compute-routes code and can actually see where paths with higher costs actually get removed (delete-routes) but don't know how or why.? Has anyone ever modified this compute-routes function to be able to utilize paths that have different costs? Thanks, Nick From minarz at gmail.com Thu Mar 12 20:12:46 2009 From: minarz at gmail.com (mm) Date: Fri, 13 Mar 2009 11:12:46 +0800 Subject: [ns] wireless access point Message-ID: <6e5ba8080903122012ib207fffl9cb3bd384e791b46@mail.gmail.com> Hello and thank you very much for all your efforts Could you please tell me if NS2 (version 2.32) can support simulation of wireless networks in infrastructure mode (it means wireless nodes connected to a wireless access point)? Thanks in advance From thanh at wayne.edu Thu Mar 12 20:21:23 2009 From: thanh at wayne.edu (Thanh D. Do) Date: Thu, 12 Mar 2009 23:21:23 -0400 Subject: [ns] How to simulate mutiple priority queues in ns-2 In-Reply-To: <96c42cba0903050909o50b7004cm653c2de2642d75b2@mail.gmail.com> References: <96c42cba0903050909o50b7004cm653c2de2642d75b2@mail.gmail.com> Message-ID: <96c42cba0903122021j64e53151v52875156a90e4fff@mail.gmail.com> Hi folks, I am a newbie with ns-2. I have a problem of simulating multiple priority queues. In Linux, normally, there is a socket buffer corresponding to each connection. Data streaming into each socket buffer is encapsulated into packets which obtain TCP headers and IP headers. Throughout this processing, the packet streams corresponding to each connection is kept separate. Finally, there is a single ??priority queue?, into which all streams feed. All streams that have data ready to send take equal turns draining into the priority queue. (FAIR) There is another possible approach. Instead of a single priority queue (transmit queue), there are 16 priority queues. These are called bands and they range in number from 0 to 15, where band 15 has lowest priority and band 0 has highest priority. All the connections of i priority feed fairly into the i th priority queue. (SPRT). I have attached a figure describing these two approaches. My question is, is it possible to simulate both FAIR and SPRT in ns-2. Could you guys give me some hints how to do that? I really appreciate any suggestion. Sincerely, Thanh From muralikrishna4g at gmail.com Thu Mar 12 21:31:34 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Fri, 13 Mar 2009 10:01:34 +0530 Subject: [ns] how to set threshold level to queue Message-ID: hi to all.. how to set a threshold level to queue in a router.. and if the threshold level is reached i have to send a message to upstream router.. how to do it.. please help me.. i am in need thank you From minarz at gmail.com Thu Mar 12 22:03:53 2009 From: minarz at gmail.com (mm) Date: Fri, 13 Mar 2009 13:03:53 +0800 Subject: [ns] upgrade ns2.32 to ns2.33 Message-ID: <6e5ba8080903122203i4a4731f3mb4b2e742864e9e0f@mail.gmail.com> Hello and thanks a lot I have installed ns2.32 on ubuntu7.10 now I want to upgrade my ns2 to NS2.33. could you please tell me how can I upgrade that? Thanks in advance From muralikrishna4g at gmail.com Thu Mar 12 23:29:21 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Fri, 13 Mar 2009 11:59:21 +0530 Subject: [ns] how to get queue size Message-ID: hi to all.. if the queue size is reached to a threshold level i have to intimate the upstream router.. in this case how do i get the queue size i have set a threshold value q_threshold if(queue_size=q_threshold){ take an action to intimate the upstream router } From kiran.cabs at gmail.com Fri Mar 13 00:33:15 2009 From: kiran.cabs at gmail.com (Kiran K Chauhan) Date: Fri, 13 Mar 2009 13:03:15 +0530 Subject: [ns] wireless access point In-Reply-To: <6e5ba8080903122012ib207fffl9cb3bd384e791b46@mail.gmail.com> References: <6e5ba8080903122012ib207fffl9cb3bd384e791b46@mail.gmail.com> Message-ID: <9d53a7ed0903130033p13e12b4ai4e5478538e24003d@mail.gmail.com> Hi, Yes NS2 does support that, use ns2.33 version. Sample code given in that is infrs.tcl Kiran On Fri, Mar 13, 2009 at 8:42 AM, mm wrote: > > Hello and thank you very much for all your efforts > > Could you please tell me if NS2 (version 2.32) can support simulation of > wireless networks in infrastructure mode (it means wireless nodes connected > to a wireless access point)? > > Thanks in advance > -- ........................................................................................................................................................ Every footstep in life is full of possibilities we just need to know our ability to explore them ........................................................................................................................................................ ........................................................................................................................................................ From huunal at gmail.com Fri Mar 13 03:01:43 2009 From: huunal at gmail.com (hakki) Date: Fri, 13 Mar 2009 03:01:43 -0700 (PDT) Subject: [ns] ns-2 on windows vista In-Reply-To: <1bc975700706060739n1a8f6c9dpe3d7f2e30557f225@mail.gmail.com> References: <18D8E943D728594C864C7AA427FDC6220FA04CD3@CL4EXBE03.ad2.softcom.biz> <1bc975700706060739n1a8f6c9dpe3d7f2e30557f225@mail.gmail.com> Message-ID: <22493352.post@talk.nabble.com> Dear Sidney, I have been trying to install ns-2.27 to my machine runs under vista home. Even I have downloaded all the packages of cygwin, I could not install ns-2.27. I installed also hidden packages in cygwin. Moreover, while I have been trying to install ns-2.27, there does not appear a such message `... package not found'. However, during the installation it gives a such message "tclcl-1.15 make failed!", Exiting. I chechked all my packages, whether I have installed or not, using the cygwin setup and choosing view section, there does not appear any package to install. Do you have any opinion or suggestion? best hakki Sidney Doria wrote: > > > I'm using cygwin 1.5.24 and ns-2 2.31 on Vista Home Premium. There > was no problem on installing it, but a few test have failed on > validation (as promessed in the tutorial). > > I recomend you to use all-in-one package and install a full cygwin > (default installation does't install some packages needed). > > > Sidney Doria > > > 2007/6/6, Karun Dambiec : >> >> Hi, >> >> Im about to upgrade to Windows Vista if all my software is compatible. >> >> Has anybody used Cygwin and NS-2 on Vista? If you have, did you have any >> problems with it? >> >> >> >> Regards >> >> Karun Dambiec >> >> > > > -- > Sidney Doria > Redes ad hoc m?veis > Mestrado em Computa??o > UFCG > Brasil > > "Nessa jornada, o conhecimento ser? o seu escudo..." > (Mestre dos Magos no epis?dio do grimoire de ouro) > > > -- View this message in context: http://www.nabble.com/ns-2-on-windows-vista-tp10987280p22493352.html Sent from the ns-users mailing list archive at Nabble.com. From hewonty at gmail.com Fri Mar 13 03:37:49 2009 From: hewonty at gmail.com (Truong Thuy) Date: Fri, 13 Mar 2009 10:37:49 +0000 Subject: [ns] How to get information of a node from an agent? Message-ID: <89d26f2f0903130337i724e7384x44386494b621f65d@mail.gmail.com> Dear All, I'm implementing a routing protocol that explores the mobility of a node. >From the new agent, I want some information of a node such as speed, location, ... Just wondering how I can use getter methods of Node.c inside my NewAgent.c? Please help. Thanks milllion. -- Regards, Thuy From dagamayank at gmail.com Fri Mar 13 03:46:21 2009 From: dagamayank at gmail.com (Mayank Daga) Date: Fri, 13 Mar 2009 17:46:21 +0700 Subject: [ns] Neighbor List Message-ID: <8bb0d1210903130346s37307797m3d82e260467a79c5@mail.gmail.com> Hey all, Please let me know, how to access the Neighbor List of any mobile node. It is imperative for my project work and I am not being to able to find it. I found a function addNeighbor(node) in node.cc but it seems that it is not called from anywhere. Then how are neighbors being maintained. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India From muralikrishna4g at gmail.com Fri Mar 13 06:27:31 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Fri, 13 Mar 2009 18:57:31 +0530 Subject: [ns] How to send a message from one node to another node (i.e. to send an integer value) Message-ID: hi to all.. i am using ns-2.33, here i have to send a message (i.e. to send an integer value) from one node to another node, is it possible in tcl script itself.. or i have to go for c++ please help me regarding this, by Muralikrishna Gaddam (muralikrishna4g at gmail.com) From muralikrishna4g at gmail.com Fri Mar 13 06:32:30 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Fri, 13 Mar 2009 19:02:30 +0530 Subject: [ns] How to Drop Packets From a Particular Sender Message-ID: Hi to all.. i am using ns-2.33, here in my work i have to drop packets from a particular sender, i am planing to drop packets depending on the sender node_id please help me regarding this.. by Muralikrishna Gaddam (muralikrishna4g at gmail.com) From ssdoria at gmail.com Fri Mar 13 06:54:56 2009 From: ssdoria at gmail.com (Sidney Doria) Date: Fri, 13 Mar 2009 10:54:56 -0300 Subject: [ns] How to send a message from one node to another node (i.e. to send an integer value) In-Reply-To: References: Message-ID: <1bc975700903130654q3f0c1f7bhbddf24f41edc9cc4@mail.gmail.com> Gaddam, this is the FIRST BASIC step when you learning NS-2. You can find lots of information about this, here: - asking google; - reading NS-2 manual; - tutorials in the NS-2 wiki; - on the book "Introduction to Network Simulator NS-2". But we know how difficult are the first steps! So, this tutorial can help with scripts (in OTcl) or how to code (in C++) to send and receive packets in NS-2: http://masimum.inf.um.es/nsrt-howto/pdf/nsrt-howto.pdf That tutorial is for WIRELESS networks. If you want for Wired networks, I suggest you the Marc Greiss's tutorial (Section IV): http://www.isi.edu/nsnam/ns/tutorial/ Sidney Doria UFCG / BRAZIL 2009/3/13 muralikrishna g : > > hi to all.. > > i am using ns-2.33, here i have to send a message (i.e. to send an > integer value) from one node to another node, is it possible in tcl > script itself.. or i have to go for c++ > > please help me regarding this, > > by > > Muralikrishna Gaddam (muralikrishna4g at gmail.com) > > -- Sidney Doria Redes ad hoc m?veis Doutorado em Computa??o UFCG Brasil "Nessa jornada, o conhecimento ser? o seu escudo..." (Mestre dos Magos no epis?dio do grimoire de ouro) From teerawat at ece.ubc.ca Fri Mar 13 07:50:19 2009 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Fri, 13 Mar 2009 14:50:19 +0000 Subject: [ns] How to Drop Packets From a Particular Sender In-Reply-To: Message-ID: Hi, Suppose you have a pointer "p". You can drop the packet by executing Packet::free(p) Also the packet "*p" can be dropped from within the Connector object by invoking function drop as follows: drop(p); Note that "drop(p)" is a function of class Connector, and therefore must be invoked from within the scope of class Connector. I posted how to drop a a packet in the following blog: http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html For more information about Connector and Packet, see Chapters 5 and 8, respectively, in the following book from Springer: T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator NS2", Springer 2008. http://www.springer.com/engineering/signals/book/978-0-387-71759-3 You may also find the following website useful: http://www.ece.ubc.ca/~teerawat/NS2.htm On 3/13/2009, "muralikrishna g" wrote: > >Hi to all.. > >i am using ns-2.33, here in my work i have to drop packets from a >particular sender, i am planing to drop packets depending on the >sender node_id > >please help me regarding this.. > >by > >Muralikrishna Gaddam (muralikrishna4g at gmail.com) > From mats.folke at ericsson.com Fri Mar 13 08:12:53 2009 From: mats.folke at ericsson.com (Mats Folke) Date: Fri, 13 Mar 2009 16:12:53 +0100 Subject: [ns] How to Drop Packets From a Particular Sender In-Reply-To: References: Message-ID: <81DD8EA2638A554EA2DA738B270F63FA583E80@esealmw114.eemea.ericsson.se> Hi! Wouldn't it be kind of dangerous to drop the packet using the first method described? The packet would jsut disappear and the logs would not be consistent. I would recommend using the latter method drop(p) instead. This makes the logging consistent and almost all objects I've come across where I would like to drop packets have been Connector objects. Best regards, Mats Folke Teerawat Issariyakul wrote: > Hi, > > Suppose you have a pointer "p". You can drop the packet by executing > > > Packet::free(p) > > Also the packet "*p" can be dropped from within the Connector object > by invoking function drop as follows: > > drop(p); > > > Note that "drop(p)" is a function of class Connector, and therefore > must be invoked from within the scope of class Connector. > > I posted how to drop a a packet in the following blog: > > http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html > > For more information about Connector and Packet, see Chapters 5 and 8, > respectively, in the following book from Springer: > > T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator > NS2", Springer 2008. > http://www.springer.com/engineering/signals/book/978-0-387-71759-3 > > You may also find the following website useful: > http://www.ece.ubc.ca/~teerawat/NS2.htm > > On 3/13/2009, "muralikrishna g" wrote: > >> >> Hi to all.. >> >> i am using ns-2.33, here in my work i have to drop packets from a >> particular sender, i am planing to drop packets depending on the >> sender node_id >> >> please help me regarding this.. >> >> by >> >> Muralikrishna Gaddam (muralikrishna4g at gmail.com) -- Mats Folke, M.Sc., Lic.Eng. Research Engineer Ericsson AB Office: +46 10 7171385 Ericsson Research Fax: +46 920 99621 P.O. Box 920 Mobile: +46 76 1271385 SE-971 28 Lule? Sweden From cmjr at iol.pt Fri Mar 13 09:10:17 2009 From: cmjr at iol.pt (antonioli) Date: Fri, 13 Mar 2009 09:10:17 -0700 (PDT) Subject: [ns] TCO flag in trace file Message-ID: <22499739.post@talk.nabble.com> Hi, I'm studing some aspects handover over heterogeneous networks, in particularly the IEEE 802.21. I have already installed ns2 with 802.21 module (from NIST) and simulated some scenarios and found a "NCO" in trace file. Can tell me significance of the "NCO" (after -Nw) drop reason? All help or support will be very helpful. -- View this message in context: http://www.nabble.com/TCO-flag-in-trace-file-tp22499739p22499739.html Sent from the ns-users mailing list archive at Nabble.com. From cmjr at iol.pt Fri Mar 13 09:11:05 2009 From: cmjr at iol.pt (antonioli) Date: Fri, 13 Mar 2009 09:11:05 -0700 (PDT) Subject: [ns] TCO flag in trace file Message-ID: <22499739.post@talk.nabble.com> Hi, I'm studing some aspects handover over heterogeneous networks, in particularly the IEEE 802.21. I have already installed ns2 with 802.21 module (from NIST) and simulated some scenarios and found a "NCO" in trace file. Could somebody explain to me significance of the "NCO" (after -Nw) drop reason? All help or support will be very helpful. -- View this message in context: http://www.nabble.com/TCO-flag-in-trace-file-tp22499739p22499739.html Sent from the ns-users mailing list archive at Nabble.com. From gcguang at gmail.com Fri Mar 13 14:26:24 2009 From: gcguang at gmail.com (vap9999) Date: Fri, 13 Mar 2009 14:26:24 -0700 (PDT) Subject: [ns] Help!! Message-ID: <22503305.post@talk.nabble.com> After I run my tcl, it shows the following error, someone, please, give me a hint why that happened? Thanks so much! --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o107: no target for slot -1 _o107 type: Classifier/Hash/Dest content dump: classifier _o107 0 offset 0 shift 2147483647 mask 1 slots slot 5: _o566 (Classifier/Port) -1 default ---------- Finished standard no-slot{} default handler ---------- -- View this message in context: http://www.nabble.com/Help%21%21-tp22503305p22503305.html Sent from the ns-users mailing list archive at Nabble.com. From thariqsatria at gmail.com Fri Mar 13 18:41:53 2009 From: thariqsatria at gmail.com (Satria Mandala) Date: Sat, 14 Mar 2009 09:41:53 +0800 Subject: [ns] Intrusion Detection in Manet In-Reply-To: References: Message-ID: On Thu, Mar 12, 2009 at 4:43 PM, Satria Mandala wrote: > I need to learn intrusion detection in wireless ad-hoc network using ns2. > Does any one know how to create some kind of attacks in a node, such > as black hole attack, DoS, and etc? > > > regards > Thariq Satria > From contact.joarder at yahoo.com Fri Mar 13 19:19:28 2009 From: contact.joarder at yahoo.com (Mustafa Kamal) Date: Fri, 13 Mar 2009 19:19:28 -0700 (PDT) Subject: [ns] Neighbor List Message-ID: <541724.20279.qm@web45607.mail.sp1.yahoo.com> I think you can look at channel.cc to find the list of neighbours because whenever a new mobile node is entering the channel its keep information in the list. Otherwise if you trying to find out the neighbouring BS then you can check it out from the mip-reg.cc file. Thanks, With Best Regards, Joarder Mohammad Mustafa Kamal --- On Fri, 3/13/09, Mayank Daga wrote: From: Mayank Daga Subject: [ns] Neighbor List To: ns-users at ISI.EDU Date: Friday, March 13, 2009, 4:46 PM Hey all, Please let me know, how to access the Neighbor List of any mobile node. It is imperative for my project work and I am not being to able to find it. I found a function addNeighbor(node) in node.cc but it seems that it is not called from anywhere. Then how are neighbors being maintained. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India From contact.joarder at yahoo.com Fri Mar 13 19:25:18 2009 From: contact.joarder at yahoo.com (Mustafa Kamal) Date: Fri, 13 Mar 2009 19:25:18 -0700 (PDT) Subject: [ns] Range Proble...Again :( Message-ID: <557855.76068.qm@web45614.mail.sp1.yahoo.com> Can you set the radius like below [$HA set netif_(0)] set Pt_ 0.03652 [$FA01 set netif_(0)] set Pt_ 0.03652 [$FA02 set netif_(0)] set Pt_ 0.03652 [$FA03 set netif_(0)] set Pt_ 0.03652 You can use this list to set the radius of a node ???? Tx Range?????????? Pt_ ?????? 100m???????????? 0.00721383 ?????? 150m???????????? 0.03652 ?????? 200m???????????? 0.115421 ?????? 250m???????????? 0.28179 ?????? 300m???????????? 0.58432 Thanks, With Best Regards, Joarder Mohammad Mustafa Kamal --- On Thu, 3/12/09, Mayank Daga wrote: From: Mayank Daga Subject: [ns] Range Proble...Again :( To: "Mubashir Rehmani" , ns-users at ISI.EDU Date: Thursday, March 12, 2009, 9:12 PM Hey Mubashir, Sorry for bugging you again but I am totally clueless as to how to set the range. Since past few days, I have been trying to set the range by the setting the value of radius variable of a particular node. This is what radius variable does according to NS Manual: $mobilenode radius The radius denotes the node?s range. All mobilenodes that fall within the circle of radius with the node at its center are considered as neighbours. This info is typically used by the gridkeeper.. But, today I found out that this is not affecting the way the traffic is sent, i.e., the range is still 250m, the default value. Please help me as to how can I set the range of the nodes. This is is very much imperative for my project. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India From muralikrishna4g at gmail.com Fri Mar 13 21:09:54 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Sat, 14 Mar 2009 09:39:54 +0530 Subject: [ns] how to send a message(excample-45) from node1 to node2 Message-ID: hi to all.. here i have to send a number from from node1 to node2,.. i know how to send a traffic packet op or cbr, but here i have to send my own number from node1 to node2,.. please help me regarding this by muralikrishna From teerawat at ece.ubc.ca Fri Mar 13 21:24:23 2009 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Sat, 14 Mar 2009 04:24:23 +0000 Subject: [ns] How to Drop Packets From a Particular Sender In-Reply-To: <81DD8EA2638A554EA2DA738B270F63FA583E80@esealmw114.eemea.ericsson.se> Message-ID: Hi Mats, I agree with you. In fact, function drop(p) will check whether the packet is in used before dropping it. But the function drop(p) only exists for an NsObject. Objects not derived from class NsObject may not define this function. If you guys would like to use Packet::free(p), you are responsible for consistency check. Failing to do so may result in errors like segmentation fault. Best, Teerawat On 3/13/2009, "Mats Folke" wrote: > >Hi! > >Wouldn't it be kind of dangerous to drop the packet using the first method described? The packet would jsut disappear and the logs would not be consistent. I would recommend using the latter method > >drop(p) > >instead. This makes the logging consistent and almost all objects I've come across where I would like to drop packets have been Connector objects. > >Best regards, >Mats Folke > >Teerawat Issariyakul wrote: >> Hi, >> >> Suppose you have a pointer "p". You can drop the packet by executing >> >> >> Packet::free(p) >> >> Also the packet "*p" can be dropped from within the Connector object >> by invoking function drop as follows: >> >> drop(p); >> >> >> Note that "drop(p)" is a function of class Connector, and therefore >> must be invoked from within the scope of class Connector. >> >> I posted how to drop a a packet in the following blog: >> >> http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html >> >> For more information about Connector and Packet, see Chapters 5 and 8, >> respectively, in the following book from Springer: >> >> T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator >> NS2", Springer 2008. >> http://www.springer.com/engineering/signals/book/978-0-387-71759-3 >> >> You may also find the following website useful: >> http://www.ece.ubc.ca/~teerawat/NS2.htm >> >> On 3/13/2009, "muralikrishna g" wrote: >> >>> >>> Hi to all.. >>> >>> i am using ns-2.33, here in my work i have to drop packets from a >>> particular sender, i am planing to drop packets depending on the >>> sender node_id >>> >>> please help me regarding this.. >>> >>> by >>> >>> Muralikrishna Gaddam (muralikrishna4g at gmail.com) > > > >-- >Mats Folke, M.Sc., Lic.Eng. >Research Engineer > >Ericsson AB Office: +46 10 7171385 >Ericsson Research Fax: +46 920 99621 >P.O. Box 920 Mobile: +46 76 1271385 >SE-971 28 Lule? >Sweden > From tomh at tomh.org Fri Mar 13 21:33:38 2009 From: tomh at tomh.org (Tom Henderson) Date: Fri, 13 Mar 2009 21:33:38 -0700 Subject: [ns] How to do LEO satellite simulation with many GSL terminals ?? Message-ID: <49BB33A2.1050003@tomh.org> lukman_hanif at yahoo.com wrote: > Hi, > > Does anybody knows how to do LEO satellite simulation with many GSL > terminals on the source side and many GSL terminals on the destination > side ?? For example if i want to have 3 polar GSL terminal (S1, S2, S3) > at the source side and 3 polar GSL terminal (D1, D2, D3) at the > destination side, how to make sure that S1 is in connection with D1, S2 > with D2 , and S3 with D3 ?? Can you clarify what you mean by "S1 is in connection with D1"? Do you mean that traffic flows from S1 to D1? So far in the ns manual & examples only show > satellite simulation with one-to-one GSL terminal connection, but is > there possible to simulate many-to-many GSL terminal connections in LEO > satellite network ?? > It is possible to have many ground terminals associated with a single satellite. I am not sure what you mean by "many-to-many GSL terminal connections"; can you clarify? Tom From khattakmuazzam at gmail.com Fri Mar 13 23:37:02 2009 From: khattakmuazzam at gmail.com (muazzam ali) Date: Sat, 14 Mar 2009 11:37:02 +0500 Subject: [ns] How to write tcl Message-ID: <5d070c80903132337g7f599dcfq6f997eebbe348f66@mail.gmail.com> Hi i want to ask that how i can write a tcl file to use my own protocol for communication. On 3/14/09, ns-users-request at isi.edu wrote: > > Send Ns-users mailing list submissions to > ns-users at isi.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > ns-users-request at isi.edu > > You can reach the person managing the list at > ns-users-owner at isi.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. wireless access point (mm) > 2. How to simulate mutiple priority queues in ns-2 (Thanh D. Do) > 3. how to set threshold level to queue (muralikrishna g) > 4. upgrade ns2.32 to ns2.33 (mm) > 5. how to get queue size (muralikrishna g) > 6. Re: wireless access point (Kiran K Chauhan) > 7. Re: ns-2 on windows vista (hakki) > 8. How to get information of a node from an agent? (Truong Thuy) > 9. Neighbor List (Mayank Daga) > 10. How to send a message from one node to another node (i.e. to > send an integer value) (muralikrishna g) > 11. How to Drop Packets From a Particular Sender (muralikrishna g) > 12. Re: How to send a message from one node to another node (i.e. > to send an integer value) (Sidney Doria) > 13. Re: How to Drop Packets From a Particular Sender > (Teerawat Issariyakul) > 14. Re: How to Drop Packets From a Particular Sender (Mats Folke) > 15. TCO flag in trace file (antonioli) > 16. TCO flag in trace file (antonioli) > 17. Help!! (vap9999) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 13 Mar 2009 11:12:46 +0800 > From: mm > Subject: [ns] wireless access point > To: ns-users at ISI.EDU > Message-ID: > <6e5ba8080903122012ib207fffl9cb3bd384e791b46 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello and thank you very much for all your efforts > > Could you please tell me if NS2 (version 2.32) can support simulation of > wireless networks in infrastructure mode (it means wireless nodes connected > to a wireless access point)? > > Thanks in advance > > > ------------------------------ > > Message: 2 > Date: Thu, 12 Mar 2009 23:21:23 -0400 > From: "Thanh D. Do" > Subject: [ns] How to simulate mutiple priority queues in ns-2 > To: ns-users at ISI.EDU > Message-ID: > <96c42cba0903122021j64e53151v52875156a90e4fff at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi folks, > > I am a newbie with ns-2. I have a problem of simulating multiple > priority queues. > > In Linux, normally, there is a socket buffer corresponding to each > connection. Data streaming into each socket buffer is encapsulated > into packets which obtain TCP headers and IP headers. Throughout this > processing, the packet streams corresponding to each connection is > kept separate. Finally, there is a single ??priority queue?, into > which all streams feed. All streams that have data ready to send take > equal turns draining into the priority queue. (FAIR) > > There is another possible approach. Instead of a single priority queue > (transmit queue), there are 16 priority queues. These are called bands > and they range in number from 0 to 15, where band 15 has lowest > priority and band 0 has highest priority. All the connections of i > priority feed fairly into the i th priority queue. (SPRT). > > I have attached a figure describing these two approaches. > > My question is, is it possible to simulate both FAIR and SPRT in ns-2. > Could you guys give me some hints how to do that? > > I really appreciate any suggestion. > > Sincerely, > Thanh > > ------------------------------ > > Message: 3 > Date: Fri, 13 Mar 2009 10:01:34 +0530 > From: muralikrishna g > Subject: [ns] how to set threshold level to queue > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > how to set a threshold level to queue in a router.. and if the threshold > level is reached i have to send a message to upstream router.. how to do > it.. please help me.. i am in need > > thank you > > > ------------------------------ > > Message: 4 > Date: Fri, 13 Mar 2009 13:03:53 +0800 > From: mm > Subject: [ns] upgrade ns2.32 to ns2.33 > To: ns-users at ISI.EDU > Message-ID: > <6e5ba8080903122203i4a4731f3mb4b2e742864e9e0f at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello and thanks a lot > > I have installed ns2.32 on ubuntu7.10 now I want to upgrade my ns2 to > NS2.33. could you please tell me how can I upgrade that? > > Thanks in advance > > > ------------------------------ > > Message: 5 > Date: Fri, 13 Mar 2009 11:59:21 +0530 > From: muralikrishna g > Subject: [ns] how to get queue size > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > if the queue size is reached to a threshold level i have to intimate the > upstream router.. in this case how do i get the queue size > > i have set a threshold value q_threshold > > if(queue_size=q_threshold){ > > take an > action to intimate the upstream router > > > } > > > ------------------------------ > > Message: 6 > Date: Fri, 13 Mar 2009 13:03:15 +0530 > From: Kiran K Chauhan > Subject: Re: [ns] wireless access point > To: mm , ns-users at ISI.EDU > Message-ID: > <9d53a7ed0903130033p13e12b4ai4e5478538e24003d at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > Yes NS2 does support that, use ns2.33 version. > > Sample code given in that is infrs.tcl > > Kiran > > On Fri, Mar 13, 2009 at 8:42 AM, mm wrote: > > > > > Hello and thank you very much for all your efforts > > > > Could you please tell me if NS2 (version 2.32) can support simulation of > > wireless networks in infrastructure mode (it means wireless nodes > connected > > to a wireless access point)? > > > > Thanks in advance > > > > > > -- > > ........................................................................................................................................................ > Every footstep in life is full of possibilities we just need to know our > ability to explore them > > ........................................................................................................................................................ > > ........................................................................................................................................................ > > > ------------------------------ > > Message: 7 > Date: Fri, 13 Mar 2009 03:01:43 -0700 (PDT) > From: hakki > Subject: Re: [ns] ns-2 on windows vista > To: ns-users at ISI.EDU > Message-ID: <22493352.post at talk.nabble.com> > Content-Type: text/plain; charset=UTF-8 > > > Dear Sidney, > I have been trying to install ns-2.27 to my machine runs under vista home. > Even I have downloaded all the packages of cygwin, I could not install > ns-2.27. I installed also hidden packages in cygwin. Moreover, while I have > been trying to install ns-2.27, there does not appear a such message `... > package not found'. However, during the installation it gives a such > message > "tclcl-1.15 make failed!", Exiting. I chechked all my packages, whether I > have installed or not, using the cygwin setup and choosing view section, > there does not appear any package to install. Do you have any opinion or > suggestion? > > best > hakki > > > > Sidney Doria wrote: > > > > > > I'm using cygwin 1.5.24 and ns-2 2.31 on Vista Home Premium. There > > was no problem on installing it, but a few test have failed on > > validation (as promessed in the tutorial). > > > > I recomend you to use all-in-one package and install a full cygwin > > (default installation does't install some packages needed). > > > > > > Sidney Doria > > > > > > 2007/6/6, Karun Dambiec : > >> > >> Hi, > >> > >> Im about to upgrade to Windows Vista if all my software is compatible. > >> > >> Has anybody used Cygwin and NS-2 on Vista? If you have, did you have any > >> problems with it? > >> > >> > >> > >> Regards > >> > >> Karun Dambiec > >> > >> > > > > > > -- > > Sidney Doria > > Redes ad hoc m?veis > > Mestrado em Computa??o > > UFCG > > Brasil > > > > "Nessa jornada, o conhecimento ser? o seu escudo..." > > (Mestre dos Magos no epis?dio do grimoire de ouro) > > > > > > > > -- > View this message in context: > http://www.nabble.com/ns-2-on-windows-vista-tp10987280p22493352.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > > ------------------------------ > > Message: 8 > Date: Fri, 13 Mar 2009 10:37:49 +0000 > From: Truong Thuy > Subject: [ns] How to get information of a node from an agent? > To: ns-users at ISI.EDU > Message-ID: > <89d26f2f0903130337i724e7384x44386494b621f65d at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Dear All, > > I'm implementing a routing protocol that explores the mobility of a node. > >From the new agent, I want some information of a node such as speed, > location, ... > Just wondering how I can use getter methods of Node.c inside my NewAgent.c? > Please help. Thanks milllion. > > -- > Regards, > Thuy > > > ------------------------------ > > Message: 9 > Date: Fri, 13 Mar 2009 17:46:21 +0700 > From: Mayank Daga > Subject: [ns] Neighbor List > To: ns-users at ISI.EDU > Message-ID: > <8bb0d1210903130346s37307797m3d82e260467a79c5 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hey all, > > Please let me know, how to access the Neighbor List of any mobile node. It > is imperative for my project work and I am not being to able to find it. > I found a function addNeighbor(node) in node.cc but it seems that it is not > called from anywhere. Then how are neighbors being maintained. > > Please help. > > -- > Regards, > Mayank Daga > Senior Undergraduate Student, > Department of Information Technology, > National Institute of Technology, Durgapur, > India > > > ------------------------------ > > Message: 10 > Date: Fri, 13 Mar 2009 18:57:31 +0530 > From: muralikrishna g > Subject: [ns] How to send a message from one node to another node > (i.e. to send an integer value) > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > i am using ns-2.33, here i have to send a message (i.e. to send an > integer value) from one node to another node, is it possible in tcl > script itself.. or i have to go for c++ > > please help me regarding this, > > by > > Muralikrishna Gaddam (muralikrishna4g at gmail.com) > > > > ------------------------------ > > Message: 11 > Date: Fri, 13 Mar 2009 19:02:30 +0530 > From: muralikrishna g > Subject: [ns] How to Drop Packets From a Particular Sender > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi to all.. > > i am using ns-2.33, here in my work i have to drop packets from a > particular sender, i am planing to drop packets depending on the > sender node_id > > please help me regarding this.. > > by > > Muralikrishna Gaddam (muralikrishna4g at gmail.com) > > > > ------------------------------ > > Message: 12 > Date: Fri, 13 Mar 2009 10:54:56 -0300 > From: Sidney Doria > Subject: Re: [ns] How to send a message from one node to another node > (i.e. to send an integer value) > To: muralikrishna g > Cc: NS-mail > Message-ID: > <1bc975700903130654q3f0c1f7bhbddf24f41edc9cc4 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Gaddam, > > this is the FIRST BASIC step when you learning NS-2. You can find lots > of information about this, here: > > - asking google; > - reading NS-2 manual; > - tutorials in the NS-2 wiki; > - on the book "Introduction to Network Simulator NS-2". > > But we know how difficult are the first steps! So, this tutorial can > help with scripts (in OTcl) or how to code (in C++) to send and > receive packets in NS-2: > > http://masimum.inf.um.es/nsrt-howto/pdf/nsrt-howto.pdf > > That tutorial is for WIRELESS networks. If you want for Wired > networks, I suggest you the Marc Greiss's tutorial (Section IV): > > http://www.isi.edu/nsnam/ns/tutorial/ > > > Sidney Doria > UFCG / BRAZIL > > > 2009/3/13 muralikrishna g : > > > > hi to all.. > > > > i am using ns-2.33, here i have to send a message (i.e. to send an > > integer value) from one node to another node, is it possible in tcl > > script itself.. or i have to go for c++ > > > > please help me regarding this, > > > > by > > > > Muralikrishna Gaddam (muralikrishna4g at gmail.com) > > > > > > > > -- > Sidney Doria > Redes ad hoc m?veis > Doutorado em Computa??o > UFCG > Brasil > > "Nessa jornada, o conhecimento ser? o seu escudo..." > (Mestre dos Magos no epis?dio do grimoire de ouro) > > > > ------------------------------ > > Message: 13 > Date: Fri, 13 Mar 2009 14:50:19 +0000 > From: "Teerawat Issariyakul" > Subject: Re: [ns] How to Drop Packets From a Particular Sender > To: muralikrishna4g at gmail.com, ns-users at ISI.EDU > Message-ID: > Content-Type: text/plain; charset=ISO-8859-1 > > > Hi, > > Suppose you have a pointer "p". You can drop the packet by executing > > > Packet::free(p) > > Also the packet "*p" can be dropped from within the Connector object by > invoking function drop as follows: > > drop(p); > > > Note that "drop(p)" is a function of class Connector, and therefore > must be invoked from within the scope of class Connector. > > I posted how to drop a a packet in the following blog: > > http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html > > For more information about Connector and Packet, see Chapters 5 and 8, > respectively, in the following book from Springer: > > T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator > NS2", Springer 2008. > http://www.springer.com/engineering/signals/book/978-0-387-71759-3 > > You may also find the following website useful: > http://www.ece.ubc.ca/~teerawat/NS2.htm > > On 3/13/2009, "muralikrishna g" wrote: > > > > >Hi to all.. > > > >i am using ns-2.33, here in my work i have to drop packets from a > >particular sender, i am planing to drop packets depending on the > >sender node_id > > > >please help me regarding this.. > > > >by > > > >Muralikrishna Gaddam (muralikrishna4g at gmail.com) > > > > > > ------------------------------ > > Message: 14 > Date: Fri, 13 Mar 2009 16:12:53 +0100 > From: "Mats Folke" > Subject: Re: [ns] How to Drop Packets From a Particular Sender > To: > Message-ID: > < > 81DD8EA2638A554EA2DA738B270F63FA583E80 at esealmw114.eemea.ericsson.se> > Content-Type: text/plain; charset="iso-8859-1" > > Hi! > > Wouldn't it be kind of dangerous to drop the packet using the first method > described? The packet would jsut disappear and the logs would not be > consistent. I would recommend using the latter method > > drop(p) > > instead. This makes the logging consistent and almost all objects I've come > across where I would like to drop packets have been Connector objects. > > Best regards, > Mats Folke > > Teerawat Issariyakul wrote: > > Hi, > > > > Suppose you have a pointer "p". You can drop the packet by executing > > > > > > Packet::free(p) > > > > Also the packet "*p" can be dropped from within the Connector object > > by invoking function drop as follows: > > > > drop(p); > > > > > > Note that "drop(p)" is a function of class Connector, and therefore > > must be invoked from within the scope of class Connector. > > > > I posted how to drop a a packet in the following blog: > > > > http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html > > > > For more information about Connector and Packet, see Chapters 5 and 8, > > respectively, in the following book from Springer: > > > > T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator > > NS2", Springer 2008. > > http://www.springer.com/engineering/signals/book/978-0-387-71759-3 > > > > You may also find the following website useful: > > http://www.ece.ubc.ca/~teerawat/NS2.htm > > > > On 3/13/2009, "muralikrishna g" wrote: > > > >> > >> Hi to all.. > >> > >> i am using ns-2.33, here in my work i have to drop packets from a > >> particular sender, i am planing to drop packets depending on the > >> sender node_id > >> > >> please help me regarding this.. > >> > >> by > >> > >> Muralikrishna Gaddam (muralikrishna4g at gmail.com) > > > > -- > Mats Folke, M.Sc., Lic.Eng. > Research Engineer > > Ericsson AB Office: +46 10 7171385 > Ericsson Research Fax: +46 920 99621 > P.O. Box 920 Mobile: +46 76 1271385 > SE-971 28 Lule? > Sweden > > > > ------------------------------ > > Message: 15 > Date: Fri, 13 Mar 2009 09:10:17 -0700 (PDT) > From: antonioli > Subject: [ns] TCO flag in trace file > To: ns-users at ISI.EDU > Message-ID: <22499739.post at talk.nabble.com> > Content-Type: text/plain; charset=us-ascii > > > Hi, > I'm studing some aspects handover over heterogeneous networks, in > particularly the IEEE 802.21. > I have already installed ns2 with 802.21 module (from NIST) and simulated > some scenarios and found a "NCO" in trace file. > > Can tell me significance of the "NCO" (after -Nw) drop reason? > > All help or support will be very helpful. > -- > View this message in context: > http://www.nabble.com/TCO-flag-in-trace-file-tp22499739p22499739.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 16 > Date: Fri, 13 Mar 2009 09:11:05 -0700 (PDT) > From: antonioli > Subject: [ns] TCO flag in trace file > To: ns-users at ISI.EDU > Message-ID: <22499739.post at talk.nabble.com> > Content-Type: text/plain; charset=us-ascii > > > Hi, > I'm studing some aspects handover over heterogeneous networks, in > particularly the IEEE 802.21. > I have already installed ns2 with 802.21 module (from NIST) and simulated > some scenarios and found a "NCO" in trace file. > > Could somebody explain to me significance of the "NCO" (after -Nw) drop > reason? > > All help or support will be very helpful. > -- > View this message in context: > http://www.nabble.com/TCO-flag-in-trace-file-tp22499739p22499739.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 17 > Date: Fri, 13 Mar 2009 14:26:24 -0700 (PDT) > From: vap9999 > Subject: [ns] Help!! > To: ns-users at ISI.EDU > Message-ID: <22503305.post at talk.nabble.com> > Content-Type: text/plain; charset=us-ascii > > > After I run my tcl, it shows the following error, someone, please, give me > a > hint why that happened? > > Thanks so much! > > --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- > _o107: no target for slot -1 > _o107 type: Classifier/Hash/Dest > content dump: > classifier _o107 > 0 offset > 0 shift > 2147483647 mask > 1 slots > slot 5: _o566 (Classifier/Port) > -1 default > ---------- Finished standard no-slot{} default handler ---------- > > -- > View this message in context: > http://www.nabble.com/Help%21%21-tp22503305p22503305.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > ------------------------------ > > _______________________________________________ > Ns-users mailing list > Ns-users at isi.edu > http://mailman.isi.edu/mailman/listinfo/ns-users > > > End of Ns-users Digest, Vol 63, Issue 13 > **************************************** > From muralikrishna4g at gmail.com Fri Mar 13 23:49:00 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Sat, 14 Mar 2009 12:19:00 +0530 Subject: [ns] how to get queue_size at run time Message-ID: hi to all.. i am using ns-2.33, how to access the queue size at run time, is there any tcl script to get the queue size at run time, please help me regarding this.. by muralikrishna gaddam From naveenprabu32 at gmail.com Sat Mar 14 00:02:40 2009 From: naveenprabu32 at gmail.com (naveen prabu) Date: Sat, 14 Mar 2009 12:32:40 +0530 Subject: [ns] NEED HELP IN LEACH TCL Message-ID: <3eb5e9570903140002h55cf887ie8df02ea39afa796@mail.gmail.com> Hi... I generated tcl for LEACH protocol using Script generator tool in manasim framework...i am using ns 2.29..Its not working properly.....simulation time,data transfer, nam...nothing works .........................please help me........ THANKS From naveenprabu32 at gmail.com Sat Mar 14 00:15:36 2009 From: naveenprabu32 at gmail.com (naveen prabu) Date: Sat, 14 Mar 2009 12:45:36 +0530 Subject: [ns] NEED HELP IN LEACH Message-ID: <3eb5e9570903140015i66b49343hc417720b9f54417b@mail.gmail.com> nodes generate data...I need to send them to clusterheads and forward to the destination...How to do this..?i generated tcl using script generator tool available in manasim framework...(ns 2.29).. but data transfer is not taking place......... PLEASE HELP ME>>>>>>>>>>>>>>>THANKS From cdhcq at hotmail.com Sat Mar 14 02:00:13 2009 From: cdhcq at hotmail.com (cdhcq) Date: Sat, 14 Mar 2009 17:00:13 +0800 Subject: [ns] Fw: Hello Everyone Message-ID: From: cdhcq Sent: Saturday, March 14, 2009 10:28 AM To: ns-users at isi.edu Subject: Hello Everyone Dear All: I have a problem when I test the mflood example. Now I send you the problem I have faced! Please help me! thanks some related files are as follows: mflood-3nodes.tcl mflood-seqtable.h mflood.cc mflood-packet.h mflood.h mflood-seqtable.cc -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mflood.cc Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20090314/493337de/mflood.ksh -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mflood.h Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20090314/493337de/mflood.h -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mflood-packet.h Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20090314/493337de/mflood-packet.h -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mflood-seqtable.cc Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20090314/493337de/mflood-seqtable.ksh -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mflood-seqtable.h Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20090314/493337de/mflood-seqtable.h From naveenprabu32 at gmail.com Sat Mar 14 08:17:31 2009 From: naveenprabu32 at gmail.com (naveen prabu) Date: Sat, 14 Mar 2009 20:47:31 +0530 Subject: [ns] SENDING DATA IN LEACH Message-ID: <3eb5e9570903140817w70cdd584k2b6c20dd07bded48@mail.gmail.com> Hi... I generated tcl for LEACH protocol using Script generator tool in manasim framework...i am using ns 2.29..Its not working properly.....simulation time,data transfer, nam...nothing works .........................please help me........ THANKS From munir.arslan at yahoo.com Sat Mar 14 08:36:27 2009 From: munir.arslan at yahoo.com (Arslan Munir) Date: Sat, 14 Mar 2009 08:36:27 -0700 (PDT) Subject: [ns] Packet dropping with multiple agents Message-ID: <718114.83985.qm@web45902.mail.sp1.yahoo.com> Hi all, I have two nodes with different source agents for UDP but sink is same for the two. In the simulation most of the packets get dropped. I have tried changing the node positions making them sufficiently close so that transmission range couldn't be problem but still getting most of packets dropped. Please let me know if anybody has the solution. Thanks Arslan From mrbalador at yahoo.com Sat Mar 14 09:05:38 2009 From: mrbalador at yahoo.com (ali bala) Date: Sat, 14 Mar 2009 09:05:38 -0700 (PDT) Subject: [ns] installing ns in linux Message-ID: <356741.22791.qm@web45102.mail.sp1.yahoo.com> hi i worked with ns-2?under cygwin and now decide to?installing linux an after that ns-2 under linux. because xgraph and nam didnt work?under cygwin. now i?need help for installing linux which version is good for ns??(for example suse,redhat,.....) whats the diffrence? between versions for ns-2? whats the methode of installing with winxp? i should install?both of them (winxp and linux) thanks ?mr.ali.balador homepage:www.balador.org From mrbalador at yahoo.com Sat Mar 14 13:17:01 2009 From: mrbalador at yahoo.com (balador) Date: Sat, 14 Mar 2009 13:17:01 -0700 (PDT) Subject: [ns] FW: Query regarding nam Message-ID: <22421274.post@talk.nabble.com> hi its my problem. V K rathi wrote: > > > > > > > > > > > Respected members, > > I have installed ns-2.33 on cygwin on my vista home basic laptop. > > while running simple example programs, I get error, > > $ nam: no display name and no $DISPLAY environment variable. > > > > I tried set it with export DSIPLAY=:0.0 > > it gives error > > $ nam: couldn't connect to display "0.0" > > I also tried startx before running programs, it gives following error, > > $ nam: > > [code omitted because of length] > > : no event type or button # or keysym > > while executing > > "bind Listbox { > > %W yview scroll [expr {- (%D / 120) * 4}] units > > }" > > invoked from within > > "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} > { > > bind Listbox { > > %W yview scroll [expr {- (%D)}] units > > } > > bind Li..." > > > I tried xhost+ command, it says command not found. > > can anybody figure out where the problem lies? > > I am new to ns-2 as well as linux environment so please..... > > > > Thanks in anticipation. > > Regards, > > Vinod Kumar Maheshwari. > st106968 at ait.ac.th. > > > > > > Want to do more with Windows Live? Learn ?10 hidden secrets? from Jamie. > Learn Now > _________________________________________________________________ > See how Windows connects the people, information, and fun that are part of > your life. > http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/ > > -- View this message in context: http://www.nabble.com/FW%3A-Query-regarding-nam-tp22058156p22421274.html Sent from the ns-users mailing list archive at Nabble.com. From mayank.sharma.84 at gmail.com Sat Mar 14 20:32:28 2009 From: mayank.sharma.84 at gmail.com (Mayank Sharma) Date: Sat, 14 Mar 2009 23:32:28 -0400 Subject: [ns] Ns2 error : Makefile errors In-Reply-To: <657e26ec0903141953re6647bdn477539e15aef3006@mail.gmail.com> References: <657e26ec0903141953re6647bdn477539e15aef3006@mail.gmail.com> Message-ID: <657e26ec0903142032j4199cafcg1f3d95e0f64d8a0e@mail.gmail.com> Hi, I am new to the ns2 community. I was implementing the Mark Greis implemetation of the new ping protocol for my ns-2.33 on Ubuntu 8.04. Everything from creating a new header file, C++ code and relevant changes to the ns source files have been done. The tutorial says "*Remember that you have to do a 'make depend' before you do the 'make', otherwise these two files might not be recompiled" *where we have added new packet information to the packet.h file. Now I want to ask that whether I should run a makedepend for packet.h to recompile it ( in that case it is giving me an error that no Makefile present) , or to run a makedepend on ping.h and ping.cc ( in case of that it gives me warning like this for all header files included : *makedepend: warning: ping.cc (reading ping.h, line 51): cannot find include file "packet.h" not in packet.h not in packet.h not in /usr/include/packet.h *) Ignoring this warning, when I type in make it says : *Makefile:361: *** missing separator. Stop.* I am stuck . Kindly help Regards, Mayank Sharma From gaurav.84in at gmail.com Sat Mar 14 21:29:48 2009 From: gaurav.84in at gmail.com (Gaurav Joshi) Date: Sun, 15 Mar 2009 00:29:48 -0400 Subject: [ns] Ns2 error : Makefile errors In-Reply-To: <657e26ec0903142032j4199cafcg1f3d95e0f64d8a0e@mail.gmail.com> References: <657e26ec0903141953re6647bdn477539e15aef3006@mail.gmail.com> <657e26ec0903142032j4199cafcg1f3d95e0f64d8a0e@mail.gmail.com> Message-ID: Mayank, Try "touch (filename.h)". remember if you are changing any thing in header file then this should be ok. But if you are changing anything in in .cc file then you should do "make clean; make". Gaurav On Sat, Mar 14, 2009 at 11:32 PM, Mayank Sharma wrote: > > Hi, > > I am new to the ns2 community. I was implementing the Mark Greis > implemetation of the new ping protocol for my ns-2.33 on Ubuntu 8.04. > Everything from creating a new header file, C++ code and relevant changes > to > the ns source files have been done. > The tutorial says "*Remember that you have to do a 'make depend' before you > do the 'make', otherwise these two files might not be recompiled" *where we > have added new packet information to the packet.h file. > > Now I want to ask that whether I should run a makedepend for packet.h to > recompile it ( in that case it is giving me an error that no Makefile > present) , or to run a makedepend on ping.h and ping.cc ( in case of that > it > gives me warning like this for all header files included : > *makedepend: warning: ping.cc (reading ping.h, line 51): cannot find > include file "packet.h" > not in packet.h > not in packet.h > not in /usr/include/packet.h > *) > > Ignoring this warning, when I type in make it says : > *Makefile:361: *** missing separator. Stop.* > > I am stuck . Kindly help > > Regards, > > Mayank Sharma > -- Warm regards, Gaurav Joshi +1-352-214-2527 From cyahaya at gmail.com Sat Mar 14 22:54:21 2009 From: cyahaya at gmail.com (COULIBALY Yaya) Date: Sat, 14 Mar 2009 21:54:21 -0800 Subject: [ns] NAM Problem In-Reply-To: <200903150505.n2F55cnG013845@gamma.isi.edu> References: <200903150505.n2F55cnG013845@gamma.isi.edu> Message-ID: Hi All, I am using ns-d veresion 2.33 on Redhat Entreprise server 5.0 I hav installed and vaildated this version. However, when trying to execute the example1.tcl of the tutorial by Mark, I go the following error message:" ns finish: couldn't execute "nam": no such file or directory while executing "exec nam out.nam &" (procedure "finish" line 7) invoked from within "finish" After validating the installation, I got this message :"validate overall report: all tests passed But still, I am not able to go through with the first example1.tcl. Any suggetions. ************************ COULIBALY Yahaya PhD Candidate Faculty of Computer Science & Information Systems Department of Communication & Computer Systems Malaysia University of Technology (UTM) 81310 Skudai, Johor Bahru, Johor Cell: 0060196886615 From kiran.cabs at gmail.com Sat Mar 14 23:54:29 2009 From: kiran.cabs at gmail.com (Kiran K Chauhan) Date: Sun, 15 Mar 2009 12:24:29 +0530 Subject: [ns] NAM Problem In-Reply-To: References: <200903150505.n2F55cnG013845@gamma.isi.edu> Message-ID: <9d53a7ed0903142354h7021f5b9q212ea1bdb2ee61ca@mail.gmail.com> Hi, The reason for getting this error is : Path is not set for NAM file. What you need to do is set the path as: NAM=/root/Download/ns-allinone-2.33/nam-1.13/ PATH=$PATH:$NAM You can also execute the nam simply by giving the nam path as exec /root/Download/ns-allinone-2.33/nam-1.13/nam file.nam Regards Kiran On Sun, Mar 15, 2009 at 11:24 AM, COULIBALY Yaya wrote: > > Hi All, > > I am using ns-d veresion 2.33 on Redhat Entreprise server 5.0 > > I hav installed and vaildated this version. However, when trying to execute > the example1.tcl of the tutorial by Mark, I go the following error > message:" > ns finish: couldn't execute "nam": no such file or directory > while executing > "exec nam out.nam &" > (procedure "finish" line 7) > invoked from within > "finish" > > After validating the installation, I got this message :"validate overall > report: all tests passed > But still, I am not able to go through with the first example1.tcl. > Any suggetions. > ************************ > COULIBALY Yahaya > PhD Candidate > Faculty of Computer Science & Information Systems > Department of Communication & Computer Systems > Malaysia University of Technology (UTM) > 81310 Skudai, Johor Bahru, Johor > Cell: 0060196886615 > -- ........................................................................................................................................................ Every footstep in life is full of possibilities we just need to know our ability to explore them ........................................................................................................................................................ ........................................................................................................................................................ From teerawat at ece.ubc.ca Sun Mar 15 03:28:17 2009 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Sun, 15 Mar 2009 10:28:17 +0000 Subject: [ns] Packet dropping with multiple agents In-Reply-To: <718114.83985.qm@web45902.mail.sp1.yahoo.com> Message-ID: <4jLmSXfa.1237112897.8814830.teerawat@localhost> The packet can be dropped due to several reasons such as packet transmission error (even though the nodes are close), or buffer overflow. I think you need to check whether the packets are dropped due to buffer overflow. Best, Teerawat On 3/14/2009, "Arslan Munir" wrote: > >Hi all, > >I have two nodes with different source agents for UDP but sink is same for the two. In the simulation most of the packets get dropped. I have tried changing the node positions making them sufficiently close so that transmission range couldn't be >problem but still getting most of packets dropped. Please let me know >if anybody has the solution. Thanks > >Arslan > > > > From renuka_prabhu at rediffmail.com Sun Mar 15 04:36:11 2009 From: renuka_prabhu at rediffmail.com (renuka uday prabhu) Date: 15 Mar 2009 11:36:11 -0000 Subject: [ns] inserting node after starting simulation Message-ID: <20090315113611.26741.qmail@f4mail-235-135.rediffmail.com> ? Hello users Is there any way by which I can insert a few nodes in the middle of simulation sat at 50 or 100secs. I tried creating the node by using $ns at 100.0 "command for creating the node" But it didnt work. Please let me know Thanks in advance renuka From mrbalador at yahoo.com Sun Mar 15 05:23:34 2009 From: mrbalador at yahoo.com (ali bala) Date: Sun, 15 Mar 2009 05:23:34 -0700 (PDT) Subject: [ns] problem with ns Message-ID: <677344.607.qm@web45108.mail.sp1.yahoo.com> hi i could run xgraph under cyqwin but i see this error when i run nam under cygwin with xserver $ nam: [code omitted because of length] : no event type or button # or keysym ??? while executing "bind Listbox { %W yview scroll [expr {- (%D / 120) * 4}] units }" ??? invoked from within "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { bind Listbox { %W yview scroll [expr {- (%D)}] units } bind Li..." whats the solution?of this problem? again thanks for your attentions, ?mr.ali.balador homepage:www.balador.org From mrbalador at yahoo.com Sun Mar 15 07:53:15 2009 From: mrbalador at yahoo.com (ali bala) Date: Sun, 15 Mar 2009 07:53:15 -0700 (PDT) Subject: [ns] ns problem1 Message-ID: <49854.93254.qm@web45114.mail.sp1.yahoo.com> hi i had problem with nam (i?worke with ns-2 under cygwin) i did this steps for troubleshooting untill now : ? while running simple example programs, I get error, $ nam: no display name and no $DISPLAY environment variable. ? I tried set it with export DSIPLAY=:0.0 it gives error ? $ nam: couldn't connect to display "0.0" I also tried ?startx before running programs, it gives following error, $ nam: [code omitted because of length] : no event type or button # or keysym ? ?while executing "bind Listbox { %W yview scroll [expr {- (%D / 120) * 4}] units }" ? ?invoked from within "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { bind Listbox { %W yview scroll [expr {- (%D)}] units } bind Li..."? this is my bashrc file : ? LD_LIBRARY_PATH=/home/ALI/ns-allinone-2.33/otcl-1.13:/home/ALI/ns-allinone-2.33//lib TCL_LIBRARY=/home/ALI/ns-allinone-2.33/tcl8.4.18/library export LD_LIBRARY_PATH export TCL_LIBRARY ? and my bash_profile file : ? PATH=${HOME}/ns-allinone-2.33/bin:${PATH} but? i have problem with nam now and i see this error : ? $ nam: [code omitted because of length] : no event type or button # or keysym ??? while executing "bind Listbox { %W yview scroll [expr {- (%D / 120) * 4}] units }" ??? invoked from within "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { bind Listbox { %W yview scroll [expr {- (%D)}] units } bind Li..." ?can anybody figure out where the problem lies? (and methode for solve) thanks mr.ali.balador homepage:www.balador.org From nebfikru at yahoo.com Sun Mar 15 08:53:36 2009 From: nebfikru at yahoo.com (Nebiat) Date: Sun, 15 Mar 2009 08:53:36 -0700 (PDT) Subject: [ns] DSDV simulation Message-ID: <50989.63334.qm@web110401.mail.gq1.yahoo.com> Hi all At the moment I am simulating dsdv protocol to compare it with other modified version of dsdv so when I wanted to calculate routing overhead I was supposed to collect routing packets which includes sent and forwarded packets but my simulation doesn't show any forwarded routing packet what could be the possible remedy? Thanks in advance Nebiat From veronicadiaza at gmail.com Sun Mar 15 12:32:05 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Mon, 16 Mar 2009 01:02:05 +0530 Subject: [ns] basic code for scenarios using any of AODV, DSDV, DSR protocols other than from the tutorial ...please send Message-ID: Hiii ns users......If any one of you guys have any basic codes for nearly 50 nodes or so, using any of the protocols AODV,DSR,DSDV which have been compiled without errors (which can generate graphs for parameters mentioned) please send me.......thank in advance.... From contact.joarder at yahoo.com Sun Mar 15 17:37:02 2009 From: contact.joarder at yahoo.com (Mustafa Kamal) Date: Sun, 15 Mar 2009 17:37:02 -0700 (PDT) Subject: [ns] Range Proble...Again :( Message-ID: <973674.28559.qm@web45605.mail.sp1.yahoo.com> HA and FA stand for Home Agent and Foreign Agents which means they are Base Station node. You can define a MH (Mobile Host) like below set MH0 [$ns_ node 1.0.7] set node_(0) $MH0 set HAaddress [AddrParams addr2id [$HA node-addr]] [$MH0 set regagent_] set home_agent_ $HAaddress [$MH0 set netif_(0)] set Pt_ 0.03652 And I have already successfully worked with this script Thanks, With Best Regards, Joarder Mohammad Mustafa Kamal --- On Sat, 3/14/09, Mayank Daga wrote: From: Mayank Daga Subject: Re: [ns] Range Proble...Again :( To: "Mustafa Kamal" Date: Saturday, March 14, 2009, 1:51 PM On Sat, Mar 14, 2009 at 9:25 AM, Mustafa Kamal wrote: Can you set the radius like below [$HA set netif_(0)] set Pt_ 0.03652 [$FA01 set netif_(0)] set Pt_ 0.03652 [$FA02 set netif_(0)] set Pt_ 0.03652 [$FA03 set netif_(0)] set Pt_ 0.03652 Can you please explain as to what are HA and FA0X objects of? Which one is the node here? Are you sure that this works? You can use this list to set the radius of a node ???? Tx Range?????????? Pt_ ?????? 100m???????????? 0.00721383 ?????? 150m???????????? 0.03652 ?????? 200m???????????? 0.115421 ?????? 250m???????????? 0.28179 ?????? 300m???????????? 0.58432 Yes, I am aware of this table. Thanks, With Best Regards, Joarder Mohammad Mustafa Kamal --- On Thu, 3/12/09, Mayank Daga wrote: From: Mayank Daga Subject: [ns] Range Proble...Again :( To: "Mubashir Rehmani" , ns-users at ISI.EDU Date: Thursday, March 12, 2009, 9:12 PM Hey Mubashir, Sorry for bugging you again but I am totally clueless as to how to set the range. Since past few days, I have been trying to set the range by the setting the value of radius variable of a particular node. This is what radius variable does according to NS Manual: $mobilenode radius The radius denotes the node?s range. All mobilenodes that fall within the circle of radius with the node at its center are considered as neighbours. This info is typically used by the gridkeeper.. But, today I found out that this is not affecting the way the traffic is sent, i.e., the range is still 250m, the default value. Please help me as to how can I set the range of the nodes. This is is very much imperative for my project. Please help. -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India -- Regards, Mayank Daga Senior Undergraduate Student, Department of Information Technology, National Institute of Technology, Durgapur, India From saba717671 at hotmail.com Sun Mar 15 17:44:19 2009 From: saba717671 at hotmail.com (anas) Date: Mon, 16 Mar 2009 03:44:19 +0300 Subject: [ns] Fw: vedio traffic output e-e delay is not reasonable Message-ID: From: anas Sent: Monday, March 16, 2009 3:41 AM To: ns Subject: vedio traffic output e-e delay is not reasonable Dear all, I have used the MPEG4 traffic of TES model over DSR but the end to end delay was not reasonable it was 5 s in average please if you have any suggestion or explanation for that tell me? Anas From teerawat at ece.ubc.ca Sun Mar 15 18:35:56 2009 From: teerawat at ece.ubc.ca (Teerawat Issariyakul) Date: Mon, 16 Mar 2009 01:35:56 +0000 Subject: [ns] ns problem1 In-Reply-To: <49854.93254.qm@web45114.mail.sp1.yahoo.com> Message-ID: You need to install XServer. Go to website of Cygwin or google to find out how. Best, Teerawat On 3/15/2009, "ali bala" wrote: >hi >i had problem with nam (i?worke with ns-2 under cygwin) >i did this steps for troubleshooting untill now : >? >while running simple example programs, I get error, > >$ nam: no display name and no $DISPLAY environment variable. > >? > >I tried set it with export DSIPLAY=:0.0 > >it gives error ? > >$ nam: couldn't connect to display "0.0" > >I also tried ?startx before running programs, it gives following error, > >$ nam: > >[code omitted because of length] > >: no event type or button # or keysym > >? ?while executing > >"bind Listbox { > >%W yview scroll [expr {- (%D / 120) * 4}] units > >}" > >? ?invoked from within > >"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { > >bind Listbox { > >%W yview scroll [expr {- (%D)}] units > >} > >bind Li..."? > >this is my bashrc file : >? >LD_LIBRARY_PATH=/home/ALI/ns-allinone-2.33/otcl-1.13:/home/ALI/ns-allinone-2.33//lib >TCL_LIBRARY=/home/ALI/ns-allinone-2.33/tcl8.4.18/library >export LD_LIBRARY_PATH >export TCL_LIBRARY >? >and my bash_profile file : >? >PATH=${HOME}/ns-allinone-2.33/bin:${PATH} > >but? i have problem with nam now and i see this error : >? >$ nam: >[code omitted because of length] >: no event type or button # or keysym >??? while executing >"bind Listbox { >%W yview scroll [expr {- (%D / 120) * 4}] units >}" >??? invoked from within >"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} { >bind Listbox { >%W yview scroll [expr {- (%D)}] units >} >bind Li..." >?can anybody figure out where the problem lies? (and methode for solve) >thanks >mr.ali.balador >homepage:www.balador.org > > > ) From swaroopshere at yahoo.co.in Sun Mar 15 19:31:54 2009 From: swaroopshere at yahoo.co.in (Swaroop Shere) Date: Mon, 16 Mar 2009 08:01:54 +0530 (IST) Subject: [ns] How to ensure expire() function in MyTimer is called? Message-ID: <22538.45921.qm@web95404.mail.in2.yahoo.com> Hi, ???? I am writing a new agent (lets call it VabAgent) and implementing a custom timer class (MyTimer : public TimerHandler). I have implemented the expire function like this -----------------------start code snippet------------------------------ MyTimer::expire(Event *e){ ??? a_->broadcast(); ??? if(!a_->returnhasDestination()) ??? ??? return 1000; ??? else ??? ??? return TIMER_HANDLED; } --------------------end code snippet----------------------------------- where returnhasDestination is a public method of VabAgent. Now, do I have to explicitly call the expire function or it is called automatically? I hope I am clear in my question. regards, Swaroop Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From swaroopshere at yahoo.co.in Sun Mar 15 19:45:20 2009 From: swaroopshere at yahoo.co.in (Swaroop Shere) Date: Mon, 16 Mar 2009 08:15:20 +0530 (IST) Subject: [ns] How to ensure expire() function in MyTimer is called? Message-ID: <386129.48320.qm@web95405.mail.in2.yahoo.com> Hi, ???? I am writing a new agent (lets call it VabAgent) and implementing a custom timer class (MyTimer : public TimerHandler). I have implemented the expire function like this -----------------------start code snippet------------------------------ MyTimer::expire(Event *e){ ??? a_->broadcast(); ??? if(!a_->returnhasDestination()) ??? ??? return 1000; ??? else ??? ??? return TIMER_HANDLED; } --------------------end code snippet----------------------------------- where returnhasDestination is a public method of VabAgent. Now, do I have to explicitly call the expire function or it is called automatically? I hope I am clear in my question. regards, Swaroop From Chandigarh to Chennai - find friends all over India. Go to http://in.promos.yahoo.com/groups/citygroups/ From muralikrishna4g at gmail.com Sun Mar 15 20:25:50 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Mon, 16 Mar 2009 08:55:50 +0530 Subject: [ns] how to send message from one node to another node Message-ID: hi to all.. i am searching for a solution.. i have to send an integer number from one node to another node.. how to make it please tell in detail.. i am in need thank u From smusabekov at gmail.com Sun Mar 15 20:51:54 2009 From: smusabekov at gmail.com (Sarvar Bakhramovich Musabekov) Date: Mon, 16 Mar 2009 08:51:54 +0500 Subject: [ns] Problem while executing example script wireless.tcl (directory: ~ns/tcl/ex/simple-wireless.tcl) on NS-2.33 In-Reply-To: References: Message-ID: Dear All, I have installed NS-2.33 on VM RHat Linux 4 and tried to run exp script wireless.tcl and got following error: could't read file "../lib/ns-bsnode.tcl": no such file or directory while executing -----> I have checked there is such file source.orig ../lib/ns-bsnode.tcl ("uplevel" body line 1) invoked from within " if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ..." (procedure "source" line 8) invoked from within "source ../lib/ns-bsnode.tcl" (file "wireless.tcl" line 191) ============================ If someone knows or faced this problem before could you pls give me suggestion on how to solve this problem or URL for my further study. Best wishes, Sarvar From muralikrishna4g at gmail.com Sun Mar 15 21:02:44 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Mon, 16 Mar 2009 09:32:44 +0530 Subject: [ns] makefile compilation Message-ID: hi to all.. i am using NS-2.33, now i made changes to classifier.cc and queue.cc, to get these changes in to effect i have to compile.. but i don't have idea on how to compile after modifications.. please help me regarding this.. by Muralikrishna Gaddam From rajstha2006 at gmail.com Sun Mar 15 21:45:19 2009 From: rajstha2006 at gmail.com (Rainn) Date: Sun, 15 Mar 2009 21:45:19 -0700 Subject: [ns] velocity and direction of mobile nodes Message-ID: <7b8896aa0903152145g56a4b9ady3fba148f79cc91f1@mail.gmail.com> Dear all, I need to manipulate velocity and direction of mobile nodes in ns-2. Could anyone please help me out "CODE" to manipulate this. It's urgent ..... Thanks in advance. Have a good days always. From paraguayita_69 at hotmail.com Sun Mar 15 22:23:06 2009 From: paraguayita_69 at hotmail.com (Diana Benitez) Date: Mon, 16 Mar 2009 01:23:06 -0400 Subject: [ns] problem with ftp stop and TCP Message-ID: Hello everybody; I have teh following situation. A ftp agent stops but the TCP continues working. How this is possible? Do someone how to stop a TCP agent when the ftp stops? Thanks in advance, DIANA. _________________________________________________________________ Hotmail? is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009 From phenix_yw at hhu.edu.cn Sun Mar 15 23:02:46 2009 From: phenix_yw at hhu.edu.cn (Phenix) Date: Mon, 16 Mar 2009 14:02:46 +0800 Subject: [ns] velocity and direction of mobile nodes References: <437178646.09683@hhu.edu.cn> Message-ID: <437182311.01066@eyou.net> Hi Rainn, I only know how to get the velocity and direction vector, as below: MobileNode * pMNode ; .... speed = pMNode->speed(); dx = pMNode->dX(); dy = pMNode->dY(); I also want to know how to control the movement of mobile nodes, such as, nodes stop moving at a specific time. If anybody know, pls let me know. Thank you! Regards, Phenix -------------------------------------------------- From: "Rainn" Sent: Monday, March 16, 2009 12:45 PM To: Subject: [ns] velocity and direction of mobile nodes > > Dear all, > > I need to manipulate velocity and direction of mobile nodes in ns-2. Could > anyone please help me out "CODE" to manipulate this. > It's urgent ..... > Thanks in advance. > Have a good days always. > From kasspro at gmail.com Mon Mar 16 01:36:28 2009 From: kasspro at gmail.com (kassahun Endris) Date: Mon, 16 Mar 2009 16:36:28 +0800 Subject: [ns] Path Optimality awk/perl script! Message-ID: <1245d5e80903160136i7457c979q9565bc1145aeaca9@mail.gmail.com> Hello! Is there any one have Path Optimality/ actual path (hops) taken by the packets, awk/perl script? I could found any of this = script in the web. Thank you in advance. Best regards, Kass From muralikrishna4g at gmail.com Mon Mar 16 02:23:16 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Mon, 16 Mar 2009 14:53:16 +0530 Subject: [ns] how to get node_id in classifier.cc in wired network simulation Message-ID: hi to all.. i am in need to have node_id of a node in classifier.cc, so that i can add new functionality to a node.. so please help me how to get node_id in classifier by muralikrishna From mcsist at yahoo.com Mon Mar 16 02:31:34 2009 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Mon, 16 Mar 2009 02:31:34 -0700 (PDT) Subject: [ns] how to get node_id in classifier.cc in wired network simulation In-Reply-To: References: Message-ID: <647286.11385.qm@web55001.mail.re4.yahoo.com> use net_id.dump(), this is the code used by the trace mechanism ________________________________ From: muralikrishna g To: NS-mail Sent: Monday, March 16, 2009 11:23:16 AM Subject: [ns] how to get node_id in classifier.cc in wired network simulation hi to all.. i am in need to have node_id of a node in classifier.cc, so that i can add new functionality to a node.. so please help me how to get node_id in classifier by muralikrishna From mcsist at yahoo.com Mon Mar 16 02:54:39 2009 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Mon, 16 Mar 2009 02:54:39 -0700 (PDT) Subject: [ns] how to get node_id in classifier.cc in wired network simulation In-Reply-To: References: <647286.11385.qm@web55001.mail.re4.yahoo.com> Message-ID: <432377.15795.qm@web55003.mail.re4.yahoo.com> I advice you to implement some simple scenarios with smaller number of nodes also try to analaysis the output file. In wireless environment there are multi node working. All the best, Mohammed AbuHajar ________________________________ From: muralikrishna g To: Mohammed Abu Hajar Sent: Monday, March 16, 2009 11:49:15 AM Subject: Re: [ns] how to get node_id in classifier.cc in wired network simulation hi sir.. everybody tell me that to use net_id.dump( ), but my problem is that i have to check the classifier for which node it is presently working.. no all the nodes.. so there by i compare the node_id with required node_id, if it satisfies i can make a special function to that node by some if condition.. sir,.. please help me regarding this.. thank u sir On 3/16/09, Mohammed Abu Hajar wrote: > use net_id.dump(), this is the code used by the trace mechanism > > > > ________________________________ > From: muralikrishna g > To: NS-mail > Sent: Monday, March 16, 2009 11:23:16 AM > Subject: [ns] how to get node_id in classifier.cc in wired network > simulation > > > hi to all.. > > i am in need to have node_id of a node in classifier.cc, so that i can > add new functionality to a node.. so please help me how to get node_id > in classifier > > by > > muralikrishna > > > From spyros_mar at yahoo.gr Mon Mar 16 04:49:19 2009 From: spyros_mar at yahoo.gr (Spyros Marinis) Date: Mon, 16 Mar 2009 11:49:19 +0000 (GMT) Subject: [ns] How to get the transmit power of a mobile node? Message-ID: <955042.15957.qm@web25502.mail.ukl.yahoo.com> Hi all! Could anyone tell me how I can get the transmit power of a mobile node from the C++ code? I mean the one that is defined by: Phy/WirelessPhy set Pt_ 4.5099 in the tcl script. I used the? bsWlan->radius() to calculate it from there, but it gives me zero..... I have used different Pt_ levels for various nodes. Is there also a way to get the RTXThreshold from c++? Thank you very much in advance, Spyros ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From lucas_max2002 at yahoo.es Mon Mar 16 05:08:01 2009 From: lucas_max2002 at yahoo.es (Douglas Restrepo) Date: Mon, 16 Mar 2009 05:08:01 -0700 (PDT) Subject: [ns] LEACH for ns2 Message-ID: <479981.937.qm@web24608.mail.ird.yahoo.com> Hi Forum... Can some body tell me if there are some implementation of LEACH for NS2. Thankyou From mahen2004_tce at yahoo.com Mon Mar 16 05:35:28 2009 From: mahen2004_tce at yahoo.com (Mahendran) Date: Mon, 16 Mar 2009 18:05:28 +0530 (IST) Subject: [ns] ns2.1b9a installation Message-ID: <302305.5784.qm@web94908.mail.in2.yahoo.com> I am Mahen ? I am trying to install ns2.1b9agcc32 with cygwin.i used the cygwin patch file.i got the following error.otcl configuration failed.can u help me installing ns2.1b9a.give me the procedure and how to rectify the error. ? Whether ns2.1b9a can be installed with visual studio.help me. ? waiting for ur reply. from Mahen mahen2004_tce at yahoo.com Cricket on your mind? Visit the ultimate cricket website. Enter http://beta.cricket.yahoo.com From mmm59 at aub.edu.lb Mon Mar 16 05:42:43 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Mon, 16 Mar 2009 14:42:43 +0200 Subject: [ns] How to create a remote Base Station ? Message-ID: <20090316144243.7i2it0pqzook4cs0@imail.aub.edu.lb> Hi All, I am simulating a wireless network and i want to add a remote Base Station (BS) to my network. All my nodes are scattered on a distance of 500m x 500m (dimensions specified in the tcl script) Question1: CAN I ADD A BASE STATION AT SAY 1000m x 1000m (or more) without changing the network dimensions in tcl, or its necessary. Question2: Is there a predefined class in ns2 for a Base Station with properties such unlimited recourses, or i have to define my own I hope you got my point. Thanks in Advance, Mathiew From muralikrishna4g at gmail.com Mon Mar 16 08:21:22 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Mon, 16 Mar 2009 20:51:22 +0530 Subject: [ns] classifier current tcl object/node Message-ID: hi to all.. in classifier i have to add a function.. that have to check for which node currently classifier is running.. if(current->node_id==node-id) //node-id, id of the node for which i am going to add new function { i do add a new function here} please help how will be this if function, i dont know how to get current tcl object/node please help me regarding this. by Muralikrishna Gaddam From muralikrishna4g at gmail.com Mon Mar 16 08:22:39 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Mon, 16 Mar 2009 20:52:39 +0530 Subject: [ns] classifier current tcl object/node Message-ID: hi to all.. in classifier i have to add a function.. that have to check for which node currently classifier is running.. if(current->node_id==node-id) //node-id, id of the node for which i am going to add new function { i do add a new function here} please help how will be this if function, i dont know how to get current tcl object/node and the correct position of this if function in classifier, please help me regarding this. by Muralikrishna Gaddam From fudgy.geek at gmail.com Mon Mar 16 08:31:10 2009 From: fudgy.geek at gmail.com (Firdaus Alias) Date: Mon, 16 Mar 2009 23:31:10 +0800 Subject: [ns] velocity and direction of mobile nodes In-Reply-To: <437182311.01066@eyou.net> References: <437178646.09683@hhu.edu.cn> <437182311.01066@eyou.net> Message-ID: <41df069c0903160831j5ee8900bw7ad1e2ae59e7bbae@mail.gmail.com> You can control the start/stop of the node via a tcl. The movement of the nodes can also be generated by tcl. You may want to look at traffic generators for ns-2 if you want to generate more complicated movements. Firdaus. On Mon, Mar 16, 2009 at 2:02 PM, Phenix wrote: > > Hi Rainn, > > I only know how to get the velocity and direction vector, as below: > > MobileNode * pMNode ; > .... > speed = pMNode->speed(); > dx = pMNode->dX(); > dy = pMNode->dY(); > > > I also want to know how to control the movement of mobile nodes, such > as, nodes stop moving at a specific time. > > If anybody know, pls let me know. > Thank you! > > > Regards, > Phenix > > -------------------------------------------------- > From: "Rainn" > Sent: Monday, March 16, 2009 12:45 PM > To: > Subject: [ns] velocity and direction of mobile nodes > > > > > Dear all, > > > > I need to manipulate velocity and direction of mobile nodes in ns-2. > Could > > anyone please help me out "CODE" to manipulate this. > > It's urgent ..... > > Thanks in advance. > > Have a good days always. > > > > From wendypina at gmail.com Mon Mar 16 17:32:39 2009 From: wendypina at gmail.com (student_edward) Date: Mon, 16 Mar 2009 17:32:39 -0700 (PDT) Subject: [ns] I need help with MNS v2.0 installation on ns-2.26 Message-ID: <22550443.post@talk.nabble.com> Hi everyone I have mns-for ns-2.26 but I don't have any guide to install it on ns-allinone2.26 and use it. So I need installation guide of MNS v2.0 for ns-allinone-2.26. Can anyone help me? Please help me. Thanks for your help. Eduardo -- View this message in context: http://www.nabble.com/I-need-help-with-MNS-v2.0-installation-on-ns-2.26-tp22550443p22550443.html Sent from the ns-users mailing list archive at Nabble.com. From ylaziz at gmail.com Mon Mar 16 17:47:47 2009 From: ylaziz at gmail.com (Laziz Yunusov) Date: Tue, 17 Mar 2009 09:47:47 +0900 Subject: [ns] No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 In-Reply-To: <9c0de26e0903161742i74ea405ft869362b80be1cf8b@mail.gmail.com> References: <9c0de26e0903161742i74ea405ft869362b80be1cf8b@mail.gmail.com> Message-ID: <9c0de26e0903161747x6fd74102vc6ae9c90eb706d7d@mail.gmail.com> Hi there, I'm developing a new protocol for ns-2. When I hit "make depend" in ns-2.33 directory, I'm getting following error message: make: *** No rule to make target `@V_STLOBJ@', needed by `depend'. ?Stop. Maybe it's because of updated gcc/g++?! Because I didn't have such error before. Any help appreciated. P.S. gcc version is 4.3.0 20080428 (Red Hat 4.3.0-8) From cyahaya at gmail.com Mon Mar 16 18:58:31 2009 From: cyahaya at gmail.com (COULIBALY Yaya) Date: Mon, 16 Mar 2009 17:58:31 -0800 Subject: [ns] Ns-users Digest, Vol 63, Issue 16 In-Reply-To: References: Message-ID: Dear All, I ahve downloaded and installed both ns-2.33 and ns-OBS on my computer running Redhat Entreprise 5. NS2 is working fine and I have tried many examples. However, when I try to run the examples of ns-OBS, they do not run. Any suggetions? On Mon, Mar 16, 2009 at 4:01 PM, wrote: > Send Ns-users mailing list submissions to > ns-users at isi.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > ns-users-request at isi.edu > > You can reach the person managing the list at > ns-users-owner at isi.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > > 1. Re: Range Proble...Again :( (Mustafa Kamal) > 2. Fw: vedio traffic output e-e delay is not reasonable (anas) > 3. Re: ns problem1 (Teerawat Issariyakul) > 4. How to ensure expire() function in MyTimer is called? > (Swaroop Shere) > 5. How to ensure expire() function in MyTimer is called? > (Swaroop Shere) > 6. how to send message from one node to another node > (muralikrishna g) > 7. Problem while executing example script wireless.tcl > (directory: ~ns/tcl/ex/simple-wireless.tcl) on NS-2.33 > (Sarvar Bakhramovich Musabekov) > 8. makefile compilation (muralikrishna g) > 9. velocity and direction of mobile nodes (Rainn) > 10. problem with ftp stop and TCP (Diana Benitez) > 11. Re: velocity and direction of mobile nodes (Phenix) > 12. Path Optimality awk/perl script! (kassahun Endris) > 13. how to get node_id in classifier.cc in wired network > simulation (muralikrishna g) > 14. Re: how to get node_id in classifier.cc in wired network > simulation (Mohammed Abu Hajar) > 15. Re: how to get node_id in classifier.cc in wired network > simulation (Mohammed Abu Hajar) > 16. How to get the transmit power of a mobile node? (Spyros Marinis) > 17. LEACH for ns2 (Douglas Restrepo) > 18. ns2.1b9a installation (Mahendran) > 19. How to create a remote Base Station ? (Mathiew Moussa) > 20. classifier current tcl object/node (muralikrishna g) > 21. classifier current tcl object/node (muralikrishna g) > 22. Re: velocity and direction of mobile nodes (Firdaus Alias) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 15 Mar 2009 17:37:02 -0700 (PDT) > From: Mustafa Kamal > Subject: Re: [ns] Range Proble...Again :( > To: Mayank Daga , NS2 Users > Message-ID: <973674.28559.qm at web45605.mail.sp1.yahoo.com> > Content-Type: text/plain; charset=utf-8 > > HA and FA stand for Home Agent and Foreign Agents which means they are Base > Station node. You can define a MH (Mobile Host) like below > > set MH0 [$ns_ node 1.0.7] > set node_(0) $MH0 > set HAaddress [AddrParams addr2id [$HA node-addr]] > [$MH0 set regagent_] set home_agent_ $HAaddress > [$MH0 set netif_(0)] set Pt_ 0.03652 > > And I have already successfully worked with this script > > Thanks, > > With Best Regards, > > Joarder Mohammad Mustafa Kamal > > > > --- On Sat, 3/14/09, Mayank Daga wrote: > > From: Mayank Daga > Subject: Re: [ns] Range Proble...Again :( > To: "Mustafa Kamal" > Date: Saturday, March 14, 2009, 1:51 PM > > > > On Sat, Mar 14, 2009 at 9:25 AM, Mustafa Kamal > wrote: > > > Can you set the radius like below > > [$HA set netif_(0)] set Pt_ 0.03652 > [$FA01 set netif_(0)] set Pt_ 0.03652 > [$FA02 set netif_(0)] set Pt_ 0.03652 > [$FA03 set netif_(0)] set Pt_ 0.03652 > > > Can you please explain as to what are HA and FA0X objects of? Which one is > the node here? Are you sure that this works? > > > > You can use this list to set the radius of a node > > ???? Tx Range?????????? Pt_ > ?????? 100m???????????? 0.00721383 > ?????? 150m???????????? 0.03652 > ?????? 200m???????????? 0.115421 > ?????? 250m???????????? > 0.28179 > ?????? 300m???????????? 0.58432 > > Yes, I am aware of this table. > > > > > Thanks, > > With Best Regards, > > Joarder Mohammad Mustafa Kamal > > > > > --- On Thu, 3/12/09, Mayank Daga wrote: > > > From: Mayank Daga > > Subject: [ns] Range Proble...Again :( > To: "Mubashir Rehmani" , ns-users at ISI.EDU > > Date: Thursday, March 12, 2009, 9:12 PM > > > Hey Mubashir, > > Sorry for > bugging you again but I am totally clueless as to how to set the > range. > > Since past few days, I have been trying to set the range by the setting the > value of radius variable of a particular node. This is what radius variable > > does according to NS Manual: > > $mobilenode radius > The radius denotes the node?s range. All mobilenodes that fall within > the circle of radius with the node at its center > are considered as neighbours. This info is typically used by the > gridkeeper.. > > > > But, today I found out that this is not affecting the way the traffic is > sent, i.e., the range is still 250m, the default value. Please help me as > to > how can I set the range of the nodes. This is is very much imperative for > my > > project. > > Please help. > > -- > Regards, > Mayank Daga > Senior Undergraduate Student, > Department of Information Technology, > National Institute of Technology, > Durgapur, > India > > > > > > > > > -- > Regards, > Mayank Daga > Senior Undergraduate Student, > Department of Information Technology, > National Institute of Technology, Durgapur, > India > > > > > > > ------------------------------ > > Message: 2 > Date: Mon, 16 Mar 2009 03:44:19 +0300 > From: "anas" > Subject: [ns] Fw: vedio traffic output e-e delay is not reasonable > To: "ns" > Message-ID: > Content-Type: text/plain; charset="windows-1256" > > > > > From: anas > Sent: Monday, March 16, 2009 3:41 AM > To: ns > Subject: vedio traffic output e-e delay is not reasonable > > > Dear all, > > I have used the MPEG4 traffic of TES model over DSR but the end to end > delay was not reasonable > it was 5 s in average > > please if you have any suggestion or explanation for that tell me? > > Anas > > ------------------------------ > > Message: 3 > Date: Mon, 16 Mar 2009 01:35:56 +0000 > From: "Teerawat Issariyakul" > Subject: Re: [ns] ns problem1 > To: mrbalador at yahoo.com, ns-users at ISI.EDU, teerawas at tot.co.th, > m.reshadi at yahoo.com > Message-ID: > Content-Type: text/plain; charset=ISO-8859-1 > > > You need to install XServer. Go to website of Cygwin or google to find > out how. > > Best, > Teerawat > > On 3/15/2009, "ali bala" wrote: > > >hi > >i had problem with nam (i?worke with ns-2 under cygwin) > >i did this steps for troubleshooting untill now : > >? > >while running simple example programs, I get error, > > > >$ nam: no display name and no $DISPLAY environment variable. > > > >? > > > >I tried set it with export DSIPLAY=:0.0 > > > >it gives error ? > > > >$ nam: couldn't connect to display "0.0" > > > >I also tried ?startx before running programs, it gives following error, > > > >$ nam: > > > >[code omitted because of length] > > > >: no event type or button # or keysym > > > >? ?while executing > > > >"bind Listbox { > > > >%W yview scroll [expr {- (%D / 120) * 4}] units > > > >}" > > > >? ?invoked from within > > > >"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} > { > > > >bind Listbox { > > > >%W yview scroll [expr {- (%D)}] units > > > >} > > > >bind Li..."? > > > >this is my bashrc file : > >? > > >LD_LIBRARY_PATH=/home/ALI/ns-allinone-2.33/otcl-1.13:/home/ALI/ns-allinone-2.33//lib > >TCL_LIBRARY=/home/ALI/ns-allinone-2.33/tcl8.4.18/library > >export LD_LIBRARY_PATH > >export TCL_LIBRARY > >? > >and my bash_profile file : > >? > >PATH=${HOME}/ns-allinone-2.33/bin:${PATH} > > > >but? i have problem with nam now and i see this error : > >? > >$ nam: > >[code omitted because of length] > >: no event type or button # or keysym > >??? while executing > >"bind Listbox { > >%W yview scroll [expr {- (%D / 120) * 4}] units > >}" > >??? invoked from within > >"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} > { > >bind Listbox { > >%W yview scroll [expr {- (%D)}] units > >} > >bind Li..." > >?can anybody figure out where the problem lies? (and methode for solve) > >thanks > >mr.ali.balador > >homepage:www.balador.org > > > > > > ) > > > > ------------------------------ > > Message: 4 > Date: Mon, 16 Mar 2009 08:01:54 +0530 (IST) > From: Swaroop Shere > Subject: [ns] How to ensure expire() function in MyTimer is called? > To: ns-users > Message-ID: <22538.45921.qm at web95404.mail.in2.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > Hi, > ???? I am writing a new agent (lets call it VabAgent) and > implementing a custom timer class (MyTimer : public TimerHandler). I > have implemented the expire function like this > -----------------------start code snippet------------------------------ > MyTimer::expire(Event *e){ > ??? a_->broadcast(); > ??? if(!a_->returnhasDestination()) > ??? ??? return 1000; > ??? else > ??? ??? return TIMER_HANDLED; > } > --------------------end code snippet----------------------------------- > > where > returnhasDestination is a public method of VabAgent. Now, do I have to > explicitly call the expire function or it is called automatically? I > hope I am clear in my question. > > regards, > Swaroop > > > Add more friends to your messenger and enjoy! Go to > http://messenger.yahoo.com/invite/ > > ------------------------------ > > Message: 5 > Date: Mon, 16 Mar 2009 08:15:20 +0530 (IST) > From: Swaroop Shere > Subject: [ns] How to ensure expire() function in MyTimer is called? > To: ns-users > Message-ID: <386129.48320.qm at web95405.mail.in2.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > > Hi, > ???? I am writing a new agent (lets call it VabAgent) and > implementing a custom timer class (MyTimer : public TimerHandler). I > have implemented the expire function like this > -----------------------start code snippet------------------------------ > MyTimer::expire(Event *e){ > ??? a_->broadcast(); > ??? if(!a_->returnhasDestination()) > ??? ??? return 1000; > ??? else > ??? ??? return TIMER_HANDLED; > } > --------------------end code snippet----------------------------------- > > where > returnhasDestination is a public method of VabAgent. Now, do I have to > explicitly call the expire function or it is called automatically? I > hope I am clear in my question. > > regards, > Swaroop > > > > From Chandigarh to Chennai - find friends all over India. Go to > http://in.promos.yahoo.com/groups/citygroups/ > > ------------------------------ > > Message: 6 > Date: Mon, 16 Mar 2009 08:55:50 +0530 > From: muralikrishna g > Subject: [ns] how to send message from one node to another node > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > i am searching for a solution.. i have to send an integer number from one > node to another node.. how to make it > please tell in detail.. i am in need > > thank u > > > ------------------------------ > > Message: 7 > Date: Mon, 16 Mar 2009 08:51:54 +0500 > From: Sarvar Bakhramovich Musabekov > Subject: [ns] Problem while executing example script wireless.tcl > (directory: ~ns/tcl/ex/simple-wireless.tcl) on NS-2.33 > To: ns-users at ISI.EDU > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Dear All, > > I have installed NS-2.33 on VM RHat Linux 4 and tried to run exp script > wireless.tcl and got following error: > > could't read file "../lib/ns-bsnode.tcl": no such file or directory while > executing -----> I have checked there is such file > source.orig ../lib/ns-bsnode.tcl > ("uplevel" body line 1) > invoked from within > " if [$instance_ is_http_url $fileName] { > set buffer [$instance_ read_url $fileName] > uplevel eval $buffer > } else { > uplevel source.orig [list $fileName] > ..." > (procedure "source" line 8) > invoked from within > "source ../lib/ns-bsnode.tcl" > (file "wireless.tcl" line 191) > ============================ > If someone knows or faced this problem before could you pls give me > suggestion on how to solve this problem or URL for my further study. > > Best wishes, Sarvar > > > ------------------------------ > > Message: 8 > Date: Mon, 16 Mar 2009 09:32:44 +0530 > From: muralikrishna g > Subject: [ns] makefile compilation > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > i am using NS-2.33, now i made changes to classifier.cc and queue.cc, to > get > these changes in to effect i have to compile.. but i don't have idea on how > to compile after modifications.. please help me regarding this.. > > by > > Muralikrishna Gaddam > > > ------------------------------ > > Message: 9 > Date: Sun, 15 Mar 2009 21:45:19 -0700 > From: Rainn > Subject: [ns] velocity and direction of mobile nodes > To: ns-users at ISI.EDU > Message-ID: > <7b8896aa0903152145g56a4b9ady3fba148f79cc91f1 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Dear all, > > I need to manipulate velocity and direction of mobile nodes in ns-2. Could > anyone please help me out "CODE" to manipulate this. > It's urgent ..... > Thanks in advance. > Have a good days always. > > > ------------------------------ > > Message: 10 > Date: Mon, 16 Mar 2009 01:23:06 -0400 > From: Diana Benitez > Subject: [ns] problem with ftp stop and TCP > To: NS Users > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > > Hello everybody; > > I have teh following situation. A ftp agent stops but the TCP continues > working. How this is possible? Do someone how to stop a TCP agent when the > ftp stops? > > Thanks in advance, > > DIANA. > > _________________________________________________________________ > Hotmail? is up to 70% faster. Now good news travels really fast. > http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009 > > ------------------------------ > > Message: 11 > Date: Mon, 16 Mar 2009 14:02:46 +0800 > From: "Phenix" > Subject: Re: [ns] velocity and direction of mobile nodes > To: "Rainn" > Cc: ns users > Message-ID: <437182311.01066 at eyou.net> > Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=original > > Hi Rainn, > > I only know how to get the velocity and direction vector, as below: > > MobileNode * pMNode ; > .... > speed = pMNode->speed(); > dx = pMNode->dX(); > dy = pMNode->dY(); > > > I also want to know how to control the movement of mobile nodes, such > as, nodes stop moving at a specific time. > > If anybody know, pls let me know. > Thank you! > > > Regards, > Phenix > > -------------------------------------------------- > From: "Rainn" > Sent: Monday, March 16, 2009 12:45 PM > To: > Subject: [ns] velocity and direction of mobile nodes > > > > > Dear all, > > > > I need to manipulate velocity and direction of mobile nodes in ns-2. > Could > > anyone please help me out "CODE" to manipulate this. > > It's urgent ..... > > Thanks in advance. > > Have a good days always. > > > > > > ------------------------------ > > Message: 12 > Date: Mon, 16 Mar 2009 16:36:28 +0800 > From: kassahun Endris > Subject: [ns] Path Optimality awk/perl script! > To: ns-users at ISI.EDU > Message-ID: > <1245d5e80903160136i7457c979q9565bc1145aeaca9 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello! > > Is there any one have Path Optimality/ actual path (hops) taken by the > packets, awk/perl script? I could found any of this = > script in the web. > > Thank you in advance. > > Best regards, > > Kass > > > ------------------------------ > > Message: 13 > Date: Mon, 16 Mar 2009 14:53:16 +0530 > From: muralikrishna g > Subject: [ns] how to get node_id in classifier.cc in wired network > simulation > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > i am in need to have node_id of a node in classifier.cc, so that i can > add new functionality to a node.. so please help me how to get node_id > in classifier > > by > > muralikrishna > > > > ------------------------------ > > Message: 14 > Date: Mon, 16 Mar 2009 02:31:34 -0700 (PDT) > From: Mohammed Abu Hajar > Subject: Re: [ns] how to get node_id in classifier.cc in wired network > simulation > To: muralikrishna g > Cc: NS_2 Mailing List > Message-ID: <647286.11385.qm at web55001.mail.re4.yahoo.com> > Content-Type: text/plain; charset=us-ascii > > use net_id.dump(), this is the code used by the trace mechanism > > > > ________________________________ > From: muralikrishna g > To: NS-mail > Sent: Monday, March 16, 2009 11:23:16 AM > Subject: [ns] how to get node_id in classifier.cc in wired network > simulation > > > hi to all.. > > i am in need to have node_id of a node in classifier.cc, so that i can > add new functionality to a node.. so please help me how to get node_id > in classifier > > by > > muralikrishna > > > > > ------------------------------ > > Message: 15 > Date: Mon, 16 Mar 2009 02:54:39 -0700 (PDT) > From: Mohammed Abu Hajar > Subject: Re: [ns] how to get node_id in classifier.cc in wired network > simulation > To: muralikrishna g > Cc: NS_2 Mailing List > Message-ID: <432377.15795.qm at web55003.mail.re4.yahoo.com> > Content-Type: text/plain; charset=us-ascii > > I advice you to implement some simple scenarios with smaller number of > nodes also try to analaysis the output file. In wireless environment there > are multi node working. > > All the best, > > Mohammed AbuHajar > > > ________________________________ > From: muralikrishna g > To: Mohammed Abu Hajar > Sent: Monday, March 16, 2009 11:49:15 AM > Subject: Re: [ns] how to get node_id in classifier.cc in wired network > simulation > > hi sir.. > > everybody tell me that to use net_id.dump( ), but my problem is that i > have to check the classifier for which node it is presently working.. > no all the nodes.. so there by i compare the node_id with required > node_id, if it satisfies i can make a special function to that node by > some if condition.. > > sir,.. please help me regarding this.. > > thank u sir > > On 3/16/09, Mohammed Abu Hajar wrote: > > use net_id.dump(), this is the code used by the trace mechanism > > > > > > > > ________________________________ > > From: muralikrishna g > > To: NS-mail > > Sent: Monday, March 16, 2009 11:23:16 AM > > Subject: [ns] how to get node_id in classifier.cc in wired network > > simulation > > > > > > hi to all.. > > > > i am in need to have node_id of a node in classifier.cc, so that i can > > add new functionality to a node.. so please help me how to get node_id > > in classifier > > > > by > > > > muralikrishna > > > > > > > > > > > > ------------------------------ > > Message: 16 > Date: Mon, 16 Mar 2009 11:49:19 +0000 (GMT) > From: Spyros Marinis > Subject: [ns] How to get the transmit power of a mobile node? > To: ns-users at ISI.EDU > Message-ID: <955042.15957.qm at web25502.mail.ukl.yahoo.com> > Content-Type: text/plain; charset=iso-8859-7 > > Hi all! > Could anyone tell me how I can get the transmit power of a mobile node from > the C++ code? I mean the one that is defined by: > Phy/WirelessPhy set Pt_ 4.5099 > in the tcl script. I used the? bsWlan->radius() to calculate it from there, > but it gives me zero..... > I have used different Pt_ levels for various nodes. > Is there also a way to get the RTXThreshold from c++? > Thank you very much in advance, > Spyros > > > > > > ___________________________________________________________ > ?????????????? Yahoo!; > ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail > ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? > ????????? http://login.yahoo.com/config/mail?.intl=gr > > > ------------------------------ > > Message: 17 > Date: Mon, 16 Mar 2009 05:08:01 -0700 (PDT) > From: Douglas Restrepo > Subject: [ns] LEACH for ns2 > To: ns , ns > Message-ID: <479981.937.qm at web24608.mail.ird.yahoo.com> > Content-Type: text/plain; charset=utf-8 > > > Hi Forum... > > Can some body tell me if there are some implementation of LEACH for NS2. > > Thankyou > > > > > > > > > ------------------------------ > > Message: 18 > Date: Mon, 16 Mar 2009 18:05:28 +0530 (IST) > From: Mahendran > Subject: [ns] ns2.1b9a installation > To: ns-users at ISI.EDU > Message-ID: <302305.5784.qm at web94908.mail.in2.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > I am Mahen > ? > I am trying to install ns2.1b9agcc32 with cygwin.i used the cygwin patch > file.i got the following error.otcl configuration failed.can u help me > installing ns2.1b9a.give me the procedure and how to rectify the error. > ? > Whether ns2.1b9a can be installed with visual studio.help me. > ? > waiting for ur reply. > from Mahen > mahen2004_tce at yahoo.com > > > Cricket on your mind? Visit the ultimate cricket website. Enter > http://beta.cricket.yahoo.com > > ------------------------------ > > Message: 19 > Date: Mon, 16 Mar 2009 14:42:43 +0200 > From: Mathiew Moussa > Subject: [ns] How to create a remote Base Station ? > To: ns-users at ISI.EDU > Message-ID: <20090316144243.7i2it0pqzook4cs0 at imail.aub.edu.lb> > Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; > format="flowed" > > Hi All, > > I am simulating a wireless network and i want to add a remote Base > Station (BS) to my network. > All my nodes are scattered on a distance of 500m x 500m (dimensions > specified in the tcl script) > > Question1: CAN I ADD A BASE STATION AT SAY 1000m x 1000m (or more) > without changing the network dimensions in tcl, or its necessary. > > Question2: Is there a predefined class in ns2 for a Base Station with > properties such unlimited recourses, or i have to define my own > > I hope you got my point. > > Thanks in Advance, > Mathiew > > > > > > ------------------------------ > > Message: 20 > Date: Mon, 16 Mar 2009 20:51:22 +0530 > From: muralikrishna g > Subject: [ns] classifier current tcl object/node > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > in classifier i have to add a function.. that have to check for which > node currently classifier is running.. > > if(current->node_id==node-id) //node-id, id of the node for which i am > going to add new function > { i do add a new function here} > > please help how will be this if function, i dont know how to get > current tcl object/node please help me regarding this. > > by > > Muralikrishna Gaddam > > > > ------------------------------ > > Message: 21 > Date: Mon, 16 Mar 2009 20:52:39 +0530 > From: muralikrishna g > Subject: [ns] classifier current tcl object/node > To: NS-mail > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > hi to all.. > > in classifier i have to add a function.. that have to check for which > node currently classifier is running.. > > if(current->node_id==node-id) //node-id, id of the node for which i am > going to add new function > { i do add a new function here} > > please help how will be this if function, i dont know how to get > current tcl object/node and the correct position of this if function > in classifier, please help me regarding this. > > by > > Muralikrishna Gaddam > > > > ------------------------------ > > Message: 22 > Date: Mon, 16 Mar 2009 23:31:10 +0800 > From: Firdaus Alias > Subject: Re: [ns] velocity and direction of mobile nodes > To: ns users > Message-ID: > <41df069c0903160831j5ee8900bw7ad1e2ae59e7bbae at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > You can control the start/stop of the node via a tcl. The movement of the > nodes can also be generated by tcl. You may want to look at traffic > generators for ns-2 if you want to generate more complicated movements. > > Firdaus. > > On Mon, Mar 16, 2009 at 2:02 PM, Phenix wrote: > > > > > Hi Rainn, > > > > I only know how to get the velocity and direction vector, as below: > > > > MobileNode * pMNode ; > > .... > > speed = pMNode->speed(); > > dx = pMNode->dX(); > > dy = pMNode->dY(); > > > > > > I also want to know how to control the movement of mobile nodes, such > > as, nodes stop moving at a specific time. > > > > If anybody know, pls let me know. > > Thank you! > > > > > > Regards, > > Phenix > > > > -------------------------------------------------- > > From: "Rainn" > > Sent: Monday, March 16, 2009 12:45 PM > > To: > > Subject: [ns] velocity and direction of mobile nodes > > > > > > > > Dear all, > > > > > > I need to manipulate velocity and direction of mobile nodes in ns-2. > > Could > > > anyone please help me out "CODE" to manipulate this. > > > It's urgent ..... > > > Thanks in advance. > > > Have a good days always. > > > > > > > > > > ------------------------------ > > _______________________________________________ > Ns-users mailing list > Ns-users at isi.edu > http://mailman.isi.edu/mailman/listinfo/ns-users > > > End of Ns-users Digest, Vol 63, Issue 16 > **************************************** > -- ************************ COULIBALY Yahaya PhD Candidate Faculty of Computer Science & Information Systems Department of Communication & Computer Systems Malaysia University of Technology (UTM) 81310 Skudai, Johor Bahru, Johor Cell: 0060196886615 From rashed823 at gmail.com Mon Mar 16 19:44:01 2009 From: rashed823 at gmail.com (Rashedul Arefin) Date: Tue, 17 Mar 2009 09:44:01 +0700 Subject: [ns] QoS in AODV In-Reply-To: References: Message-ID: Dear ns-users: I want to implement QoS in ns2.27 for AODV. I have been trying to find out some sort of example code, but failed. Can anyone help me? Thanks and Regards Rashed From ericosign at gmail.com Mon Mar 16 21:25:52 2009 From: ericosign at gmail.com (Erico Augusto) Date: Tue, 17 Mar 2009 01:25:52 -0300 Subject: [ns] velocity and direction of mobile nodes In-Reply-To: <41df069c0903160831j5ee8900bw7ad1e2ae59e7bbae@mail.gmail.com> References: <437178646.09683@hhu.edu.cn> <437182311.01066@eyou.net> <41df069c0903160831j5ee8900bw7ad1e2ae59e7bbae@mail.gmail.com> Message-ID: The path to one of that generators is: ns-allinone-2.xxxx/ns-2.xxx/indep-utils/cmu-scen-gen/setdest/setdest Executing it with: setdest -v 1 -n 3 -p 5.0 -M 10 -t 100 -x 1000 -y 1000 > 3.scen yields file 3.scen,with the following content: # # nodes: 3, pause: 5.00, max speed: 10.00, max x: 1000.00, max y: 1000.00 # $node_(0) set X_ 862.976950011031 $node_(0) set Y_ 460.161509856953 $node_(0) set Z_ 0.000000000000 $node_(1) set X_ 421.853660313776 $node_(1) set Y_ 783.424889657734 $node_(1) set Z_ 0.000000000000 $node_(2) set X_ 916.298764196723 $node_(2) set Y_ 904.305358905232 $node_(2) set Z_ 0.000000000000 God set-dist 0 1 16777215 God set-dist 0 2 16777215 God set-dist 1 2 16777215 $ns_ at 5.000000000000 "$node_(0) setdest 832.825739455352 533.597036262086 1.056072784044" $ns_ at 5.000000000000 "$node_(1) setdest 299.487360122933 126.151246074461 7.073986914798" $ns_ at 5.000000000000 "$node_(2) setdest 284.691082829550 909.590117911516 9.722812248474" $ns_ at 69.963693017594 "$node_(2) setdest 284.691082829550 909.590117911516 0.000000000000" $ns_ at 74.963693017594 "$node_(2) setdest 660.188387920890 14.110909759782 7.769490905584" $ns_ at 80.169375043206 "$node_(0) setdest 832.825739455352 533.597036262086 0.000000000000" $ns_ at 85.169375043206 "$node_(0) setdest 485.399663672580 596.230301776878 0.086261529462" $ns_ at 99.510669546215 "$node_(1) setdest 299.487360122933 126.151246074461 0.000000000000" at tcl script: ... set opt(sc) 3.scen ;# node movement file. ... Erico 2009/3/16 Firdaus Alias > > You can control the start/stop of the node via a tcl. The movement of the > nodes can also be generated by tcl. You may want to look at traffic > generators for ns-2 if you want to generate more complicated movements. > > Firdaus. > > On Mon, Mar 16, 2009 at 2:02 PM, Phenix wrote: > > > > > Hi Rainn, > > > > I only know how to get the velocity and direction vector, as below: > > > > MobileNode * pMNode ; > > .... > > speed = pMNode->speed(); > > dx = pMNode->dX(); > > dy = pMNode->dY(); > > > > > > I also want to know how to control the movement of mobile nodes, such > > as, nodes stop moving at a specific time. > > > > If anybody know, pls let me know. > > Thank you! > > > > > > Regards, > > Phenix > > > > -------------------------------------------------- > > From: "Rainn" > > Sent: Monday, March 16, 2009 12:45 PM > > To: > > Subject: [ns] velocity and direction of mobile nodes > > > > > > > > Dear all, > > > > > > I need to manipulate velocity and direction of mobile nodes in ns-2. > > Could > > > anyone please help me out "CODE" to manipulate this. > > > It's urgent ..... > > > Thanks in advance. > > > Have a good days always. > > > > > > > > From ericosign at gmail.com Mon Mar 16 21:34:02 2009 From: ericosign at gmail.com (Erico Augusto) Date: Tue, 17 Mar 2009 01:34:02 -0300 Subject: [ns] classifier current tcl object/node In-Reply-To: References: Message-ID: Hi, Which exactly file are you tuning(and ns version)? If you can do it at your file: Node* node = Node::get_node_by_address(addr); maybe can help you. Erico. 2009/3/16 muralikrishna g > > hi to all.. > > in classifier i have to add a function.. that have to check for which > node currently classifier is running.. > > if(current->node_id==node-id) //node-id, id of the node for which i am > going to add new function > { i do add a new function here} > > please help how will be this if function, i dont know how to get > current tcl object/node and the correct position of this if function > in classifier, please help me regarding this. > > by > > Muralikrishna Gaddam > > From muralikrishna4g at gmail.com Mon Mar 16 22:40:11 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Tue, 17 Mar 2009 11:10:11 +0530 Subject: [ns] access node in classifier Message-ID: hi to all.. hi here i am asking how to access a node id and provide a special function to a node,, but regarding this i am not getting any solution.. here any other ns2 forums where i can get solution for this.. if there.. please tell me and in need.. by muralikrishna From David.Ross at isrc.qut.edu.au Mon Mar 16 22:57:45 2009 From: David.Ross at isrc.qut.edu.au (David Ross) Date: Tue, 17 Mar 2009 15:57:45 +1000 Subject: [ns] Wired-Wireless Trace... message at MAC layer? In-Reply-To: <49BF234C.4020100@isrc.qut.edu.au> References: <49BF234C.4020100@isrc.qut.edu.au> Message-ID: <49BF3BD9.7060103@isrc.qut.edu.au> David Ross wrote: > Syed Faraz Hasan wrote: >> Hi everyone! >> >> I simulated a wired-wireless scenario in NS-2. There is one wired >> node, connected to base station node. BS is further connected to >> wireless node. Wireless node is sending TCP traffic to wired node via >> BS. I get the trace file without error but I could not understand a >> few messages in trace file. >> >> For example >> What does this "message" mean? >> s 0.035412973 _1_ MAC --- 1 message 90 [0 ffffffff 0 800] ------- >> [4194304:255 -1:255 32 0] >> Only MAC trace and Wired Trace is ON >> Can some one please help me on this. > It is a routing advertisment (possibly DSDV?) being broadcast from > node 1's routing via node 1's MAC layer > > - David Ross > QUT, Brisbane, Australia. To add a little more: Sent, time, _node_, MAC trace, no-error, packet#, type, bytes, [(in hex) duration field (0 ?s), receiver address, transmitter address and ether-type], -------, [(in decimal) IP source address:source port (255), IP destination address (-1):destination port (255), IP time-to-live (32) and next hop (0)] - David Ross QUT, Brisbane, Australia. From David.Ross at isrc.qut.edu.au Mon Mar 16 23:09:36 2009 From: David.Ross at isrc.qut.edu.au (David Ross) Date: Tue, 17 Mar 2009 16:09:36 +1000 Subject: [ns] makefile compilation In-Reply-To: References: Message-ID: <49BF3EA0.7080700@isrc.qut.edu.au> muralikrishna g wrote: > hi to all.. > > i am using NS-2.33, now i made changes to classifier.cc and queue.cc, to get > these changes in to effect i have to compile.. but i don't have idea on how > to compile after modifications.. please help me regarding this.. > Your question appears to be answered by the FAQ: * _What should I do to compile ns to reflect my changes if I've modified some .cc or .h files?_ go to ns directory and run "make" or "make depend; make" Assuming unix-like systems, go to the directory with the root of all the source (in my case it is cd /usr/src/ns-2.33) and execute the following three commands: make clean make make install - David Ross Brisbane, Australia. From David.Ross at isrc.qut.edu.au Mon Mar 16 23:39:14 2009 From: David.Ross at isrc.qut.edu.au (David Ross) Date: Tue, 17 Mar 2009 16:39:14 +1000 Subject: [ns] Installing NS2 on Red hat / Fedora / Linux / Unix-like In-Reply-To: <21638194.post@talk.nabble.com> References: <21638194.post@talk.nabble.com> Message-ID: <49BF4592.1070206@isrc.qut.edu.au> Liz Mwaniki wrote: > Hi, > Can anyone assist me in installing NS2 on red hat. > I've been off-list for a while, but if you are still having problems, I have attached my complete installation gotchas of 2.33 on Fedora. Should work for RHEL. My issues were a too new Tk/Tcl for the OTcl I had. The ns-2.33 itself went in without a hitch once I got the rest set up. There's been a few "how do I install on linux" posts lately, so I'll copy to the list - but it may drop the attachment. Note this is on Fedora 9 (it started on 7 but switched to 9 with the same commands), but originates from the numerous on-line war stories, including the ISI doco, and should be very similar on other unix-like systems. I use yum and rpm, but should be similar to using apt-get, etc. I do occasionally read the list, but I'm writing-up so email currently has a "many-days-to-weeks" turnaround for me. Hope this helps. (and yes, while you are reading this, Fedora 11 is already in alpha) - David Ross QUT, Brisbane, Australia. From kimi67300387 at qq.com Tue Mar 17 00:07:35 2009 From: kimi67300387 at qq.com (=?gbk?B?1cXRx/at?=) Date: Tue, 17 Mar 2009 15:07:35 +0800 Subject: [ns] How to deal with "Unable to alloc %d bytes" Message-ID: hi, all! Enviroment: Windows Server 2003 + Cygwin, 4GB memory I am simulating a P2P application for scalability. when the number of nodes increases to over 3000, the application always shows "Unable to alloc %d bytes" after running a few minutes. As far as I observed, the application took up about 1GB memory. Is there some one in the same situation and how to deal with it? Is it a ns2 bug? Thanks and Best Wishes. Kimi Zhang From David.Ross at isrc.qut.edu.au Tue Mar 17 03:07:51 2009 From: David.Ross at isrc.qut.edu.au (David Ross) Date: Tue, 17 Mar 2009 20:07:51 +1000 Subject: [ns] Installing NS2 on Red hat / Fedora / Linux / Unix-like In-Reply-To: <49BF4592.1070206@isrc.qut.edu.au> References: <21638194.post@talk.nabble.com> <49BF4592.1070206@isrc.qut.edu.au> Message-ID: <49BF7677.60609@isrc.qut.edu.au> Yes sorry the list removed the attachment. Anyone who is interested can grab it from http://antacs.com/ns-2/DavidRossAppendixA.pdf Make sure you read A.1.3 (what went wrong) before you start blindly following what I did. David Ross wrote: > There's been a few "how do I install on linux" posts lately, so I'll > copy to the list - but it may drop the attachment. > > Note this is on Fedora 9 (it started on 7 but switched to 9 with the > same commands), but originates from the numerous on-line war stories, > including the ISI doco, and should be very similar on other unix-like > systems. I use yum and rpm, but should be similar to using apt-get, etc. > > I do occasionally read the list, but I'm writing-up so email currently > has a "many-days-to-weeks" turnaround for me. > > Hope this helps. > (and yes, while you are reading this, Fedora 11 is already in alpha) > > - David Ross > QUT, Brisbane, Australia. > From veronicadiaza at gmail.com Tue Mar 17 05:41:28 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Tue, 17 Mar 2009 18:11:28 +0530 Subject: [ns] The following error.....please help ....could't read file "../lib/ns-bsnode.tcl": no such file or directory while executing...... Message-ID: Hiiii guys..... I have installed NS-2.33 on VM RHat Linux 4 and tried to run exp script > wireless.tcl and got following error: > > could't read file "../lib/ns-bsnode.tcl": no such file or directory while > executing -----> I have checked for the above file... there is such file > source.orig ../lib/ns-bsnode.tcl > ("uplevel" body line 1) > invoked from within > " if [$instance_ is_http_url $fileName] { > set buffer [$instance_ read_url $fileName] > uplevel eval $buffer > } else { > uplevel source.orig [list $fileName] > ..." > (procedure "source" line 8) > invoked from within > "source ../lib/ns-bsnode.tcl" > (file "wireless.tcl" line 191) > ============================ > Guys please help if you have any solution for this problem.........thanks..... From alihussein2008 at yahoo.com Tue Mar 17 06:24:33 2009 From: alihussein2008 at yahoo.com (Ali Al-Shra'ah.) Date: Tue, 17 Mar 2009 06:24:33 -0700 (PDT) Subject: [ns] Dear all Message-ID: <713431.15723.qm@web52312.mail.re2.yahoo.com> Hi all, ? Can any one help me to understand the code of TORA routing protocol and how to begin analysis of this code. ? Regards, Ali Hussein From mcsist at yahoo.com Tue Mar 17 07:12:47 2009 From: mcsist at yahoo.com (Mohammed Abu Hajar) Date: Tue, 17 Mar 2009 07:12:47 -0700 (PDT) Subject: [ns] how to get node_id in classifier.cc in wired network simulation In-Reply-To: References: <647286.11385.qm@web55001.mail.re4.yahoo.com> <432377.15795.qm@web55003.mail.re4.yahoo.com> Message-ID: <769140.31865.qm@web55001.mail.re4.yahoo.com> I think you should put it in the implementation code of the designated protocol you need to modify it. Mohammed ABuHajar ________________________________ From: muralikrishna g To: Mohammed Abu Hajar Sent: Tuesday, March 17, 2009 8:36:11 AM Subject: Re: [ns] how to get node_id in classifier.cc in wired network simulation hi sir,,, in which class i can keep printf("net_id = %s",net_id.dump()); can u tell me the exact location where to usse this code... thnaku sir From ericosign at gmail.com Tue Mar 17 07:21:44 2009 From: ericosign at gmail.com (Erico Augusto) Date: Tue, 17 Mar 2009 11:21:44 -0300 Subject: [ns] cmu-trace.cc + MAC = [0 0 0 0] Message-ID: Hi, does anybody know how to print the correct values of MAC addresses when sending traffic? cmu-trace.cc is just printing [0 0 0 0]: s 0.024880641 _1_ RTR --- 1 TBRPF 60 [0 0 0 0] ------- [1:255 -1:255 32 0] [1 0 [HELLO 0]] s 0.031330135 _0_ RTR --- 0 TBRPF 60 [0 0 0 0] ------- [0:255 -1:255 32 0] [1 0 [HELLO 0]] s 0.055498163 _2_ RTR --- 2 TBRPF 60 [0 0 0 0] ------- [2:255 -1:255 32 0] [1 0 [HELLO 0]] ... s 18.092083049 _0_ AGT --- 61 cbr 512 [0 0 0 0] ------- [0:0 1:0 32 0] [2] 0 0 s 18.192474483 _0_ AGT --- 62 cbr 512 [0 0 0 0] ------- [0:0 1:0 32 0] [3] 0 0 s 18.309370660 _0_ AGT --- 64 cbr 512 [0 0 0 0] ------- [0:0 1:0 32 0] [4] 0 0 I'm using ns-2.29.3. Thanks, Erico. From thor.catarius at hotmail.com Tue Mar 17 08:07:16 2009 From: thor.catarius at hotmail.com (Thor Catarius) Date: Tue, 17 Mar 2009 15:07:16 +0000 Subject: [ns] make depend error on ns 2.33 - no rule to make target Message-ID: _________________________________________________________________ Windows Live? Groups: Create an online spot for your favorite groups to meet. http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009 From mrbalador at yahoo.com Tue Mar 17 09:22:12 2009 From: mrbalador at yahoo.com (ali bala) Date: Tue, 17 Mar 2009 09:22:12 -0700 (PDT) Subject: [ns] ns installation problem Message-ID: <734405.87089.qm@web45110.mail.sp1.yahoo.com> hi i had problem with nam under cyqwin/x and now i install linux ubuntu 8.10 then try to install ns when i run ns installation with ./install after 5 mins i see this error : make:***[tk3d.o] error1 tk8.4.13 make failed! exiting... whats my problem and solution? ?mr.ali.balador homepage:www.balador.org From bez2god at hotmail.co.uk Tue Mar 17 09:27:56 2009 From: bez2god at hotmail.co.uk (Habeshawit2God) Date: Tue, 17 Mar 2009 09:27:56 -0700 (PDT) Subject: [ns] sample code for wsn In-Reply-To: <3eb5e9570901300846j1648e5a2j8cf8481fc1b1cc86@mail.gmail.com> References: <3eb5e9570901300846j1648e5a2j8cf8481fc1b1cc86@mail.gmail.com> Message-ID: <22563029.post@talk.nabble.com> Dear naveen prabu, As per your advise i tried it however it doesn't work and here is the error message it came up with i went to the line it is referring to and realize that there is actually something wrong with it. Here is the error message: siu06btk at sie59a:~/Documents$ ns wsn1.tcl bad option "file": must be add, info, remove, variable, vdelete, or vinfo while executing "trace file for wpan (special handling needed)" (file "wsn1.tcl" line 47) Dear nabeen, hoping to hear from you soon, i would like to thank you very much in advance. Best regards, Habeshawit2God P.S please do not hesitate to drop me an e-mail using my personal e-mail and I would also appreciate it if you can give me reply between today and tomorrow as i have to hand in my project on Thursday 19thMarch 2009!! naveen prabu wrote: > > > I have pasted sample tcl file and scenario file here... > save scn file as wsn1.scn and tcl file as (say)wsn1.tcl and run tcl > file... > > try runnin this....if any bugs then let me know... > > wsn1.tcl > > > # ====================================================================== > # Define options > # ====================================================================== > set val(chan) Channel/WirelessChannel ;# Channel Type > set val(prop) Propagation/TwoRayGround ;# radio-propagation > model > set val(netif) Phy/WirelessPhy/802_15_4 > set val(mac) Mac/802_15_4 > 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) 50 ;# max packet in ifq > set val(nn) 25 ;# number of > mobilenodes > set val(rp) AODV ;# routing protocol > set val(x) 50 > set val(y) 50 > > set val(nam) wsn1.nam > set val(traffic) ftp ;# cbr/poisson/ftp > > #read command line arguments > proc getCmdArgu {argc argv} { > global val > for {set i 0} {$i < $argc} {incr i} { > set arg [lindex $argv $i] > if {[string range $arg 0 0] != "-"} continue > set name [string range $arg 1 end] > set val($name) [lindex $argv [expr $i+1]] > } > } > getCmdArgu $argc $argv > > set appTime1 0.0 ;# in seconds > set appTime2 0.3 ;# in seconds > set appTime3 0.7 ;# in seconds > set stopTime 100 ;# in seconds > > # Initialize Global Variables > set ns_ [new Simulator] > set tracefd [open ./wsn1.tr w] > $ns_ trace-all $tracefd > if { "$val(nam)" == "wsn1.nam" } { > set namtrace [open ./$val(nam) w] > $ns_ namtrace-all-wireless $namtrace $val(x) $val(y) > } > > $ns_ puts-nam-traceall {# nam4wpan #} ;# inform nam that this is a > trace file for wpan (special handling needed) > > Mac/802_15_4 wpanNam namStatus on ;# default = off (should be turned > on before other 'wpanNam' commands can work) > #Mac/802_15_4 wpanNam ColFlashClr gold ;# default = gold > #Mac/802_15_4 wpanNam NodeFailClr grey ;# default = grey > > > # For model 'TwoRayGround' > set dist(5m) 7.69113e-06 > set dist(9m) 2.37381e-06 > set dist(10m) 1.92278e-06 > set dist(11m) 1.58908e-06 > set dist(12m) 1.33527e-06 > set dist(13m) 1.13774e-06 > set dist(14m) 9.81011e-07 > set dist(15m) 8.54570e-07 > set dist(16m) 7.51087e-07 > set dist(20m) 4.80696e-07 > set dist(25m) 3.07645e-07 > set dist(30m) 2.13643e-07 > set dist(35m) 1.56962e-07 > set dist(40m) 1.20174e-07 > Phy/WirelessPhy set CSThresh_ $dist(15m) > Phy/WirelessPhy set RXThresh_ $dist(15m) > > # set up topography object > set topo [new Topography] > $topo load_flatgrid $val(x) $val(y) > > # Create God > set god_ [create-god $val(nn)] > > set chan_1_ [new $val(chan)] > > # configure node > > $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) \ > -topoInstance $topo \ > -agentTrace OFF \ > -routerTrace OFF \ > -macTrace ON \ > -movementTrace OFF \ > #-energyModel "EnergyModel" \ > #-initialEnergy 1 \ > #-rxPower 0.3 \ > #-txPower 0.3 \ > -channel $chan_1_ > > for {set i 0} {$i < $val(nn) } {incr i} { > set node_($i) [$ns_ node] > $node_($i) random-motion 0 ;# disable random motion > } > > source ./wsn1.scn > > # Setup traffic flow between nodes > > proc cbrtraffic { src dst interval starttime } { > global ns_ node_ > set udp($src) [new Agent/UDP] > eval $ns_ attach-agent \$node_($src) \$udp($src) > set null($dst) [new Agent/Null] > eval $ns_ attach-agent \$node_($dst) \$null($dst) > set cbr($src) [new Application/Traffic/CBR] > eval \$cbr($src) set packetSize_ 70 > eval \$cbr($src) set interval_ $interval > eval \$cbr($src) set random_ 0 > #eval \$cbr($src) set maxpkts_ 10000 > eval \$cbr($src) attach-agent \$udp($src) > eval $ns_ connect \$udp($src) \$null($dst) > $ns_ at $starttime "$cbr($src) start" > } > > proc poissontraffic { src dst interval starttime } { > global ns_ node_ > set udp($src) [new Agent/UDP] > eval $ns_ attach-agent \$node_($src) \$udp($src) > set null($dst) [new Agent/Null] > eval $ns_ attach-agent \$node_($dst) \$null($dst) > set expl($src) [new Application/Traffic/Exponential] > eval \$expl($src) set packetSize_ 70 > eval \$expl($src) set burst_time_ 0 > eval \$expl($src) set idle_time_ [expr > $interval*1000.0-70.0*8/250]ms ;# idle_time + pkt_tx_time = interval > eval \$expl($src) set rate_ 250k > eval \$expl($src) attach-agent \$udp($src) > eval $ns_ connect \$udp($src) \$null($dst) > $ns_ at $starttime "$expl($src) start" > } > > if { ("$val(traffic)" == "cbr") || ("$val(traffic)" == "poisson") } { > puts "\nTraffic: $val(traffic)" > #Mac/802_15_4 wpanCmd ack4data on > puts [format "Acknowledgement for data: %s" [Mac/802_15_4 wpanCmd > ack4data]] > set lowSpeed 0.5ms > set highSpeed 1.5ms > Mac/802_15_4 wpanNam PlaybackRate $lowSpeed > $ns_ at [expr $appTime1+0.1] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > $ns_ at $appTime2 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" > $ns_ at [expr $appTime2+0.1] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > $ns_ at $appTime3 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" > $ns_ at [expr $appTime3+0.1] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > eval $val(traffic)traffic 19 6 0.2 $appTime1 > eval $val(traffic)traffic 10 4 0.2 $appTime2 > eval $val(traffic)traffic 3 2 0.2 $appTime3 > Mac/802_15_4 wpanNam FlowClr -p AODV -c tomato > Mac/802_15_4 wpanNam FlowClr -p ARP -c green > if { "$val(traffic)" == "cbr" } { > set pktType cbr > } else { > set pktType exp > } > Mac/802_15_4 wpanNam FlowClr -p $pktType -s 19 -d 6 -c blue > Mac/802_15_4 wpanNam FlowClr -p $pktType -s 10 -d 4 -c green4 > Mac/802_15_4 wpanNam FlowClr -p $pktType -s 3 -d 2 -c cyan4 > $ns_ at $appTime1 "$node_(19) NodeClr blue" > $ns_ at $appTime1 "$node_(6) NodeClr blue" > $ns_ at $appTime1 "$ns_ trace-annotate \"(at $appTime1) > $val(traffic) traffic from node 19 to node 6\"" > $ns_ at $appTime2 "$node_(10) NodeClr green4" > $ns_ at $appTime2 "$node_(4) NodeClr green4" > $ns_ at $appTime2 "$ns_ trace-annotate \"(at $appTime2) > $val(traffic) traffic from node 10 to node 4\"" > $ns_ at $appTime3 "$node_(3) NodeClr cyan3" > $ns_ at $appTime3 "$node_(2) NodeClr cyan3" > $ns_ at $appTime3 "$ns_ trace-annotate \"(at $appTime3) > $val(traffic) traffic from node 3 to node 2\"" > } > > proc ftptraffic { src dst starttime } { > global ns_ node_ > set tcp($src) [new Agent/TCP] > eval \$tcp($src) set packetSize_ 60 > set sink($dst) [new Agent/TCPSink] > eval $ns_ attach-agent \$node_($src) \$tcp($src) > eval $ns_ attach-agent \$node_($dst) \$sink($dst) > eval $ns_ connect \$tcp($src) \$sink($dst) > set ftp($src) [new Application/FTP] > eval \$ftp($src) attach-agent \$tcp($src) > $ns_ at $starttime "$ftp($src) start" > } > > if { "$val(traffic)" == "ftp" } { > puts "\nTraffic: ftp" > #Mac/802_15_4 wpanCmd ack4data off > puts [format "Acknowledgement for data: %s" [Mac/802_15_4 wpanCmd > ack4data]] > set lowSpeed 0.20ms > set highSpeed 1.5ms > Mac/802_15_4 wpanNam PlaybackRate $lowSpeed > $ns_ at [expr $appTime1+0.2] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > $ns_ at $appTime2 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" > $ns_ at [expr $appTime2+0.2] "Mac/802_15_4 wpanNam PlaybackRate > $highSpeed" > $ns_ at $appTime3 "Mac/802_15_4 wpanNam PlaybackRate $lowSpeed" > $ns_ at [expr $appTime3+0.2] "Mac/802_15_4 wpanNam PlaybackRate 1ms" > ftptraffic 19 6 $appTime1 > ftptraffic 10 4 $appTime2 > ftptraffic 3 2 $appTime3 > Mac/802_15_4 wpanNam FlowClr -p AODV -c tomato > Mac/802_15_4 wpanNam FlowClr -p ARP -c green > Mac/802_15_4 wpanNam FlowClr -p tcp -s 19 -d 6 -c blue > Mac/802_15_4 wpanNam FlowClr -p ack -s 6 -d 19 -c blue > Mac/802_15_4 wpanNam FlowClr -p tcp -s 10 -d 4 -c green4 > Mac/802_15_4 wpanNam FlowClr -p ack -s 4 -d 10 -c green4 > Mac/802_15_4 wpanNam FlowClr -p tcp -s 3 -d 2 -c cyan4 > Mac/802_15_4 wpanNam FlowClr -p ack -s 2 -d 3 -c cyan4 > $ns_ at $appTime1 "$node_(19) NodeClr blue" > $ns_ at $appTime1 "$node_(6) NodeClr blue" > $ns_ at $appTime1 "$ns_ trace-annotate \"(at $appTime1) ftp traffic > from node 19 to node 6\"" > $ns_ at $appTime2 "$node_(10) NodeClr green4" > $ns_ at $appTime2 "$node_(4) NodeClr green4" > $ns_ at $appTime2 "$ns_ trace-annotate \"(at $appTime2) ftp traffic > from node 10 to node 4\"" > $ns_ at $appTime3 "$node_(3) NodeClr cyan3" > $ns_ at $appTime3 "$node_(2) NodeClr cyan3" > $ns_ at $appTime3 "$ns_ trace-annotate \"(at $appTime3) ftp traffic > from node 3 to node 2\"" > } > > # defines the node size in nam > for {set i 0} {$i < $val(nn)} {incr i} { > $ns_ initial_node_pos $node_($i) 2 > } > > # Tell nodes when the simulation ends > for {set i 0} {$i < $val(nn) } {incr i} { > $ns_ at $stopTime "$node_($i) reset"; > } > > $ns_ at $stopTime "stop" > $ns_ at $stopTime "puts \"\nNS EXITING...\"" > $ns_ at $stopTime "$ns_ halt" > > proc stop {} { > global ns_ tracefd val env > $ns_ flush-trace > close $tracefd > set hasDISPLAY 0 > foreach index [array names env] { > #puts "$index: $env($index)" > if { ("$index" == "DISPLAY") && ("$env($index)" != "") } { > set hasDISPLAY 1 > } > } > if { ("$val(nam)" == "wsn1.nam") && ("$hasDISPLAY" == "1") } { > exec ./nam wsn1.nam & > } > } > > puts "\nStarting Simulation..." > $ns_ run > > > -------------------------------- > wsn1.scn > > # > # nodes: 25, pause: 2.00, max speed: 2.00 max x = 50.00, max y: 50.00 > # > $node_(0) set X_ 26.608377307314 > $node_(0) set Y_ 49.446991827566 > $node_(0) set Z_ 0.000000000000 > $node_(1) set X_ 49.337311778721 > $node_(1) set Y_ 48.582820874924 > $node_(1) set Z_ 0.000000000000 > $node_(2) set X_ 27.437938215931 > $node_(2) set Y_ 30.091658830425 > $node_(2) set Z_ 0.000000000000 > $node_(3) set X_ 10.568766842667 > $node_(3) set Y_ 47.453389414657 > $node_(3) set Z_ 0.000000000000 > $node_(4) set X_ 32.496269526711 > $node_(4) set Y_ 2.257450139045 > $node_(4) set Z_ 0.000000000000 > $node_(5) set X_ 26.476535726599 > $node_(5) set Y_ 38.646396828920 > $node_(5) set Z_ 0.000000000000 > $node_(6) set X_ 49.430596917301 > $node_(6) set Y_ 31.320042376073 > $node_(6) set Z_ 0.000000000000 > $node_(7) set X_ 20.045665842364 > $node_(7) set Y_ 32.537008965783 > $node_(7) set Z_ 0.000000000000 > $node_(8) set X_ 13.641089465783 > $node_(8) set Y_ 28.871428688349 > $node_(8) set Z_ 0.000000000000 > $node_(9) set X_ 2.125856848941 > $node_(9) set Y_ 9.049644538277 > $node_(9) set Z_ 0.000000000000 > $node_(10) set X_ 0.596871605178 > $node_(10) set Y_ 0.816174228621 > $node_(10) set Z_ 0.000000000000 > $node_(11) set X_ 8.828197591068 > $node_(11) set Y_ 34.402175912553 > $node_(11) set Z_ 0.000000000000 > $node_(12) set X_ 18.759762507870 > $node_(12) set Y_ 25.069997591097 > $node_(12) set Z_ 0.000000000000 > $node_(13) set X_ 13.277017351151 > $node_(13) set Y_ 5.522149009306 > $node_(13) set Z_ 0.000000000000 > $node_(14) set X_ 28.935083056450 > $node_(14) set Y_ 37.156742480258 > $node_(14) set Z_ 0.000000000000 > $node_(15) set X_ 23.507724673396 > $node_(15) set Y_ 3.566772846479 > $node_(15) set Z_ 0.000000000000 > $node_(16) set X_ 20.236128396148 > $node_(16) set Y_ 45.484419961171 > $node_(16) set Z_ 0.000000000000 > $node_(17) set X_ 45.709636471608 > $node_(17) set Y_ 48.353113573382 > $node_(17) set Z_ 0.000000000000 > $node_(18) set X_ 45.610349971557 > $node_(18) set Y_ 49.787732692400 > $node_(18) set Z_ 0.000000000000 > $node_(19) set X_ 24.345058881159 > $node_(19) set Y_ 19.614188426582 > $node_(19) set Z_ 0.000000000000 > $node_(20) set X_ 35.972132273531 > $node_(20) set Y_ 10.620805728046 > $node_(20) set Z_ 0.000000000000 > $node_(21) set X_ 49.626765649851 > $node_(21) set Y_ 14.028905860151 > $node_(21) set Z_ 0.000000000000 > $node_(22) set X_ 14.914806804685 > $node_(22) set Y_ 24.094071765795 > $node_(22) set Z_ 0.000000000000 > $node_(23) set X_ 28.443020411336 > $node_(23) set Y_ 24.367299319338 > $node_(23) set Z_ 0.000000000000 > $node_(24) set X_ 48.102836431793 > $node_(24) set Y_ 22.394995544608 > $node_(24) set Z_ 0.000000000000 > > ------------- > > > -- View this message in context: http://www.nabble.com/sample-code-for-wsn-tp21750960p22563029.html Sent from the ns-users mailing list archive at Nabble.com. From mrbalador at yahoo.com Tue Mar 17 09:48:28 2009 From: mrbalador at yahoo.com (ali bala) Date: Tue, 17 Mar 2009 09:48:28 -0700 (PDT) Subject: [ns] Fw: ns installation problem Message-ID: <522024.74126.qm@web45112.mail.sp1.yahoo.com> hi i had problem with nam under cyqwin/x and now i install linux ubuntu 8.10 then try to install ns2.33and2.30 when i run ns installation with ../install after 5 mins i see this error : make:***[tk3d.o] error1 tk8.4..13 make failed! exiting... whats my problem and solution? ?mr.ali.balador homepage:www.balador.org From patxiazpiroz at gmail.com Tue Mar 17 12:46:20 2009 From: patxiazpiroz at gmail.com (Patxi Azpiroz) Date: Tue, 17 Mar 2009 20:46:20 +0100 Subject: [ns] disabling RTS/CTS does not work - RTSThreshold_ 3000 Message-ID: Dear NS users: I'm pretty new in ns sorry if the question is too trivial but I can't come with it. I put Mac/802_11 set RTSThreshold_ 3000 to disable RTS/CTS been the packe size 270. After the simulation the trace file shows RTS/CTS packets. Why is it so? I have seen this problen in the mailing list more than once but there is no solution that works in my case. Thanks, Patxi. From franz_tepu at yahoo.com Tue Mar 17 13:29:07 2009 From: franz_tepu at yahoo.com (Franka Sitepu) Date: Tue, 17 Mar 2009 13:29:07 -0700 (PDT) Subject: [ns] Help--Wired-cum-Wireless Problem Message-ID: <523806.80890.qm@web54401.mail.yahoo.com> Hi...i am a student from Indonesia ,i am new in ns user...have anyone do a research before about wired to wireless..i need an example to do the script.. -1 server connect to router 1 -router 1 connect to 2 access point -1 access point connect to 2 wireless computer and -1 access point connect to 2 wireless computer ...if any want know how to make that script please reply my email...don't need to do a application like UDP or CBR..just the link and and create wired and wireless rules because i confuse to make a wired and wireless in one topology #?????????????????????????????????????????? [AP1]-? -? -? -? -? -? -[D1] ?? #? ????????????????????????????????????????? - ???? ? - ????????? # ???????????????????????????????????????? - ???????? ? - #??????????????????????????????????????? -? ? ????????? ? - ? - ? - ? - ? -[D2] #?????????????????????????????????????? - #????????????????????????????????????? - #[S1]--------------[R1]-----------??????????????????????????????? #??????????????????????????????????? - #?????????????????????????????????????? - #????????????????????????????????????????? [AP2]-? -?? -?? -??? -?? -[D3] #??????????????????????????????????????????????????? - #????????????????????????????????????????????????????? - #??????????????????????????????????????????????????? ? ? - ? - ? - ? -? -[D4] # # in that topologhy R1 connect to AP 1 and AP2(wired bodes)...and than AP1 connect to D1 and D2....,AP2 connect to D3 and D4...(wireless) just need an example to make node connect..no need to create application such UDP and CBR. Best regards Anka From erkha03 at gmail.com Tue Mar 17 17:52:28 2009 From: erkha03 at gmail.com (erniati amkha) Date: Wed, 18 Mar 2009 07:52:28 +0700 Subject: [ns] how to show delay time.... (DSDV , TORA) In-Reply-To: References: Message-ID: Hi.. guys.... I tried to make simulation to show delay time, sending packets, and receiving packet (to see lost packet during transmission) if I send a packet from one node to the other. I used DSDV and TORA algorithm to do this. But until now, I haven't met a way how to write delay time in trace file. is there anyone can help me, please? Thanks for your all help. -- Regard A Kha From ylaziz at gmail.com Tue Mar 17 18:22:37 2009 From: ylaziz at gmail.com (Laziz Yunusov) Date: Wed, 18 Mar 2009 10:22:37 +0900 Subject: [ns] Fwd: No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 In-Reply-To: <1217925b0903170251j3bfe3c2dj9fadf580b52750d4@mail.gmail.com> References: <9c0de26e0903161742i74ea405ft869362b80be1cf8b@mail.gmail.com> <9c0de26e0903161747x6fd74102vc6ae9c90eb706d7d@mail.gmail.com> <1217925b0903170251j3bfe3c2dj9fadf580b52750d4@mail.gmail.com> Message-ID: <9c0de26e0903171822r7697dfb6tca933dabb7c2ad19@mail.gmail.com> Unfortunately, this did not solve the problem. I guess that this may be due to updated GCC, because with older version 3.4.3, nobody seem to have such a problem. Then I even tried: yum install compat-gcc-34.i386 compat-gcc-34-c++.i386 And afterwards, while trying to make, I'm having: common/packet.cc:44: error: conflicting declaration ?char** p_info::name_ [62]? common/packet.h:295: error: ?p_info::name_? has a previous declaration as ?char* p_info::name_ [62]? common/packet.cc:44: error: declaration of ?char* p_info::name_ [62]? outside of class is not definition common/packet.cc:45: error: ?unsigned int p_info::nPkt_? is not a static member of ?class p_info? common/packet.cc:46: error: expected constructor, destructor, or type conversion before ?*? token common/packet.cc:48: error: no ?int p_info::addPacket(char*)? member function declared in class ?p_info? make: *** [common/packet.o] Error 1 Can anyone suggest another solution? ---------- Forwarded message ---------- From: Dimitris Liarokapis Date: Tue, Mar 17, 2009 at 6:51 PM Subject: Re: [ns] No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 To: Laziz Yunusov Hi, Try the following sequence of commands: ./configure make clean make depend make make install Dimitris On 3/17/09, Laziz Yunusov wrote: > > Hi there, > I'm developing a new protocol for ns-2. When I hit "make depend" in > ns-2.33 directory, I'm getting following error message: > make: *** No rule to make target `@V_STLOBJ@', needed by `depend'.??Stop. > Maybe it's because of updated gcc/g++?! Because I didn't have such > error before. Any help appreciated. > P.S. gcc version is 4.3.0 20080428 (Red Hat 4.3.0-8) From Vineet.Kumar at Hitachi-eu.com Tue Mar 17 19:43:23 2009 From: Vineet.Kumar at Hitachi-eu.com (Kumar, Vineet) Date: Wed, 18 Mar 2009 02:43:23 -0000 Subject: [ns] Fwd: No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 References: <9c0de26e0903161742i74ea405ft869362b80be1cf8b@mail.gmail.com><9c0de26e0903161747x6fd74102vc6ae9c90eb706d7d@mail.gmail.com><1217925b0903170251j3bfe3c2dj9fadf580b52750d4@mail.gmail.com> <9c0de26e0903171822r7697dfb6tca933dabb7c2ad19@mail.gmail.com> Message-ID: Hi, Just do, sudo yum install compat-gcc-34 compat-gcc-34-c++ As you must have understood, the above command will install a gcc/g++ version 3.4 compatibility in your system, but whenever you use gcc/g++ command, your system automatically takes the actuall gcc version of your OS (i.e version 4.3.0). So the trick is whenever you want to use the version 3.4, just replace gcc/g++ by gcc34/g++34 respectively. Regarding ns2.33 (or any ns2.XX) take a fresh ns-allinone-2.33, go to the ns-2.33 folder, In the 'Makefile.in' replace, CC=@CC@ CPP=@CXX@ by CC=gcc34 CPP=g++34 then return to the 'ns-allinone-2.33' directory and start the normal installation process. Regards, Vineet Kumar -----Original Message----- From: ns-users-bounces at ISI.EDU on behalf of Laziz Yunusov Sent: Wed 18/03/2009 01:22 To: ns-users at ISI.EDU Subject: [ns] Fwd: No rule to make target `@V_STLOBJ@', needed by `depend',while re-"make"ing the ns-2.33 Unfortunately, this did not solve the problem. I guess that this may be due to updated GCC, because with older version 3.4.3, nobody seem to have such a problem. Then I even tried: yum install compat-gcc-34.i386 compat-gcc-34-c++.i386 And afterwards, while trying to make, I'm having: common/packet.cc:44: error: conflicting declaration 'char** p_info::name_ [62]' common/packet.h:295: error: 'p_info::name_' has a previous declaration as 'char* p_info::name_ [62]' common/packet.cc:44: error: declaration of 'char* p_info::name_ [62]' outside of class is not definition common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a static member of 'class p_info' common/packet.cc:46: error: expected constructor, destructor, or type conversion before '*' token common/packet.cc:48: error: no 'int p_info::addPacket(char*)' member function declared in class 'p_info' make: *** [common/packet.o] Error 1 Can anyone suggest another solution? ---------- Forwarded message ---------- From: Dimitris Liarokapis Date: Tue, Mar 17, 2009 at 6:51 PM Subject: Re: [ns] No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 To: Laziz Yunusov Hi, Try the following sequence of commands: ./configure make clean make depend make make install Dimitris On 3/17/09, Laziz Yunusov wrote: > > Hi there, > I'm developing a new protocol for ns-2. When I hit "make depend" in > ns-2.33 directory, I'm getting following error message: > make: *** No rule to make target `@V_STLOBJ@', needed by `depend'. Stop. > Maybe it's because of updated gcc/g++?! Because I didn't have such > error before. Any help appreciated. > P.S. gcc version is 4.3.0 20080428 (Red Hat 4.3.0-8) ************************************************************************************************** E-mail Confidentiality Notice and Disclaimer. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to which they are addressed. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Hitachi does not accept responsibility for any changes made to this message after it was sent. Hitachi checks outgoing e-mail messages for the presence of computer viruses. ************************************************************************************************** From simayeji at 163.com Tue Mar 17 19:49:47 2009 From: simayeji at 163.com (simayeji) Date: Wed, 18 Mar 2009 10:49:47 +0800 (CST) Subject: [ns] How to communicate with both 802.11&16 networks? Message-ID: <29904451.687311237344587482.JavaMail.coremail@bj163app62.163.com> Hello everyone! I'm trying a simulation in which one node needs to communicate with a 802.11 network as well as a 802.16 BS. I have tried multifacenode(in a NIST packet): iface1 as a 802.11AP and iface2 as a 802.16SS, but it does not work probably because the two interfaces does not communicate with each other. Can you help me? Any suggestion is appreciated. Thanks very much. From muralikrishna4g at gmail.com Tue Mar 17 20:47:24 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Wed, 18 Mar 2009 09:17:24 +0530 Subject: [ns] ns2 node id regarding Message-ID: hi to all.. i have asked here how to find the node id in classifier.. but i didnt get any response as i need, but luckily i got solution.. that is name ( ) will write the node id's in classifier... here again my question that.. the node ids i get in tcl code via puts "$node(n)" here it writes node n id.. but i am not getting this id value in classifier... name function writes different ids those are not written by tcl code.. how do i get same node ids in both classifier.cc and node.cc thank u in advance From cse.harsha at gmail.com Wed Mar 18 00:09:52 2009 From: cse.harsha at gmail.com (Harsha Vardhan) Date: Wed, 18 Mar 2009 00:09:52 -0700 Subject: [ns] Fwd: Burst Cloning In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Harsha Vardhan Date: Wed, Mar 18, 2009 at 12:06 AM Subject: Burst Cloning To: ns-users at isi.edu i'm doing project in ns 2.28 OBS.... can anyone suggest me how to do burst cloning...??? please help me..... Thanks & Regards Harshavardhan From veronicadiaza at gmail.com Wed Mar 18 02:23:03 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Wed, 18 Mar 2009 14:53:03 +0530 Subject: [ns] Here is the solution for assigning different power levels to different nodes...... Message-ID: To set the power level of different nodes to different values one has to access the WirelessPhy class from a node's array of interfaces (netif_) and then set the corresponding Pt_ to the desired value. For example, the following command sets the power level of node node_(0) to 0.5 W. [[lindex [$node_(0) array get netif_] 1] set Pt_ 0.5] From veronicadiaza at gmail.com Wed Mar 18 02:33:10 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Wed, 18 Mar 2009 15:03:10 +0530 Subject: [ns] i got a patch file regarding span protocol...i patched it, but shows the following error when trying to compile span.tcl.....please help.... Message-ID: Hiiii.....I have a patch file for span protocol....i patched it to ns2.28 since the patch file was basically compiled in ns2.28......When I am trying to complile span.tcl its showing the following error: invalid command name "Agent/SpanAgent" while executing "Agent/SpanAgent set sport_ 255" (file "span.tcl" line 9) Here is the code for span.tcl # span.tcl # ====================================================================== # Default Script Options # ====================================================================== set opt(rt_port) 255 set opt(srcsink) 0 Agent/SpanAgent set sport_ 255 Agent/SpanAgent set dport_ 255 # ====================================================================== Class SpanNode -superclass MobileNode SpanNode instproc init {args} { global opt ns_ tracefd RouterTrace $self instvar span_agent_ dmux_ entry_point_ eval $self next $args ;# parent class constructor # puts "making SpanAgent for node [$self id]" set span_agent_ [new Agent/SpanAgent] $span_agent_ ip-addr [$self id] $span_agent_ mobile-node $self if { $RouterTrace == "ON" } { # Recv Target set rcvT [cmu-trace Recv "RTR" $self] $rcvT target $span_agent_ set entry_point_ $rcvT } else { # Recv Target set entry_point_ $span_agent_ } # # Drop Target (always on regardless of other tracing) # set drpT [cmu-trace Drop "RTR" $self] $span_agent_ drop-target $drpT # # Log Target # set T [new Trace/Generic] $T target [$ns_ set nullAgent_] $T attach $tracefd $T set src_ [$self id] # $span_agent_ log-target $T $span_agent_ target $dmux_ # packets to the Span port should be dropped, since we've # already handled them in the SpanAgent at the entry. set nullAgent_ [$ns_ set nullAgent_] $dmux_ install $opt(rt_port) $nullAgent_ # SpanNodes don't use the IP addr classifier. The SpanAgent should be the # entry point $self instvar classifier_ set classifier_ "srnode made illegal use of classifier_" } SpanNode instproc start-span {} { $self instvar span_agent_ global opt $span_agent_ start-span } SpanNode instproc srcsink {val} { $self instvar span_agent_ $span_agent_ srcsink $val } SpanNode instproc dump-tables {} { $self instvar span_agent_ global opt $span_agent_ dump-tables } SpanNode instproc usepsm {val} { $self instvar span_agent_ $span_agent_ usepsm $val } SpanNode instproc usespan {val} { $self instvar span_agent_ $span_agent_ usespan $val } SpanNode instproc entry {} { $self instvar entry_point_ return $entry_point_ } SpanNode instproc add-interface {args} { # args are expected to be of the form # $chan $prop $tracefd $opt(ll) $opt(mac) global ns_ opt RouterTrace eval $self next $args $self instvar span_agent_ ll_ mac_ ifq_ if { $RouterTrace == "ON" } { # Send Target set sndT [cmu-trace Send "RTR" $self] # $sndT target $ll_(0) # $span_agent_ add-ll $sndT $ifq_(0) $sndT target $ifq_(0) $span_agent_ add-mac $sndT $ifq_(0) $mac_(0) } else { # Send Target # $span_agent_ add-ll $ll_(0) $ifq_(0) $span_agent_ add-mac $ifq_(0) $mac_(0) } } # ====================================================================== proc create-mobile-node { id } { global ns_ chan prop topo tracefd opt node_ global chan prop tracefd topo opt set node_($id) [new SpanNode] set node $node_($id) $node usespan $opt(usespan) $node usepsm $opt(usepsm) $node srcsink $opt(srcsink) $node random-motion 0 ;# disable random motion $node topography $topo # this is where we set the inital energy levels for the nodes # the first parameter is for the inital energy (J) set energy [new EnergyModel $node 10000.0] $node addenergymodel $energy # connect up the channel $node add-interface $chan $prop $opt(ll) $opt(mac) \ $opt(ifq) $opt(ifqlen) $opt(netif) $opt(ant) # # This Trace Target is used to log changes in direction # and velocity for the mobile node and log actions of the DSR agent # set T [new Trace/Generic] $T target [$ns_ set nullAgent_] $T attach $tracefd $T set src_ $id $node log-target $T $ns_ at 0.0 "$node start-span" } Guys please help me and suggest me if you have any solution for this....... From udit.vlsi at gmail.com Wed Mar 18 03:55:30 2009 From: udit.vlsi at gmail.com (Udit Kumar) Date: Wed, 18 Mar 2009 16:25:30 +0530 Subject: [ns] Problem While installing ns-allinone-2.31 In-Reply-To: <345fa6f10903180332s7cd467c6lde14de244d3e81b9@mail.gmail.com> References: <345fa6f10903180332s7cd467c6lde14de244d3e81b9@mail.gmail.com> Message-ID: <345fa6f10903180355t54559822y8db3999496cf4292@mail.gmail.com> Dear Friends , I am struggling while installing ns2 (ns-allinone-2.31) on unix machine, While i am installing this it is giving me issue as below (Means "nam" and "Xgraph" is not installed), How I can complete my installation, If this is X11 check compatability problem then from where I can download ns-allinone-2.31 compatable X11. I did't find information related to this on ns installation problem page. Please help me . Thanks in advance. Thanks & Regards, Udit Kumar [udit at trishul nam-1.13]$ make rm -f nam g++ -o nam \ tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o parser.o trafficsource.o lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o -L/home/students/ms/udit/SLDM/ project/ns-allinone-2.31/ns-allinone-2.31/tclcl-1.19 -ltclcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/otcl-1.13 -lotcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltk8.4 -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltcl8.4 -L/usr/lib -lz -L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when searching for -lXext /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when searching for -lXext /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit status make: *** [nam] Error 1 From jorgegilmoreira at gmail.com Wed Mar 18 03:58:40 2009 From: jorgegilmoreira at gmail.com (Jorge Moreira) Date: Wed, 18 Mar 2009 03:58:40 -0700 (PDT) Subject: [ns] about optical burst switch In-Reply-To: <705703.84946.qm@web94801.mail.in2.yahoo.com> References: <705703.84946.qm@web94801.mail.in2.yahoo.com> Message-ID: <22576681.post@talk.nabble.com> Hi there! There is a module that simulates Optical burst networks. Google for OWNS module for ns2 http://dawn.cs.umbc.edu/owns/ Im using the ns2.31 allinone ns version and im getting some errors. If you can sucessfully install this module please let me know! Best regards, Jorge Moreira vaishali mandhare wrote: > > > hello all, > Which ns version support optical bus switch? > How can implement sheduling algorithm in ns2. > Plz, send about this. > > Thanks! > > > > > > Connect with friends all over the world. Get Yahoo! India Messenger > at http://in.messenger.yahoo.com/?wm=n/ > > -- View this message in context: http://www.nabble.com/about-optical-burst-switch-tp22177804p22576681.html Sent from the ns-users mailing list archive at Nabble.com. From patxiazpiroz at gmail.com Wed Mar 18 04:07:08 2009 From: patxiazpiroz at gmail.com (Patxi Azpiroz) Date: Wed, 18 Mar 2009 12:07:08 +0100 Subject: [ns] disabling RTS/CTS does not work - RTSThreshold_ 3000 In-Reply-To: References: Message-ID: I have realized that the mistake was I try to change MAC settings after configuring the node and you must do it before. Mac/802_11 set RTSThreshold_ 3000 $ns node-config -adhocRouting $val(rp) \ ... 2009/3/17 Patxi Azpiroz : > Dear NS users: > I'm pretty new in ns sorry if the question is too trivial but I can't > come with it. > I put Mac/802_11 set RTSThreshold_ 3000 to disable RTS/CTS been the > packe size 270. > After the simulation the trace file shows RTS/CTS packets. Why is it so? > > I have seen this problen in the mailing list more than once but there > is no solution that works in my case. > > Thanks, > > Patxi. > -- Patxi Azpiroz De Pedro From achivit at gmail.com Wed Mar 18 05:15:17 2009 From: achivit at gmail.com (Achintya Jain) Date: Wed, 18 Mar 2009 20:15:17 +0800 Subject: [ns] Rayleigh Fading..how to include in the simulations Message-ID: <39fa490f0903180515o7e5d801dsd027cbc06e40f778@mail.gmail.com> please I need urgent help.. can somebody send me the necessry files and tel how to analyse the rayleigh fading in the wireless channel.. Pleas respond very fst From volker.richter at gmx.de Wed Mar 18 08:13:38 2009 From: volker.richter at gmx.de (Volker Richter) Date: Wed, 18 Mar 2009 16:13:38 +0100 Subject: [ns] ns2measure jain fairness index Message-ID: <49C10FA2.4050107@gmx.de> Hello, I would like to use the jain fairness estimator provided by the ns2measure add-on. Unfortunately, I have not found any documentation or example for this feature. I would really appreciate if some could give me a short example, how to use this function in ns2measure. Thanks a lot Volker From veronicadiaza at gmail.com Wed Mar 18 12:09:39 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Thu, 19 Mar 2009 00:39:39 +0530 Subject: [ns] guys are you working on any power aware protocols......please help.... Message-ID: Hiii guys....I am working on minimum power consumption protocols.....If any one you have worked on any protocol regarding power consumption, please let me know......If you people have any patch files or links for any power aware protocols...please send me and your suggestions are really welcome......Thanks a lot.... From binome_ini at hotmail.com Wed Mar 18 12:16:36 2009 From: binome_ini at hotmail.com (sarym binome) Date: Wed, 18 Mar 2009 19:16:36 +0000 Subject: [ns] AODV whith no hello msg Message-ID: hi everybody i wrote a small tcl script i use AODV protocol but when i open the trace file , i don't find any HELLO message , i note that the simulation duration is 200 why is this happen ?? regards _________________________________________________________________ Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live?? Lancez-vous ! http://www.microsoft.com/windows/windowslive/default.aspx From mshrehmani at gmail.com Wed Mar 18 12:23:24 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Wed, 18 Mar 2009 20:23:24 +0100 Subject: [ns] AODV whith no hello msg In-Reply-To: References: Message-ID: Hi Sarym Comment the following two lines in aodv.cc 00092 #ifndef AODV_LINK_LAYER_DETECTION 00095 #endif // LINK LAYER DETECTION and then do make make clean sudo make install and you will see **hello** packets in your trace file. Regards Mubashir Husain Rehmani www-npa.lip6.fr/~rehmani 2009/3/18 sarym binome > > > hi everybody > i wrote a small tcl script i use AODV protocol > but when i open the trace file , i don't find any HELLO message , i note > that the simulation duration is 200 > why is this happen ?? > > regards > > _________________________________________________________________ > Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? > Lancez-vous ! > http://www.microsoft.com/windows/windowslive/default.aspx > -- Mubashir Husain Rehmani From franz_tepu at yahoo.com Wed Mar 18 12:37:43 2009 From: franz_tepu at yahoo.com (Franka Sitepu) Date: Wed, 18 Mar 2009 12:37:43 -0700 (PDT) Subject: [ns] Help..wired to wirelsee problem (with script) Message-ID: <896167.97070.qm@web54406.mail.yahoo.com> Hi,,,i want to make a topology based on wired cum wireless network i use : -1 server, 1 router and 2 access point connect wired -each access point connect wireless with 2 mobile node Topology i want to build : #?????????????????????????????????????????? [AP1]-? -? -? -? -??? -[D1]?? #??????????????????????????????????????????? -??????? -??????????????? #????????????????????????????????????????? -??????????? -?????????????? #??????????????????????????????????????? -??????????????? -?? -?? --[D2] #?????????????????????????????????????? - #????????????????????????????????????? -??????????????????????????????? #[S1]--------------[R1]-----------????????????????????????????????????? #??????????????????????????????????? -????????????????????????????????? #?????????????????????????????????????? -?????????????????????????????? #????????????????????????????????????????? [AP2]-? -?? -?? -??? - -[D3] #??????????????????????????????????????????????????? -????????????????? #????????????????????????????????????????????????????? -?????????????? #??????????????????????????????????????????????????????? -?? -??? -[D4] i am already make a script but i can only make 3 mobile node and position mobile node under [S1] or server.in this script i use Evalvid too..but all i want to ask how to make tcl script in topology above.. set opt(chan)?????? Channel/WirelessChannel set opt(prop)?????? Propagation/TwoRayGround set opt(netif)????? Phy/WirelessPhy set opt(mac)??????? Mac/802_11 set opt(ifq)??????? Queue/DropTail/PriQueue set opt(ll)???????? LL set opt(ant)??????? Antenna/OmniAntenna set opt(x)???????????? 670?? set opt(y)????????????? 670?? set opt(ifqlen)???????? 50?? set opt(nn)??? ??? 3 set opt(adhocRouting)?? DSDV? set opt(seed)??? ??? 0.0 set packetSize 1500 set ns_ [new Simulator] set tracefd [open video.tr w] set namtrace [open video.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) set num_wired_nodes? 2 set num_bs_nodes 2 set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) create-god [expr $opt(nn) + $num_bs_nodes] $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 3 lappend cluster_num 2 1 1 AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 1 4 1 AddrParams set nodes_num_ $eilastlevel set temp {0.0.0 0.1.0} for {set i 0} {$i < $num_wired_nodes} {incr i} { ??? set W($i) [$ns_ node [lindex $temp $i]] } $ns_ node-config? -adhocRouting $opt(adhocRouting) \ ??? ??? -llType $opt(ll) \ ???????????????? -macType $opt(mac) \ ???????????????? -ifqType $opt(ifq) \ ???????????????? -ifqLen $opt(ifqlen) \ ???????????????? -antType $opt(ant) \ ???????????????? -propInstance [new $opt(prop)] \ ???????????????? -phyType $opt(netif) \ ???????????????? -channel [new $opt(chan)] \ ???????????????? -topoInstance $topo \ ???????????????? -wiredRouting ON \ ???????????????? -agentTrace ON \ ???????????????? -routerTrace OFF \ ???????????????? -macTrace OFF \ ??? ??? ?-movementTrace OFF \ set temp {1.0.0 1.0.1 1.0.2 1.0.3} set BS(0) [$ns_ node [lindex $temp 0]] set BS(1) [$ns_ node 2.0.0] $BS(0) random-motion 0 $BS(1) random-motion 0 $BS(0) set X_ 1.0 $BS(0) set Y_ 2.0 $BS(0) set Z_ 0.0 $BS(1) set X_ 50.0 $BS(1) set X_ 50.0 $BS(1) set Z_ 0.0 $ns_ node-config -wiredRouting OFF for {set j 0} {$j < $opt(nn)} {incr j} { ??? set node_($j) [ $ns_ node [lindex $temp \ ??? [expr $j +1]]] ??? $node_($j) base-station [AddrParams addr2id [$BS(0) node-addr]] ?} $W(0) label "server" $ns_ duplex-link $W(0) $W(1) 10Mb 10ms DropTail $ns_ duplex-link $W(1) $BS(0) 10Mb 10ms DropTail $ns_ duplex-link $W(1) $BS(1) 10Mb 10ms DropTail $ns_ duplex-link-op $W(0) $W(1) orient right $ns_ duplex-link-op $W(1) $BS(0) orient right-up $ns_ duplex-link-op $W(1) $BS(1) orient right-down set udp1 [new Agent/myUDP] $ns_ attach-agent $W(0) $udp1 $udp1 set packetSize_ $packetSize $udp1 set_filename sd_be set null1 [new Agent/myUdpSink3] $ns_ attach-agent $node_(0) $null1 $ns_ connect $udp1 $null1 $null1 set_trace_filename rd_be set original_file_name foreman_cifbase.txt set trace_file_name video1.dat set original_file_id [open $original_file_name r] set trace_file_id [open $trace_file_name w] set frame_count 0 set last_time 0 set pre_time 0 while {[eof $original_file_id] == 0} { ??? gets $original_file_id current_line ??? scan $current_line "%d%f%d%d" seq nexttime length type ??? set time [expr ($nexttime-$pre_time)*1000000.0] ??? puts $trace_file_id "$time $length $type" ??? set pre_time $nexttime ??? incr frame_count } close $original_file_id close $trace_file_id set end_sim_time $nexttime puts "$end_sim_time" set trace_file [new Tracefile] $trace_file filename $trace_file_name set video1 [new Application/Traffic/myTrace3] $video1 attach-agent $udp1 $video1 attach-tracefile $trace_file ?for {set i 0} {$i < $opt(nn)} {incr i} { ??? $ns_ initial_node_pos $node_($i) 20 ?? } $ns_ at 0.0 "$video1 start" $ns_ at [expr $end_sim_time + 0.5] "$video1 stop" $ns_ at [expr $end_sim_time + 1.0] "$null1 closefile" $ns_ at [expr $end_sim_time + 1.0] "finish" proc finish {} { ??????? global ns tracefd namtrace ??????? close $tracefd ??? close $namtrace ??? exec nam video.nam & ??????? exit 0 } $ns_ run i really hope someone reply me a? email a better tcl scrip than my tcl script? ...thank you for your time.. Best regards Anka From jorgegilmoreira at gmail.com Wed Mar 18 14:52:01 2009 From: jorgegilmoreira at gmail.com (Jorge Moreira) Date: Wed, 18 Mar 2009 14:52:01 -0700 (PDT) Subject: [ns] Need OBS simulator In-Reply-To: <1202907596.4024.6.camel@localhost.localdomain> References: <1202907596.4024.6.camel@localhost.localdomain> Message-ID: <22589326.post@talk.nabble.com> hello good night! The links are available.I have downloaded. i tryed to install in version ns-allinone2.31 and i found some error i cannot solve. Please check if you can install it with success. If you can please tell me! Thanks, Jorge Moreira Phivos Petrou wrote: > > > Hi, > > I am trying to create a simulation of a network that uses TCP over OBS > using ns-2. > The problem is that I can't download the OBS simulators that I found > which are: > > 1. OIRC OBS-ns Simulator from http://wine.icu.ac.kr/~obsns/ > 2. OBS-ns simulator from University of Maryland DAWN research lab > (http://dawn.cs.umbc.edu/owns/) > > I can't download the first one because when I fill the form with my > email and other information, I receive an email with a link to a page > that says that this page is expired. > The second one it's because when I try to follow the link > http://dawn.cs.umbc.edu/owns/ says that I don't have access to that > directory. > > Thanks for your time > > > -- View this message in context: http://www.nabble.com/Need-OBS-simulator-tp15457870p22589326.html Sent from the ns-users mailing list archive at Nabble.com. From phenix_yw at hhu.edu.cn Wed Mar 18 20:15:44 2009 From: phenix_yw at hhu.edu.cn (Phenix) Date: Thu, 19 Mar 2009 11:15:44 +0800 Subject: [ns] velocity and direction of mobile nodes References: <437178646.09683@hhu.edu.cn> <437182311.01066@eyou.net><41df069c0903160831j5ee8900bw7ad1e2ae59e7bbae@mail.gmail.com> <437263906.32283@hhu.edu.cn> Message-ID: <437431442.25738@eyou.net> Hi Erico, I don't mean this. What I want is how to control the movement of nodes in C++ code. Thank you all the same. Regards, Phenix -------------------------------------------------- From: "Erico Augusto" Sent: Tuesday, March 17, 2009 12:25 PM To: "ns users" Subject: Re: [ns] velocity and direction of mobile nodes > > The path to one of that generators is: > > ns-allinone-2.xxxx/ns-2.xxx/indep-utils/cmu-scen-gen/setdest/setdest > > > Executing it with: > setdest -v 1 -n 3 -p 5.0 -M 10 -t 100 -x 1000 -y 1000 > 3.scen > yields file 3.scen,with the following content: > > # > # nodes: 3, pause: 5.00, max speed: 10.00, max x: 1000.00, max y: 1000.00 > # > $node_(0) set X_ 862.976950011031 > $node_(0) set Y_ 460.161509856953 > $node_(0) set Z_ 0.000000000000 > $node_(1) set X_ 421.853660313776 > $node_(1) set Y_ 783.424889657734 > $node_(1) set Z_ 0.000000000000 > $node_(2) set X_ 916.298764196723 > $node_(2) set Y_ 904.305358905232 > $node_(2) set Z_ 0.000000000000 > God set-dist 0 1 16777215 > God set-dist 0 2 16777215 > God set-dist 1 2 16777215 > $ns_ at 5.000000000000 "$node_(0) setdest 832.825739455352 > 533.597036262086 > 1.056072784044" > $ns_ at 5.000000000000 "$node_(1) setdest 299.487360122933 > 126.151246074461 > 7.073986914798" > $ns_ at 5.000000000000 "$node_(2) setdest 284.691082829550 > 909.590117911516 > 9.722812248474" > $ns_ at 69.963693017594 "$node_(2) setdest 284.691082829550 > 909.590117911516 > 0.000000000000" > $ns_ at 74.963693017594 "$node_(2) setdest 660.188387920890 > 14.110909759782 > 7.769490905584" > $ns_ at 80.169375043206 "$node_(0) setdest 832.825739455352 > 533.597036262086 > 0.000000000000" > $ns_ at 85.169375043206 "$node_(0) setdest 485.399663672580 > 596.230301776878 > 0.086261529462" > $ns_ at 99.510669546215 "$node_(1) setdest 299.487360122933 > 126.151246074461 > 0.000000000000" > > at tcl script: > .. > set opt(sc) 3.scen ;# node movement file. > .. > > Erico > > > 2009/3/16 Firdaus Alias > >> >> You can control the start/stop of the node via a tcl. The movement of the >> nodes can also be generated by tcl. You may want to look at traffic >> generators for ns-2 if you want to generate more complicated movements. >> >> Firdaus. >> >> On Mon, Mar 16, 2009 at 2:02 PM, Phenix wrote: >> >> > >> > Hi Rainn, >> > >> > I only know how to get the velocity and direction vector, as below: >> > >> > MobileNode * pMNode ; >> > .... >> > speed = pMNode->speed(); >> > dx = pMNode->dX(); >> > dy = pMNode->dY(); >> > >> > >> > I also want to know how to control the movement of mobile nodes, such >> > as, nodes stop moving at a specific time. >> > >> > If anybody know, pls let me know. >> > Thank you! >> > >> > >> > Regards, >> > Phenix >> > >> > -------------------------------------------------- >> > From: "Rainn" >> > Sent: Monday, March 16, 2009 12:45 PM >> > To: >> > Subject: [ns] velocity and direction of mobile nodes >> > >> > > >> > > Dear all, >> > > >> > > I need to manipulate velocity and direction of mobile nodes in ns-2. >> > Could >> > > anyone please help me out "CODE" to manipulate this. >> > > It's urgent ..... >> > > Thanks in advance. >> > > Have a good days always. >> > > >> > >> > >> > From janiruchik at yahoo.co.in Wed Mar 18 20:46:28 2009 From: janiruchik at yahoo.co.in (ruchik jani) Date: Thu, 19 Mar 2009 09:16:28 +0530 (IST) Subject: [ns] Error : " Invalid AODV Packet Format " : Please help me to solve Message-ID: <901310.97246.qm@web94811.mail.in2.yahoo.com> Hi all, ? ??????? I am using?AODV+ (Extension to AODV) for my wired_cum_wireless simulation. In my TCL script if i am enabling routerTrace or macTrace ON then i got error stated " Invalid AODV Packet Format ". ? ??????? So if any body have gone thorugh same error and know the solution then please let me know. ? ????????Your reply is highly appreciated. ? Thanks & Regards, Ruchik N. Jani ? ? Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From tiger-habit at 163.com Wed Mar 18 22:21:32 2009 From: tiger-habit at 163.com (tiger-habit) Date: Thu, 19 Mar 2009 13:21:32 +0800 (CST) Subject: [ns] about how to modify the mobilenode Message-ID: <8501952.278651237440092524.JavaMail.coremail@bj163app12.163.com> hello: I'm a ns beginner,now I want to modify the mobilenode in the ns2, I wantto add some attributes in the mobilenode.I have made some changes. but there are errors in tclcl.h file, I want to know where should I change. From veronicadiaza at gmail.com Thu Mar 19 03:11:49 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Thu, 19 Mar 2009 15:41:49 +0530 Subject: [ns] How to measure the power consumption of nodes present in the network......please help.... Message-ID: Hiiii all.....I am working on "Minimum energy consumption in wireless networks"...I want to measure the power consumed by the all nodes present in the work.....If you guys have any tcl file regarding this please send me the link or the code.......send me any relevant codes or links related to this thing....Thanks in advance.... From lukman_hanif at yahoo.com Thu Mar 19 03:27:56 2009 From: lukman_hanif at yahoo.com (lukman_hanif@yahoo.com) Date: Thu, 19 Mar 2009 03:27:56 -0700 (PDT) Subject: [ns] how to show delay time.... (DSDV , TORA) In-Reply-To: References: Message-ID: <246881.7026.qm@web50906.mail.re2.yahoo.com> >I tried to make simulation to show delay time, sending packets, and >receiving packet (to see lost packet during transmission) if I send a >packet from one node to the other. I used DSDV and TORA algorithm to do this. You could identify the event type (eg: r-receive , d-drop, + -enqueue, - -dequeue, s- sending) in the output trace & from there you could extract the iformation within each line of event type to calculate anything that you want like delay, throughput &etc > But until now, I haven't met a way how to write delay time in trace file You may calculate the delay based on the packet id in the trace output by subtracting its receiving time from sending time...this could be done with simple awk script... Lukman ________________________________ From: "ns-users-request at ISI.EDU" To: ns-users at ISI.EDU Sent: Thursday, March 19, 2009 12:00:24 AM Subject: Ns-users Digest, Vol 63, Issue 19 Send Ns-users mailing list submissions to ns-users at isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-request at isi.edu You can reach the person managing the list at ns-users-owner at isi.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Ns-users digest..." Today's Topics: 1. how to show delay time.... (DSDV , TORA) (erniati amkha) 2. Fwd: No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 (Laziz Yunusov) 3. Re: Fwd: No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 (Kumar, Vineet) 4. How to communicate with both 802.11&16 networks? (simayeji) 5. ns2 node id regarding (muralikrishna g) 6. Fwd: Burst Cloning (Harsha Vardhan) 7. Here is the solution for assigning different power levels to different nodes...... (veronica diaza) 8. i got a patch file regarding span protocol...i patched it, but shows the following error when trying to compile span.tcl.....please help.... (veronica diaza) 9. Problem While installing ns-allinone-2.31 (Udit Kumar) 10. Re: about optical burst switch (Jorge Moreira) 11. Re: disabling RTS/CTS does not work - RTSThreshold_ 3000 (Patxi Azpiroz) 12. Rayleigh Fading..how to include in the simulations (Achintya Jain) 13. ns2measure jain fairness index (Volker Richter) 14. guys are you working on any power aware protocols......please help.... (veronica diaza) 15. AODV whith no hello msg (sarym binome) 16. Re: AODV whith no hello msg (Mubashir Rehmani) 17. Help..wired to wirelsee problem (with script) (Franka Sitepu) 18. Re: Need OBS simulator (Jorge Moreira) ---------------------------------------------------------------------- Message: 1 Date: Wed, 18 Mar 2009 07:52:28 +0700 From: erniati amkha Subject: [ns] how to show delay time.... (DSDV , TORA) To: ns-users at ISI.EDU Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hi.. guys.... I tried to make simulation to show delay time, sending packets, and receiving packet (to see lost packet during transmission) if I send a packet from one node to the other. I used DSDV and TORA algorithm to do this. But until now, I haven't met a way how to write delay time in trace file. is there anyone can help me, please? Thanks for your all help. -- Regard A Kha ------------------------------ Message: 2 Date: Wed, 18 Mar 2009 10:22:37 +0900 From: Laziz Yunusov Subject: [ns] Fwd: No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 To: ns-users at ISI.EDU Message-ID: <9c0de26e0903171822r7697dfb6tca933dabb7c2ad19 at mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Unfortunately, this did not solve the problem. I guess that this may be due to updated GCC, because with older version 3.4.3, nobody seem to have such a problem. Then I even tried: yum install compat-gcc-34.i386 compat-gcc-34-c++.i386 And afterwards, while trying to make, I'm having: common/packet.cc:44: error: conflicting declaration ?char** p_info::name_ [62]? common/packet.h:295: error: ?p_info::name_? has a previous declaration as ?char* p_info::name_ [62]? common/packet.cc:44: error: declaration of ?char* p_info::name_ [62]? outside of class is not definition common/packet.cc:45: error: ?unsigned int p_info::nPkt_? is not a static member of ?class p_info? common/packet.cc:46: error: expected constructor, destructor, or type conversion before ?*? token common/packet.cc:48: error: no ?int p_info::addPacket(char*)? member function declared in class ?p_info? make: *** [common/packet.o] Error 1 Can anyone suggest another solution? ---------- Forwarded message ---------- From: Dimitris Liarokapis Date: Tue, Mar 17, 2009 at 6:51 PM Subject: Re: [ns] No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 To: Laziz Yunusov Hi, Try the following sequence of commands: ./configure make clean make depend make make install Dimitris On 3/17/09, Laziz Yunusov wrote: > > Hi there, > I'm developing a new protocol for ns-2. When I hit "make depend" in > ns-2.33 directory, I'm getting following error message: > make: *** No rule to make target `@V_STLOBJ@', needed by `depend'.??Stop. > Maybe it's because of updated gcc/g++?! Because I didn't have such > error before. Any help appreciated. > P.S. gcc version is 4.3.0 20080428 (Red Hat 4.3.0-8) ------------------------------ Message: 3 Date: Wed, 18 Mar 2009 02:43:23 -0000 From: "Kumar, Vineet" Subject: Re: [ns] Fwd: No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 To: "Laziz Yunusov" , Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, Just do, sudo yum install compat-gcc-34 compat-gcc-34-c++ As you must have understood, the above command will install a gcc/g++ version 3.4 compatibility in your system, but whenever you use gcc/g++ command, your system automatically takes the actuall gcc version of your OS (i.e version 4.3.0). So the trick is whenever you want to use the version 3.4, just replace gcc/g++ by gcc34/g++34 respectively. Regarding ns2.33 (or any ns2.XX) take a fresh ns-allinone-2.33, go to the ns-2.33 folder, In the 'Makefile.in' replace, CC=@CC@ CPP=@CXX@ by CC=gcc34 CPP=g++34 then return to the 'ns-allinone-2.33' directory and start the normal installation process. Regards, Vineet Kumar -----Original Message----- From: ns-users-bounces at ISI.EDU on behalf of Laziz Yunusov Sent: Wed 18/03/2009 01:22 To: ns-users at ISI.EDU Subject: [ns] Fwd: No rule to make target `@V_STLOBJ@', needed by `depend',while re-"make"ing the ns-2.33 Unfortunately, this did not solve the problem. I guess that this may be due to updated GCC, because with older version 3.4.3, nobody seem to have such a problem. Then I even tried: yum install compat-gcc-34.i386 compat-gcc-34-c++.i386 And afterwards, while trying to make, I'm having: common/packet.cc:44: error: conflicting declaration 'char** p_info::name_ [62]' common/packet.h:295: error: 'p_info::name_' has a previous declaration as 'char* p_info::name_ [62]' common/packet.cc:44: error: declaration of 'char* p_info::name_ [62]' outside of class is not definition common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a static member of 'class p_info' common/packet.cc:46: error: expected constructor, destructor, or type conversion before '*' token common/packet.cc:48: error: no 'int p_info::addPacket(char*)' member function declared in class 'p_info' make: *** [common/packet.o] Error 1 Can anyone suggest another solution? ---------- Forwarded message ---------- From: Dimitris Liarokapis Date: Tue, Mar 17, 2009 at 6:51 PM Subject: Re: [ns] No rule to make target `@V_STLOBJ@', needed by `depend', while re-"make"ing the ns-2.33 To: Laziz Yunusov Hi, Try the following sequence of commands: ./configure make clean make depend make make install Dimitris On 3/17/09, Laziz Yunusov wrote: > > Hi there, > I'm developing a new protocol for ns-2. When I hit "make depend" in > ns-2.33 directory, I'm getting following error message: > make: *** No rule to make target `@V_STLOBJ@', needed by `depend'. Stop. > Maybe it's because of updated gcc/g++?! Because I didn't have such > error before. Any help appreciated. > P.S. gcc version is 4.3.0 20080428 (Red Hat 4.3.0-8) ************************************************************************************************** E-mail Confidentiality Notice and Disclaimer. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to which they are addressed. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Hitachi does not accept responsibility for any changes made to this message after it was sent. Hitachi checks outgoing e-mail messages for the presence of computer viruses. ************************************************************************************************** ------------------------------ Message: 4 Date: Wed, 18 Mar 2009 10:49:47 +0800 (CST) From: simayeji Subject: [ns] How to communicate with both 802.11&16 networks? To: ns-users at ISI.EDU Message-ID: <29904451.687311237344587482.JavaMail.coremail at bj163app62.163.com> Content-Type: text/plain; charset=gbk Hello everyone! I'm trying a simulation in which one node needs to communicate with a 802.11 network as well as a 802.16 BS. I have tried multifacenode(in a NIST packet): iface1 as a 802.11AP and iface2 as a 802.16SS, but it does not work probably because the two interfaces does not communicate with each other. Can you help me? Any suggestion is appreciated. Thanks very much. ------------------------------ Message: 5 Date: Wed, 18 Mar 2009 09:17:24 +0530 From: muralikrishna g Subject: [ns] ns2 node id regarding To: NS-mail Message-ID: Content-Type: text/plain; charset=ISO-8859-1 hi to all.. i have asked here how to find the node id in classifier.. but i didnt get any response as i need, but luckily i got solution.. that is name ( ) will write the node id's in classifier... here again my question that.. the node ids i get in tcl code via puts "$node(n)" here it writes node n id.. but i am not getting this id value in classifier... name function writes different ids those are not written by tcl code.. how do i get same node ids in both classifier.cc and node.cc thank u in advance ------------------------------ Message: 6 Date: Wed, 18 Mar 2009 00:09:52 -0700 From: Harsha Vardhan Subject: [ns] Fwd: Burst Cloning To: ns-users at ISI.EDU Message-ID: Content-Type: text/plain; charset=ISO-8859-1 ---------- Forwarded message ---------- From: Harsha Vardhan Date: Wed, Mar 18, 2009 at 12:06 AM Subject: Burst Cloning To: ns-users at isi.edu i'm doing project in ns 2.28 OBS.... can anyone suggest me how to do burst cloning...??? please help me..... Thanks & Regards Harshavardhan ------------------------------ Message: 7 Date: Wed, 18 Mar 2009 14:53:03 +0530 From: veronica diaza Subject: [ns] Here is the solution for assigning different power levels to different nodes...... To: ns-users at ISI.EDU Message-ID: Content-Type: text/plain; charset=ISO-8859-1 To set the power level of different nodes to different values one has to access the WirelessPhy class from a node's array of interfaces (netif_) and then set the corresponding Pt_ to the desired value. For example, the following command sets the power level of node node_(0) to 0.5 W. [[lindex [$node_(0) array get netif_] 1] set Pt_ 0.5] ------------------------------ Message: 8 Date: Wed, 18 Mar 2009 15:03:10 +0530 From: veronica diaza Subject: [ns] i got a patch file regarding span protocol...i patched it, but shows the following error when trying to compile span.tcl.....please help.... To: ns-users at ISI.EDU Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hiiii.....I have a patch file for span protocol....i patched it to ns2.28 since the patch file was basically compiled in ns2.28......When I am trying to complile span.tcl its showing the following error: invalid command name "Agent/SpanAgent" while executing "Agent/SpanAgent set sport_ 255" (file "span.tcl" line 9) Here is the code for span.tcl # span.tcl # ====================================================================== # Default Script Options # ====================================================================== set opt(rt_port) 255 set opt(srcsink) 0 Agent/SpanAgent set sport_ 255 Agent/SpanAgent set dport_ 255 # ====================================================================== Class SpanNode -superclass MobileNode SpanNode instproc init {args} { global opt ns_ tracefd RouterTrace $self instvar span_agent_ dmux_ entry_point_ eval $self next $args ;# parent class constructor # puts "making SpanAgent for node [$self id]" set span_agent_ [new Agent/SpanAgent] $span_agent_ ip-addr [$self id] $span_agent_ mobile-node $self if { $RouterTrace == "ON" } { # Recv Target set rcvT [cmu-trace Recv "RTR" $self] $rcvT target $span_agent_ set entry_point_ $rcvT } else { # Recv Target set entry_point_ $span_agent_ } # # Drop Target (always on regardless of other tracing) # set drpT [cmu-trace Drop "RTR" $self] $span_agent_ drop-target $drpT # # Log Target # set T [new Trace/Generic] $T target [$ns_ set nullAgent_] $T attach $tracefd $T set src_ [$self id] # $span_agent_ log-target $T $span_agent_ target $dmux_ # packets to the Span port should be dropped, since we've # already handled them in the SpanAgent at the entry. set nullAgent_ [$ns_ set nullAgent_] $dmux_ install $opt(rt_port) $nullAgent_ # SpanNodes don't use the IP addr classifier. The SpanAgent should be the # entry point $self instvar classifier_ set classifier_ "srnode made illegal use of classifier_" } SpanNode instproc start-span {} { $self instvar span_agent_ global opt $span_agent_ start-span } SpanNode instproc srcsink {val} { $self instvar span_agent_ $span_agent_ srcsink $val } SpanNode instproc dump-tables {} { $self instvar span_agent_ global opt $span_agent_ dump-tables } SpanNode instproc usepsm {val} { $self instvar span_agent_ $span_agent_ usepsm $val } SpanNode instproc usespan {val} { $self instvar span_agent_ $span_agent_ usespan $val } SpanNode instproc entry {} { $self instvar entry_point_ return $entry_point_ } SpanNode instproc add-interface {args} { # args are expected to be of the form # $chan $prop $tracefd $opt(ll) $opt(mac) global ns_ opt RouterTrace eval $self next $args $self instvar span_agent_ ll_ mac_ ifq_ if { $RouterTrace == "ON" } { # Send Target set sndT [cmu-trace Send "RTR" $self] # $sndT target $ll_(0) # $span_agent_ add-ll $sndT $ifq_(0) $sndT target $ifq_(0) $span_agent_ add-mac $sndT $ifq_(0) $mac_(0) } else { # Send Target # $span_agent_ add-ll $ll_(0) $ifq_(0) $span_agent_ add-mac $ifq_(0) $mac_(0) } } # ====================================================================== proc create-mobile-node { id } { global ns_ chan prop topo tracefd opt node_ global chan prop tracefd topo opt set node_($id) [new SpanNode] set node $node_($id) $node usespan $opt(usespan) $node usepsm $opt(usepsm) $node srcsink $opt(srcsink) $node random-motion 0 ;# disable random motion $node topography $topo # this is where we set the inital energy levels for the nodes # the first parameter is for the inital energy (J) set energy [new EnergyModel $node 10000.0] $node addenergymodel $energy # connect up the channel $node add-interface $chan $prop $opt(ll) $opt(mac) \ $opt(ifq) $opt(ifqlen) $opt(netif) $opt(ant) # # This Trace Target is used to log changes in direction # and velocity for the mobile node and log actions of the DSR agent # set T [new Trace/Generic] $T target [$ns_ set nullAgent_] $T attach $tracefd $T set src_ $id $node log-target $T $ns_ at 0.0 "$node start-span" } Guys please help me and suggest me if you have any solution for this....... ------------------------------ Message: 9 Date: Wed, 18 Mar 2009 16:25:30 +0530 From: Udit Kumar Subject: [ns] Problem While installing ns-allinone-2.31 To: ns-users at ISI.EDU Message-ID: <345fa6f10903180355t54559822y8db3999496cf4292 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Dear Friends , I am struggling while installing ns2 (ns-allinone-2.31) on unix machine, While i am installing this it is giving me issue as below (Means "nam" and "Xgraph" is not installed), How I can complete my installation, If this is X11 check compatability problem then from where I can download ns-allinone-2.31 compatable X11. I did't find information related to this on ns installation problem page. Please help me . Thanks in advance. Thanks & Regards, Udit Kumar [udit at trishul nam-1.13]$ make rm -f nam g++ -o nam \ tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o parser.o trafficsource.o lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o -L/home/students/ms/udit/SLDM/ project/ns-allinone-2.31/ns-allinone-2.31/tclcl-1.19 -ltclcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/otcl-1.13 -lotcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltk8.4 -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltcl8.4 -L/usr/lib -lz -L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when searching for -lXext /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when searching for -lXext /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit status make: *** [nam] Error 1 ------------------------------ Message: 10 Date: Wed, 18 Mar 2009 03:58:40 -0700 (PDT) From: Jorge Moreira Subject: Re: [ns] about optical burst switch To: ns-users at ISI.EDU Message-ID: <22576681.post at talk.nabble.com> Content-Type: text/plain; charset=us-ascii Hi there! There is a module that simulates Optical burst networks. Google for OWNS module for ns2 http://dawn.cs.umbc.edu/owns/ Im using the ns2.31 allinone ns version and im getting some errors. If you can sucessfully install this module please let me know! Best regards, Jorge Moreira vaishali mandhare wrote: > > > hello all, > Which ns version support optical bus switch? > How can implement sheduling algorithm in ns2. > Plz, send about this. > > Thanks! > > > > > > Connect with friends all over the world. Get Yahoo! India Messenger > at http://in.messenger.yahoo.com/?wm=n/ > > -- View this message in context: http://www.nabble.com/about-optical-burst-switch-tp22177804p22576681.html Sent from the ns-users mailing list archive at Nabble.com. ------------------------------ Message: 11 Date: Wed, 18 Mar 2009 12:07:08 +0100 From: Patxi Azpiroz Subject: Re: [ns] disabling RTS/CTS does not work - RTSThreshold_ 3000 To: NS-2 mailing list Message-ID: Content-Type: text/plain; charset=ISO-8859-1 I have realized that the mistake was I try to change MAC settings after configuring the node and you must do it before. Mac/802_11 set RTSThreshold_ 3000 $ns node-config -adhocRouting $val(rp) \ ... 2009/3/17 Patxi Azpiroz : > Dear NS users: > I'm pretty new in ns sorry if the question is too trivial but I can't > come with it. > I put Mac/802_11 set RTSThreshold_ 3000 to disable RTS/CTS been the > packe size 270. > After the simulation the trace file shows RTS/CTS packets. Why is it so? > > I have seen this problen in the mailing list more than once but there > is no solution that works in my case. > > Thanks, > > Patxi. > -- Patxi Azpiroz De Pedro ------------------------------ Message: 12 Date: Wed, 18 Mar 2009 20:15:17 +0800 From: Achintya Jain Subject: [ns] Rayleigh Fading..how to include in the simulations To: ns-users at ISI.EDU Message-ID: <39fa490f0903180515o7e5d801dsd027cbc06e40f778 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 please I need urgent help.. can somebody send me the necessry files and tel how to analyse the rayleigh fading in the wireless channel.. Pleas respond very fst ------------------------------ Message: 13 Date: Wed, 18 Mar 2009 16:13:38 +0100 From: Volker Richter Subject: [ns] ns2measure jain fairness index To: ns-users at ISI.EDU Message-ID: <49C10FA2.4050107 at gmx.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Hello, I would like to use the jain fairness estimator provided by the ns2measure add-on. Unfortunately, I have not found any documentation or example for this feature. I would really appreciate if some could give me a short example, how to use this function in ns2measure. Thanks a lot Volker ------------------------------ Message: 14 Date: Thu, 19 Mar 2009 00:39:39 +0530 From: veronica diaza Subject: [ns] guys are you working on any power aware protocols......please help.... To: ns-users at ISI.EDU Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hiii guys....I am working on minimum power consumption protocols.....If any one you have worked on any protocol regarding power consumption, please let me know......If you people have any patch files or links for any power aware protocols...please send me and your suggestions are really welcome......Thanks a lot.... ------------------------------ Message: 15 Date: Wed, 18 Mar 2009 19:16:36 +0000 From: sarym binome Subject: [ns] AODV whith no hello msg To: simulateur user Message-ID: Content-Type: text/plain; charset="iso-8859-1" hi everybody i wrote a small tcl script i use AODV protocol but when i open the trace file , i don't find any HELLO message , i note that the simulation duration is 200 why is this happen ?? regards _________________________________________________________________ Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live?? Lancez-vous ! http://www.microsoft.com/windows/windowslive/default.aspx ------------------------------ Message: 16 Date: Wed, 18 Mar 2009 20:23:24 +0100 From: Mubashir Rehmani Subject: Re: [ns] AODV whith no hello msg To: sarym binome Cc: ns-users Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hi Sarym Comment the following two lines in aodv.cc 00092 #ifndef AODV_LINK_LAYER_DETECTION 00095 #endif // LINK LAYER DETECTION and then do make make clean sudo make install and you will see **hello** packets in your trace file. Regards Mubashir Husain Rehmani www-npa.lip6.fr/~rehmani 2009/3/18 sarym binome > > > hi everybody > i wrote a small tcl script i use AODV protocol > but when i open the trace file , i don't find any HELLO message , i note > that the simulation duration is 200 > why is this happen ?? > > regards > > _________________________________________________________________ > Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? > Lancez-vous ! > http://www.microsoft.com/windows/windowslive/default.aspx > -- Mubashir Husain Rehmani ------------------------------ Message: 17 Date: Wed, 18 Mar 2009 12:37:43 -0700 (PDT) From: Franka Sitepu Subject: [ns] Help..wired to wirelsee problem (with script) To: ns-users at ISI.EDU Message-ID: <896167.97070.qm at web54406.mail.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Hi,,,i want to make a topology based on wired cum wireless network i use : -1 server, 1 router and 2 access point connect wired -each access point connect wireless with 2 mobile node Topology i want to build : #?????????????????????????????????????????? [AP1]-? -? -? -? -??? -[D1]?? #??????????????????????????????????????????? -??????? -??????????????? #????????????????????????????????????????? -??????????? -?????????????? #??????????????????????????????????????? -??????????????? -?? -?? --[D2] #?????????????????????????????????????? - #????????????????????????????????????? -??????????????????????????????? #[S1]--------------[R1]-----------????????????????????????????????????? #??????????????????????????????????? -????????????????????????????????? #?????????????????????????????????????? -?????????????????????????????? #????????????????????????????????????????? [AP2]-? -?? -?? -??? - -[D3] #??????????????????????????????????????????????????? -????????????????? #????????????????????????????????????????????????????? -?????????????? #??????????????????????????????????????????????????????? -?? -??? -[D4] i am already make a script but i can only make 3 mobile node and position mobile node under [S1] or server.in this script i use Evalvid too..but all i want to ask how to make tcl script in topology above.. set opt(chan)?????? Channel/WirelessChannel set opt(prop)?????? Propagation/TwoRayGround set opt(netif)????? Phy/WirelessPhy set opt(mac)??????? Mac/802_11 set opt(ifq)??????? Queue/DropTail/PriQueue set opt(ll)???????? LL set opt(ant)??????? Antenna/OmniAntenna set opt(x)???????????? 670?? set opt(y)????????????? 670?? set opt(ifqlen)???????? 50?? set opt(nn)??? ??? 3 set opt(adhocRouting)?? DSDV? set opt(seed)??? ??? 0.0 set packetSize 1500 set ns_ [new Simulator] set tracefd [open video.tr w] set namtrace [open video.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) set num_wired_nodes? 2 set num_bs_nodes 2 set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) create-god [expr $opt(nn) + $num_bs_nodes] $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 3 lappend cluster_num 2 1 1 AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 1 4 1 AddrParams set nodes_num_ $eilastlevel set temp {0.0.0 0.1.0} for {set i 0} {$i < $num_wired_nodes} {incr i} { ??? set W($i) [$ns_ node [lindex $temp $i]] } $ns_ node-config? -adhocRouting $opt(adhocRouting) \ ??? ??? -llType $opt(ll) \ ???????????????? -macType $opt(mac) \ ???????????????? -ifqType $opt(ifq) \ ???????????????? -ifqLen $opt(ifqlen) \ ???????????????? -antType $opt(ant) \ ???????????????? -propInstance [new $opt(prop)] \ ???????????????? -phyType $opt(netif) \ ???????????????? -channel [new $opt(chan)] \ ???????????????? -topoInstance $topo \ ???????????????? -wiredRouting ON \ ???????????????? -agentTrace ON \ ???????????????? -routerTrace OFF \ ???????????????? -macTrace OFF \ ??? ??? ?-movementTrace OFF \ set temp {1.0.0 1.0.1 1.0.2 1.0.3} set BS(0) [$ns_ node [lindex $temp 0]] set BS(1) [$ns_ node 2.0.0] $BS(0) random-motion 0 $BS(1) random-motion 0 $BS(0) set X_ 1.0 $BS(0) set Y_ 2.0 $BS(0) set Z_ 0.0 $BS(1) set X_ 50.0 $BS(1) set X_ 50.0 $BS(1) set Z_ 0.0 $ns_ node-config -wiredRouting OFF for {set j 0} {$j < $opt(nn)} {incr j} { ??? set node_($j) [ $ns_ node [lindex $temp \ ??? [expr $j +1]]] ??? $node_($j) base-station [AddrParams addr2id [$BS(0) node-addr]] ?} $W(0) label "server" $ns_ duplex-link $W(0) $W(1) 10Mb 10ms DropTail $ns_ duplex-link $W(1) $BS(0) 10Mb 10ms DropTail $ns_ duplex-link $W(1) $BS(1) 10Mb 10ms DropTail $ns_ duplex-link-op $W(0) $W(1) orient right $ns_ duplex-link-op $W(1) $BS(0) orient right-up $ns_ duplex-link-op $W(1) $BS(1) orient right-down set udp1 [new Agent/myUDP] $ns_ attach-agent $W(0) $udp1 $udp1 set packetSize_ $packetSize $udp1 set_filename sd_be set null1 [new Agent/myUdpSink3] $ns_ attach-agent $node_(0) $null1 $ns_ connect $udp1 $null1 $null1 set_trace_filename rd_be set original_file_name foreman_cifbase.txt set trace_file_name video1.dat set original_file_id [open $original_file_name r] set trace_file_id [open $trace_file_name w] set frame_count 0 set last_time 0 set pre_time 0 while {[eof $original_file_id] == 0} { ??? gets $original_file_id current_line ??? scan $current_line "%d%f%d%d" seq nexttime length type ??? set time [expr ($nexttime-$pre_time)*1000000.0] ??? puts $trace_file_id "$time $length $type" ??? set pre_time $nexttime ??? incr frame_count } close $original_file_id close $trace_file_id set end_sim_time $nexttime puts "$end_sim_time" set trace_file [new Tracefile] $trace_file filename $trace_file_name set video1 [new Application/Traffic/myTrace3] $video1 attach-agent $udp1 $video1 attach-tracefile $trace_file ?for {set i 0} {$i < $opt(nn)} {incr i} { ??? $ns_ initial_node_pos $node_($i) 20 ?? } $ns_ at 0.0 "$video1 start" $ns_ at [expr $end_sim_time + 0.5] "$video1 stop" $ns_ at [expr $end_sim_time + 1.0] "$null1 closefile" $ns_ at [expr $end_sim_time + 1.0] "finish" proc finish {} { ??????? global ns tracefd namtrace ??????? close $tracefd ??? close $namtrace ??? exec nam video.nam & ??????? exit 0 } $ns_ run i really hope someone reply me a? email a better tcl scrip than my tcl script? ...thank you for your time.. Best regards Anka ------------------------------ Message: 18 Date: Wed, 18 Mar 2009 14:52:01 -0700 (PDT) From: Jorge Moreira Subject: Re: [ns] Need OBS simulator To: ns-users at ISI.EDU Message-ID: <22589326.post at talk.nabble.com> Content-Type: text/plain; charset=us-ascii hello good night! The links are available.I have downloaded. i tryed to install in version ns-allinone2.31 and i found some error i cannot solve. Please check if you can install it with success. If you can please tell me! Thanks, Jorge Moreira Phivos Petrou wrote: > > > Hi, > > I am trying to create a simulation of a network that uses TCP over OBS > using ns-2. > The problem is that I can't download the OBS simulators that I found > which are: > > 1. OIRC OBS-ns Simulator from http://wine.icu.ac.kr/~obsns/ > 2. OBS-ns simulator from University of Maryland DAWN research lab > (http://dawn.cs.umbc.edu/owns/) > > I can't download the first one because when I fill the form with my > email and other information, I receive an email with a link to a page > that says that this page is expired. > The second one it's because when I try to follow the link > http://dawn.cs.umbc.edu/owns/ says that I don't have access to that > directory. > > Thanks for your time > > > -- View this message in context: http://www.nabble.com/Need-OBS-simulator-tp15457870p22589326.html Sent from the ns-users mailing list archive at Nabble.com. ------------------------------ _______________________________________________ Ns-users mailing list Ns-users at isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 63, Issue 19 **************************************** From mrbalador at yahoo.com Thu Mar 19 07:35:18 2009 From: mrbalador at yahoo.com (ali bala) Date: Thu, 19 Mar 2009 07:35:18 -0700 (PDT) Subject: [ns] installation ns under linux problem Message-ID: <926551.89608.qm@web45106.mail.sp1.yahoo.com> hi i had problem with nam under cyqwin/x and now i install linux ubuntu 8.10 then try to install ns2.33and2.30 when i run ns installation with ../install after 5 mins i see this error : make:***[tk3d.o] error1 tk8.4..13 make failed! exiting... after that i follow this link : http://nsnam.isi.edu/nsnam/index.php/Installing_ns2.31_on_Ubuntu7.04 but when i try to edit sources.list i see this error : you do not permission to save this file. whats my problem and solution? thanks ?mr.ali.balador homepage:www.balador.org From linhnm3010 at gmail.com Thu Mar 19 09:51:27 2009 From: linhnm3010 at gmail.com (=?UTF-8?B?TGluaCBOZ3V54buFbg==?=) Date: Thu, 19 Mar 2009 23:51:27 +0700 Subject: [ns] measure SINR or CINR at the Subscriber Station (Mobile node) Message-ID: <49C2780F.7030302@gmail.com> Hi all, I need to measure SINR or CINR of the signal received at SS node in a 802.16 WiMAX scenario so I can use the maxCINR algorithm to schedule the packet, but I don't know how to do. Can you help me NS users? Thank all of you in advance! From nadine341 at yahoo.fr Thu Mar 19 10:00:14 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Thu, 19 Mar 2009 17:00:14 +0000 (GMT) Subject: [ns] Re : installation ns under linux problem Message-ID: <500516.93217.qm@web28309.mail.ukl.yahoo.com> Hello, Follow the steps mentioned in this link and you will succeed to install NS2..33 "http://www.jasonernst.com/2008/06/11/ns-233-and-nam-on-ubuntu-804-hardy-heron/" Hope this helps. --- En date de?: Jeu 19.3.09, ali bala a ?crit?: De: ali bala Objet: [ns] installation ns under linux problem ?: "ns ns" , teerawas at tot.co.th, teerawat at ece.ubc.ca, volker.richter at gmx.de Date: Jeudi 19 Mars 2009, 14h35 hi i had problem with nam under cyqwin/x and now i install linux ubuntu 8.10 then try to install ns2.33and2.30 when i run ns installation with ../install after 5 mins i see this error : make:***[tk3d.o] error1 tk8.4..13 make failed! exiting... after that i follow this link : http://nsnam.isi.edu/nsnam/index.php/Installing_ns2.31_on_Ubuntu7.04 but when i try to edit sources.list i see this error : you do not permission to save this file. whats my problem and solution? thanks ?mr.ali.balador homepage:www.balador.org ? ? ? From udit.vlsi at gmail.com Thu Mar 19 12:02:55 2009 From: udit.vlsi at gmail.com (Udit Kumar) Date: Fri, 20 Mar 2009 00:32:55 +0530 Subject: [ns] ns2 installation : X11 problem with ns2.31 Message-ID: <345fa6f10903191202g75711652iec3a6d2f3b6b683b@mail.gmail.com> Hi Friends, While I am running ./install command to install *ns-allinone-2.31*, I am getting below ERRORS : My machine deatils are as follows : [udit at trishul ex]$ uname -a Linux trishul 2.6.9-42.0.10.EL #1 Fri Feb 16 17:03:28 EST 2007 x86_64 x86_64 x86_64 GNU/Linux Please help me ASAP, I need to start my project on this, I will be very thankful of all of you. Thanks & Regards, Udit Kumar *[udit at trishul ns-allinone-2.31]$ ./install* g++ -o nam \ tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o parser.o trafficsource.o lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/tclcl-1.19 -ltclcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/otcl-1.13 -lotcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltk8.4 -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltcl8.4 -L/usr/lib -lz -L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when searching for -lXext /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when searching for -lXext /usr/bin/ld: cannot find -lXext collect2: ld returned 1 exit status * It seems there is issue with " /usr/X11R6/lib/libXext" compatability with ns2, Please tell me from where I can download **X11R6** compatable with ns2.31. ** And It is telling to set few environment variable, I did this but While I am running "./validate" command then also it is showing below problem in validate tests.* Tests: tahoe1 tahoe1Bytes tahoe1RED tahoe1REDbytes tahoe2 tahoe3 tahoe3RED tahoe4 no_bug bug reno1 reno renoA reno2 reno3 reno4 reno4a reno5 reno5_nobug telnet delayed phase phase1 phase2 timers manyflows stats statsECN stats1 stats1Bytes stats1a stats1aBytes statsHeaders stats2 stats3 stats4 statsTFRC Running test tahoe1: ../../ns test-suite-simple.tcl tahoe1 QUIET Guide: Tahoe TCP with multiple packets dropped from a window of data. True average queue: 0.425 time: 4.997 Test output agrees with reference output Running test tahoe1Bytes: ../../ns test-suite-simple.tcl tahoe1Bytes QUIET Guide: DropTail queue in bytes instead of packets. True average queue: 425.245 (in bytes) time: 4.997 Test output agrees with reference output Running test tahoe1RED: ../../ns test-suite-simple.tcl tahoe1RED QUIET Guide: RED queue, configured for 5 packets instead of DropTail's 6 packets. True average queue: 0.425 time: 4.997 * While running ns using simple.tcl , it is shwoing issue as below:* [udit at trishul ex]$ ns simple.tcl 210 0.0037499999999999999 running nam... ns: finish: couldn't execute "nam": no such file or directory while executing "exec nam out.nam &" (procedure "finish" line 8) invoked from within "finish" From muralikrishna4g at gmail.com Thu Mar 19 20:47:39 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Fri, 20 Mar 2009 09:17:39 +0530 Subject: [ns] tcl code execution in c++ Message-ID: hi to all.. i have toexecute the some tcl code through c++ code... i have to make a condition in classifier.. and if the condition satisfies i have to execute some tcl code.. how to do this.. please help me in detail.. thanks in advance From binome_ini at hotmail.com Fri Mar 20 03:03:27 2009 From: binome_ini at hotmail.com (sarym binome) Date: Fri, 20 Mar 2009 10:03:27 +0000 Subject: [ns] how to get INSPECT Message-ID: hello does somebody know how can i get INSPACT ? i wish to use this tool to visualize my network I would be grateful if you can provide it. best regards _________________________________________________________________ D?couvrez tout ce que Windows Live a ? vous apporter ! http://www.microsoft.com/windows/windowslive/ From huunal at gmail.com Fri Mar 20 05:43:34 2009 From: huunal at gmail.com (hakki) Date: Fri, 20 Mar 2009 05:43:34 -0700 (PDT) Subject: [ns] nam problem In-Reply-To: <423217.60603.qm@web45112.mail.sp1.yahoo.com> References: <423217.60603.qm@web45112.mail.sp1.yahoo.com> Message-ID: <22619528.post@talk.nabble.com> Hi I faced with the same problem, have you ever found any solution to your problem thanks hakki balador wrote: > > > > I have installed ns-2.33 on cygwin on xp. > > while running simple example programs, I get error, > > $ nam: no display name and no $DISPLAY environment variable. > > ? > > I tried set it with export DSIPLAY=:0..0 > > it gives error ? > > $ nam: couldn't connect to display "0.0" > > I also tried ?startx before running programs, it gives following error, > > $ nam: > > [code omitted because of length] > > : no event type or button # or keysym > > ? ?while executing > > "bind Listbox { > > %W yview scroll [expr {- (%D / 120) * 4}] units > > }" > > ? ?invoked from within > > "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} > { > > bind Listbox { > > %W yview scroll [expr {- (%D)}] units > > } > > bind Li..."? > > can anybody figure out where the problem lies? > > I am new to ns-2 as well as linux environment so please..... > > ? > > Thanks in anticipation. > ? > Regards,? > > ali balador, > > > > > -- View this message in context: http://www.nabble.com/nam-problem-tp22422807p22619528.html Sent from the ns-users mailing list archive at Nabble.com. From Vineet.Kumar at Hitachi-eu.com Fri Mar 20 07:35:23 2009 From: Vineet.Kumar at Hitachi-eu.com (Kumar, Vineet) Date: Fri, 20 Mar 2009 14:35:23 -0000 Subject: [ns] nam problem References: <423217.60603.qm@web45112.mail.sp1.yahoo.com> <22619528.post@talk.nabble.com> Message-ID: Hi Hakki. I had the same problem with ns2.33 on Fedora 9, there is some tk binding problem there... What I did: Download the tk-8.4-lastevent.patch from , http://bugs.gentoo.org/show_bug.cgi?id=225999 place it in ur tk8.4.18 directory and go to the same directory and execute, patch -p0 < ./tk-8.4-lastevent.patch then go back , cd .. and do , ./install ./configure make ./validate It should solve the problem (it did for me :)! ) Regards, Vineet Kumar -----Original Message----- From: ns-users-bounces at ISI.EDU on behalf of hakki Sent: Fri 3/20/2009 12:43 PM To: ns-users at ISI.EDU Subject: Re: [ns] nam problem Hi I faced with the same problem, have you ever found any solution to your problem thanks hakki balador wrote: > > > > I have installed ns-2.33 on cygwin on xp. > > while running simple example programs, I get error, > > $ nam: no display name and no $DISPLAY environment variable. > > ? > > I tried set it with export DSIPLAY=:0..0 > > it gives error ? > > $ nam: couldn't connect to display "0.0" > > I also tried ?startx before running programs, it gives following error, > > $ nam: > > [code omitted because of length] > > : no event type or button # or keysym > > ? ?while executing > > "bind Listbox { > > %W yview scroll [expr {- (%D / 120) * 4}] units > > }" > > ? ?invoked from within > > "if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} > { > > bind Listbox { > > %W yview scroll [expr {- (%D)}] units > > } > > bind Li..."? > > can anybody figure out where the problem lies? > > I am new to ns-2 as well as linux environment so please..... > > ? > > Thanks in anticipation. > ? > Regards,? > > ali balador, > > > > > -- View this message in context: http://www.nabble.com/nam-problem-tp22422807p22619528.html Sent from the ns-users mailing list archive at Nabble.com. ************************************************************************************************** E-mail Confidentiality Notice and Disclaimer. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to which they are addressed. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Hitachi does not accept responsibility for any changes made to this message after it was sent. Hitachi checks outgoing e-mail messages for the presence of computer viruses. ************************************************************************************************** From raju.ju.it at gmail.com Fri Mar 20 10:12:25 2009 From: raju.ju.it at gmail.com (Raju Sarkar) Date: Fri, 20 Mar 2009 13:12:25 -0400 Subject: [ns] Fwd: Trace analysis... In-Reply-To: <815746eb0903200613g71247332mc468b6f9eee6ab8@mail.gmail.com> References: <815746eb0903200613g71247332mc468b6f9eee6ab8@mail.gmail.com> Message-ID: <815746eb0903201012k7da6255dke474376a3285ccea@mail.gmail.com> ---------- Forwarded message ---------- From: Raju Sarkar Date: Fri, Mar 20, 2009 at 9:13 AM Subject: Trace analysis... To: ns-users at isi.edu i send u a trace file that is trace file of the wpan_demo5 example in the NS2 under this directory. ./ns-allinone-2.33/ns-2.33/tcl/ex/wpan/wpan_demo5.tr i dont know how to calculate parameters like throughput,delay(average,maximam),overhead(average,maximam),packet delivery ratio etc. Plzz send some awk example scripts that calculate this parameters. Thanks & Regards, Raju Sarkar From palucci at smar.com.br Fri Mar 20 10:24:46 2009 From: palucci at smar.com.br (Rodrigo Palucci Pantoni) Date: Fri, 20 Mar 2009 14:24:46 -0300 Subject: [ns] wireless 802.11 example from Marc Greis tutorial Message-ID: <6A34CAD931D642DFBCF40FA2A8BEC28A@rodrigopalucci> Hello all, I have a doubt about a wireless 802.11 example desbribed on the page http://www.isi.edu/nsnam/ns/tutorial/ from the Marc Greis tutorial. The topic is IX.1 Creating a simple wireless scenario . I have executed the file simple-wireless.tcl (ns 2.33), that generated the trace file "Simple.tr". In the site, the following explanation was described: "We see TCP flow starting at 10.0s from node0. Initially both the nodes are far apart and thus TCP pkts are dropped by node0 as it cannot hear from node1. Around 81.0s the routing info begins to be exchanged between both the nodes and around 100.0s we see the first TCP pkt being received by the Agent at node1 which then sends an ACK back to node0 and the TCP connection is setup. However as node1 starts to move away from node0, the connection breaks down again around time 116.0s. Pkts start getting dropped as the nodes move away from one another. " However, the ACK messages from AGT start to be sent earlier than 100.0s. The first line which ACK is received is the following (at 76.446087674 s): r 76.446087674 _0_ AGT --- 18 ack 60 [13a 0 1 800] ------- [1:0 0:0 32 0] [0 0] 1 0 It is right my interpretation? On other hand, the last AGT start to be sent later than 116.0s, at the time 116.341737823 . r 116.341737823 _1_ AGT --- 6476 tcp 1060 [13a 1 0 800] ------- [0:0 1:0 32 1] [3229 0] 1 0 It is also right my interpretation? The trace file "Simple.tr" is compacted and attached in this email. This is the new or old wireless frame that ns manual refers? Thanks in Advance. Rodrigo From gohchinleong at hotmail.com Fri Mar 20 23:21:27 2009 From: gohchinleong at hotmail.com (Edwin Goh) Date: Sat, 21 Mar 2009 06:21:27 +0000 Subject: [ns] Help : AOMDV problem in NS-2 Message-ID: I currently using vmware on ubuntu 8.04. I already manage to install ns-allinone-2.33 and patch AOMDV code as in http://wpage.unina.it/marce=llo.caleffi/ns2/aomdv.html Anyone have the AOMDV tcl scripts which using in "On-demand Multipath Distance Vector Routing in Ad Hoc Networks" by Mahesh K.Marina and Samir R.Das??? I need it to continue my evaluation. Anyone have can provide me it? Thanks a lots Regards Chin Leong _________________________________________________________________ Windows Live? SkyDrive: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_032009 From spyros_mar at yahoo.gr Sat Mar 21 02:34:30 2009 From: spyros_mar at yahoo.gr (Spyros Marinis) Date: Sat, 21 Mar 2009 09:34:30 +0000 (GMT) Subject: [ns] MAC traces -HELP!! Message-ID: <171118.64337.qm@web25501.mail.ukl.yahoo.com> Hi everybody!! Could someone explain to me what the fields in mac traces mean?? I get something like: s 0.525103445 _2_ MAC? --- 12 sctp 1558 [13a 2 0 800] ------- [0:0 4194305:0 29 4194305] [1 D 2 0 1] 0 0 r 0.531431714 _4_ MAC? --- 12 sctp 1500 [13a 2 0 800] ------- [0:0 4194305:0 29 4194305] [1 D 2 0 1] 1 0 I think I understand some of these, but if column 7 is bytes of the packet, why does it send 1558 bytes, when the original packet had only 1500, as much it is correctly received afterwards???? Are these 58 additional bytes some kind of header? And if yes, why aren't they counted when packet is received? I also cannot understand what the AGT packets are, like these: r 0.575538683 _4_ AGT? --- 19 sctp 1500 [13a 2 0 800] ------- [0:0 4194305:0 29 4194305] [1 D 7 0 6] 1 0 Any help will be appreciated. Thanks in advance, Spyros ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From binome_ini at hotmail.com Sat Mar 21 02:52:24 2009 From: binome_ini at hotmail.com (sarym binome) Date: Sat, 21 Mar 2009 09:52:24 +0000 Subject: [ns] FW: INSPECT Message-ID: hi again i want please the INSPECT 3D version . i read about it in this link http://www.cn.uni-duesseldorf.de/publications/library/Scheuermann2005b.pdf i get other INSPECT but it's 2D best regards From: binome_ini at hotmail.com To: ns-users at isi.edu Subject: INSPECT Date: Fri, 20 Mar 2009 09:56:03 +0000 hello does somebody know how can i get INSPACT ? i wish to use this tool to visualize my network I would be grateful if you can provide it. best regards Tous vos amis discutent sur Messenger, et vous ? T?l?chargez Messenger, c'est gratuit ! _________________________________________________________________ D?couvrez tout ce que Windows Live a ? vous apporter ! http://www.microsoft.com/windows/windowslive/ From veronicadiaza at gmail.com Sat Mar 21 05:54:32 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Sat, 21 Mar 2009 18:24:32 +0530 Subject: [ns] Guys, Here is the solution to Get Neighbors of a Mobile Node in Wireless Simulation...... Message-ID: Hiiii ns-users, i remember people posting regarding " how to get neighbours of a mobile node".....Here is the solution for you people in the following attachment......have a nice day... From kiraneet.sharma at gmail.com Sat Mar 21 07:18:25 2009 From: kiraneet.sharma at gmail.com (Kiraneet sharma) Date: Sat, 21 Mar 2009 19:48:25 +0530 Subject: [ns] An extension of AODV in ns-2.31 Message-ID: <2c8fad260903210718q52f315b1ga7502c7a55f11725@mail.gmail.com> Respected brothers/sisters, I am a begineer in ns-2. Currently I am working over a mini project where I am implemeting the paper "A Semi-Proactive AODV Routing Protocol for Wireless Networks", (2008 International Conference on Advanced Computer Theory and Engineering) I had to make quite a few changes in AODV protocol,but I have got stuck over some 1. I have added a counter field, min_thr(threshold) and max_thr in class aodv_rt_entry { friend class aodv_rtable; friend class AODV; ... ... double rt_expire; // when entry expires u_int8_t rt_flags; int counter; int minthr; int maxthr; ... ... } Now these have to be initialized as min_threshold=no of neighbors max_threshold=2*min_threshold. Q: How do I use the AODV_Neighbor class/nb_list to initialize these values ? 2. Whenever a node receives a RERR message for each unreachable destination included in the packet, the node determines whether the source node forwarding the RERR packet is the next hop used to reach that destination. It then checks the Counter value for this entry is above Min_Threshold, if so, the node will initiate a RREQ with the value one. So it updates it's table only, and forward it to find a new route to that destination.other intermediate nodes receive this RREQ, they will not increment the Counter value for this entry in their and just reply back with an available route to this destination For this I have made changes in aodv.cc void AODV::rt_resolve(Packet *p) { struct hdr_cmn *ch = HDR_CMN(p); struct hdr_ip *ih = HDR_IP(p); aodv_rt_entry *rt; ... ... /* * I am trying to forward a packet for someone else to which * I don't have a route. */ else { Packet *rerr = Packet::alloc(); struct hdr_aodv_error *re = HDR_AODV_ERROR(rerr); /* * For now, drop the packet and send error upstream. * Now the route errors are broadcast to upstream * neighbors - Mahesh 09/11/99 */ if(rt->counter>rt->minthr) { sendRequest(rt->rt_dst,1); } else { assert (rt->rt_flags == RTF_DOWN); re->DestCount = 0; ... ... } } Is this the correct function to be changed for this purpose? I have changed the prototype and definition od sendRequest function too. 3. The Counter field of the route entry is checked before deletion(i.e. after it has crossed it's LIFETIME period). If the Counter -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello, I am trying to evaluate the SCTP-CMT protocol present in ns-2.33 It works well with a source and a destination but when I try two sources and two destinations, ns seems to infinitely looping never finishing the simulation :( my topo is as follow: start0_if_0 end0_if_0 / \ / \ core0_start \ / core0_end \ \ / / start0_if_1 \ / end0_if_1 \ \ / / router0 -- router1 / / \ \ start1_if_0 / \ end1_if_0 / / \ \ core1_start / \ core1_end \ / \ / start1_if_1 end1_if_1 core0_start connected to core0_end core1_start connected to core1_end all traffic go through a shared link between router0 and router1 This topo works well with simple SCTP agent : [new Agent/SCTP] but not with CMT : [new Agent/SCTP/CMT] could someone help me ? Arnaud ps: I work with ns-2.33 under both Ubuntu 8.10 and CentOS 5.2 pps sorry if the asci-shema is not perfect gmail doesn't seems to use fixed width font -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.5) iEYEAREIAAYFAknFF3YACgkQHpJ+LMVPWRIzHACgjwozc4RSiWbSDWPYXMOjAOrz z84An3i59X2qK8FtWE+4+AErhRgBbC/7 =qLw5 -----END PGP SIGNATURE----- From mohammed2742007 at yahoo.com Sat Mar 21 13:06:20 2009 From: mohammed2742007 at yahoo.com (mohamed saad) Date: Sat, 21 Mar 2009 13:06:20 -0700 (PDT) Subject: [ns] Fw: SEAD and ARIADNE Message-ID: <586553.71063.qm@web45405.mail.sp1.yahoo.com> --- On Sat, 3/21/09, mohamed saad wrote: From: mohamed saad Subject: SEAD and ARIADNE To: "nsusers" Date: Saturday, March 21, 2009, 9:57 PM salam alikom ? i,m very need?a source code for SEAD or ARIADNE if you have it can you help me and send it to me. ? all regards ? mohammed saad ? From minarz at gmail.com Sat Mar 21 18:08:34 2009 From: minarz at gmail.com (mm) Date: Sun, 22 Mar 2009 09:08:34 +0800 Subject: [ns] how to create control frames traffic in ns2 Message-ID: <6e5ba8080903211808h6b40a261ka22317c8bc3f8962@mail.gmail.com> Hello dear all I am working on a project to simulate infrastructure wireless control frame DoS attacks in ns2. I know how we can send TCP or UDP traffic but can you please tell me how i can transmit RTS,CTS, ACK, or contention free-End traffic from a source to destination with specific interval time? I couldn't find any agent to do this. Thank you very much From raju.ju.it at gmail.com Sat Mar 21 21:40:23 2009 From: raju.ju.it at gmail.com (Raju Sarkar) Date: Sun, 22 Mar 2009 00:40:23 -0400 Subject: [ns] Trace analysis... In-Reply-To: <815746eb0903201012k7da6255dke474376a3285ccea@mail.gmail.com> References: <815746eb0903200613g71247332mc468b6f9eee6ab8@mail.gmail.com> <815746eb0903201012k7da6255dke474376a3285ccea@mail.gmail.com> Message-ID: <815746eb0903212140i6c784925rfd6d4c3e2580f3e2@mail.gmail.com> ---------- Forwarded message ---------- From: Raju Sarkar Date: Fri, Mar 20, 2009 at 1:12 PM Subject: Fwd: Trace analysis... To: ns-users at isi.edu ---------- Forwarded message ---------- From: Raju Sarkar Date: Fri, Mar 20, 2009 at 9:13 AM Subject: Trace analysis... To: ns-users at isi.edu i send u a trace file that is trace file of the wpan_demo5 example in the NS2 under this directory. ./ns-allinone-2.33/ns-2.33/tcl/ex/wpan/wpan_demo5.tr i dont know how to calculate parameters like throughput,delay(average,maximam),overhead(average,maximam),packet delivery ratio etc. Plzz send some awk example scripts that calculate this parameters. Thanks & Regards, Raju Sarkar From ck.thrissur at gmail.com Sun Mar 22 04:31:40 2009 From: ck.thrissur at gmail.com (CK Raju) Date: Sun, 22 Mar 2009 17:01:40 +0530 Subject: [ns] Throughput vs Load In-Reply-To: <200903221118.n2MBI1Kq014961@gamma.isi.edu> References: <200903221118.n2MBI1Kq014961@gamma.isi.edu> Message-ID: I am able to generate a Poisson distribution dummy traffic using Python and plot the graph too (using python-matplotlib). With this much limited knowledge, how can I extend this and plot a graph to study the Throughput vs Load for slotted and pure-ALOHA. I use a client process to generate poisson traffic, an intermediary process to relay it and a final process where the traffic is received and analysed. My machine runs on Debian/Lenny. Rgds, CK Raju From spyros_mar at yahoo.gr Sun Mar 22 08:52:47 2009 From: spyros_mar at yahoo.gr (spyros_mar@yahoo.gr) Date: Sun, 22 Mar 2009 15:52:47 +0000 (GMT) Subject: [ns] Problem with mobile ip Message-ID: <684009.28190.qm@web25508.mail.ukl.yahoo.com> Hello! I am trying to do a simple simulation with mobile ip and tcp and I do the same as in the scripts provided in the tutorial. However, the handovers don't happen as I would expect and traffic is sometimes redirected through the most distant base station, while packets' exchange completely stops from time to time, while an access point is very close to the mobile node. Shouldn't the mobile node connect to the access point with the biggest signal power? In the mip-reg.cc there are no comparisons with the power received... I would be very grateful if you could help me and give me any advice you have from your experience. I also post my code below, if anybody can take a look. Thank you very much in advance! Spyros Code: set ns_??????? [new Simulator] set opt(chan)?????? Channel/WirelessChannel set opt(prop)?????? Propagation/TwoRayGround set opt(netif)????? Phy/WirelessPhy set opt(mac)??????? Mac/802_11 set opt(ifq)??????? Queue/DropTail/PriQueue set opt(ll)???????? LL set opt(ant)??????? Antenna/OmniAntenna set opt(x)????????????? 1000?? ;# X dimension of the topography set opt(y)????????????? 1000?? ;# Y dimension of the topography set opt(ifqlen)???????? 50??????????? ;# max packet in ifq #set val(seed)?????????? 0.0 set opt(rp)???????????? DSDV????????????????????? ; # routing protocol set opt(nn)??????????? 1???????????? ;# how many nodes are simulated set num_wired_nodes????? 2 set num_bs_nodes???????? 3 set topo??? [new Topography] $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 4?????????? ;# number of domains lappend cluster_num 2 1 1 1??????????? ;# number of clusters in each domain AddrParams set cluster_num_ $cluster_num lappend eilastlevel? 1 1 2 1 1???????????????? ;# number of nodes in each cluster AddrParams set nodes_num_ $eilastlevel ;# of each domain # create trace object for ns and nam set tracefd? [open tcp-mono.tr w] set namtrace [open tcp-mono.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) # define topology $topo load_flatgrid $opt(x) $opt(y) #create wired nodes set Server [$ns_ node 0.0.0] $Server set X_ 500.0 $Server set Y_ 850.0 $Server set Z_ 0.0 set W_node [$ns_ node 0.1.0] $W_node set X_ 500.0 $W_node set Y_ 710.0 $W_node set Z_ 0.0 set god_ [create-god $opt(nn)+3] # Create channel #1 and #2 set chan_1 [new $opt(chan)] ;#umts #gia to? umts Mac/802_11 set dataRate_ 2.0Mb ;# UMTS data rate Phy/WirelessPhy set Pt_ 4.5099 ;# UMTS coverage: r=500m Phy/WirelessPhy set freq_ 2.175e9 ;# UMTS radio frequency $chan_1 set delay 10ms Phy/WirelessPhy set bandwidth_ 384k $ns_ node-config -mobileIP ON \ ???????? -adhocRouting $opt(rp) \ ???????????????? -llType $opt(ll) \ ???????????????? -macType $opt(mac) \ ???????????????? -ifqType $opt(ifq) \ ???????????????? -ifqLen $opt(ifqlen) \ ???????????????? -antType $opt(ant) \ ???????????????? -propType $opt(prop) \ ???????????????? -phyType $opt(netif) \ ???????? -topoInstance $topo \ ???????? -agentTrace ON \ ???????????????? -routerTrace OFF \ ???????????????? -macTrace ON \ ???????????????? -wiredRouting ON \ ???????? -channel $chan_1??????? # Create BSs set BS_umts [$ns_ node 1.0.0] $BS_umts random-motion 0 $BS_umts radius 500 $BS_umts set X_ 150.0 $BS_umts set Y_ 610.0 $BS_umts set Z_ 0.000000000000 $ns_ node-config -wiredRouting OFF ? #dimioyrgia toy purina toy kinitoy komboy set MN [$ns_ node 1.0.1] $MN random-motion 0 ????????? $MN set X_ 160.0 $MN set Y_ 530.0 $MN set Z_ 0.0 set HAaddress [AddrParams addr2id [$BS_umts node-addr]] [$MN set regagent_] set home_agent_ $HAaddress $ns_ node-config -wiredRouting ON ? Mac/802_11 set dataRate_ 11.0Mb ;# 802.11b data rate Phy/WirelessPhy set bandwidth_ 5Mb Phy/WirelessPhy set Pt_ 0.28183815 #Phy/WirelessPhy set freq_ 914e+6 #dimioyrgia toy BS wlan set BS_wlan [$ns_ node 2.0.0] $BS_wlan random-motion 0 $BS_wlan radius 250 $BS_wlan set X_ 500.0 $BS_wlan set Y_ 610.0 $BS_wlan set Z_ 0.000000000000 #gia to? umts Mac/802_11 set dataRate_ 2.0Mb ;# UMTS data rate Phy/WirelessPhy set Pt_ 4.5099 ;# UMTS coverage: r=500m Phy/WirelessPhy set freq_ 2.175e9 ;# UMTS radio frequency Phy/WirelessPhy set bandwidth_ 384k set BS_umts2 [$ns_ node 3.0.0]?????????????????????????????????????????? $BS_umts2 random-motion 0 $BS_umts2 radius 500 $BS_umts2 set X_ 950.0 $BS_umts2 set Y_ 610.0 $BS_umts2 set Z_ 0.000000000000 $ns_ at 1.0 "$MN setdest 950.0 530.0 15.0" # create links between wired and BaseStation nodes $ns_ duplex-link $Server $W_node 50Mb 0.2ms DropTail $ns_ duplex-link-op $Server $W_node orient down $ns_ duplex-link $W_node $BS_umts 50Mb 0.2ms DropTail $ns_ duplex-link-op $W_node $BS_umts orient down-left $ns_ duplex-link $W_node $BS_wlan 50Mb 0.2ms DropTail $ns_ duplex-link-op $W_node $BS_wlan orient down $ns_ duplex-link $W_node $BS_umts2 50Mb 0.2ms DropTail $ns_ duplex-link-op $W_node $BS_umts2 orient down-right set tcp1 [new Agent/TCP] set sink1 [new Agent/TCPSink] $ns_ attach-agent $Server $tcp1 $ns_ attach-agent $MN $sink1 $ns_ connect $tcp1 $sink1 set ftp0 [new Application/FTP] $ftp0 attach-agent $tcp1 $ns_ at 0.5 "$ftp0 start" $ns_ at 42.5 "$MN setdest 105.0 530.0 15.0" $ns_ at 81.0 "$MN setdest 950.0 530.0 15.0" #$ns_ at 102.5 "$MN setdest 105.0 530.0 15.0" #$ns_ at 141.0 "$MN setdest 950.0 530.0 15.0" $ns_ at? 100 "stop"; $ns_ at? 100 "puts \"NS EXITING...\" ; $ns_ halt" ? proc stop {} { ??? global ns_ tracefd ??? $ns_ flush-trace ??? close $tracefd exec nam tcp-mono.nam & ??? exit 0 } $ns_ run ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From nagasatishchj at yahoo.co.in Sun Mar 22 10:41:46 2009 From: nagasatishchj at yahoo.co.in (jeyapala nagasatish) Date: Sun, 22 Mar 2009 23:11:46 +0530 (IST) Subject: [ns] regarding the dynamic addressing for MANET in NS2 Message-ID: <418218.86030.qm@web8708.mail.in.yahoo.com> Hi users and friends, ? I am working on interconnectivity of fixed networks with MANET. Inorder to have address autoconfiguration, I should have global address and a local address. But, in NS2 the addressing is differnet and follows domain.cluster.node representation which is static given at the time of node creation. What I needed is dynamic address allocation, and an exact representation of real world scenario. So, if anyone have clues / code regarding dynamic addressing, please respon= d to this mail. How the addressing (not static) is done? Thank you. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From veronicadiaza at gmail.com Sun Mar 22 11:05:06 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Sun, 22 Mar 2009 11:05:06 -0700 Subject: [ns] Sorry guys, here is the soln for getting neighbours of mobile node in word format Message-ID: Previously i have sent them in mhtml format, may be some problem regarding it......so I am sending it in word format..... From nadine341 at yahoo.fr Sun Mar 22 15:03:09 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Sun, 22 Mar 2009 22:03:09 +0000 (GMT) Subject: [ns] a problem "_o38: wrong # args" when trying to let a node join the network:please help Message-ID: <181871.59984.qm@web28304.mail.ukl.yahoo.com> Hi all, I? tried to let a node join the network after a given time? by this command: $ns_ at 10 [set node_(1) [$ns_ node] ] but? I have this error: ns: _o38: wrong # args: should be {_o38 message ?args...?} ??? while executing "_o38" Have you an idea about this error and how can I fix it? is there any other command that let a node join the network after some time? please help me. thank you very much. From deeptichandraorama at gmail.com Sun Mar 22 15:09:02 2009 From: deeptichandraorama at gmail.com (Deepti Chandra) Date: Sun, 22 Mar 2009 18:09:02 -0400 Subject: [ns] Help - Wimax for NS-2 (ns-allinone-2.33/Wimaxv2.03/ubuntu 8.10) Message-ID: Hello, I successfully completed the installation of ns-allinone-2.33 following the steps mentioned in http://ns-2.blogspot.com/ then i did the following # Unzip the ns-2 WiMAXv 2.03 module source code file which including three files : mac-802_16, common, and queue. # Put the "mac-802_16" directory into \ns-allinone-2.33\ns-2.33\mac. # Put the files which are in common and queue respectively into \ns-allinone-2.33\ns-2.33\common and \ns-allinone-2.33\ns-2.33\queue. # Modify the Makefile. * Add that after the sentence mac/mac-802_3.o in the Makefile. * mac/mac-802_16/packet-802_16.o \ mac/mac-802_16/timer-802_16.o \ mac/mac-802_16/mac-802_16.o \ mac/mac-802_16/traffic/UGS_traffic.o \ mac/mac-802_16/traffic/ertPS_traffic.o \ mac/mac-802_16/traffic/rtPS_traffic.o \ mac/mac-802_16/traffic/nrtPS_traffic.o \ mac/mac-802_16/traffic/BE_traffic.o \ # To compile your files by excuting "make clean" then "make". while doing make i get the following: /* common/packet.h:303: warning: deprecated conversion from string constant to ?char*? common/packet.h:304: warning: deprecated conversion from string constant to ?char*? common/packet.h:305: warning: deprecated conversion from string constant to ?char*? common/packet.h:307: warning: deprecated conversion from string constant to ?char*? common/packet.cc: At global scope: common/packet.cc:44: error: conflicting declaration ?char** p_info::name_? common/packet.h:326: error: ?p_info::name_? has a previous declaration as ?char* p_info::name_ [76]? common/packet.cc:44: error: declaration of ?char* p_info::name_ [76]? outside of class is not definition common/packet.cc:45: error: ?unsigned int p_info::nPkt_? is not a static member of ?class p_info? common/packet.cc:46: error: expected constructor, destructor, or type conversion before ?*? token common/packet.cc:48: error: no ?int p_info::addPacket(char*)? member function declared in class ?p_info? make: *** [common/packet.o] Error 1 */ please help me ...... what should I do..... I am using ns-allinone-2.33/Wimaxv2.03/ubuntu 8.10 From ericosign at gmail.com Sun Mar 22 16:31:53 2009 From: ericosign at gmail.com (Erico Augusto) Date: Sun, 22 Mar 2009 20:31:53 -0300 Subject: [ns] regarding the dynamic addressing for MANET in NS2 In-Reply-To: <418218.86030.qm@web8708.mail.in.yahoo.com> References: <418218.86030.qm@web8708.mail.in.yahoo.com> Message-ID: Hi Jeyapala and readers, I'm working in something similar to Jeyapala issue. At a ns-2 node, IP addresses are assigned at creation time. So, the IP address of the node is its ID. For example, in a scenario with 30 nodes, node _28_ has IP 28(see line below). s 0.011891439 _28_ RTR --- 3 TBRPF 60 [0 0 0 0] ------- [28:255 -1:255 32 0] [1 0 [HELLO 0]] ^ ^ (NODE ID) (IP SOURCE ADDRESS) If I understood correclty, Jeyapala needs to assign 2 different IP addresses to each node (is that right friend?) That was my issue also. The difference: I need to assign one IP address for each interface, in a multi-interface scenario. Does anybody develop something like that: How to assigned two different IP address to the same ns-2 node? Thank you, Erico. 2009/3/22 jeyapala nagasatish > > Hi users and friends, > I am working on interconnectivity of fixed networks with MANET. Inorder > to have address autoconfiguration, I should have global address and a local > address. But, in NS2 the addressing is differnet and follows > domain.cluster.node representation which is static given at the time of node > creation. What I needed is dynamic address allocation, and an exact > representation of real world scenario. > > So, if anyone have clues / code regarding dynamic addressing, please > respon= > d to this mail. How the addressing (not static) is done? > > Thank you. > > > Add more friends to your messenger and enjoy! Go to > http://messenger.yahoo.com/invite/ > From muralikrishna4g at gmail.com Sun Mar 22 21:51:52 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Mon, 23 Mar 2009 10:21:52 +0530 Subject: [ns] ns2 sending message from one node to another node through classifier.cc Message-ID: hi to all.. hi.. here i have a task.. where i have to send a message from one node to another on a condition in classifier.cc, for this i have one if condition after passing it i have to send a message from one node to another node.. please help me regarding... i am in need thanks in advance From muralikrishna4g at gmail.com Sun Mar 22 22:13:17 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Mon, 23 Mar 2009 10:43:17 +0530 Subject: [ns] how to find previous node in ns-2.33 classifier.cc Message-ID: hi to all.. hi.. i am in need to find the previous node in classifier.cc, how to make this please help me..... thanks in advance From nehagoel0433 at gmail.com Sun Mar 22 22:37:46 2009 From: nehagoel0433 at gmail.com (neha goel) Date: Mon, 23 Mar 2009 11:07:46 +0530 Subject: [ns] Multi-gateway association in wireless mesh networks Message-ID: <7bf122940903222237m6192cac0l453887d0e3be5478@mail.gmail.com> Hi ..... I am a 4th year student( B Tech) working on my project " Multi gateway Association in wireless mesh networks". I am unable to write the codes for my project for developing graphs which primarily includes showing the throughput benefits of using multiple gateways over single gateway. *The details of my project are: * Most traditional models of wireless mesh networks involve a mobile device connecting to the backbone through one of the available gateways in a wireless mesh network. In this paper, an alternate model, in which mobile devices are allowed to connect through more than one of the available gateways is proposed. I have read the documentation on ns2 but i am not able to write codes for my project. The network simulator ns2 is used for the experiments.CBR(Constant Bit Rate) is used as the data generating application. The routes are computed using a shortest path algorithm in a centralized manner. The total number of nodes is 70 which includes 4 gateways, 61 routers and 5 clients. The topology considered is a 1000m X 1000m grid. The position of the gateways is fixed at the coordinates (200,200),(200,900),(900,200) and (900,900). The position of the routers is uniformly distributed within the grid. The position of the clients is also uniformly distributed within the grid. A bandwidth of 2Mbps is used and all nodes operate on the same channel. The transmission range is set to 250m. Unless otherwise stated, the number of users is 5 and the loads of the users are 100Kbps,100Kbps,100Kbps,100Kbps,2Mbps. I would be very grateful if anyone can provide ome help.The gateway association algorithm is as follow: Variables: 1 g: Number of gateways,c:Current Node id,f:Flow id, 2 W: Channel Bandwidth, F : Number of existing flows 3 Pi: Path from node c to gateway i,lc:Load of flow c 4 BL(Pi): Bottleneck Load of path Pi, 5 FSi Flow Set of Path Pi, OFS: Overall Flow Set 6 Rate(f; g): Sending Rate of flow f to gateway g, 7 Rate(f):Aggregate Sending rate of flow f, 8 FR(f; n): Rate of flow f passing through node n, 9 AB(i) : Available Bandwidth on the path to gateway i Given: 10 Gateways,nodes,routers,2-hop contention regions, 11 Shortest Paths,Bandwidths, Existing flows and loads Compute BL(Pi): INPUT:Pi OUTPUT:BL(Pi) For each node j in Path Pi AL(j) = Summation of interference region of node j FR(fk; j) BL(Pi) = max(AL(j)) MAIN INPUT:New flow f c with load lc OUTPUT:Rate(i; j) : i = 1 to F + 1 , j = 1 to g For i = 1 to g Pi = ComputeShortestpath(i) BL(Pi) = ComputeBL(Pi) AB(i) = W - BL(Pi) IF lc < Summation of AB(i) ( limits from i to g) do while (lc has been alloted) Sort in descending order AB(i) : i = 1 to g Allocate load from the gateway with largest AB(i) Update AB(i) ELSE Identify all bottlenecks for the paths P1 to Pg F(Si) = (intersevtion of Flow sets of maximum bottleneck on path i) OFS = ( union of F(Si)) Do Sort OFS in descending order of Rate(f) Choose Flow fk in OFS with maximum Rate(f) Decrease Rate(fk; i) i : fk BL(Pi) and Rate(fk) by 1 unit Increase Rate(fc;m) [ m : Pm contains the maximum bottleneck of fk] and Rate(fc) by 1 unit Until (Rate(fc) = lc or Rate(fc) = Rate(fk)) And the scheduling algorithm is as follows: Variables: g: Number of gateways,c:Current Node id,P: Packet Size, di : End-to-end propagation and queuing delay on path ?i? ri: sending rate on path ?i? ,Tdi:Total delay to gateway i Pi: Path between current node and gateway ?i?, a(i) Normalized delay for path i,b(i):Integral scaling of a(i) RT(i; j): Receive Time of the ith packet destined to gateway j, ID : Vector of gateway Identifiers INPUT: Delays and rates to each gateway OUTPUT: Number of packets to each gateway Window For each gateway Tdi = di + P/Ri a(i) = Tdi/max(Tdi) b(i) = Integer(a(i)) NP = summation of b(i ) ( limits i to g) SCHEDULE INPUT: Number of packets b(i) OUTPUT: Destination IDs for each pkt and Tx sequence For j = 1 to g For k=1 to b(i) RT(i; j) = ( 1/rj+ dj ) * k ID=SortID(RT(i; j) I would really be very thankful for the help.. From tntzwz at gmail.com Sun Mar 22 23:37:56 2009 From: tntzwz at gmail.com (Zhang Wen Zhi) Date: Mon, 23 Mar 2009 14:37:56 +0800 Subject: [ns] "NRTE" error while running OOLSR in both wireless and wired environment In-Reply-To: <171863940903222330j995a6ebm5000c6e95bba8c1f@mail.gmail.com> References: <171863940903222330j995a6ebm5000c6e95bba8c1f@mail.gmail.com> Message-ID: <171863940903222337m9965a1fq879db2e3284334aa@mail.gmail.com> I'm simulating a scence as this: ..--------------.. ..:'' '':.. '' '. | MANET running | .. oolsr-0.99.15 .' '':.. +---+ / ''---+----------|BS|/ (both wired and wireless) +----+ \ ++---+ ++--++ |wired | |wired | |node |-------| node | +---++ ++-----+ I've successfully compiled the ns-2.27-allinone-oolsr-0.99.15 on debian and tested the oolsr in pure wireless environment. But when I tried to simulate the topology above(with both wired and wireless environment), I got the NRTE erro in the tr file after simulation: ================= in the tr file =========================== + 50 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 0 2603 - 50 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 0 2603 r 50.002205 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 0 2603 d -t 50.002204800 -Hs 2 -Hd -2 -Ni 2 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw NRTE -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 4194354.0 -It cbr -Il 128 -If 0 -Ii 2603 -Iv 30 -Pn cbr -Pi 0 -Pf 0 -Po 0 + 50.1 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 1 2611 - 50.1 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 1 2611 r 50.102205 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 1 2611 d -t 50.102204800 -Hs 2 -Hd -2 -Ni 2 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw NRTE -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 4194354.0 -It cbr -Il 128 -If 0 -Ii 2611 -Iv 30 -Pn cbr -Pi 1 -Pf 0 -Po 0 + 50.2 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 2 2639 - 50.2 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 2 2639 r 50.202205 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 2 2639 d -t 50.202204800 -Hs 2 -Hd -2 -Ni 2 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw NRTE -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 4194354.0 -It cbr -Il 128 -If 0 -Ii 2639 -Iv 30 -Pn cbr -Pi 2 -Pf 0 -Po 0 + 50.3 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 3 2653 - 50.3 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 3 2653 r 50.302205 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 3 2653 d -t 50.302204800 -Hs 2 -Hd -2 -Ni 2 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw NRTE -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id 4194354.0 -It cbr -Il 128 -If 0 -Ii 2653 -Iv 30 -Pn cbr -Pi 3 -Pf 0 -Po 0 ================= in the tr file =========================== This is my testing script: Could anyone give me some tips to solve this problem? Thanks very much ================== script =============================== #--------------------------------------------------------------------------- # Initialization #--------------------------------------------------------------------------- # (possibly) Remove and create result directory set dirName "test-unicast-result" exec sh -c "rm -rf $dirName && mkdir $dirName" # Default node configuration set nodeConfig "no-log 0; log-none ; log-route 1" # Load the OOLSR as plugin load-plugin ./oolsr-plugin --output $dirName/ns2agent.log \ multicast route packet-drop #--------------------------------------------------------------------------- # Create a simulation, with wireless support. This is basic (see ns2 doc) #--------------------------------------------------------------------------- set ns [new Simulator] $ns node-config -addressType hierarchical AddrParams set domain_num_ 2 ;# set two domain: wired, wireless lappend cluster_num 1 1 ;# 1 clusters for wired domain,1 for wireless AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 51 domain, cluster 2 AddrParams set nodes_num_ $eilastlevel ; # of each domain set val(chan) Channel/WirelessChannel set val(prop) Propagation/TwoRayGround set val(netif) Phy/WirelessPhy set val(mac) Mac/802_11 set val(ifq) Queue/DropTail/PriQueue set val(ll) LL set val(ant) Antenna/OmniAntenna set val(ifqlen) 50 ;# set val(nn) 50 ;# nb mobiles set num_wired_nodes 1 ;# 2 wired nodes set val(rp) PLUGINPROTOCOL set val(x) [expr $val(nn) *100.0 + 100.0] set val(y) 1000 set topo [new Topography] $topo load_flatgrid $val(x) $val(y) set god [create-god [expr $val(nn) + 1]] $ns use-newtrace set tracefd [open $dirName/unicast.tr w] $ns trace-all $tracefd set namtrace [open $dirName/unicast.nam w] $ns namtrace-all-wireless $namtrace $val(x) $val(y) #set the wired nodes set temp {0.0.0 } ;# hierarchical addresses for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns node [lindex $temp $i]] } $ns node-config -mobileIP ON \ -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 \ -wiredRouting ON \ -agentTrace ON \ -routerTrace OFF\ -macTrace OFF \ -movementTrace OFF # set HA set HA [$ns_ node 1.0.0] $HA set X_ 1.00 $HA set Y_ 2.00 $HA set Z_ 0.00 $ns duplex-link $W(0) $HA 5Mb 2ms DropTail $ns duplex-link-op $W(0) $HA orient down # create a mobilenode (in the domain of the HA) $ns_ node-config -wiredRouting OFF #--------------------------------------------------------------------------- # Create nodes with OOLSR agent #--------------------------------------------------------------------------- for {set i 0} {$i < $val(nn)} {incr i} { set node($i) [$ns node 1.0.[expr $i + 1]] $node($i) random-motion 1 $node($i) set X_ [expr $i * 100.0] $node($i) set Y_ [expr 500.0 + ((($i * 93) % 21) - 10 ) * 10.0] $node($i) set Z_ 0.0 $ns initial_node_pos $node($i) 20 [$node($i) set ragent_] set-config \ "$nodeConfig ; log-file-name $dirName/oolsr-node-$i.log" set HAaddress [AddrParams addr2id [$HA node-addr]] [$node($i) set regagent_] set home_agent_ $HAaddress # [$node($i) set ragent_] start # [$node($i) set ragent_] config } #--------------------------------------------------------------------------- # Sending traffic #--------------------------------------------------------------------------- set sender [new Agent/UDP] $ns attach-agent $W(0) $sender set cbr [new Application/Traffic/CBR] $cbr set packetSize_ 128 $cbr set interval_ 0.1 $cbr attach-agent $sender set receiver [new Agent/Null] $ns attach-agent $node([expr $val(nn)-1]) $receiver $ns connect $sender $receiver $ns at 0.0 "$cbr start" #--------------------------------------------------------------------------- # Finishing procedure #--------------------------------------------------------------------------- proc finishSimulation { } { global ns node val dirName # Log the final state of all the nodes for {set i 0} {$i < $val(nn)} {incr i} { [$node($i) set ragent_] state "$dirName/oolsr-node-$i.final-state" } # Exit puts "Finished simulation." $ns halt } #--------------------------------------------------------------------------- # Run the simulation #--------------------------------------------------------------------------- proc runSimulation {duration} { global ns finishSimulation for {set j 1.0} {$j < $duration} {set j [expr $j * 1.3 ]} { $ns at $j "puts t=$j" } $ns at $duration "finishSimulation" $ns run } runSimulation 305.0 #--------------------------------------------------------------------------- -- Thanks & Best Regards, Zhang Wen Zhi(ŐĹÎÄÖÎ) Tel: 086-1358-161-4504 From dineshnagare at gmail.com Mon Mar 23 00:47:40 2009 From: dineshnagare at gmail.com (dinesh nagare) Date: Mon, 23 Mar 2009 13:17:40 +0530 Subject: [ns] AIQL load balancing issue In AODV Message-ID: <928611020903230047s92aa121r49ffd36d2e3770c6@mail.gmail.com> Hello ns users can anybody help me to implement Aggregate Interface Queue Length (AIQL), in AODV in order to deal with load balancing issues. How can I do this? In which file I have to do modification and how or what?(in which .cc and .h file) Please help me. From rashed823 at gmail.com Mon Mar 23 00:50:17 2009 From: rashed823 at gmail.com (Rashedul Arefin) Date: Mon, 23 Mar 2009 14:50:17 +0700 Subject: [ns] QoS in AODV Message-ID: Dear ns-users: I have been looking for some example code on QoS in AODV (QAODV). Does anyone have this any code? It would be a great help for me if anyone could tell me, where I can get find it? Thanks and Regards Arefin From nagasatishchj at yahoo.co.in Mon Mar 23 01:19:01 2009 From: nagasatishchj at yahoo.co.in (jeyapala nagasatish) Date: Mon, 23 Mar 2009 13:49:01 +0530 (IST) Subject: [ns] Please help me regarding documentation Message-ID: <394206.27561.qm@web8706.mail.in.yahoo.com> Hi users and friends, I want to know more information?about NS2. Is there any material which can give more documentation about the statements used in NS2 program code ( both c++, TCL and their linkage) especially for addressing and AODV. I went through NS-Manual, Marc Greis Tutorial and NS by example, and also documentation generated by doxygen. In any of these, I am unable to find much elaboration about particular topic. ? So, please help me. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ From spyros_mar at yahoo.gr Mon Mar 23 01:44:11 2009 From: spyros_mar at yahoo.gr (martini.spy) Date: Mon, 23 Mar 2009 01:44:11 -0700 (PDT) Subject: [ns] Problem with mobile ip In-Reply-To: <684009.28190.qm@web25508.mail.ukl.yahoo.com> References: <684009.28190.qm@web25508.mail.ukl.yahoo.com> Message-ID: <22656146.post@talk.nabble.com> anyone please??? martini.spy wrote: > > > Hello! > I am trying to do a simple simulation with mobile ip and tcp and I do the > same as in the scripts provided in the tutorial. However, the handovers > don't happen as I would expect and traffic is sometimes redirected through > the most distant base station, while packets' exchange completely stops > from time to time, while an access point is very close to the mobile node. > > Shouldn't the mobile node connect to the access point with the biggest > signal power? In the mip-reg.cc there are no comparisons with the power > received... > > I would be very grateful if you could help me and give me any advice you > have from your experience. I also post my code below, if anybody can take > a look. > Thank you very much in advance! > Spyros > > Code: > > > set ns_??????? [new Simulator] > > set opt(chan)?????? Channel/WirelessChannel > set opt(prop)?????? Propagation/TwoRayGround > set opt(netif)????? Phy/WirelessPhy > set opt(mac)??????? Mac/802_11 > set opt(ifq)??????? Queue/DropTail/PriQueue > set opt(ll)???????? LL > set opt(ant)??????? Antenna/OmniAntenna > set opt(x)????????????? 1000?? ;# X dimension of the topography > set opt(y)????????????? 1000?? ;# Y dimension of the topography > set opt(ifqlen)???????? 50??????????? ;# max packet in ifq > #set val(seed)?????????? 0.0 > set opt(rp)???????????? DSDV????????????????????? ; # routing protocol > set opt(nn)??????????? 1???????????? ;# how many nodes are simulated > set num_wired_nodes????? 2 > set num_bs_nodes???????? 3 > > set topo??? [new Topography] > > $ns_ node-config -addressType hierarchical > > AddrParams set domain_num_ 4?????????? ;# number of domains > lappend cluster_num 2 1 1 1??????????? ;# number of clusters in each > domain > AddrParams set cluster_num_ $cluster_num > lappend eilastlevel? 1 1 2 1 1???????????????? ;# number of nodes in each > cluster > AddrParams set nodes_num_ $eilastlevel ;# of each domain > > > # create trace object for ns and nam > > set tracefd? [open tcp-mono.tr w] > set namtrace [open tcp-mono.nam w] > > $ns_ trace-all $tracefd > $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) > > # define topology > $topo load_flatgrid $opt(x) $opt(y) > > > #create wired nodes > set Server [$ns_ node 0.0.0] > $Server set X_ 500.0 > $Server set Y_ 850.0 > $Server set Z_ 0.0 > > set W_node [$ns_ node 0.1.0] > $W_node set X_ 500.0 > $W_node set Y_ 710.0 > $W_node set Z_ 0.0 > > set god_ [create-god $opt(nn)+3] > > # Create channel #1 and #2 > set chan_1 [new $opt(chan)] ;#umts > > #gia to? umts > Mac/802_11 set dataRate_ 2.0Mb ;# UMTS data rate > Phy/WirelessPhy set Pt_ 4.5099 ;# UMTS coverage: r=500m > Phy/WirelessPhy set freq_ 2.175e9 ;# UMTS radio frequency > > $chan_1 set delay 10ms > Phy/WirelessPhy set bandwidth_ 384k > > $ns_ node-config -mobileIP ON \ > ???????? -adhocRouting $opt(rp) \ > ???????????????? -llType $opt(ll) \ > ???????????????? -macType $opt(mac) \ > ???????????????? -ifqType $opt(ifq) \ > ???????????????? -ifqLen $opt(ifqlen) \ > ???????????????? -antType $opt(ant) \ > ???????????????? -propType $opt(prop) \ > ???????????????? -phyType $opt(netif) \ > ???????? -topoInstance $topo \ > ???????? -agentTrace ON \ > ???????????????? -routerTrace OFF \ > ???????????????? -macTrace ON \ > ???????????????? -wiredRouting ON \ > ???????? -channel $chan_1??????? > > # Create BSs > set BS_umts [$ns_ node 1.0.0] > $BS_umts random-motion 0 > $BS_umts radius 500 > > $BS_umts set X_ 150.0 > $BS_umts set Y_ 610.0 > $BS_umts set Z_ 0.000000000000 > > $ns_ node-config -wiredRouting OFF > ? > #dimioyrgia toy purina toy kinitoy komboy > set MN [$ns_ node 1.0.1] > $MN random-motion 0 > ????????? > $MN set X_ 160.0 > $MN set Y_ 530.0 > $MN set Z_ 0.0 > > set HAaddress [AddrParams addr2id [$BS_umts node-addr]] > [$MN set regagent_] set home_agent_ $HAaddress > > $ns_ node-config -wiredRouting ON > ? > Mac/802_11 set dataRate_ 11.0Mb ;# 802.11b data rate > Phy/WirelessPhy set bandwidth_ 5Mb > > Phy/WirelessPhy set Pt_ 0.28183815 > #Phy/WirelessPhy set freq_ 914e+6 > > #dimioyrgia toy BS wlan > set BS_wlan [$ns_ node 2.0.0] > $BS_wlan random-motion 0 > $BS_wlan radius 250 > > $BS_wlan set X_ 500.0 > $BS_wlan set Y_ 610.0 > $BS_wlan set Z_ 0.000000000000 > > #gia to? umts > Mac/802_11 set dataRate_ 2.0Mb ;# UMTS data rate > Phy/WirelessPhy set Pt_ 4.5099 ;# UMTS coverage: r=500m > Phy/WirelessPhy set freq_ 2.175e9 ;# UMTS radio frequency > Phy/WirelessPhy set bandwidth_ 384k > > set BS_umts2 [$ns_ node 3.0.0]?????????????????????????????????????????? > $BS_umts2 random-motion 0 > $BS_umts2 radius 500 > > $BS_umts2 set X_ 950.0 > $BS_umts2 set Y_ 610.0 > $BS_umts2 set Z_ 0.000000000000 > > $ns_ at 1.0 "$MN setdest 950.0 530.0 15.0" > # create links between wired and BaseStation nodes > $ns_ duplex-link $Server $W_node 50Mb 0.2ms DropTail > $ns_ duplex-link-op $Server $W_node orient down > > $ns_ duplex-link $W_node $BS_umts 50Mb 0.2ms DropTail > $ns_ duplex-link-op $W_node $BS_umts orient down-left > > $ns_ duplex-link $W_node $BS_wlan 50Mb 0.2ms DropTail > $ns_ duplex-link-op $W_node $BS_wlan orient down > > $ns_ duplex-link $W_node $BS_umts2 50Mb 0.2ms DropTail > $ns_ duplex-link-op $W_node $BS_umts2 orient down-right > > set tcp1 [new Agent/TCP] > set sink1 [new Agent/TCPSink] > > $ns_ attach-agent $Server $tcp1 > $ns_ attach-agent $MN $sink1 > > $ns_ connect $tcp1 $sink1 > > set ftp0 [new Application/FTP] > $ftp0 attach-agent $tcp1 > > $ns_ at 0.5 "$ftp0 start" > $ns_ at 42.5 "$MN setdest 105.0 530.0 15.0" > $ns_ at 81.0 "$MN setdest 950.0 530.0 15.0" > #$ns_ at 102.5 "$MN setdest 105.0 530.0 15.0" > #$ns_ at 141.0 "$MN setdest 950.0 530.0 15.0" > > $ns_ at? 100 "stop"; > $ns_ at? 100 "puts \"NS EXITING...\" ; $ns_ halt" > ? > proc stop {} { > ??? global ns_ tracefd > ??? $ns_ flush-trace > ??? close $tracefd > exec nam tcp-mono.nam & > ??? exit 0 > } > > $ns_ run > > > > > > > ___________________________________________________________ > ?????????????? Yahoo!; > ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail > ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? > ????????? http://login.yahoo.com/config/mail?.intl=gr > > -- View this message in context: http://www.nabble.com/Problem-with-mobile-ip-tp22647389p22656146.html Sent from the ns-users mailing list archive at Nabble.com. From sofia.insat at yahoo.fr Mon Mar 23 03:57:10 2009 From: sofia.insat at yahoo.fr (sofia insat) Date: Mon, 23 Mar 2009 10:57:10 +0000 (GMT) Subject: [ns] request about NIST mobility package Message-ID: <59836.96768.qm@web27704.mail.ukl.yahoo.com> hi , I'm working on vertical handover between umts and wimax I have to work on NS 2.31 or NS2.29 and I didn't find the nist mobility package. Would you please give me a link to download from. thank you From mshrehmani at gmail.com Mon Mar 23 04:06:08 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Mon, 23 Mar 2009 12:06:08 +0100 Subject: [ns] request about NIST mobility package In-Reply-To: <59836.96768.qm@web27704.mail.ukl.yahoo.com> References: <59836.96768.qm@web27704.mail.ukl.yahoo.com> Message-ID: Hi, You can find a great link for ns2 contributed code http://nsnam.isi.edu/nsnam/index.php/Contributed_Code Regards Mubashir Husain Rehmani http://www.irisa.fr/asap/Members/mrehmani/Mubashir 2009/3/23 sofia insat > > hi , > I'm working on vertical handover between umts and wimax > I have to work on NS 2.31 or NS2.29 and I didn't find the nist mobility > package. > Would you please give me a link to download from. > thank you > > > > -- Mubashir Husain Rehmani From palucci at smar.com.br Mon Mar 23 05:15:27 2009 From: palucci at smar.com.br (Rodrigo Palucci Pantoni) Date: Mon, 23 Mar 2009 09:15:27 -0300 Subject: [ns] wireless 802.11 example from Marc Greis tutorial Message-ID: <42347D73CCF54DF9A894D474EADE5C6B@rodrigopalucci> Hello all, I have a doubt about a wireless 802.11 example desbribed on the page http://www.isi.edu/nsnam/ns/tutorial/ from the Marc Greis tutorial. The topic is IX.1 Creating a simple wireless scenario . I have executed the file simple-wireless.tcl (ns 2.33), that generated the trace file "Simple.tr". In the site, the following explanation was described: "We see TCP flow starting at 10.0s from node0. Initially both the nodes are far apart and thus TCP pkts are dropped by node0 as it cannot hear from node1. Around 81.0s the routing info begins to be exchanged between both the nodes and around 100.0s we see the first TCP pkt being received by the Agent at node1 which then sends an ACK back to node0 and the TCP connection is setup. However as node1 starts to move away from node0, the connection breaks down again around time 116.0s. Pkts start getting dropped as the nodes move away from one another. " However, the ACK messages from AGT start to be sent earlier than 100.0s. The first line which ACK is received is the following (at 76.446087674 s): r 76.446087674 _0_ AGT --- 18 ack 60 [13a 0 1 800] ------- [1:0 0:0 32 0] [0 0] 1 0 It is right my interpretation? On other hand, the last AGT start to be sent later than 116.0s, at the time 116.341737823 . r 116.341737823 _1_ AGT --- 6476 tcp 1060 [13a 1 0 800] ------- [0:0 1:0 32 1] [3229 0] 1 0 It is also right my interpretation? This is the new or old wireless frame that ns manual refers? Thanks in Advance. Rodrigo From Faraz_Hasan-S at email.ulster.ac.uk Mon Mar 23 05:29:28 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Mon, 23 Mar 2009 12:29:28 +0000 Subject: [ns] UMTS on NS-2 Message-ID: Hi everyone! I wanted to ask if NS-2.33 already has UMTS module built in or do I need to download its patch from some where? Also, can some one please guide me to a quick start tutorial on simulating UMTS on NS-2. A code on UMTS will GREATLY help. Your early response shall be highly appreciated. Regards, Faraz From tntzwz at gmail.com Mon Mar 23 06:32:58 2009 From: tntzwz at gmail.com (Zhang Wen Zhi) Date: Mon, 23 Mar 2009 21:32:58 +0800 Subject: [ns] "NRTE" error while running OOLSR in both wireless and wired environment In-Reply-To: <171863940903222337m9965a1fq879db2e3284334aa@mail.gmail.com> References: <171863940903222330j995a6ebm5000c6e95bba8c1f@mail.gmail.com> <171863940903222337m9965a1fq879db2e3284334aa@mail.gmail.com> Message-ID: <171863940903230632y3f69eb0bm145b862a2528dca3@mail.gmail.com> I sent cbr from the wired nodes and when it comes to the BS node the node replies NRTE error and could not be routed to MANET. could anyone give some tips on this error? thanks 2009/3/23 Zhang Wen Zhi : > I'm simulating a scence as this: > > ..--------------.. > ..:'' '':.. > '' '. > | MANET running | > .. oolsr-0.99.15 .' > '':.. +---+ / > ''---+----------|BS|/ (both wired and wireless) > +----+ > \ > ++---+ ++--++ > |wired | |wired | > |node |-------| node | > +---++ ++-----+ > > I've successfully compiled the ns-2.27-allinone-oolsr-0.99.15 on > debian and tested the oolsr in pure wireless environment. But when I > tried to simulate the topology above(with both wired and wireless > environment), I got the NRTE erro in the tr file after simulation: > > ================= in the tr file =========================== > + 50 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 0 2603 > - 50 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 0 2603 > r 50.002205 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 0 2603 > d -t 50.002204800 -Hs 2 -Hd -2 -Ni 2 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne > -1.000000 -Nl RTR -Nw NRTE -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id > 4194354.0 -It cbr -Il 128 -If 0 -Ii 2603 -Iv 30 -Pn cbr -Pi 0 -Pf 0 > -Po 0 > + 50.1 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 1 2611 > - 50.1 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 1 2611 > r 50.102205 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 1 2611 > d -t 50.102204800 -Hs 2 -Hd -2 -Ni 2 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne > -1.000000 -Nl RTR -Nw NRTE -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id > 4194354.0 -It cbr -Il 128 -If 0 -Ii 2611 -Iv 30 -Pn cbr -Pi 1 -Pf 0 > -Po 0 > + 50.2 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 2 2639 > - 50.2 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 2 2639 > r 50.202205 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 2 2639 > d -t 50.202204800 -Hs 2 -Hd -2 -Ni 2 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne > -1.000000 -Nl RTR -Nw NRTE -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id > 4194354.0 -It cbr -Il 128 -If 0 -Ii 2639 -Iv 30 -Pn cbr -Pi 2 -Pf 0 > -Po 0 > + 50.3 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 3 2653 > - 50.3 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 3 2653 > r 50.302205 0 2 cbr 128 ------- 0 0.0.0.0 1.0.50.0 3 2653 > d -t 50.302204800 -Hs 2 -Hd -2 -Ni 2 -Nx 1.00 -Ny 2.00 -Nz 0.00 -Ne > -1.000000 -Nl RTR -Nw NRTE -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 0.0 -Id > 4194354.0 -It cbr -Il 128 -If 0 -Ii 2653 -Iv 30 -Pn cbr -Pi 3 -Pf 0 > -Po 0 > ================= in the tr file =========================== > > This is my testing script: > Could anyone give me some tips to solve this problem? Thanks very much > > ================== script =============================== > #--------------------------------------------------------------------------- > # Initialization > #--------------------------------------------------------------------------- > > # (possibly) Remove and create result directory > set dirName "test-unicast-result" > exec sh -c "rm -rf $dirName && mkdir $dirName" > > # Default node configuration > set nodeConfig "no-log 0; log-none ; log-route 1" > > # Load the OOLSR as plugin > load-plugin ./oolsr-plugin --output $dirName/ns2agent.log \ > multicast route packet-drop > > #--------------------------------------------------------------------------- > # Create a simulation, with wireless support. This is basic (see ns2 doc) > #--------------------------------------------------------------------------- > set ns [new Simulator] > > $ns node-config -addressType hierarchical > > AddrParams set domain_num_ 2 ;# set two domain: wired, wireless > > lappend cluster_num 1 1 ;# 1 clusters for wired domain,1 > for wireless > > AddrParams set cluster_num_ $cluster_num > > lappend eilastlevel 1 51 > domain, cluster 2 > > AddrParams set nodes_num_ $eilastlevel ; # of each domain > > set val(chan) Channel/WirelessChannel > set val(prop) Propagation/TwoRayGround > set val(netif) Phy/WirelessPhy > set val(mac) Mac/802_11 > set val(ifq) Queue/DropTail/PriQueue > set val(ll) LL > set val(ant) Antenna/OmniAntenna > set val(ifqlen) 50 ;# > set val(nn) 50 ;# nb mobiles > set num_wired_nodes 1 ;# 2 wired nodes > set val(rp) PLUGINPROTOCOL > set val(x) [expr $val(nn) *100.0 + 100.0] > set val(y) 1000 > > set topo [new Topography] > $topo load_flatgrid $val(x) $val(y) > set god [create-god [expr $val(nn) + 1]] > > $ns use-newtrace > set tracefd [open $dirName/unicast.tr w] > $ns trace-all $tracefd > > set namtrace [open $dirName/unicast.nam w] > $ns namtrace-all-wireless $namtrace $val(x) $val(y) > > #set the wired nodes > > set temp {0.0.0 } ;# hierarchical addresses > > for {set i 0} {$i < $num_wired_nodes} {incr i} { > > set W($i) [$ns node [lindex $temp $i]] > > } > > $ns node-config -mobileIP ON \ > -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 \ > -wiredRouting ON \ > -agentTrace ON \ > -routerTrace OFF\ > -macTrace OFF \ > -movementTrace OFF > > # set HA > > set HA [$ns_ node 1.0.0] > > > $HA set X_ 1.00 > > $HA set Y_ 2.00 > > $HA set Z_ 0.00 > > $ns duplex-link $W(0) $HA 5Mb 2ms DropTail > > $ns duplex-link-op $W(0) $HA orient down > > # create a mobilenode (in the domain of the HA) > > $ns_ node-config -wiredRouting OFF > > #--------------------------------------------------------------------------- > # Create nodes with OOLSR agent > #--------------------------------------------------------------------------- > > for {set i 0} {$i < $val(nn)} {incr i} { > set node($i) [$ns node 1.0.[expr $i + 1]] > > $node($i) random-motion 1 > $node($i) set X_ [expr $i * 100.0] > $node($i) set Y_ [expr 500.0 + ((($i * 93) % 21) - 10 ) * 10.0] > $node($i) set Z_ 0.0 > $ns initial_node_pos $node($i) 20 > > [$node($i) set ragent_] set-config \ > "$nodeConfig ; log-file-name $dirName/oolsr-node-$i.log" > set HAaddress [AddrParams addr2id [$HA node-addr]] > [$node($i) set regagent_] set home_agent_ $HAaddress > > # [$node($i) set ragent_] start > # [$node($i) set ragent_] config > } > > #--------------------------------------------------------------------------- > # Sending traffic > #--------------------------------------------------------------------------- > > set sender [new Agent/UDP] > $ns attach-agent $W(0) $sender > set cbr [new Application/Traffic/CBR] > $cbr set packetSize_ 128 > $cbr set interval_ 0.1 > $cbr attach-agent $sender > > set receiver [new Agent/Null] > $ns attach-agent $node([expr $val(nn)-1]) $receiver > > $ns connect $sender $receiver > $ns at 0.0 "$cbr start" > > #--------------------------------------------------------------------------- > # Finishing procedure > #--------------------------------------------------------------------------- > > proc finishSimulation { } { > global ns node val dirName > > # Log the final state of all the nodes > for {set i 0} {$i < $val(nn)} {incr i} { > [$node($i) set ragent_] state "$dirName/oolsr-node-$i.final-state" > } > > # Exit > puts "Finished simulation." > $ns halt > } > > #--------------------------------------------------------------------------- > # Run the simulation > #--------------------------------------------------------------------------- > > proc runSimulation {duration} { > global ns finishSimulation > for {set j 1.0} {$j < $duration} {set j [expr $j * 1.3 ]} { > $ns at $j "puts t=$j" > } > $ns at $duration "finishSimulation" > $ns run > } > > runSimulation 305.0 > > #--------------------------------------------------------------------------- > > > -- > Thanks & Best Regards, > > Zhang Wen Zhi(ŐĹÎÄÖÎ) > Tel: 086-1358-161-4504 > -- Thanks & Best Regards, Zhang Wen Zhi(ŐĹÎÄÖÎ) Tel: 086-1358-161-4504 From mmm59 at aub.edu.lb Mon Mar 23 06:47:28 2009 From: mmm59 at aub.edu.lb (Mathiew Moussa) Date: Mon, 23 Mar 2009 15:47:28 +0200 Subject: [ns] How to generate a topology in ns2 Message-ID: <20090323154728.vosx4zojwokwkg8w@imail.aub.edu.lb> Dear Friends, How does one generate a topology of non-uniformly placed nodes, by non-uniform i mean that in some locations of the network alot of nodes are close and on other parts they are few and scattered. Of course I would need to know how to generate a topology in the first place, so please do have an Answer. Thanks, Mathiew From linhnm3010 at gmail.com Mon Mar 23 07:41:42 2009 From: linhnm3010 at gmail.com (=?UTF-8?B?TGluaCBOZ3V54buFbg==?=) Date: Mon, 23 Mar 2009 21:41:42 +0700 Subject: [ns] Use AGT level of MAC leve to Compute instance throughput in wireless new trace file? Message-ID: <49C79FA6.8040805@gmail.com> Hi all ns users, I'm using *Marco Fiore's *awk code (http://www.tlc-networks.polito.it/fiore/) to compute the throughput of data service in my 802.16 WiMAX scenario. In the code I found that the author use AGT (Agent Trace level) to filter the trace file to get how many data bytes were receieved at the destination node. I wonder why we use AGT level, not MAC level to compute. Who did use this code can tell me the precision of this one and can you tell me a little bit more about compute others parameter like instance delay, average delay or packet loss. Thank all of you in advance, I'm a newbie to ns. Linh Nguyen From megatfarez at eee.strath.ac.uk Mon Mar 23 07:41:37 2009 From: megatfarez at eee.strath.ac.uk (Megat Farez Azril Zuhairi) Date: Mon, 23 Mar 2009 14:41:37 -0000 Subject: [ns] wired-cum-wireless with RTP (Segmentation Fault) Message-ID: <9C2F284131C9394081261B2AEF82C26E3BF645@helios.eee.strath.ac.uk> Hi everyone, I modified the default wired-cum-wireless.tcl found in tcl/ex/ and give = it an RTP agent instead of TCP. The script modification has not been = successful. I welcome any idea from anyone to get this simulation = running up properly. What's wrong with the code? It appears that the = code ended up with Segmentation Fault after every run.=20 Thanks ### This simulation is an example of combination of wired and wireless=20 ### topologies. global opt set opt(chan) Channel/WirelessChannel set opt(prop) Propagation/TwoRayGround set opt(netif) Phy/WirelessPhy set opt(mac) Mac/802_11 set opt(ifq) Queue/DropTail/PriQueue set opt(ll) LL set opt(ant) Antenna/OmniAntenna set opt(x) 670 =20 set opt(y) 670 =20 set opt(ifqlen) 50 =20 set opt(tr) wired-and-wirelessss.tr set opt(namtr) wired-and-wirelessss.nam set opt(nn) 3 =20 set opt(adhocRouting) DSDV =20 set opt(cp) "" =20 set opt(stop) 250 =20 set num_wired_nodes 2 set num_bs_nodes 2 set ns_ [new Simulator] # set up for hierarchical routing $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 3 =20 lappend cluster_num 2 1 1 =20 AddrParams set cluster_num_ $cluster_num lappend eilastlevel 2 2 4 1 =20 AddrParams set nodes_num_ $eilastlevel=20 set tracefd [open $opt(tr) w] $ns_ trace-all $tracefd set namtracefd [open $opt(namtr) w] $ns_ namtrace-all $namtracefd set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) # god needs to know the number of all wireless interfaces create-god [expr $opt(nn) + $num_bs_nodes] #create wired nodes set temp {0.0.0 0.0.1 0.1.0 0.1.1} =20 for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] }=20 $ns_ node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propInstance [new $opt(prop)] \ -phyType $opt(netif) \ -channel [new $opt(chan)] \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace ON \ -routerTrace OFF \ -macTrace OFF set temp {1.0.0 1.0.1 1.0.2 1.0.3} =20 set BS(0) [$ns_ node [lindex $temp 0]] set BS(1) [$ns_ node 2.0.0] $BS(0) random-motion 0=20 $BS(1) random-motion 0 $BS(0) set X_ 1.0 $BS(0) set Y_ 2.0 $BS(0) set Z_ 0.0 =20 $BS(1) set X_ 150.0 $BS(1) set Y_ 100.0 $BS(1) set Z_ 0.0 =20 #configure for mobilenodes $ns_ node-config -wiredRouting OFF for {set j 0} {$j < $opt(nn)} {incr j} { set node_($j) [ $ns_ node [lindex $temp \ [expr $j+1]] ] $node_($j) base-station [AddrParams addr2id [$BS(0) node-addr]] } #create links between wired and BS nodes $ns_ duplex-link $W(0) $W(1) 5Mb 2ms DropTail $ns_ duplex-link $W(1) $BS(0) 5Mb 2ms DropTail $ns_ duplex-link $W(1) $BS(1) 5Mb 2ms DropTail $ns_ duplex-link-op $W(0) $W(1) orient down $ns_ duplex-link-op $W(1) $BS(0) orient left-down $ns_ duplex-link-op $W(1) $BS(1) orient right-down # setup TCP connections set rtp1 [new Agent/RTP] set sink1 [new Agent/Null] $ns_ attach-agent $W(0) $rtp1 $ns_ attach-agent $node_(0) $sink1 set cbr1 [new Application/Traffic/CBR] $cbr1 set packet_size_ 99 $cbr1 set interval_ 60ms $cbr1 attach-agent $rtp1 $ns_ connect $rtp1 $sink1 $ns_ at 160 "$rtp1 start" set rtp2 [new Agent/RTP] # $tcp2 set class_ 2 set sink2 [new Agent/Null] $ns_ attach-agent $node_(1) $rtp2 $ns_ attach-agent $node_(2) $sink2 set cbr2 [new Application/Traffic/CBR] $cbr2 set packet_size_ 99=20 $cbr2 set interval_ 60ms $cbr2 attach-agent $rtp2 $ns_ connect $rtp2 $sink2 $ns_ at 180 "$rtp2 start" =20 for {set i 0} {$i < $opt(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 20 } for {set i } {$i < $opt(nn) } {incr i} { $ns_ at $opt(stop).0000010 "$node_($i) reset"; } $ns_ at $opt(stop).0000010 "$BS(0) reset"; # $ns_ at $opt(stop).1 "puts \"NS EXITING...\" ; $ns_ halt" $ns_ at $opt(stop).1 "finish" proc finish {} { global ns_ namtracefd tracefd=20 $ns_ flush-trace close $namtracefd=20 close $tracefd exec nam ../nam-1.13/wired-and-wirelessss.nam & exit 0 } puts "Starting Simulation..." $ns_ run From Faraz_Hasan-S at email.ulster.ac.uk Mon Mar 23 08:48:19 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Mon, 23 Mar 2009 15:48:19 +0000 Subject: [ns] UMTS on NS-2 Message-ID: Hello! Reference to my previous email about UMTS implementation on NS-2. Can some one tell me if I need a separate patch for UMTS while working on NS-2.33? If so, where can I download it from? I have seen http://eurane.ti-wmc.nl/eurane/, patch available there is in diff.gz format. I am a newbie to open suse linux, I think I should be after something .tar.gz? Anyway, when I download and open eurane1.12.diff.gz, it gives an error "associated help application does not exist"! This patch is available for NS-2.30, I am using 2.33. Also, what is CLEAN NS-2.3 I downloaded test_tcp.tcl (UMTS implementation on NS-2 test run), without installing any patch on my existing NS-2.33. When I execute it, it says (_o3 cmd line 1) invoked from within "_o3 cmd create-Umtsnode" . . . "$ns create-Umtsnode" invoked from within "set rnc [$ns create-Umtsnode]" file "umtstcp.tcl line 42 Can some one help me at the earliest possible please? Too many questions? Hope to hear from you soon Faraz From d_daramola at yahoo.com Mon Mar 23 10:13:29 2009 From: d_daramola at yahoo.com (Daramola Dunni) Date: Mon, 23 Mar 2009 10:13:29 -0700 (PDT) Subject: [ns] Path Diversity and Multiple Description in NS2.33 Message-ID: <957571.25004.qm@web53107.mail.re2.yahoo.com> Hi everyone! I want to ask if anyone has simulated VoIP using path diversity and Multiple Description Coding with NS-2.33. Also, can some one please guide me to tutorial on simulating VoIP on NS-2. A code on such will be of great assistance. Your early response shall be highly appreciated. Thanks in advance. From veronicadiaza at gmail.com Mon Mar 23 10:40:12 2009 From: veronicadiaza at gmail.com (veronica diaza) Date: Mon, 23 Mar 2009 10:40:12 -0700 Subject: [ns] Attachments cannot be sent in ns-users mailing list.......Here is the solution on how to get neighbours of a mobile node in wireless simulation Message-ID: 1. Get the number of nodes in the network #include God::instance()->nodes(); 2. In order to use God object in C++ code, in your simluation script, you should have # Create God set god_ [create-god $opt(nn)] for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion $god_ new_node $node_($i) } 3. In order to check that if node j is node i's neighbor, use the following function. God::instance()->IsNeighbor(i , j); 4. In order to use IsNeighbor function in C++ code, either add EnergyModel in simulation script, (please refer to NS Manual Chapter 19 for detail) $ns_ node-config -energyModel $energymodel \ -rxPower $p_rx \ -txPower $p_tx \ -initialEnergy $initialenergy \ or change the IsNeighbor function in mobile/god.cc (disable energy checking) bool God::IsNeighbor(int i, int j) { assert(ienergy_model()->node_on() == false || mb_node[j]->energy_model()->node_on() == false || mb_node[i]->energy_model()->energy() <= 0.0 || mb_node[j]->energy_model()->energy() <= 0.0 ) { return false; } */ vector a(mb_node[i]->X(), mb_node[i]->Y(), mb_node[i]->Z()); vector b(mb_node[j]->X(), mb_node[j]->Y(), mb_node[j]->Z()); vector d = a - b; if (d.length() < RANGE) return true; else return false; } From linhnm3010 at gmail.com Mon Mar 23 11:23:41 2009 From: linhnm3010 at gmail.com (=?UTF-8?B?TGluaCBOZ3V54buFbg==?=) Date: Tue, 24 Mar 2009 01:23:41 +0700 Subject: [ns] Use AGT level of MAC leve to Compute instance throughput in wireless new trace file? Message-ID: <49C7D3AD.50108@gmail.com> Hi all ns users, I'm using *Marco Fiore's *awk code (http://www.tlc-networks.polito.it/fiore/) to compute the throughput of data service in my 802.16 WiMAX scenario. In the code I found that the author use AGT (Agent Trace level) to filter the trace file to get how many data bytes were receieved at the destination node. I wonder why we use AGT level, not MAC level to compute. Who did use this code can tell me the precision of this one and can you tell me a little bit more about compute others parameter like instance delay, average delay or packet loss. Thank all of you in advance, I'm a newbie to ns. Linh Nguyen From binome_ini at hotmail.com Mon Mar 23 15:39:21 2009 From: binome_ini at hotmail.com (sarym binome) Date: Mon, 23 Mar 2009 22:39:21 +0000 Subject: [ns] RAL route acquisition latency Message-ID: hello everybody does anybody know how to calculate the RAL route acquisition latency ?? with awk best regards _________________________________________________________________ Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live?? Lancez-vous ! http://www.microsoft.com/windows/windowslive/default.aspx From lionbedroo at yahoo.co.uk Mon Mar 23 15:41:08 2009 From: lionbedroo at yahoo.co.uk (Lion Bedroo) Date: Mon, 23 Mar 2009 15:41:08 -0700 (PDT) Subject: [ns] optical link in Ns2 Message-ID: <174292.29475.qm@web24605.mail.ird.yahoo.com> Hi all, It was written in some Ns2 materials that there is an optilink object which?could be useful to make an optical link between two nodes in the Ns2 simulator but unfortunately I didn't found it in any places of the Ns2 files that I have. Does anybody have tried to make an optical link using this simulator? would be very useful if some basic ideas given to start with them!? Thanks in anticipates Lion From alihussein2008 at yahoo.com Mon Mar 23 17:13:41 2009 From: alihussein2008 at yahoo.com (Ali Al-Shra'ah.) Date: Mon, 23 Mar 2009 17:13:41 -0700 (PDT) Subject: [ns] where routes are saved in TORA Message-ID: <516142.17778.qm@web52302.mail.re2.yahoo.com> Hi all can any one help me where routes are saved in TORA routing protocol and where is the route selection mechanism is located within TORA protocol. From muralikrishna4g at gmail.com Mon Mar 23 21:03:13 2009 From: muralikrishna4g at gmail.com (muralikrishna g) Date: Tue, 24 Mar 2009 09:33:13 +0530 Subject: [ns] how to send a single packet from one node to another node Message-ID: hi to all i have to send a single packet from one node to another anode.. only single packet... how to do this.. please help me... thanks in advance From mats.folke at ericsson.com Tue Mar 24 00:47:51 2009 From: mats.folke at ericsson.com (Mats Folke) Date: Tue, 24 Mar 2009 08:47:51 +0100 Subject: [ns] UMTS on NS-2 In-Reply-To: References: Message-ID: <81DD8EA2638A554EA2DA738B270F63FA6726DA@esealmw114.eemea.ericsson.se> Hi! Syed Faraz Hasan wrote: > Hello! > > Reference to my previous email about UMTS implementation on NS-2. Can > some one tell me if I need a separate patch for UMTS while working on > NS-2.33? If so, where can I download it from? I have seen > http://eurane.ti-wmc.nl/eurane/, patch available there is in diff.gz > format. I am a newbie to open suse linux, I think I should be after > something .tar.gz? There is currently no patch for ns-2.33 and since Eurane is not supported anymore, there probably never will be. You have two options. 1) Download ns-2.30 and patch with existing eurane patch. If you need something introduced in later versions of ns-2, you cannot use it. 2) Patch an existing ns-2.33 with the eurane patch for ns-2.30. This could result in difficulties which you must manually resolve. The patching procedure is documented in the manual, section 2.3. A patch is distributed in something called a diff-file, hence the file extension .diff. Gzip then adds the extension .gz. Before pathing the .diff.gz file needs to be uncompressed using gunzip. The result will be the diff-file. > Anyway, when I download and open eurane1.12.diff.gz, it gives an > error "associated help application does not exist"! This patch is > available for NS-2.30, I am using 2.33. What gives an error? A patch file should not be "opened", see the eurane manual for correct usage, or the patch man page, or google for "unix command patch" or similar. > Also, what is CLEAN NS-2.3 A clean version is a version not messed up by changes, builds etc. A fresh downloaded version is a clean version. > I downloaded test_tcp.tcl (UMTS implementation on NS-2 test run), > without installing any patch on my existing NS-2.33. When I execute > it, it says > > (_o3 cmd line 1) > invoked from within > "_o3 cmd create-Umtsnode" > . > . > . > "$ns create-Umtsnode" > invoked from within > "set rnc [$ns create-Umtsnode]" > file "umtstcp.tcl line 42 This is because ns-2 (without the patch) does not understand the instructions in those tcl files. You need the patch to be able to run the tcl files. Regards, -- Mats Folke, M.Sc., Lic.Eng. Research Engineer Ericsson AB Office: +46 10 7171385 Ericsson Research Fax: +46 920 99621 P.O. Box 920 Mobile: +46 76 1271385 SE-971 28 Lule? Sweden From lukman_hanif at yahoo.com Tue Mar 24 02:21:23 2009 From: lukman_hanif at yahoo.com (lukman_hanif@yahoo.com) Date: Tue, 24 Mar 2009 02:21:23 -0700 (PDT) Subject: [ns] How to do GMPLS simulation in ns-2 ??? Message-ID: <421538.61086.qm@web50908.mail.re2.yahoo.com> Hi, Does anybody knows on how to do GMPLS simulation in ns-2 ??? From saba717671 at hotmail.com Tue Mar 24 02:57:03 2009 From: saba717671 at hotmail.com (anas) Date: Tue, 24 Mar 2009 12:57:03 +0300 Subject: [ns] how to get the coordinates of the nodes in evrey period of time Message-ID: Dear users how to get the coordinates of the nodes in evrey period of time Regards Anas From huunal at gmail.com Tue Mar 24 03:10:28 2009 From: huunal at gmail.com (Estuans Interius) Date: Tue, 24 Mar 2009 12:10:28 +0200 Subject: [ns] RED parameters in Misra Hollot paper Message-ID: Hi, I am new using ns-2 simulator. To be sure I want to run RED in ns-2 to see the same results of (Hollot, Misra). Is there any written .tcl code for this paper. Moreover, if I want to introduce 40 http session in to the network what should I do? I am sorry for these basic questions best hakki From huunal at gmail.com Tue Mar 24 03:16:53 2009 From: huunal at gmail.com (hakki) Date: Tue, 24 Mar 2009 03:16:53 -0700 (PDT) Subject: [ns] Multiple connections to a single agent In-Reply-To: <000601c69ed3$e00b8fe0$172914ac@Estrela> References: <000601c69ed3$e00b8fe0$172914ac@Estrela> Message-ID: <22677408.post@talk.nabble.com> Hi, I need a help about RED in ns-2. I want to see the results in Hollot Misra Infocom paper. In their paper, they introduced 60 TCP flows and 180 http session. I am so new about ns-2 so I don't know how should I introduce these sources, especially http session. best hakki Pedro Estrela wrote: > > > The problem is that the packets that you are sending to A3 have an > incorrect > port address. > > When you use > $ns connect $a1 $a2 > then automatically all normal control packets sent by a1 have the > destination port of a2; > > as a1 is not connected to a3 in TCL, you must set the port by hand in C++, > as NS will not do this for you, eg: > > void myAgent::recv(Packet* p, Handler *h) > { > hdr_ip *iph = hdr_ip::access(p); > hdr_cmn *ch = hdr_cmn::access(p); > > ... > > iph->saddr() = addr(); // (set my IP address) > iph->sport() = port(); // (set my source port) > iph->daddr() = nextHop_iaddr; // iaddr of n3 > iph->dport() = nextHop_iaddr; // port of a3 > > regarding the iaddr comment: check > http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html > > In my ns2_shared_procs.tcl "utils" tcl file, I introduce procs for all > possible conversions of each form, using the procs "handle2iaddr", > "handle2haddr", "handle2id", etc. > > > -------- > you could also have debug this problem by: > - redefining the no-slot handler to invoke the run-time TCL > debugger; > - use the mash inspector to find exactly who are _o153, _o158, etc > (http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html) > > If this helps you, please contribute the description of the problem and > the > solution, in your own words, to the NS2 wiki. > > Pedro Vale Estrela > > > >> -----Original Message----- >> From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On >> Behalf >> Of Brad Montgomery >> Sent: segunda-feira, 3 de Julho de 2006 19:25 >> To: ns-users at isi.edu >> Subject: Re: [ns] Multiple connections to a single agent >> >> >> I'm not sure I understand, and perhaps I've not adequately described what >> I'm trying to do, so I'll try again using a semi-hypothetical scenario: >> (Please keep in mind I'm new to ns!) >> >> Suppose I've got the following topology: >> >> N1 - N2 - N3 >> >> And three "different" agents, (A1,A2,A3) which have all been implemented >> differently in C++. The basic idea is that I want these agents to >> automatically communicate with each other... >> >> In C++ I've written an A1::command() function that will 'send' sends an >> IP >> packet to the A2 agent. When the A2 agent receives this packet, it then >> sends a packet back to A1, which then gets returned to A2 (basically a 3- >> way >> handshake). A2 should then automatically send another packet to the A3 >> agent by creating a packet, and inserting N3's address in the IP header. >> (I'm assuming all of my agents and nodes know about the topology) >> >> In TCL I've done this: >> ------------------------------------ >> set n1 [$ns node] >> set n2 [$ns node] >> set n3 [$ns node] >> >> set a1 [new Agent/A1] >> set a2 [new Agent/A2] >> set a3 [new Agent/A3] >> >> $ns attach-agent $n1 $a1 >> $ns attach-agent $n2 $a2 >> $ns attach-agent $n3 $a3 >> >> $ns connect $a1 $a2 >> #$ns connect $a2 $a3 ;# if I do this, the handshake doesn't work >> >> $ns at 0.0 $a1 send >> ------------------------------------ >> >> When I run this, ns gives me this error: >> >> --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- >> _o158: no target for slot 3 >> _o158 type: Classifier/Port >> content dump: >> classifier _o158 >> 0 offset >> 0 shift >> 2147483647 mask >> 1 slots >> slot 0: _o153 (Agent/A3) >> ---------- Finished standard no-slot{} default handler ---------- >> >> >> Basically I want A3 to look at any or all packets send to N3. How can I >> force this? >> >> I'm using ns-2.29 on Mac OS X 10.4.7. >> >> Thanks in advance! >> >> Brad >> >> >> On 7/2/06 6:10 PM, "Mark Shifrin" wrote: >> >> > no problem with tcp >> > you can do attach agent as many time as you want to a single node. >> > you must first define it as tcp-source. and then to choose the >> application >> > which runs over this >> > tcp, for example i did it with FTP. moreover you can do it for n, >> within >> a >> > loop >> > >> > --- Brad Montgomery wrote: >> > >> >> >> >> Hello All, >> >> >> >> I'm wondering if it's possible to have a single Agent connected to 2 >> or >> more >> >> other Agents. I have a topology similar to this: >> >> >> >> N2 >> >> | >> >> N0 -- N1 -- N3 -- N4 >> >> >> >> I have an agents A0, A2, A3 connected to N0, N2, N3 respectively, and >> I >> >> would like A0 to send a packet to A2, which would then in turn send a >> packet >> >> to A3. Is this possible? >> >> >> >>> From reading the mailing list archives, it seems like this may not be >> >> possible, so my second question would be this: >> >> >> >> Is it possible to attach an agent to a Node, and force that agent's >> recv >> >> function to get executed for every packet that passes through that >> node? >> >> For example: Could N2 send a packet to N4, so that A3's recv function >> >> processes that packet before sending it onward. >> >> >> >> Any help is GREATLY appreciated! >> >> >> >> Brad >> >> >> >> >> > >> > >> > enjoy the life - >> > Mark >> > >> > __________________________________________________ >> > Do You Yahoo!? >> > Tired of spam? Yahoo! Mail has the best spam protection around >> > http://mail.yahoo.com > > > > -- View this message in context: http://www.nabble.com/Multiple-connections-to-a-single-agent-tp5143738p22677408.html Sent from the ns-users mailing list archive at Nabble.com. From minarz at gmail.com Tue Mar 24 03:22:51 2009 From: minarz at gmail.com (mm) Date: Tue, 24 Mar 2009 18:22:51 +0800 Subject: [ns] wireless DoS attack NS2 simulation Message-ID: <6e5ba8080903240322m36dc2d99w63af900d42b8071d@mail.gmail.com> Hello to all Is it possible to simulate wireless denial of service attacks (continually sending control frame or management frame) in ns2.33? Thank you very much From mshrehmani at gmail.com Tue Mar 24 04:19:17 2009 From: mshrehmani at gmail.com (Mubashir Rehmani) Date: Tue, 24 Mar 2009 12:19:17 +0100 Subject: [ns] how to get the coordinates of the nodes in evrey period of time In-Reply-To: References: Message-ID: Hi, Try to use timers to get the coordinates of the nodes periodically. See ns2 manual for timers. Regards Mubashir Husain Rehmani 2009/3/24 anas > > Dear users > > how to get the coordinates of the nodes in evrey period of time > > Regards > > Anas > -- Mubashir Husain Rehmani From alifangelo at gmail.com Tue Mar 24 04:51:37 2009 From: alifangelo at gmail.com (Angelo Alifano) Date: Tue, 24 Mar 2009 12:51:37 +0100 Subject: [ns] Using mac 802.11e tkn with mac 802.11 Message-ID: Hi all, I have installed the TKN package on ns-2.31 and it is working perfectly. I'm asking if it possible to use both mac, 802.11e and 802.11, in the same scenario to have a pair of node in EDCA mode and a pair of node in EDCF mode. A scenario like this will works fine ? # ======================================================================# Define options# ======================================================================set val(chan) Channel/WirelessChannel ;# channel typeset val(prop) Propagation/TwoRayGround ;# radio-propagation modelset val(netif) Phy/WirelessPhy ;# network interface typeset val(mac) Mac/802_11 ;# MAC typeset val(ifq) Queue/DropTail/PriQueue ;# interface queue typeset val(ll) LL ;# link layer typeset val(ant) Antenna/OmniAntenna ;# antenna modelset val(ifqlen) 50 ;# max packet in ifqset val(nn) 2 ;# number of mobilenodesset val(rp) NOAH ;# routing protocol# ======================================================================# Main Program# ======================================================================## Initialize Global Variables#set ns_ [new Simulator]set tracefd [open scenario_802_11_2edca_2edcf.tr w]$ns_ trace-all $tracefd$ns_ use-newtrace# set up topography objectset topo [new Topography]$topo load_flatgrid 500 500Mac/802_11 set SlotTime_ 0.000020 ;# 20usMac/802_11 set SIFS_ 0.000010 ;# 10usMac/802_11 set PreambleLength_ 144 ;# 144 bitMac/802_11 set PLCPHeaderLength_ 48 ;# 48 bitsMac/802_11 set PLCPDataRate_ 1.0e6 ;# 1MbpsMac/802_11 set dataRate_ 11.0e6 ;# 11MbpsMac/802_11 set basicRate_ 1.0e6 ;# 1MbpsMac/802_11 set CWMin_ 31Mac/802_11 set CWMax_ 1023 Mac/802_11 set RTSThreshold_ 4096Mac/802_11 set ShortRetryLimit_ 7Mac/802_11 set LongRetryLimit_ 4Mac/802_11 set MaxSDUSize_ 2132## Create God#create-god 4## Create the specified number of mobilenodes [$val(nn)] and "attach" them# to the channel. # Here two nodes are created : node(0) and node(1)# configure node$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) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion}## Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes#$node_(0) set X_ 5.0$node_(0) set Y_ 2.0$node_(0) set Z_ 0.0$node_(1) set X_ 0.0$node_(1) set Y_ 35.0$node_(1) set Z_ 0.0# Setup traffic flow between nodes# CBR connections between node_(0) and node_(1)set agent [new Agent/UDP]$agent set class_ 2$agent set fid_ 3set sink [new Agent/Null]$ns_ attach-agent $node_(0) $agent$ns_ attach-agent $node_(1) $sink$ns_ connect $agent $sinkset cbr [new Application/Traffic/CBR] $cbr set packetSize_ 160 $cbr set random_ 0 $cbr set rate_ 64000$cbr attach-agent $agent$ns_ at 20.1 "$cbr start"$ns_ at 100 "$cbr stop"set agent1 [new Agent/UDP]$agent1 set class_ 2$agent1 set fid_ 4set sink1 [new Agent/Null]$ns_ attach-agent $node_(1) $agent1$ns_ attach-agent $node_(0) $sink1$ns_ connect $agent1 $sink1set cbr1 [new Application/Traffic/CBR] $cbr1 set packetSize_ 160 $cbr1 set random_ 0 $cbr1 set rate_ 64000$cbr1 attach-agent $agent1$ns_ at 20.0 "$cbr1 start"$ns_ at 100 "$cbr1 stop"## Tell nodes when the simulation ends#for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at 100.1 "$node_($i) reset";}set val(chan) Channel/WirelessChannel ;# channel typeset val(prop) Propagation/TwoRayGround ;# radio-propagation modelset val(netif) Phy/WirelessPhy ;# network interface typeset val(mac) Mac/802_11e ;# MAC typeset val(ifq) Queue/DTail/PriQ ;# interface queue typeset val(ll) LL ;# link layer typeset val(ant) Antenna/OmniAntenna ;# antenna modelset val(ifqlen) 50 ;# max packet in ifqset val(nn) 2 ;# number of mobilenodesset val(rp) NOAH ;# routing protocolMac/802_11e set SlotTime_ 0.000020 ;# 20usMac/802_11e set SIFS_ 0.000010 ;# 10usMac/802_11e set PreambleLength_ 144 ;# 144 bitMac/802_11e set PLCPHeaderLength_ 48 ;# 48 bitsMac/802_11e set PLCPDataRate_ 1.0e6 ;# 1MbpsMac/802_11e set dataRate_ 11.0e6 ;# 11MbpsMac/802_11e set basicRate_ 1.0e6 ;# 1Mbps Mac/802_11e set RTSThreshold_ 4096Mac/802_11e set ShortRetryLimit_ 7Mac/802_11e set LongRetryLimit_ 4Mac/802_11e set MaxSDUSize_ 2132$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) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF for {set i 0} {$i < $val(nn) } {incr i} { set node_a($i) [$ns_ node] $node_a($i) random-motion 0 ;# disable random motion}$node_a(0) set X_ 15.0$node_a(0) set Y_ 24.0$node_a(0) set Z_ 0.0$node_a(1) set X_ 10.0$node_a(1) set Y_ 25.0$node_a(1) set Z_ 0.0set agent2 [new Agent/UDP]$agent2 set class_ 2$agent2 set prio_ 3$agent2 set fid_ 40set sink2 [new Agent/Null]$ns_ attach-agent $node_a(0) $agent2$ns_ attach-agent $node_a(1) $sink2$ns_ connect $agent2 $sink2set cbr2 [new Application/Traffic/CBR] $cbr2 set packetSize_ 160 $cbr2 set random_ 0 $cbr2 set rate_ 64000$cbr2 attach-agent $agent2$ns_ at 20.1 "$cbr2 start"$ns_ at 100 "$cbr2 stop"set agent3 [new Agent/UDP]$agent3 set class_ 2$agent3 set prio_ 3$agent3 set fid_ 41set sink3 [new Agent/Null]$ns_ attach-agent $node_a(1) $agent3$ns_ attach-agent $node_a(0) $sink3$ns_ connect $agent3 $sink3set cbr3 [new Application/Traffic/CBR] $cbr3 set packetSize_ 160 $cbr3 set random_ 0 $cbr3 set rate_ 64000$cbr3 attach-agent $agent3$ns_ at 20.0 "$cbr3 start"$ns_ at 100 "$cbr3 stop"for {set i 0} {$i < $val(nn) } {incr i} { $ns_ at 100.1 "$node_a($i) reset";}$ns_ at 101.0 "stop"$ns_ at 101.01 "puts \"NS EXITING...\" ; $ns_ halt"proc stop {} { global ns_ tracefd $ns_ flush-trace close $tracefd}puts "Starting Simulation..."$ns_ runIn my opinion it work, but i'm new user of ns and can't say nothing about that. Someone can confirm my opinion ?Thanks in advanceAngelo Alifano From kiraneet.sharma at gmail.com Tue Mar 24 04:52:53 2009 From: kiraneet.sharma at gmail.com (Kiraneet sharma) Date: Tue, 24 Mar 2009 17:22:53 +0530 Subject: [ns] New protocol added..but error in running tcl script Message-ID: <2c8fad260903240452k2ebe2f9ct42d5ecc26b12bd03@mail.gmail.com> Hello everyone... I have added a new protocol in ns2,which is an extension of aodv. After making the required changes in all the files,running ./configure and make goes well... But if I run a tcl script using that protocol it shows an error : (_o14 cmd line 1) invoked from within "_o14 cmd addr" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o14" line 2) (SplitObject unknown line 2) invoked from within "_o14 addr" ("eval" body line 1) invoked from within "eval $node addr $args" ("default" arm line 2) invoked from within "switch -exact $routingAgent_ { DSDV { set ragent [$self create-dsdv-agent $node] } DSR { $self at 0.0 "$node start-dsr" } AODV { set ragent [$self cre..." (procedure "_o3" line 11) (Simulator create-wireless-node line 11) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } { incr i } { set node_($i) [$ns node] }" I have checked the case sensitivity of protocol name too... Any solution ? From nadine341 at yahoo.fr Tue Mar 24 06:00:12 2009 From: nadine341 at yahoo.fr (Nadine Chen) Date: Tue, 24 Mar 2009 13:00:12 +0000 (GMT) Subject: [ns] Re : New protocol added..but error in running tcl script Message-ID: <776458.75037.qm@web28316.mail.ukl.yahoo.com> hi, to solve this problem, after make, you should execute make install , and your protocol will work fine. hope this helps. --- En date de?: Mar 24.3.09, Kiraneet sharma a ?crit?: De: Kiraneet sharma Objet: [ns] New protocol added..but error in running tcl script ?: ns-users at ISI.EDU Date: Mardi 24 Mars 2009, 11h52 Hello everyone... I have added a new protocol in ns2,which is an extension of aodv. After making the required changes in all the files,running ./configure and make goes well... But if I run a tcl script using that protocol it shows an error : (_o14 cmd line 1) ? ? invoked from within "_o14 cmd addr" ? ? invoked from within "catch "$self cmd $args" ret" ? ? invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." ? ? (procedure "_o14" line 2) ? ? (SplitObject unknown line 2) ? ? invoked from within "_o14 addr" ? ? ("eval" body line 1) ? ? invoked from within "eval $node addr $args" ? ? ("default" arm line 2) ? ? invoked from within "switch -exact $routingAgent_ { DSDV { set ragent [$self create-dsdv-agent $node] } DSR { $self at 0.0 "$node start-dsr" } AODV { set ragent [$self cre..." ? ? (procedure "_o3" line 11) ? ? (Simulator create-wireless-node line 11) ? ? invoked from within "_o3 create-wireless-node" ? ? ("eval" body line 1) ? ? invoked from within "eval $self create-wireless-node $args" ? ? (procedure "_o3" line 23) ? ? (Simulator node line 23) ? ? invoked from within "$ns node" ? ? ("for" body line 2) ? ? invoked from within "for {set i 0} {$i < $val(nn) } { incr i } { ? ? ? ? set node_($i) [$ns node] ? ? }" I have checked the case sensitivity of protocol name too... Any solution ? From kiran.svnit at gmail.com Tue Mar 24 06:22:32 2009 From: kiran.svnit at gmail.com (Kiran patel) Date: Tue, 24 Mar 2009 18:52:32 +0530 Subject: [ns] ns2-making changes in aodv In-Reply-To: References: Message-ID: respected sir i am work on enhanced aodv through fixed expire time in manet. but i can not understand how to find out shorest path in aodv node and how can calculate distance between to node...and where i change my code for that... plz sir give me some code for that in ns2 so i implement it... thank you sir regard kiran From kiran.svnit at gmail.com Tue Mar 24 06:23:33 2009 From: kiran.svnit at gmail.com (Kiran patel) Date: Tue, 24 Mar 2009 18:53:33 +0530 Subject: [ns] ns2 aodv expire time Message-ID: respected sir, i am work on aodv modification in routing table update through fixed expired time .. so i can not understand where i change my aodv.cc code and where i keep fixed expire time in this code.. plz sir give me some reply.. thank u sir regard kiran From Faraz_Hasan-S at email.ulster.ac.uk Tue Mar 24 09:10:54 2009 From: Faraz_Hasan-S at email.ulster.ac.uk (Syed Faraz Hasan) Date: Tue, 24 Mar 2009 16:10:54 +0000 Subject: [ns] UMTS Code EURANE Code - Class Simulator Error Message-ID: Hi Everyone! With Pats help I managed patching EURANE in NS-2.30 (OS: Linux). I am now trying to run test_tcp.tcl available on EURANE website. It is not executing correctly. I tried running each command of the program one by one to see wheres the error. Everything is OK till I reach... set rnc [$ns create-Umtsnode] which gives error: Error when calling class Simulator: create-Umtsnode Rest of the statements of the program are running OK (by that I mean there are no errors when I execute them) Can some one help me at this please? I am in desperate need of help!!! Faraz From huunal at gmail.com Tue Mar 24 11:00:27 2009 From: huunal at gmail.com (hakki) Date: Tue, 24 Mar 2009 11:00:27 -0700 (PDT) Subject: [ns] How to change default PI variables in ns-default.tcl Message-ID: <22685804.post@talk.nabble.com> Hi, I have been trying to set new PI variables in my .tcl code. How can I change the default variables in default ns variables best hakki -- View this message in context: http://www.nabble.com/How-to-change-default-PI-variables-in-ns-default.tcl-tp22685804p22685804.html Sent from the ns-users mailing list archive at Nabble.com. From binome_ini at hotmail.com Tue Mar 24 13:17:17 2009 From: binome_ini at hotmail.com (sarym binome) Date: Tue, 24 Mar 2009 20:17:17 +0000 Subject: [ns] RAL route acquisition latency In-Reply-To: References: Message-ID: hello everybody does anybody know how to calculate the RAL route acquisition latency ?? with awk best regards _________________________________________________________________ D?couvrez tout ce que Windows Live a ? vous apporter ! http://www.microsoft.com/windows/windowslive/ From cmjr at iol.pt Tue Mar 24 14:49:35 2009 From: cmjr at iol.pt (antonioli) Date: Tue, 24 Mar 2009 14:49:35 -0700 (PDT) Subject: [ns] UMTS-WIFI Handover using NIST module Message-ID: <22661913.post@talk.nabble.com> Hi, I?m working in a project about interoperability between technologies (WIFI,WIMAX,UMTS) and deploying some scripts to test this scenarios in NS (Network Simulator). I'm using ns2.29 with the patch of seamless and secure mobility for testing an example script that is provided in this patch, but I can't introduce some movement in mobile node (UMTS interface), and this interface never receive traffic. All help or support will be very helpful. Best Regards, Carlos Rodrigues -- View this message in context: http://www.nabble.com/UMTS-WIFI-Handover-using-NIST-module-tp22661913p22661913.html Sent from the ns-users mailing list archive at Nabble.com. From cmjr at iol.pt Tue Mar 24 14:49:06 2009 From: cmjr at iol.pt (Carlos Rodrigues) Date: Tue, 24 Mar 2009 21:49:06 +0000 Subject: [ns] UMTS-WIFI Handover using NIST module Message-ID: <20090324214906.mg47p7rg6kgwk0sg@webmail.iol.pt> Hi, I?m working in a project about interoperability between technologies (WIFI,WIMAX,UMTS) and deploying some scripts to test this scenarios in NS (Network Simulator). I'm using ns2.29 with the patch of seamless and secure mobility for testing an example script that is provided in this patch, but I can't introduce some movement in mobile node (UMTS interface), and this interface never receive traffic. All help or support will be very helpful. Best Regards, Carlos Rodrigues ________________________________________________________________________________ Precisa de cr?dito at? ?15.000? Cr?dito Pessoal Capital Mais. Pode pedir uma proposta on-line em http://www.iol.pt/correio/rodape.php?dst=0901052 From fhg07 at c3sl.ufpr.br Tue Mar 24 17:00:27 2009 From: fhg07 at c3sl.ufpr.br (fhg07@c3sl.ufpr.br) Date: Tue, 24 Mar 2009 21:00:27 -0300 (BRT) Subject: [ns] Help regarding absurd memory usage Message-ID: <9eb0de0f8a5e704cbdaddbcd6415367a.squirrel@webmail.c3sl.ufpr.br> I am simulating a protocol which I developed, and I wanted the simulation to end only when all my nodes are dead. Well, that is not really that fast to happen, and before I reach that point my memory ends and I get a bac_alloc error message. And here is the thing: I do alloc lots of packets with allocpkt, and I also always manage to free them with Packet::free(Packet *), but even when I free them, the memory usage don't even change ! And I am not overreacting when I say this, I made some experiments, and the average memory used when freeing all packet was exactly the same of when I did the same simulation withou freeing them. What do I need to do when I intend to have huge simulations, with like 15000 packets flying in the air? Using Packet::free didn't solve my problem. I even tried editing this function and inserting "free(pkt);" in its end, but it was in vain. Can someone please help me? Thanks, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science undergraduate student. From anshul2009 at gmail.com Tue Mar 24 18:55:50 2009 From: anshul2009 at gmail.com (anshul) Date: Tue, 24 Mar 2009 18:55:50 -0700 (PDT) Subject: [ns] [bug] zrp impementaion in ns-2 Message-ID: <200903250155.SAA05644@www.isi.edu> [Bug Report] ----------------------------- Category: Other Package: ns ns-2.31 OS: fedora core Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= ----------------------------- Description: while compliling zrp on ns-2 i am getting the following error zrp/zrp_table.h:192: error: extra qualification ‘RoutingTable::’ on member ‘compute_routes’ zrp/zrp_table.h: In member function ‘int RoutingTable::next_hop_to(nsaddr_t)’: with many warnings.i am attaching the snap of the make when run on ns-2. i hav already modified the files like packet.h, cmu-trace.h, cmu-trace.cc. ns-packet.tcl, ns-default.tcl, ns-lib.tcl, ns-agent.tcl as given in the code for cornell implementation of zrp. make snap make -k 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/home/hero/final2/ns-allinone-2.31/tclcl-1.19 -I/home/hero/final2/ns-allinone-2.31/otcl-1.13 -I/home/hero/final2/ns-allinone-2.31/include -I/home/hero/final2/ns-allinone-2.31/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 zrp/zrp.o zrp/zrp.cc In file included from zrp/zrp.cc:7: zrp/zrp.h:29:1: warning: "NULL" redefined In file included from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cstddef:50, from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cstdlib:51, from ./mobile/energy-model.h:42, from ./common/node.h:59, from ./mobile/god.h:53, from ./trace/cmu-trace.h:43, from zrp/zrp.cc:5: /usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h:400:1: warning: this is the location of the previous definition zrp/zrp.cc:41:1: warning: "IERP_REQUEST_TIMEOUT" redefined In file included from zrp/zrp.cc:7: zrp/zrp.h:35:1: warning: this is the location of the previous definition zrp/zrp.cc:49:1: warning: "MAX_ROUTE_LENGTH" redefined zrp/zrp.cc:33:1: warning: this is the location of the previous definition zrp/zrp_table.h: In constructor ‘link_struct::link_struct()’: zrp/zrp_table.h:100: warning: ‘link_struct::seq_’ will be initialized after zrp/zrp_table.h:99: warning: ‘int link_struct::isup_’ zrp/zrp_table.h:82: warning: when initialized here zrp/zrp_table.h: In constructor ‘rtable_entry::rtable_entry()’: zrp/zrp_table.h:160: warning: ‘rtable_entry::next_’ will be initialized after zrp/zrp_table.h:158: warning: ‘Time rtable_entry::expiry_’ zrp/zrp_table.h:161: warning: when initialized here zrp/zrp_table.h: In constructor ‘rtable_entry::rtable_entry(nsaddr_t)’: zrp/zrp_table.h:160: warning: ‘rtable_entry::next_’ will be initialized after zrp/zrp_table.h:158: warning: ‘Time rtable_entry::expiry_’ zrp/zrp_table.h:162: warning: when initialized here zrp/zrp_table.h: At global scope: zrp/zrp_table.h:192: error: extra qualification ‘RoutingTable::’ on member ‘compute_routes’ zrp/zrp_table.h: In member function ‘int RoutingTable::next_hop_to(nsaddr_t)’: zrp/zrp_table.h:204: warning: no return statement in function returning non-void zrp/zrp.cc: In member function ‘void ZRPAgent::print_routes()’: zrp/zrp.cc:79: warning: too many arguments for format zrp/zrp.h: In constructor ‘ZRPAgent::ZRPAgent()’: zrp/zrp.h:266: warning: ‘ZRPAgent::suspend_flag_’ will be initialized after zrp/zrp.h:195: warning: ‘ZRPPeriodicUpdateTimer ZRPAgent::PeriodicUpdateTimer_’ zrp/zrp.cc:153: warning: when initialized here zrp/zrp.h:272: warning: ‘ZRPAgent::rtable’ will be initialized after zrp/zrp.h:247: warning: ‘int ZRPAgent::myaddr_’ zrp/zrp.cc:153: warning: when initialized here zrp/zrp.h:247: warning: ‘ZRPAgent::myaddr_’ will be initialized after zrp/zrp.h:185: warning: ‘char* ZRPAgent::myid_’ zrp/zrp.cc:153: warning: when initialized here zrp/zrp.h:264: warning: ‘ZRPAgent::qid_’ will be initialized after zrp/zrp.h:248: warning: ‘int ZRPAgent::radius_’ zrp/zrp.cc:153: warning: when initialized here zrp/zrp.h: In constructor ‘ZRPAgent::ZRPAgent(nsaddr_t)’: zrp/zrp.h:266: warning: ‘ZRPAgent::suspend_flag_’ will be initialized after zrp/zrp.h:195: warning: ‘ZRPPeriodicUpdateTimer ZRPAgent::PeriodicUpdateTimer_’ zrp/zrp.cc:178: warning: when initialized here zrp/zrp.h:272: warning: ‘ZRPAgent::rtable’ will be initialized after zrp/zrp.h:247: warning: ‘int ZRPAgent::myaddr_’ zrp/zrp.cc:178: warning: when initialized here zrp/zrp.h:247: warning: ‘ZRPAgent::myaddr_’ will be initialized after zrp/zrp.h:185: warning: ‘char* ZRPAgent::myid_’ zrp/zrp.cc:178: warning: when initialized here zrp/zrp.h:264: warning: ‘ZRPAgent::qid_’ will be initialized after zrp/zrp.h:248: warning: ‘int ZRPAgent::radius_’ zrp/zrp.cc:178: warning: when initialized here zrp/zrp.h:257: warning: ‘ZRPAgent::neighbortable_scan_period_’ will be initialized after zrp/zrp.h:256: warning: ‘int ZRPAgent::iarp_update_period_’ zrp/zrp.cc:178: warning: when initialized here zrp/zrp.cc: In member function ‘virtual int ZRPAgent::command(int, const char* const*)’: zrp/zrp.cc:335: warning: unused variable ‘str’ zrp/zrp.cc: In member function ‘Packet* ZRPAgent::pkt_create(ZRPTYPE, nsaddr_t, int)’: zrp/zrp.cc:428: warning: unused variable ‘s’ zrp/zrp.cc: In member function ‘void ZRPAgent::pkt_add_link(Packet*, nsaddr_t, nsaddr_t, int)’: zrp/zrp.cc:570: warning: unused variable ‘ns’ zrp/zrp.cc:572: warning: unused variable ‘seq_stamp’ zrp/zrp.cc: In member function ‘void ZRPAgent::pkt_add_all_links(Packet*)’: zrp/zrp.cc:594: warning: unused variable ‘num_entries’ zrp/zrp.cc:597: warning: unused variable ‘seq_stamp’ zrp/zrp.cc: In member function ‘void ZRPAgent::pkt_send(Packet*, nsaddr_t)’: zrp/zrp.cc:625: warning: unused variable ‘hdrz’ zrp/zrp.cc: In member function ‘void ZRPAgent::pkt_read_update(Packet*, link_struct*, int)’: zrp/zrp.cc:652: warning: unused variable ‘lnew’ zrp/zrp.cc: In member function ‘void ZRPAgent::pkt_broadcast(Packet*)’: zrp/zrp.cc:670: warning: unused variable ‘hdrz’ zrp/zrp.cc: In member function ‘void ZRPAgent::pkt_add_node(Packet*, nsaddr_t, int)’: zrp/zrp.cc:691: warning: unused variable ‘num_entries’ zrp/zrp.cc:692: warning: unused variable ‘ptr’ zrp/zrp.cc: In member function ‘int ZRPAgent::add_outer_route(Packet*, nsaddr_t)’: zrp/zrp.cc:808: warning: unused variable ‘tmp’ zrp/zrp.cc: In member function ‘virtual void ZRPBeaconTransmitTimer::handle(Event*)’: zrp/zrp.cc:872: warning: unused variable ‘address’ zrp/zrp.cc: In member function ‘void ZRPAgent::scan_query_detections()’: zrp/zrp.cc:933: warning: unused variable ‘entr’ zrp/zrp.cc: In member function ‘virtual void ZRPNeighborScanTimer::handle(Event*)’: zrp/zrp.cc:1007: warning: unused variable ‘nstemp’ zrp/zrp.cc:1008: warning: unused variable ‘tmp’ zrp/zrp.cc:1015: warning: unused variable ‘seq_stamp’ zrp/zrp.cc:1015: warning: unused variable ‘num_entries’ zrp/zrp.cc: In member function ‘virtual void ZRPPeriodicUpdateTimer::handle(Event*)’: zrp/zrp.cc:1108: warning: unused variable ‘s’ zrp/zrp.cc: In member function ‘void ZRPAgent::do_update()’: zrp/zrp.cc:1123: warning: unused variable ‘hdrz’ zrp/zrp.cc: In member function ‘virtual void ZRPAckTimer::handle(Event*)’: zrp/zrp.cc:1181: warning: unused variable ‘nstemp’ zrp/zrp.cc:1182: warning: unused variable ‘tmp’ zrp/zrp.cc:1190: warning: unused variable ‘seq_stamp’ zrp/zrp.cc:1190: warning: unused variable ‘num_entries’ zrp/zrp.cc:1282: warning: label ‘EOFF’ defined but not used zrp/zrp.cc: In member function ‘void ZRPAgent::scan_ierp_cache()’: zrp/zrp.cc:1293: warning: unused variable ‘entr’ zrp/zrp.cc: In member function ‘void ZRPAgent::ierp_notify_iarp(Packet*)’: zrp/zrp.cc:1314: warning: unused variable ‘daddr’ zrp/zrp.cc: In member function ‘virtual void ZRPAgent::recv(Packet*, Handler*)’: zrp/zrp.cc:1506: warning: unused variable ‘hdrz’ zrp/zrp.cc:1508: warning: unused variable ‘dst’ zrp/zrp.cc: In member function ‘void ZRPAgent::recvZRP(Packet*)’: zrp/zrp.cc:1651: warning: zero-length printf format string zrp/zrp.cc:1706: warning: zero-length printf format string zrp/zrp.cc:1861: warning: too many arguments for format zrp/zrp.cc:1582: warning: unused variable ‘src’ zrp/zrp.cc:1583: warning: unused variable ‘dst’ zrp/zrp.cc:1590: warning: unused variable ‘nptr’ zrp/zrp.cc:1591: warning: unused variable ‘mptr’ zrp/zrp.cc:1597: warning: unused variable ‘walk’ zrp/zrp.cc:1598: warning: unused variable ‘joe’ zrp/zrp.cc:1599: warning: unused variable ‘currlink’ zrp/zrp.cc:1603: warning: unused variable ‘s’ zrp/zrp.cc: In member function ‘void ZRPAgent::originate_request(nsaddr_t, int)’: zrp/zrp.cc:2146: warning: unused variable ‘hdrip’ zrp/zrp.cc:2136: warning: unused variable ‘s’ zrp/zrp.cc: In member function ‘void ZRPAgent::route_pkt(Packet*, nsaddr_t)’: zrp/zrp.cc:2210: warning: unused variable ‘rrr’ zrp/zrp.cc: In member function ‘int ZRPAgent::add_local_route(Packet*, nsaddr_t)’: zrp/zrp.cc:2291: warning: unused variable ‘ptr’ zrp/zrp.cc: In member function ‘int ZRPAgent::node_is_covered(nsaddr_t, int, nsaddr_t)’: zrp/zrp.cc:2407: warning: unused variable ‘ptr’ zrp/zrp.cc: In member function ‘int ZRPAgent::query_detect1(int, nsaddr_t, nsaddr_t, int)’: zrp/zrp.cc:2527: warning: zero-length printf format string make: *** [zrp/zrp.o] Error 1 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/home/hero/final2/ns-allinone-2.31/tclcl-1.19 -I/home/hero/final2/ns-allinone-2.31/otcl-1.13 -I/home/hero/final2/ns-allinone-2.31/include -I/home/hero/final2/ns-allinone-2.31/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 zrp/zrp_table.o zrp/zrp_table.cc In file included from zrp/zrp_table.cc:18: zrp/zrp.h:29:1: warning: "NULL" redefined In file included from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cstddef:50, from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cstdlib:51, from ./mobile/energy-model.h:42, from ./common/node.h:59, from ./mac/channel.h:47, from ./mac/phy.h:60, from ./mac/mac.h:48, from zrp/zrp_table.cc:12: /usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h:400:1: warning: this is the location of the previous definition zrp/zrp_table.h: In constructor ‘link_struct::link_struct()’: zrp/zrp_table.h:100: warning: ‘link_struct::seq_’ will be initialized after zrp/zrp_table.h:99: warning: ‘int link_struct::isup_’ zrp/zrp_table.h:82: warning: when initialized here zrp/zrp_table.h: In constructor ‘rtable_entry::rtable_entry()’: zrp/zrp_table.h:160: warning: ‘rtable_entry::next_’ will be initialized after zrp/zrp_table.h:158: warning: ‘Time rtable_entry::expiry_’ zrp/zrp_table.h:161: warning: when initialized here zrp/zrp_table.h: In constructor ‘rtable_entry::rtable_entry(nsaddr_t)’: zrp/zrp_table.h:160: warning: ‘rtable_entry::next_’ will be initialized after zrp/zrp_table.h:158: warning: ‘Time rtable_entry::expiry_’ zrp/zrp_table.h:162: warning: when initialized here zrp/zrp_table.h: At global scope: zrp/zrp_table.h:192: error: extra qualification ‘RoutingTable::’ on member ‘compute_routes’ zrp/zrp_table.h: In member function ‘int RoutingTable::next_hop_to(nsaddr_t)’: zrp/zrp_table.h:204: warning: no return statement in function returning non-void zrp/zrp_table.cc: In member function ‘void RoutingTable::compute_routes(nsaddr_t, int)’: zrp/zrp_table.cc:247: warning: unused variable ‘now’ zrp/zrp_table.cc:248: warning: unused variable ‘tmp’ make: *** [zrp/zrp_table.o] Error 1 /home/hero/final2/ns-allinone-2.31/bin/tclsh8.4 bin/tcl-expand.tcl tcl/lib/ns-lib.tcl tcl/lib/ns-diffusion.tcl tcl/delaybox/delaybox.tcl tcl/packmime/packmime.tcl | ../tclcl-1.19/tcl2c++ et_ns_lib > gen/ns_tcl.cc 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/home/hero/final2/ns-allinone-2.31/tclcl-1.19 -I/home/hero/final2/ns-allinone-2.31/otcl-1.13 -I/home/hero/final2/ns-allinone-2.31/include -I/home/hero/final2/ns-allinone-2.31/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 gen/ns_tcl.o gen/ns_tcl.cc ./common/ptypes2tcl > gen/ptypes.cc 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/home/hero/final2/ns-allinone-2.31/tclcl-1.19 -I/home/hero/final2/ns-allinone-2.31/otcl-1.13 -I/home/hero/final2/ns-allinone-2.31/include -I/home/hero/final2/ns-allinone-2.31/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 gen/ptypes.o gen/ptypes.cc for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done make[1]: Entering directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen/setdest' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/dec' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/dec' make[1]: Entering directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/hero/final2/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/ucb' make: Target `all' not remade because of errors. From anshul2009 at gmail.com Tue Mar 24 19:08:08 2009 From: anshul2009 at gmail.com (ANSHUL JAIN) Date: Wed, 25 Mar 2009 07:38:08 +0530 Subject: [ns] zrp compilation on ns-2 In-Reply-To: <5da24f910903240204m5ddeb916iea3d3e4b96f81306@mail.gmail.com> References: <5da24f910903240204m5ddeb916iea3d3e4b96f81306@mail.gmail.com> Message-ID: <5da24f910903241908k205c48fbo423b61a6c1b162a8@mail.gmail.com> ---------- Forwarded message ---------- From: ANSHUL JAIN Date: Tue, Mar 24, 2009 at 2:34 PM Subject: zrp compilation on ns-2 To: ns-users at isi.edu while compliling zrp on ns-2 i am getting the following error zrp/zrp_table.h:192: error: extra qualification ?RoutingTable::? on member ?compute_routes? zrp/zrp_table.h: In member function ?int RoutingTable::next_hop_to(nsaddr_t)?: with many warnings.i am attaching the snap of the make when run on ns-2. i hav already modified the files like packet.h, cmu-trace.h, cmu-trace.cc. ns-packet.tcl, ns-default.tcl, ns-lib.tcl, ns-agent.tcl as given in the code for cornell implementation of zrp. kindly reply as i am stuck in between my project. your help would be highly obliged.. i am usins ns-2.31 on fedora core.i hav read the list and this problem was not reported make -k 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/home/hero/final2/ns-allinone-2.31/tclcl-1.19 -I/home/hero/final2/ns-allinone-2.31/otcl-1.13 -I/home/hero/final2/ns-allinone-2.31/include -I/home/hero/final2/ns-allinone-2.31/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 zrp/zrp.o zrp/zrp.cc In file included from zrp/zrp.cc:7: zrp/zrp.h:29:1: warning: "NULL" redefined In file included from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cstddef:50, from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cstdlib:51, from ./mobile/energy-model.h:42, from ./common/node.h:59, from ./mobile/god.h:53, from ./trace/cmu-trace.h:43, from zrp/zrp.cc:5: /usr/lib/gcc/i386-redhat-linux/4.1.2/include/stddef.h:400:1: warning: this is the location of the previous definition zrp/zrp.cc:41:1: warning: "IERP_REQUEST_TIMEOUT" redefined In file included from zrp/zrp.cc:7: zrp/zrp.h:35:1: warning: this is the location of the previous definition zrp/zrp.cc:49:1: warning: "MAX_ROUTE_LENGTH" redefined zrp/zrp.cc:33:1: warning: this is the location of the previous definition zrp/zrp_table.h: In constructor ?link_struct::link_struct()?: zrp/zrp_table.h:100: warning: ?link_struct::seq_? will be initialized after zrp/zrp_table.h:99: warning: ?int link_struct::isup_? zrp/zrp_table.h:82: warning: when initialized here zrp/zrp_table.h: In constructor ?rtable_entry::rtable_entry()?: zrp/zrp_table.h:160: warning: ?rtable_entry::next_? will be initialized after zrp/zrp_table.h:158: warning: ?Time rtable_entry::expiry_? zrp/zrp_table.h:161: warning: when initialized here zrp/zrp_table.h: In constructor ?rtable_entry::rtable_entry(nsaddr_t)?: zrp/zrp_table.h:160: warning: ?rtable_entry::next_? will be initialized after zrp/zrp_table.h:158: warning: ?Time rtable_entry::expiry_? zrp/zrp_table.h:162: warning: when initialized here zrp/zrp_table.h: At global scope: zrp/zrp_table.h:192: error: extra qualification ?RoutingTable::? on member ?compute_routes? zrp/zrp_table.h: In member function ?int RoutingTable::next_hop_to(nsaddr_t)?: zrp/zrp_table.h:204: warning: no return statement in function returning non-void zrp/zrp.cc: In member function ?void ZRPAgent::print_routes()?: zrp/zrp.cc:79: warning: too many arguments for format zrp/zrp.h: In constructor ?ZRPAgent::ZRPAgent()?: zrp/zrp.h:266: warning: ?ZRPAgent::suspend_flag_? will be initialized after zrp/zrp.h:195: warning: ?ZRPPeriodicUpdateTimer ZRPAgent::PeriodicUpdateTimer_? zrp/zrp.cc:153: warning: when initialized here zrp/zrp.h:272: warning: ?ZRPAgent::rtable? will be initialized after zrp/zrp.h:247: warning: ?int ZRPAgent::myaddr_? zrp/zrp.cc:153: warning: when initialized here zrp/zrp.h:247: warning: ?ZRPAgent::myaddr_? will be initialized after zrp/zrp.h:185: warning: ?char* ZRPAgent::myid_? zrp/zrp.cc:153: warning: when initialized here zrp/zrp.h:264: warning: ?ZRPAgent::qid_? will be initialized after zrp/zrp.h:248: warning: ?int ZRPAgent::radius_? zrp/zrp.cc:153: warning: when initialized here zrp/zrp.h: In constructor ?ZRPAgent::ZRPAgent(nsaddr_t)?: zrp/zrp.h:266: warning: ?ZRPAgent::suspend_flag_? will be initialized after zrp/zrp.h:195: warning: ?ZRPPeriodicUpdateTimer ZRPAgent::PeriodicUpdateTimer_? zrp/zrp.cc:178: warning: when initialized here zrp/zrp.h:272: warning: ?ZRPAgent::rtable? will be initialized after zrp/zrp.h:247: warning: ?int ZRPAgent::myaddr_? zrp/zrp.cc:178: warning: when initialized here zrp/zrp.h:247: warning: ?ZRPAgent::myaddr_? will be initialized after zrp/zrp.h:185: warning: ?char* ZRPAgent::myid_? zrp/zrp.cc:178: warning: when initialized here zrp/zrp.h:264: warning: ?ZRPAgent::qid_? will be initialized after zrp/zrp.h:248: warning: ?int ZRPAgent::radius_? zrp/zrp.cc:178: warning: when initialized here zrp/zrp.h:257: warning: ?ZRPAgent::neighbortable_scan_period_? will be initialized after zrp/zrp.h:256: warning: ?int ZRPAgent::iarp_update_period_? zrp/zrp.cc:178: warning: when initialized here zrp/zrp.cc: In member function ?virtual int ZRPAgent::command(int, const char* const*)?: zrp/zrp.cc:335: warning: unused variable ?str? zrp/zrp.cc: In member function ?Packet* ZRPAgent::pkt_create(ZRPTYPE, nsaddr_t, int)?: zrp/zrp.cc:428: warning: unused variable ?s? zrp/zrp.cc: In member function ?void ZRPAgent::pkt_add_link(Packet*, nsaddr_t, nsaddr_t, int)?: zrp/zrp.cc:570: warning: unused variable ?ns? zrp/zrp.cc:572: warning: unused variable ?seq_stamp? zrp/zrp.cc: In member function ?void ZRPAgent::pkt_add_all_links(Packet*)?: zrp/zrp.cc:594: warning: unused variable ?num_entries? zrp/zrp.cc:597: warning: unused variable ?seq_stamp? zrp/zrp.cc: In member function ?void ZRPAgent::pkt_send(Packet*, nsaddr_t)?: zrp/zrp.cc:625: warning: unused variable ?hdrz? zrp/zrp.cc: In member function ?void ZRPAgent::pkt_read_update(Packet*, link_struct*, int)?: zrp/zrp.cc:652: warning: unused variable ?lnew? zrp/zrp.cc: In member function ?void ZRPAgent::pkt_broadcast(Packet*)?: zrp/zrp.cc:670: warning: unused variable ?hdrz? zrp/zrp.cc: In member function ?void ZRPAgent::pkt_add_node(Packet*, nsaddr_t, int)?: zrp/zrp.cc:691: warning: unused variable ?num_entries? zrp/zrp.cc:692: warning: unused variable ?ptr? zrp/zrp.cc: In member function ?int ZRPAgent::add_outer_route(Packet*, nsaddr_t)?: zrp/zrp.cc:808: warning: unused variable ?tmp? zrp/zrp.cc: In member function ?virtual void ZRPBeaconTransmitTimer::handle(Event*)?: zrp/zrp.cc:872: warning: unused variable ?address? zrp/zrp.cc: In member function ?void ZRPAgent::scan_query_detections()?: zrp/zrp.cc:933: warning: unused variable ?entr? zrp/zrp.cc: In member function ?virtual void ZRPNeighborScanTimer::handle(Event*)?: zrp/zrp.cc:1007: warning: unused variable ?nstemp? zrp/zrp.cc:1008: warning: unused variable ?tmp? zrp/zrp.cc:1015: warning: unused variable ?seq_stamp? zrp/zrp.cc:1015: warning: unused variable ?num_entries? zrp/zrp.cc: In member function ?virtual void ZRPPeriodicUpdateTimer::handle(Event*)?: zrp/zrp.cc:1108: warning: unused variable ?s? zrp/zrp.cc: In member function ?void ZRPAgent::do_update()?: zrp/zrp.cc:1123: warning: unused variable ?hdrz? zrp/zrp.cc: In member function ?virtual void ZRPAckTimer::handle(Event*)?: zrp/zrp.cc:1181: warning: unused variable ?nstemp? zrp/zrp.cc:1182: warning: unused variable ?tmp? zrp/zrp.cc:1190: warning: unused variable ?seq_stamp? zrp/zrp.cc:1190: warning: unused variable ?num_entries? zrp/zrp.cc:1282: warning: label ?EOFF? defined but not used zrp/zrp.cc: In member function ?void ZRPAgent::scan_ierp_cache()?: zrp/zrp.cc:1293: warning: unused variable ?entr? zrp/zrp.cc: In member function ?void ZRPAgent::ierp_notify_iarp(Packet*)?: zrp/zrp.cc:1314: warning: unused variable ?daddr? zrp/zrp.cc: In member function ?virtual void ZRPAgent::recv(Packet*, Handler*)?: zrp/zrp.cc:1506: warning: unused variable ?hdrz? zrp/zrp.cc:1508: warning: unused variable ?dst? zrp/zrp.cc: In member function ?void ZRPAgent::recvZRP(Packet*)?: zrp/zrp.cc:1651: warning: zero-length printf format string zrp/zrp.cc:1706: warning: zero-length printf format string zrp/zrp.cc:1861: warning: too many arguments for format zrp/zrp.cc:1582: warning: unused variable ?src? zrp/zrp.cc:1583: warning: unused variable ?dst? zrp/zrp.cc:1590: warning: unused variable ?nptr? zrp/zrp.cc:1591: warning: unused variable ?mptr? zrp/zrp.cc:1597: warning: unused variable ?walk? zrp/zrp.cc:1598: warning: unused variable ?joe? zrp/zrp.cc:1599: warning: unused variable ?currlink? zrp/zrp.cc:1603: warning: unused variable ?s? zrp/zrp.cc: In member function ?void ZRPAgent::originate_request(nsaddr_t, int)?: zrp/zrp.cc:2146: warning: unused variable ?hdrip? zrp/zrp.cc:2136: warning: unused variable ?s? zrp/zrp.cc: In member function ?void ZRPAgent::route_pkt(Packet*, nsaddr_t)?: zrp/zrp.cc:2210: warning: unused variable ?rrr? zrp/zrp.cc: In member function ?int ZRPAgent::add_local_route(Packet*, nsaddr_t)?: zrp/zrp.cc:2291: warning: unused variable ?ptr? zrp/zrp.cc: In member function ?int ZRPAgent::node_is_covered(nsaddr_t, int, nsaddr_t)?: zrp/zrp.cc:2407: warning: unused