[ns] Agent not working after make
Hello everyone, I hav added a new tcp agent named TCPPR. i hav done make successfully. But i m getting following errors in my tcl script named testpr.tcl [EMAIL PROTECTED] ex]# ns testpr.tcl invalid command name "Agent/TCP/PR" while executing "Agent/TCP/PR create _o36 " invoked from within "catch "$className create $o $args" msg" (procedure "new" line 3) invoked from within "new Agent/TCP/PR" invoked from within "set tcp [new Agent/TCP/PR]" (file "testpr.tcl" line 18) [EMAIL PROTECTED] ex]# --- My tcl script named testpt.tcl is as follows set ns [new Simulator] $ns color 0 blue $ns color 1 red set n0 [$ns node] set n1 [$ns node] set f [open out.tr w] $ns trace-all $f set nf [open out.nam w] $ns namtrace-all $nf $ns duplex-link $n0 $n1 5Mb 2ms DropTail #$ns duplex-link-op $n0 $n1 queuePos 0.5 set tcp [new Agent/TCP/PR] $ns attach-agent $n0 $tcp set sink [new Agent/TCPSink] $ns attach-agent $n1 $sink $ns connect $tcp $sink set ftp [new Application/FTP] $ftp attach-agent $tcp $ns at 1.2 "$ftp start" $ns at 10.35 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n1 $sink" $ns at 11.0 "finish" proc finish {} { global ns f nf $ns flush-trace close $f close $nf puts "running nam..." exec nam out.nam & exit 0 } $ns run - I am attaching the zip file for agent along with tcl scipts etc..please reply me whether there is problem in tcl script or agent or the ns2 version.. Thanks you all...Merry christmas and Happy new year to all Regards & Thanks Aleem M.S ME-CSE Walchand College Of Engineering, Sangli Call - 09326053389
Re: [ns] validation of saturation throughput in 802.11
Thanks for your help. I expect the error is less than 0.01 (i.e. when 20 nodes, 0.71-0.70=0.01) , Is that reasonable or achievable? I found the ns-2 results in some paper matches very well with Bianchi's model (less than 0.01). I wonder how to achieve this accuracy. Is there any amendment needed to conform the ns2 implementation to the model? Moreover, I found the results are closer when I changed the scenario from 200x200m to 100x100m. Is it because that the default transmission range is 250m in ns2, so that some stations may not be able to send packets to its destination in 200x200m scenario, so it overestimated the throughput? Here are the results, could the model and ns2 match any closer? nodes1020 3040 Model 0.76 0.70 0.66 0.64 Sim(200x200)0.77 0.72 0.69 0.68 Sim(100x100)0.76 0.71 0.68 0.65 >From: "Joshua Robinson" <[EMAIL PROTECTED]> >To: "? ?" <[EMAIL PROTECTED]> >Subject: Re: [ns] validation of saturation throughput in 802.11 >Date: Thu, 21 Dec 2006 16:19:00 -0600 > >do not forget that both model and simulation are not perfect and so it >is not reasonable to expect an exact match. I suggest also figuring >out what error you expect/find reasonable. > >On 12/21/06, ? ? <[EMAIL PROTECTED]> wrote: >> >>Hi all, >> >>I am validating the saturation throughput of bianchi's model , however , I >>found my results do not match the model well. Both model and simulations >>are with DSSS parameters and the packet size is 8000 bits. Stations are >>identical , locate in 200mx200m square. CBR traffic is adopted and the >>date >>rate is high enough to assure saturation. The results are as belows. >> >>nodes 1020 3040 >> >>Model 0.76 0.70 0.66 0.64 >> >>Sim0.77 0.72 0.69 0.68 >> >>The ns-2 version is 2.28. Simulation time is 600 seconds. >>Could anyone helps me? Thanks in advance. >> >>Sincerely, >>joshua >> >>_ >>Don't just search. Find. Check out the new MSN Search! >>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >> >> _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
[ns] problems executing .sh (shell script) in ns2.29.3
Hi all, I've encountered the below mentioned problem: rm: cannot remove `1.txt\r': No such file or directory (this is one of error which basically that any stuffs I have included in the file, even if it is comments e.g. # TEST, there is error as well) when trying to execute ./sh (shell script) after installing cygwin and ns2.29.3. Previously, I didn't encountered this problem when i run this same shell script on my previous installation of cygwin and ns2.29.3. However, I have removed it and just recently, I reinstalled both and this error appears. I even uninstalled and re-installed cygwin/ns-2.29.3 several times. Can someone please kindly help me in this? Thank you very much. Would appreciate your help greatly. Best regards, Karena _ Find singles online in your area with MSN Dating and Match.com! http://cp.intl.match.com/eng/msn/msnsg/wbc/wbc.html
Re: [ns] Energy analysis in NS-2
Hi, I'm also confused at how to compare my method with another concerning energy consumption. Some use success ratio vs. time to illustrate the better performance on energy save. If you have any idea, pls tell me. Pei -- Message: 3 Date: Thu, 21 Dec 2006 09:38:47 + (GMT) From: pipi VN Subject: Re: [ns] Energy analysis in NS-2 To: Matthias Kuhnert Cc: NS-user Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ascii Hi, I have read that two paper however that was exactly what I have said in my previous email, the paper mean nothing if you do not show how you implement it and how you measure it. The 2 paper said they have done something, but how they did it, does they do the right way? There are no explanation and public work (code, analysis script, validation ...) after they public their paper and therefore they can not guanranty that the result is correct (it could be 1+1 =3). I'm finding a resource that give a hint of how to extract the metric regarding energy consumtion in wireless network from new trace format. There are not much information about is so far. Please share it or post here if you know how to locate it from somewhere or someone. Thank you. Ns-2 newbee __ 赶快注册雅虎超大容量免费邮箱? http://cn.mail.yahoo.com
Re: [ns] validation of saturation throughput in 802.11
Thanks for your help. But I didnot take overhead into account, and both my model and simulations used the same packet payload with 1000 bytes and DSSS settings. I used Bianchi's model but did not use his system parameters. Here is the awk script. Every station starts sending at 1.0 and stops at 600.0, and I set channel bit rate to 1Mbps. == BEGIN { recv_size=0 first=0 hdr_size=0 startTime = 1.0 stopTime = 600.0 } { if ($2 == "-t") { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 } if (level == "MAC" && event == "r" && pkt_size >= pkt) { hdr_size = pkt_size % pkt pkt_size -= hdr_size recv_size += pkt_size } } } END{ printf("average throughput:%f kbps\n", (float)recv_size/(stopTime - startTime)*(8/1000)) printf("start time %f stop time %f\n", startTime, stopTime) } == >From: "Eduard GV" <[EMAIL PROTECTED]> >To: ns-users@ISI.EDU >Subject: Re: [ns] validation of saturation throughput in 802.11 >Date: Thu, 21 Dec 2006 20:07:59 +0100 > > >Have you takein into account IP/UDP overhead? Note that Bianchi >usually provides throughput at MAC layer and uses 1024Byte frames to >show his results. > >That's all I can say with the details you provided. > >2006/12/21, ? ? <[EMAIL PROTECTED]>: > > > > Hi all, > > > > I am validating the saturation throughput of bianchi's model , however , >I > > found my results do not match the model well. Both model and >simulations > > are with DSSS parameters and the packet size is 8000 bits. Stations are > > identical , locate in 200mx200m square. CBR traffic is adopted and the >date > > rate is high enough to assure saturation. The results are as belows. > > > > nodes 1020 3040 > > > > Model 0.76 0.70 0.66 0.64 > > > > Sim0.77 0.72 0.69 0.68 > > > > The ns-2 version is 2.28. Simulation time is 600 seconds. > > Could anyone helps me? Thanks in advance. > > > > Sincerely, > > joshua > > > > _ > > Don't just search. Find. Check out the new MSN Search! > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Re: [ns] validation of saturation throughput in 802.11
Have you takein into account IP/UDP overhead? Note that Bianchi usually provides throughput at MAC layer and uses 1024Byte frames to show his results. That's all I can say with the details you provided. 2006/12/21, ? ? <[EMAIL PROTECTED]>: > > Hi all, > > I am validating the saturation throughput of bianchi's model , however , I > found my results do not match the model well. Both model and simulations > are with DSSS parameters and the packet size is 8000 bits. Stations are > identical , locate in 200mx200m square. CBR traffic is adopted and the date > rate is high enough to assure saturation. The results are as belows. > > nodes 1020 3040 > > Model 0.76 0.70 0.66 0.64 > > Sim0.77 0.72 0.69 0.68 > > The ns-2 version is 2.28. Simulation time is 600 seconds. > Could anyone helps me? Thanks in advance. > > Sincerely, > joshua > > _ > Don't just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > >
[ns] VoIP with VAD
Basically, in continuation t o my previous mail, I am trying to simulate VoIP application with Silence suppression. So,has anyone done that before or if anyone has any idea, can you please guide me.?/ Thanks in advance -- Thanx Shaili Desai Master's Candidate Telecommunications and Management University of Maryland,College Park,USA
[ns] VoIP Traffic Generator
Hello All I have followin two questions: 1) Can anyone please tell me how to simulate VoIP traffic generator using G.729 codec. I read somewhere on the mailing list, that we have to modify CBR traffic for that, but that was in archives and I am not sure, if we already have now G.729 support as traffic generator in NS?/ 2) Can anyone suggest me a variant of DRR or WFQ scheduler whcih I can use in the Wimax Module, I am trying to work on. I would appreciate if someone can help me witht htis. Thanks in advance and Happy Holidays to all! -- Thanx Shaili Desai Master's Candidate Telecommunications and Management University of Maryland,College Park,USA
Re: [ns] debugger install
This guide has been used successfully many times. Try Make nstk Nstk -Original Message- From: sandesh shenoy [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 21 de Dezembro de 2006 10:41 To: nsusers Cc: [EMAIL PROTECTED] Subject: [ns] debugger install Hello, I went through ns2 otcl+Mash+Tkcon+Tcl-debug debugging page and tried to follow the procedures.After adding Tk support,I tried to run nstk,but it is giving nstk command not found.Any problem with the patching?One patcing in common and other under ns-2.28 directory right?I am not able to get what went wrong.Any other initializations to be done?Please do help me in this regard. Thanks in advance. Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
[ns] {Spam?} diffserv + mobileIP
Dear all, i'm testing some wireless scenarios that would help me for my research. I have a difficulty to configure the policies of the scheduler because of the hierarchical type of address (ex: MobileNode: 1.1.1) is, in a certain way, incompatible with the current inputs of diffserv. In wired environment i use(ex): $q1_2 addPolicyEntry [$W(0) id] [$W(1) id] TokenBucket 20 $cirAF3 $cbsAF3 In a wireless mode, ns tells me: No Policy Table entry found for Source 0-Destination 4194305 This Destination is, i suppose, the mobility node with the hierarchical type of ip. Any solution for this "problem"? Thanks in advance. Alexandre
[ns] validation of saturation throughput in 802.11
Hi all, I am validating the saturation throughput of bianchi's model , however , I found my results do not match the model well. Both model and simulations are with DSSS parameters and the packet size is 8000 bits. Stations are identical , locate in 200mx200m square. CBR traffic is adopted and the date rate is high enough to assure saturation. The results are as belows. nodes 1020 3040 Model 0.76 0.70 0.66 0.64 Sim0.77 0.72 0.69 0.68 The ns-2 version is 2.28. Simulation time is 600 seconds. Could anyone helps me? Thanks in advance. Sincerely, joshua _ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
[ns] debugger install
Hello, I went through ns2 otcl+Mash+Tkcon+Tcl-debug debugging page and tried to follow the procedures.After adding Tk support,I tried to run nstk,but it is giving nstk command not found.Any problem with the patching?One patcing in common and other under ns-2.28 directory right?I am not able to get what went wrong.Any other initializations to be done?Please do help me in this regard. Thanks in advance. Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php
Re: [ns] Energy analysis in NS-2
Hi, I have read that two paper however that was exactly what I have said in my previous email, the paper mean nothing if you do not show how you implement it and how you measure it. The 2 paper said they have done something, but how they did it, does they do the right way? There are no explanation and public work (code, analysis script, validation ...) after they public their paper and therefore they can not guanranty that the result is correct (it could be 1+1 =3). I'm finding a resource that give a hint of how to extract the metric regarding energy consumtion in wireless network from new trace format. There are not much information about is so far. Please share it or post here if you know how to locate it from somewhere or someone. Thank you. Ns-2 newbee - Original Message From: Matthias Kuhnert <[EMAIL PROTECTED]> To: pipi VN <[EMAIL PROTECTED]> Sent: Thursday, 21 December, 2006 2:52:04 AM Subject: Re: [ns] Energy analysis in NS-2 Hi, unfortunately I can't help you much on that topic, as there is only the raw energy model present in ns2. Everything going further is implementation and protocol specific. If you want some hints and an example implementation take a look at the wpan folder for the zigbee protocol. The university washington had also made some improvements - google for washington university zigbee... The thing to do is in general simple and straight forward: get the time spent in different states, like sending, receiving, idle, sleeping(...) and hand them over to the energymodel with the corresponding energyconsumption. The problem is to find each of the values and the right parts of the code to insert the statements... I don't know any papers that explain the implementation for ns2, only some with specific sleep models or sleep schedulings for specific protocols... But if you receive some useful answers it would be very kind, if you'd forward them to me :) Greets, Matthias pipi VN schrieb: > I'm studying about the energy saving strategies in wireless network. There > are several issue I still confuse about that and hope could get opinion from > you. I have read the ns-2 manual but it was quite poor documented in energy > model section, there is only the a simple explanation about the basic > strategy. There have been a lot of paper written about this issue but the > detail implementation and analysis is not public or at least I couldn't > google it with in first 50 results. Could please you tell me some paper > consider to be "famous" in this area? I think this would be easy answer with > some one already have studied about this issue before. > > I'm also curious about the matrix that prove an energy-saving model is more > efficient than others. The general analysis is not show in detail except some > meaningless figure (no explain how to get that result). I'm finding some of > implementation that show how to calculate several metric base on the ns2 new > trace format for: energy consumed/packet, network partition time, variant in > node power levels, node cost .. ? Any such resource or experience are > appreciated. > > Thank you. > > --- > Ns-2 newbee > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > > Send instant messages to your online friends http://uk.messenger.yahoo.com
Re: [ns] i need OLSR Script code...
Hi, Usage instructions in http://masimum.inf.um.es/?Software:UM-OLSR:Using A simple example in http://masimum.dif.um.es/um-olsr/olsr_example.tcl Regards, fran On Wednesday 20 December 2006 20:43, khurram shahzad wrote: > i want to implement OLSR protocol, i got UM-OLSR ns2 from its site, but i > did not know the script for OLSR, if any body knows, plz send me > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com