[ns] ./autoconf.h:89: error: expected namespace-name before

Kapil Suchdeo suchdeokapil at hotmail.com
Thu Sep 8 07:50:55 PDT 2005


Pl. see installation bus page igiven in ns site. www.isi.edu/nsnam/ns

>From: ns-users-request at ISI.EDU
>Reply-To: ns-users at ISI.EDU
>To: ns-users at ISI.EDU
>Subject: Ns-users Digest, Vol 21, Issue 7
>Date: Wed, 07 Sep 2005 12:00:04 -0700
>
>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. SMAC: Setting Data Rate (Chia, Kim Boon SGP)
>    2. ErrorModel for WIRELESS SIMULATIONS (Eisenberg, Yiftach (US SSA))
>    3. question on full tcp (Tom H. Lan)
>    4. contributed code for TCP Hybla (Rosario Firrincieli)
>    5. Re: Trace file format in ns2.28. (HARDING Christopher)
>    6. multi-channel communication (Christos Antonopoulos)
>    7. problem regarding mpls-diffserv model and eurane (monika Jain)
>    8. sending pkts of AODV or DSDV (Ankit Mehta)
>    9. Diffusion tcl script (Ankit Mehta)
>   10. ./autoconf.h:89: error: expected namespace-name before ';	'
>       token (Batov Igor Sergeevich)
>   11. R: Re:  R: awk files (Marco Fiore)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Tue, 6 Sep 2005 17:26:37 -0700
>From: "Chia, Kim Boon SGP" <kchia at nps.edu>
>Subject: [ns] SMAC: Setting Data Rate
>To: <ns-users at ISI.EDU>
>Message-ID:
>	<53A0A7EA3E3BAC4F9E5768081B94FB5FA286DF at america.ad.nps.navy.mil>
>Content-Type: text/plain;	charset="Windows-1252"
>
>Hi,
>
>I'd like to know how to set the Data Rate for SMAC. Please help.
>
>Thank you.
>
>Daniel
>
>
>------------------------------
>
>Message: 2
>Date: Tue, 6 Sep 2005 18:51:52 -0400
>From: "Eisenberg, Yiftach \(US SSA\)"
>	<yiftach.eisenberg at baesystems.com>
>Subject: [ns] ErrorModel for WIRELESS SIMULATIONS
>To: <ns-users at ISI.EDU>
>Message-ID: <E8EE597A5A26AF45A307C12CCD7DBA7701E7AA2D at blums0009>
>Content-Type: text/plain;	charset="us-ascii"
>
>I want to introduce packet losses in a wireless network. I tried using
>the ErrorModel described in Chapter 13 of the ns manual but it does not
>seem to introduce any errors. I followed the example given in the
>chapter as well as the example from
>test-suite-wireless-lan-newnode-err.tcl . Do I need to explicitly
>connect the ErrorModel to the netif module (and/or MAC module)? How do I
>do this? Any example code for generating an ErrorModel in a wireless
>network would be greatly appreciated.
>
>The following is my code which is modified from simple-wireless.tcl. I
>am using macType = Mac instead of Mac/802_11 because I need a random
>access MAC in which users transmit whenever they have something to send.
>I know that without modification, no error will occur as a result of
>collisions when using Mac. This is one reason why I want to be able to
>write my own ErrorModel.
>
>Any advice is greatly appreciated.
>
>	Yifty
>
>
># ======================================================================
># 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(err)		UniformErrProc		   ;# Error Model
>set val(mac)            Mac				   ;# 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)             DSDV                        ;# routing protocol
>
>proc UniformErrProc {} {
>set ErrObj [new ErrorModel]
>$ErrObj set rate 0.10
>$ErrObj unit packet
>$ErrObj ranvar [new RandomVariable/Uniform]
>#$ErrObj drop-target [new Agent/Null]
>return $ErrObj
>}
>
>
># ======================================================================
># Main Program
># ======================================================================
>
>
>#
># Initialize Global Variables
>#
>set ns_		[new Simulator]
>set tracefd     [open BAE-ErrorModelTest-wireless.tr w]
># $ns_ use-newtrace
>$ns_ trace-all $tracefd
>
># set up topography object
>set topo       [new Topography]
>
>$topo load_flatgrid 500 500
>
>#
># Create God
>#
>create-god $val(nn)
>
>#
>#  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 ON \
>			 -movementTrace OFF \
>			 -IncomingErrProc $val(err) -OutgoingErrProc
>$val(err)
>
>
>	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_ 1.0
>$node_(0) set Y_ 1.0
>$node_(0) set Z_ 0.0
>
>$node_(1) set X_ 10.0
>$node_(1) set Y_ 10.0
>$node_(1) set Z_ 0.0
>
>#
># Setup traffic flows between nodes
>#
># FTP/TCP transmission from node_(0) -> node_(1)
>set tcpS0 [new Agent/TCP]
>$tcpS0 set class_ 2
>set sinkS0 [new Agent/TCPSink]
>$ns_ attach-agent $node_(0) $tcpS0
>$ns_ attach-agent $node_(1) $sinkS0
>$ns_ connect $tcpS0 $sinkS0
>set ftpS0 [new Application/FTP]
>$ftpS0 attach-agent $tcpS0
>$ns_ at 10.0 "$ftpS0 start"
>
># FTP/TCP transmission from node_(1) -> node_(0)
>set tcpS1 [new Agent/TCP]
>$tcpS1 set class_ 2
>set sinkS1 [new Agent/TCPSink]
>$ns_ attach-agent $node_(1) $tcpS1
>$ns_ attach-agent $node_(0) $sinkS1
>$ns_ connect $tcpS1 $sinkS1
>set ftpS1 [new Application/FTP]
>$ftpS1 attach-agent $tcpS1
>$ns_ at 10.0 "$ftpS1 start"
>
>
>#
># Tell nodes when the simulation ends
>#
>for {set i 0} {$i < $val(nn) } {incr i} {
>     $ns_ at 10.50 "$node_($i) reset";
>}
>$ns_ at 10.50 "stop"
>$ns_ at 10.51 "puts \"NS EXITING...\" ; $ns_ halt"
>proc stop {} {
>     global ns_ tracefd
>     $ns_ flush-trace
>     close $tracefd
>}
>
>puts "Starting Simulation..."
>$ns_ run
>
>
>
>
>Yiftach Eisenberg, Ph. D.
>Senior Electrical Engineer, Signal Processing
>BAE SYSTEMS, E&IS
>Advanced Systems and Technology
>P.O. Box 868, MER15-2350
>Nashua, NH 03061-0868
>Phone: (603) 885-2110
>Fax: (603) 885-0631
>E-mail: yiftach.eisenberg at baesystems.com
>
>
>
>------------------------------
>
>Message: 3
>Date: Wed, 7 Sep 2005 08:28:12 +0800
>From: "Tom H. Lan" <tomlan at ust.hk>
>Subject: [ns] question on full tcp
>To: <ns-users at ISI.EDU>
>Message-ID: <006f01c5b343$07e50f00$cb2f598f at ee.ust.hk>
>Content-Type: text/plain;	charset="gb2312"
>
>Hi,
>
>Are there anybody who successfully use the Full TCP in ns-2.28? I use it as 
>a control channel of a protocol I am simulating. But there are some bugs I 
>do not know how to handle.
>
>A Node sends a packet to the destination and the packets carries the right 
>information and are sent out by the agent, while the destination receives 
>the packets with wrong header information. Is there anybody who has 
>experience the similar thing and would like to share me the solution?
>
>Many thanks.
>
>Bests,
>
>------------------------------
>
>Message: 4
>Date: Tue, 06 Sep 2005 18:01:19 -0700
>From: Rosario Firrincieli <rfirrincieli at arces.unibo.it>
>Subject: [ns] contributed code for TCP Hybla
>To: ns-users at ISI.EDU
>Message-ID: <6.2.3.4.0.20050906175614.01f58c38 at arces.unibo.it>
>Content-Type: text/plain; charset="us-ascii"; format=flowed
>
>sorry for the previous mail, it was unfinished!
>
>Hi,
>          I am the author of the TCP Hybla module for ns-2. This
>protocol is specifically designed to cope with large RTT networks
>like, e.g. satellite networks.
>(1) The code was written for ns 2.26 but it works with the 2.28 version
>(2)-(7) The complete package for TCP
>Hybla
>(http://didattica.arces.unibo.it/index.php?dbName=rfirrincieli, under
>the "Attivita' di ricerca" page) contains:
>     * the cc and h file
>     * the ns-default modified file
>     * a README which explains how to install and test the Hybla module
>     * a simple tcl script to test the protocol
>I will be glad to answer all your questions about our protocol, which
>appeared in 8 international papers (1 journal and 7 conferences). I
>hope it will be released in the next release of ns-2.
>Best regards,
>
>Rosario Firrincieli
>
>------------------------------------------------------------------------
>Ing. Rosario Firrincieli, Ph.D. Student
>Telecommunication Area
>DEIS/ARCES - University of Bologna
>Viale Risorgimento 2  40136 - Bologna - Italy
>Via V. Toffano 2/2 - 40125 - Bologna - Italy
>Phone: +39 051 2095407, Fax: +39 051 2095410
>E-mail:rfirrincieli at arces.unibo.it, rfirrincieli at deis.unibo.it
>Web site: http://didattica.arces.unibo.it/index.php?dbName=rfirrincieli
>------------------------------------------------------------------------
>
>------------------------------
>
>Message: 5
>Date: Wed, 7 Sep 2005 09:50:49 +0100
>From: "HARDING Christopher" <C.A.Harding at staffs.ac.uk>
>Subject: Re: [ns] Trace file format in ns2.28.
>To: "Muhammad Umar" <muhammadumar at gmail.com>, <ns-users at ISI.EDU>
>Message-ID:
>	<06E6AD23C0344E4897FB663C0786A77A1EEE60 at crwnmail3.staff.staffs.ac.uk>
>Content-Type: text/plain;	charset="us-ascii"
>
>Hello,
>If your using wireless networks then you should make sure you use the
>new trace format, ($ns use-newtrace). You can use Java, or AWK, or Perl.
>Depends on what you know and what you want to use.
>
>I've used Java because I know the language well. You can still use them
>with the old trace format, you just have to know how the trace files are
>constructed and what information you need. I have some simple java
>programs at http://www.soc.staffs.ac.uk/cah1/research.htm that can be
>used to get information out of the new wireless trace format. I have a
>number of NS2 pages that I need to finish and place on my web site about
>how to use Java and NS2.
>
>Hope this was some help.
>
>Chris Harding
>
>-----Original Message-----
>From: Muhammad Umar [mailto:muhammadumar at gmail.com]
>Sent: 06 September 2005 21:38
>To: HARDING Christopher
>Subject: Re: [ns] Trace file format in ns2.28.
>
>
>
>hi Harding,
>
>I am a new ns user. Kindly write in detail or forward any link about how
>can I use JAVA or how can i use awk to get the informtion out of the
>trace file and whether these two options work with the old trace file
>format or not.
>
>  regards,
>
>umer.
>
>
>On 9/5/05, HARDING Christopher <C.A.Harding at staffs.ac.uk> wrote:
>
>
>Hello,
>Use the line $ns use-newtrace which will give you the new wireless trace
>format. Then use http://k-lug.org/~griswold/NS2/ns2-trace-formats.html
>to give you what the values mean.
>
>I've used Java to get values out of the trace files. Or you can use AWK
>or PEARL or whatever you wish.
>
>Chris Harding
>
>-----Original Message-----
>From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU
><mailto:ns-users-bounces at ISI.EDU> ] On
>Behalf Of Gabriel Wang
>Sent: 05 September 2005 12:27
>To: ns-users at ISI.EDU
>Subject: [ns] Trace file format in ns2.28.
>
>
>
>Hi all,
>
>Would someone kindly advise the trace file format in ns 2.28? I am
>newbie to
>ns-2 and I tried a sample tcl, which gives me the following trace file
>output:
>
>s 0.000001000 _0_ AGT --- 30504276 diffusion 0 [0 0 0 0] ------- [0:254
>0:255 32 0]
>s 0.000001000 _1_ AGT --- 503803425 diffusion 0 [0 0 0 0] ------- [1:254
>
>
>1:255 32 0]
>s 0.000001000 _2_ AGT --- 1374534831 diffusion 0 [0 0 0 0] -------
>[2:254
>2:255 32 0]
>...
>
>I am wondering how to use awk to calculate the stats.
>
>Thank you for your time in advance!
>
>Best Regards,
>Gabriel
>
>The information in this email is confidential and is intended solely for
>the addressee. Access to this email 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, except for the purpose of delivery to the addressee, is prohibited
>and may be unlawful. Kindly notify the sender and delete the message and
>
>any attachment from your computer.
>
>The information in this email is confidential and is intended solely for
>the addressee. Access to this email 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, except for the purpose of delivery to the addressee, is prohibited
>and may be unlawful. Kindly notify the sender and delete the message and
>any attachment from your computer.
>
>
>------------------------------
>
>Message: 6
>Date: Wed, 7 Sep 2005 14:07:52 +0300
>From: "Christos Antonopoulos" <cantonop at ee.upatras.gr>
>Subject: [ns] multi-channel communication
>To: <ns-users at ISI.EDU>
>Message-ID: <011701c5b39c$645613c0$40bb8c96 at apel.ee.upatras.gr>
>Content-Type: text/plain;	charset="iso-8859-7"
>
>Hi everybody
>
>i'am using ns2.27 and i want to use multi-channel communication even 
>between the same nodes.
>for example i want node1-node2 communication to occur on channel 2 and 
>node2-node1 on channel
>two.
>any ideas or exaples how to do it ?
>
>thank you
>
>Christos
>
>------------------------------
>
>Message: 7
>Date: Wed, 7 Sep 2005 07:27:37 -0700 (PDT)
>From: monika Jain <monika_svr at yahoo.com>
>Subject: [ns] problem regarding mpls-diffserv model and eurane
>To: ns-users at ISI.EDU
>Message-ID: <20050907142737.60866.qmail at web60311.mail.yahoo.com>
>Content-Type: text/plain; charset=iso-8859-1
>
>Hi all
>I am working on umts simulations in ns
>my simulations deal with mpls+diffserv model in umts
>RAN
>Now the models for eurane, mpls, diffserv are all
>supported by different ns versions
>so can anyone help me how to integrate these modules
>thanks
>Monika
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>
>
>
>------------------------------
>
>Message: 8
>Date: Wed, 7 Sep 2005 21:24:46 +0530
>From: Ankit Mehta <ankitm at gmail.com>
>Subject: [ns] sending pkts of AODV or DSDV
>To: ns-users at ISI.EDU
>Message-ID: <eb1362f505090708544e682033 at mail.gmail.com>
>Content-Type: text/plain; charset=ISO-8859-1
>
>  Hi
>
>Can I send , say 100 pkts from one node to another using DSDV or AODV as
>routing agent. I dont want to use tcp or an other agents.
>
>Thanx
>
>--
>Ankit Mehta
>Senior UnderGraduate
>Computer Science and Engineering
>Indian Institute Of Technology,Madras
>Chennai,India
>
>
>------------------------------
>
>Message: 9
>Date: Wed, 7 Sep 2005 21:37:53 +0530
>From: Ankit Mehta <ankitm at gmail.com>
>Subject: [ns] Diffusion tcl script
>To: ns-users at ISI.EDU
>Message-ID: <eb1362f5050907090766614eec at mail.gmail.com>
>Content-Type: text/plain; charset=ISO-8859-1
>
>Hi
>
>Does anyone have the script for running directed diffusion ?
>Thanx
>Regards
>--
>Ankit Mehta
>Senior UnderGraduate
>Computer Science and Engineering
>Indian Institute Of Technology,Madras
>Chennai,India
>
>
>------------------------------
>
>Message: 10
>Date: Wed, 07 Sep 2005 20:51:58 +0400
>From: Batov Igor Sergeevich <igbatov at mail.ru>
>Subject: [ns] ./autoconf.h:89: error: expected namespace-name before
>	';	' token
>To: ns-users at ISI.EDU
>Message-ID: <E1ED39S-000Ers-00.igbatov-mail-ru at f31.mail.ru>
>Content-Type: text/plain; charset=koi8-r
>
>Hello!
>trying to compile ns-2.28 on Fedora Core 3 on AMD64
>get the following error
>In file included from ./config.h:54,
>                  from tools/random.cc:40:
>./autoconf.h:89: error: expected namespace-name before ';' token
>./autoconf.h:89: error: `<type error>' is not a namespace
>What this can be?
>
>
>---------------------------(full output)--------------------------
>[root at localhost ns-2.28]# make
>g++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG 
>-DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H 
>-DHAVE_LIBOTCL1_9 -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=no -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. 
>-I/home/ns-allinone-2.28/tclcl-1.16 -I/home/ns-allinone-2.28/otcl-1.9 
>-I/home/ns-allinone-2.28/include -I/home/ns-allinone-2.28/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./wpan -o tools/random.o tools/random.cc
>In file included from ./config.h:54,
>                  from tools/random.cc:40:
>./autoconf.h:89: error: expected namespace-name before ';' token
>./autoconf.h:89: error: `<type error>' is not a namespace
>make: *** [tools/random.o] Error 1
>
>
>
>------------------------------
>
>Message: 11
>Date: Wed, 7 Sep 2005 19:53:40 +0100 (GMT+01:00)
>From: Marco Fiore <fl0wer at virgilio.it>
>Subject: [ns] R: Re:  R: awk files
>To: <gabriel.wang at gmail.com>
>Cc: ns-users at ISI.EDU
>Message-ID: <17134210.1126119220152.JavaMail.root at pswm16.cp.tin.it>
>Content-Type: text/plain;charset="UTF-8"
>
>Hi,
>
>please refer to the ns manual for details on the trace format.
>
>Regards,
>
>Marco Fiore
>
>----Messaggio originale----
>Da: gabriel.
>wang at gmail.com
>Data: 5-set-2005 11.02 AM
>A: "Marco Fiore"
><fl0wer at virgilio.it>
>Cc: <ns-users at isi.edu>
>Ogg: Re: [ns] R: awk files
>
>Hi Fiore,
>  In your tool readme file, you mentioned "Supports both the
>standard wired
>trace line format and the new wireless trace line
>format. Standard wireless
>trace line format is NOT supported."
>  What's
>the difference between the standard and new? I am using ns2.28, is
>the
>trace line format new or standard?
>  Thanks a lot!
>  Gabriel
>
>  On 9/5/05,
>Marco Fiore <fl0wer at virgilio.it> wrote:
> >
> >
> > The trace2stats tool
>is available at
> >
> > www.reti.polito.it/fiore <http://www.reti.polito.
>it/fiore>
> >
> > Regards,
> >
> > Marco Fiore
> >
> > ----Messaggio
>originale----
> > Da: loperini at hotmail.
> > com
> > Data: 2-set-2005 5.50 PM
> > A: <ns-users at ISI.EDU>
> > Ogg: [ns] awk files
> >
> >
> > Hello, I need
>help me, please.
> > I have created the following simulation
> > and now I
>need to obtain several
> > parameters (delay, bandwidth...) to
> > later
>analyze the obtained results. I
> > need files awk to calculate the
> >
>dalay of the packages tcp, the occupation of
> > the channel (consumed
> >
>bandwidth), the received packages and the loss
> > packages.I don't know
> > alot of awk, and for that reason I request aid. If
> > somebody could
>help
> > with these files awk me very it would be been thankful.
> >
>Thanks, I wait
> > for your aid.
> >
> > I'm sorry for my English!!!
> >
> >
> >
>-------------------------------------------------------------------------------
> >
> > set opt(node) 10
> > set opt(bw) 1000Mb
> > set num_tcp 8
> >
> > set ns
> > [new Simulator]
> >
> > #Define different colors for data flows (for
>NAM)
> > $ns
> > color 1 Blue
> > $ns color 2 Red
> > $ns color 3 Yellow
> >
> >
>#Open the Trace files
> > set file1 [open out1000_256.tr w]
> > #set
>winfile [open WinFile w]
> > $ns
> > trace-all $file1
> >
> > #Open the NAM
>trace file
> > set file2 [open out1000_256.
> > nam w]
> > $ns namtrace-all
>$file2
> >
> > #Define a 'finish' procedure
> > proc
> > finish {} {
> > global
>ns file1 file2
> > $ns flush-trace
> > close $file1
> > close $file2
> > exec
>nam out1000_256.
> > nam &
> > exit 0
> > }
> >
> > set num $opt(node)
> > for
>{set i 0} {$i < $num}
> > {incr i} {
> > set node($i) [$ns node]
> > lappend
>nodelist $node($i)
> > }
> >
> > $node(0) color red
> > $node(0) shape box
> >
> > set lan [$ns newLan $nodelist
> > $opt(bw) 40ms LL Queue/DropTail
>MAC/Csma/Cd
> > Channel]
> >
> >
> > set na [$ns
> > node]
> > $na color yellow
> >
> > $ns duplex-link $na $node(0) 0.5Mb 40ms
> > DropTail
> >
> > #Give node
>position (for NAM)
> > $ns duplex-link-op $na $node(0)
> > orient rigt
> >
> >
>#Setup a TCP connection
> > set trafico $num_tcp
> > for {set j 0}
> > {$j <
>$trafico} {incr j} {
> > set tcp($j) [new Agent/TCP]
> > $ns attach-agent
> >
>$node(0) $tcp($j)
> > set sink($j) [new Agent/TCPSink]
> > $ns attach-agent
> > $node([expr $j+1]) $sink($j)
> >
> > $ns connect $tcp($j) $sink($j)
> >
> >
>$tcp($j)
> > set fid_ 1
> > $tcp($j) set window_ 1024
> > $tcp($j) set
>packetSize_ 256
> >
> > #Setup a FTP over TCP connection
> > set ftp($j)
>[new Application/FTP]
> > $ftp
> > ($j) attach-agent $tcp($j)
> > $ftp($j)
>set type_ FTP
> > }
> >
> > for {set k 0} {$k
> > < $num_tcp} {incr k} {
> > $ns
>at 0.1 "$ftp($k) start"
> > $ns at 4.5 "$ftp($k)
> > stop"
> > }
> >
> > $ns at
>5 "finish"
> > $ns run
> >
> >
>_________________________________________________________________
> >
>Moda
> > para esta temporada. Ponte al d?a de todas las tendencias.
> >
>http://www.
> > msn.es/Mujer/moda/default.asp <http://msn.
>es/Mujer/moda/default.asp>
> >
> >
> >
> >
> >
>
>
>
>
>
>------------------------------
>
>_______________________________________________
>Ns-users mailing list
>Ns-users at isi.edu
>http://mailman.isi.edu/mailman/listinfo/ns-users
>
>
>End of Ns-users Digest, Vol 21, Issue 7
>***************************************

_________________________________________________________________
Logon to MSN Games http://www.msngamez.com/in/gamezone/ Enjoy unlimited 
action



More information about the Ns-users mailing list