Re: [ns] SFB in NS
Links to Blue and SFB can be found here: http://public.lanl.gov/sunil/ On 7/16/06 11:26 AM, S.Mehdi Sheikhalishahi [EMAIL PROTECTED] wrote: Hello, Does anybody implement Stochastic Fairness Blue for NS?
[ns] Mash Inspector on Mac OS X
Hello All, I've recently patched my installation of ns-allinone-2.29 (running on Mac OS 10.4.7) to use the Mash Inspector, but I am experiencing very poor performance. Is anyone else using Mash on Mac OS X? Thanks! Brad
Re: [ns] Keep track of nodes a packet passes through
Nicholas, I think you can find this information in a trace file, which should include a pkt id as the last field in the trace. Take a look at the tutorial here: http://nile.wpi.edu/NS/analysis.html Brad On 7/4/06 12:17 PM, Nicholas Loulloudes [EMAIL PROTECTED] wrote: Hello, is there a way in NS2 to keep track all the nodes a packet passes through en-route to destination? Regards, -- Nicholas Loulloudes Postgraduate at Communication Networks and Software. BSc in Computer Science.
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
[ns] Multiple connections to a single agent
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
[ns] Bus error
Hello ns-users, I'm new to ns, and I'm using ns-allinone-2.29. I've recently created an Agent that is very similar to Ping agent included in the source. However, when I set up and run a simulation, I get this: Bus error The first 3 lines of my simulation look like this: set ns [new Simulator] set tracefile [open test1.tr w] set namfile [open test1.nam w] However, both files are empty after running the simulation. I've searched the manual, and I've grepped my entire ns directory for 'Bus error' to no avail! Any info on this message is GREATLY appreaciated. Thanks, Brad
Re: [ns] Bus error
Thanks for the help, but I started looking back through my code and found this: if (argc = 2) It's nice to know what a Bus error, is now, though! On 6/21/06 6:08 PM, Phil Miller [EMAIL PROTECTED] wrote: On 6/21/06, Brad Montgomery [EMAIL PROTECTED] wrote: Hello ns-users, I'm new to ns, and I'm using ns-allinone-2.29. I've recently created an Agent that is very similar to Ping agent included in the source. However, when I set up and run a simulation, I get this: Bus error The first 3 lines of my simulation look like this: set ns [new Simulator] set tracefile [open test1.tr w] set namfile [open test1.nam w] However, both files are empty after running the simulation. I've searched the manual, and I've grepped my entire ns directory for 'Bus error' to no avail! Any info on this message is GREATLY appreaciated. Brad, this error is a result of the NS code doing something illegal or a hardware problem. In vague terms, it can happen in circumstances similar to segmentation faults (SIGSEGV on common x86 Linux systems). What platform and operating system (including version) are you running ns on? Also, if you can include the entire file that you're attempting to run, that could make debugging much easier. Phil Miller