[ns] :how to reteive information from trace file
Dear ns-friends, I have created a new packet type named pong like ping...its corresponding tcl script is also running and producing a trace output file...now I want to plot the through-put by changing the time of the stop variable in tcl.but the trace file is remaining the same every timehow do I proceed?Now my agent only has a fixed packet size ..how do I set a data-rate in my new Agent?so that by varying the datarate I can plot the throughput?...what other factors can I plot? please help Srirupa On Fri, 22 Aug 2008 [EMAIL PROTECTED] wrote : Send Ns-users mailing list submissions to ns-users@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 [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of Ns-users digest... Today's Topics: 1. sending packet with unicast node address in wireless mac (reza mohammadi) 2. question regarding rtproto manual (Rafiq Shaikh) 3. Re : installation problem (./install) (Nour) 4. :help on interpretation of wireless trace file (Srirupa Dasgupta) 5. Help concearning broadcasting messages - protocols ([EMAIL PROTECTED])ished with my new trace format but i can't set up the right 'tt' when i debug it with gdb i can't get the right code there! -- ___ 6. Re: :help on interpretation of wireless trace file (Mubashir Rehmani) 7. Re: Help concearning broadcasting messages - protocols (Mubashir Rehmani) 8. Log Node movements (Hector Agustin Cozzetti) 9. Log Node movements (mail corrected) (Hector Agustin Cozzetti) 10. Interpretation of wireless trace file (Mubashir Rehmani) 11. Broadcasting messages in ns2 (Mubashir Rehmani) 12. Re: Broadcasting messages in ns2 ([EMAIL PROTECTED]) 13. warning:deprecated conversion from string constant to 'char* (J S) 14. Re: warning:deprecated conversion from string constant to 'char* (Narcissus) 15. Re: Problems of Marc Greis' Tutorial (Narcissus) 16. Re: warning:deprecated conversion from string constant to 'char* (J S) 17. format routine in Trace.cc (Nick Zando) -- Message: 1 Date: Wed, 20 Aug 2008 19:21:58 -0700 (PDT) From: reza mohammadi [EMAIL PROTECTED] Subject: [ns] sending packet with unicast node address in wireless mac To: ns-users@ISI.EDU Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii hello i design new mac protocol and i implement in wireless topology but in first packet sennding (RTS) destination address is -1 and -1 is br oadcast mac address. how i can send packet with unicat node address my output is shown below my simulation time is 5 minutes but in first packet sending below result occure when i implemetn my protocol only one packet exchange occurany body can help me? best regards hdr_src,src=0 hdr_type hdr_dst ,, dts=-1 hdr_src,src=0 hdr_type hdr_dst ,, dts=-1 ns: finish: X connection to :0.0 broken (explicit kill or server shutdown). -- Message: 2 Date: Wed, 20 Aug 2008 23:42:59 -0700 (PDT) From: Rafiq Shaikh [EMAIL PROTECTED] Subject: [ns] question regarding rtproto manual To: NS Users ns-users@ISI.EDU Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi All, I am trying to add manual route entry to the node_(3) as below: $ns rtproto Manual $node_(3) add-route-to-adj-node -default $node_(1) It gives me an error as below. I am new to NS-2 so can't understand what this means: (_o68 cmd line 1) invoked from within _o68 cmd add-route-to-adj-node -default _o32 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 _o68 line 2) (SplitObject unknown line 2) invoked from within $node_(3) add-route-to-adj-node -default $node_(1) (file ./cp-1 line 11) invoked from within source.orig ./cp-1 (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 w.tcl line 117) I think I typed the command as mentioned in the NS-2 manual. Any idea why this error is coming? Regards, -Rafiq. -- Message: 3 Date: Thu, 21 Aug 2008 06:45:51 + (GMT)
Re: [ns] :how to reteive information from trace file
Dear Srirupa, For changing data rate use: #I assume you are using CBR... set traffic [new Application/Traffic/CBR] set CBRrate your desired data rate # and then $traffic set rate_ $CBRrate regards, Mayur Srirupa Dasgupta wrote: Dear ns-friends, I have created a new packet type named pong like ping...its corresponding tcl script is also running and producing a trace output file...now I want to plot the through-put by changing the time of the stop variable in tcl.but the trace file is remaining the same every timehow do I proceed?Now my agent only has a fixed packet size ..how do I set a data-rate in my new Agent?so that by varying the datarate I can plot the throughput?...what other factors can I plot? please help Srirupa On Fri, 22 Aug 2008 [EMAIL PROTECTED] wrote : Send Ns-users mailing list submissions to ns-users@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 [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of Ns-users digest... Today's Topics: 1. sending packet with unicast node address in wireless mac (reza mohammadi) 2. question regarding rtproto manual (Rafiq Shaikh) 3. Re : installation problem (./install) (Nour) 4. :help on interpretation of wireless trace file (Srirupa Dasgupta) 5. Help concearning broadcasting messages - protocols ([EMAIL PROTECTED])ished with my new trace format but i can't set up the right 'tt' when i debug it with gdb i can't get the right code there! -- ___ 6. Re: :help on interpretation of wireless trace file (Mubashir Rehmani) 7. Re: Help concearning broadcasting messages - protocols (Mubashir Rehmani) 8. Log Node movements (Hector Agustin Cozzetti) 9. Log Node movements (mail corrected) (Hector Agustin Cozzetti) 10. Interpretation of wireless trace file (Mubashir Rehmani) 11. Broadcasting messages in ns2 (Mubashir Rehmani) 12. Re: Broadcasting messages in ns2 ([EMAIL PROTECTED]) 13. warning:deprecated conversion from string constant to 'char* (J S) 14. Re: warning:deprecated conversion from string constant to 'char* (Narcissus) 15. Re: Problems of Marc Greis' Tutorial (Narcissus) 16. Re: warning:deprecated conversion from string constant to 'char* (J S) 17. format routine in Trace.cc (Nick Zando) -- Message: 1 Date: Wed, 20 Aug 2008 19:21:58 -0700 (PDT) From: reza mohammadi [EMAIL PROTECTED] Subject: [ns] sending packet with unicast node address in wireless mac To: ns-users@ISI.EDU Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii hello i design new mac protocol and i implement in wireless topology but in first packet sennding (RTS) destination address is -1 and -1 is br oadcast mac address. how i can send packet with unicat node address my output is shown below my simulation time is 5 minutes but in first packet sending below result occure when i implemetn my protocol only one packet exchange occurany body can help me? best regards hdr_src,src=0 hdr_type hdr_dst ,, dts=-1 hdr_src,src=0 hdr_type hdr_dst ,, dts=-1 ns: finish: X connection to :0.0 broken (explicit kill or server shutdown). -- Message: 2 Date: Wed, 20 Aug 2008 23:42:59 -0700 (PDT) From: Rafiq Shaikh [EMAIL PROTECTED] Subject: [ns] question regarding rtproto manual To: NS Users ns-users@ISI.EDU Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi All, I am trying to add manual route entry to the node_(3) as below: $ns rtproto Manual $node_(3) add-route-to-adj-node -default $node_(1) It gives me an error as below. I am new to NS-2 so can't understand what this means: (_o68 cmd line 1) invoked from within _o68 cmd add-route-to-adj-node -default _o32 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 _o68 line 2) (SplitObject unknown line 2) invoked from within $node_(3) add-route-to-adj-node -default $node_(1) (file ./cp-1 line 11) invoked from within source.orig ./cp-1 (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] ...