Pls I need an awk script to calculate number of generated packets using CBR 
traffic.

Thanks as I await ur urgent reply

--- On Thu, 29/7/10, tiongsquare <tiongsqu...@hotmail.com> wrote:

From: tiongsquare <tiongsqu...@hotmail.com>
Subject: [ns] nam error: Warning: Tracefile events are not sorted by time. in 
terminal
To: ns-users@ISI.EDU
Date: Thursday, 29 July, 2010, 13:34



I got the following errors appearing on terminal when running through my nam,
does it mean i have to sort my scenario time in descending order? below are
2 scenario file, one got the error(bonnmotion) the other no error(important
tool). thanks!

Warning: Tracefile events are not sorted by time.
n -t 4.791455 -s 500 -x 4964.819461 -y 3610.000000 -U -13.511317 -V 0.000000
-T 0.370060
The above event should occur at or after -t 4.791455.

 scenario file generated by bonnmotion 1.4: got the above error

$node_(0) set X_ 4810.0
$node_(0) set Y_ 942.342377951872
$ns_ at 0.0 "$node_(0) setdest 4810.0 928.2510864438568 13.779121055111823"
$ns_ at 1.0226553240700014 "$node_(0) setdest 4810.0 923.2510864438568
13.763585513452547"
$ns_ at 1.3859327560380734 "$node_(0) setdest 4810.0 903.2510864438568
13.977635627087498"
$ns_ at 2.8167899148297693 "$node_(0) setdest 4810.0 898.2510864438568
13.692978309321193"
....
$node_(1) set X_ 3460.9044078195984
$node_(1) set Y_ 1010.0
$ns_ at 0.0 "$node_(1) setdest 3539.7874436705333 1010.0 14.11114683970545"
$ns_ at 5.590122244988379 "$node_(1) setdest 3554.7874436705333 1010.0
13.830046749142454"
$ns_ at 6.674717277245236 "$node_(1) setdest 3579.7874436705333 1010.0
14.060220428270108"
$ns_ at 8.4527832846411 "$node_(1) setdest 3594.7874436705333 1010.0
13.638065622123186"

I have another scenario file generated by important tools which doesn't have
the error
.........
$node_(8) set X_ 482.752747
$node_(8) set Y_ 333.330078
$node_(8) set Z_ 0.000000
$node_(9) set X_ 333.330048
$node_(9) set Y_ 625.225891
$node_(9) set Z_ 0.000000
$ns_ at 899.000000 "$node_(0) setdest 827.588562 665.669983 39.326439"
$ns_ at 899.000000 "$node_(1) setdest 333.329987 755.627625 36.718323"
$ns_ at 899.000000 "$node_(2) setdest 333.329987 515.757263 14.865998"
$ns_ at 899.000000 "$node_(3) setdest 611.462158 666.669983 26.069723"
$ns_ at 899.000000 "$node_(4) setdest 106.749870 333.330017 13.191124"
$ns_ at 899.000000 "$node_(5) setdest 665.669983 395.347931 24.016253"
$ns_ at 899.000000 "$node_(6) setdest 333.329987 582.369080 32.785618"
..........
-- 
View this message in context: 
http://old.nabble.com/nam-error%3A-Warning%3A-Tracefile-events-are-not-sorted-by-time.-in-terminal-tp29299410p29299410.html
Sent from the ns-users mailing list archive at Nabble.com.




      

Reply via email to