Hi, I am developing MAC Protocol for MANET in Ns I have to define a datastructure for every node. Where I have to define this DATA Structure Please help me
On Wed, Apr 14, 2010 at 10:43 PM, <[email protected]> wrote: > Send Ns-users mailing list submissions to > [email protected] > > 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. Exponential disconnection probability mode (shajnoska elena) > 2. how to broadcast/multicast (pradeep bansal) > 3. multicast communication in wireless mesh network (gurudevi patil) > 4. Fwd: multicast communication in wireless mesh network > (gurudevi patil) > 5. dijkistras algorithm using ns2 (gurudevi patil) > 6. Invitation to connect on LinkedIn (Barkat Qureshi) > 7. Re: Regarding capacity(Bottleneck) bandwidth estimation > (Aurelien Lafranchise) > 8. binary format for traffic traces??? (pedro chaparro) > 9. Fwd: help - get node_id from tcl to c++ (Ramprasath M) > 10. problem with creating connection between N node "error whan > runnig the tcl script" (Emma Ch) > 11. Re: wireless-wired-satellite scenario problem (sahib) > 12. hierarchical address for satellite node (sahib) > 13. Re: problem: Classfier::no-slot{} default handler > (tcl/lib/ns-lib.tcl) (Teerawat Issariyakul) > 14. problem with runnig tcl script "new $ANIMATOR_CLASS_ > $tracefile [join $args]" (Emma Ch) > 15. add a new protocol to ns (lianxiaoxu) > 16. Re: add a new protocol to ns (Teerawat Issariyakul) > 17. Fw: error in geting value from Routing table field > (iftikhar ahmed) > 18. error in geting value from Routing table field (iftikhar ahmed) > 19. ns use-newtrace question about new trace format (Jin Woo Kim) > 20. use of full duplex transmission for wireless nodes (Emma Ch) > 21. problem in satellite+wired+wireless with hierarchical > addresses (sahib) > 22. problem in Wireless+wired+satellite using hierarchical > addresses (sahib) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 14 Apr 2010 02:28:22 +0200 > From: shajnoska elena <[email protected]> > Subject: [ns] Exponential disconnection probability mode > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hello, > > I was wondering if you could give me explanation about the implementation > of > a disconnection probability in wireless networks, actually > mobile IP. I m able to implement error model on the wireless link, but so > far i couldnt find anything about using link-up and link-down periods > in tcl scripts. > > I would really appreciate some help. > Thanks > > > ------------------------------ > > Message: 2 > Date: Wed, 14 Apr 2010 11:36:25 +0530 > From: pradeep bansal <[email protected]> > Subject: [ns] how to broadcast/multicast > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > how to broadcast/multicast in ns-2 > i have 5 nodes > number 1 is coneected to other 4's > i want node number 1 to send packets to all 4 > > > -- > Pradeep Bansal > Computer Science and Engineering > NIT Kurukshetra > > > ------------------------------ > > Message: 3 > Date: Wed, 14 Apr 2010 11:37:20 +0530 > From: gurudevi patil <[email protected]> > Subject: [ns] multicast communication in wireless mesh network > To: [email protected], [email protected], > [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > hi > i need some sample code for multicast communication in wireless mesh > network.plz send that very soon. > > regards > g.m.patil > > > ------------------------------ > > Message: 4 > Date: Wed, 14 Apr 2010 11:38:20 +0530 > From: gurudevi patil <[email protected]> > Subject: [ns] Fwd: multicast communication in wireless mesh network > To: [email protected], [email protected], > [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > ---------- Forwarded message ---------- > From: gurudevi patil <[email protected]> > Date: Wed, Apr 14, 2010 at 11:37 AM > Subject: multicast communication in wireless mesh network > To: [email protected], [email protected], [email protected] > > > hi > i need some sample code for multicast communication in wireless mesh > network using ns2.34.plz send that very soon. > > regards > g.m.patil > > > ------------------------------ > > Message: 5 > Date: Wed, 14 Apr 2010 11:41:14 +0530 > From: gurudevi patil <[email protected]> > Subject: [ns] dijkistras algorithm using ns2 > To: [email protected], [email protected], > [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > hi, > if anybody can implemented dijkistras algorithm in wireless network using > ns2.plz send that otcl code to me. > > > ------------------------------ > > Message: 6 > Date: Tue, 13 Apr 2010 23:28:06 -0700 (PDT) > From: Barkat Qureshi <[email protected]> > Subject: [ns] Invitation to connect on LinkedIn > To: Rishabh Goel <[email protected]> > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=UTF-8 > > LinkedIn > ------------Barkat Qureshi requested to add you as a connection on > LinkedIn: > ------------------------------------------ > > Rishabh, > > I'd like to add you to my professional network on LinkedIn. > > - Barkat > > Accept invitation from Barkat Qureshi > > http://www.linkedin.com/e/XYLt_3zkkGuzoc16gPkCk3Z-PrP/blk/I630169329_3/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cRYVczcVdz4McPp9bTBjt5hFdRBPbPgTejsVej8Ocz4LrCBxbOYWrSlI/EML_comm_afe/ > > View invitation from Barkat Qureshi > > http://www.linkedin.com/e/XYLt_3zkkGuzoc16gPkCk3Z-PrP/blk/I630169329_3/0PnPAOcPAScj0PdAALqnpPbOYWrSlI/svi/ > > ------------------------------------------ > > Why might connecting with Barkat Qureshi be a good idea? > > Have a question? Barkat Qureshi's network will probably have an answer: > You can use LinkedIn Answers to distribute your professional questions to > Barkat Qureshi and your extended network. You can get high-quality answers > from experienced professionals. > > http://www.linkedin.com/e/ash/inv19_ayn/ > > > ------ > (c) 2010, LinkedIn Corporation > > ------------------------------ > > Message: 7 > Date: Wed, 14 Apr 2010 10:00:24 +0200 > From: Aurelien Lafranchise <[email protected]> > Subject: Re: [ns] Regarding capacity(Bottleneck) bandwidth estimation > To: naveen gowda <[email protected]>, [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Yes I can do that ! > > You need to modify the code where dijkstra is implemented. (route.cc) > > Set the cost of the link to 1/BW > > and in addition to $ns run you have to write your own proc run to call > the dijkstra like algorithm that calculate the bottleneck of the path > and try to find the path where the bottleneck is max. > > Aur?lien > > > naveen gowda a ?crit : > > Can u help me regarding this pls > > > > On Wed, Apr 14, 2010 at 11:00 AM, naveen gowda > > <[email protected] <mailto:[email protected]>> wrote: > > > > Its basically measuring capacity(bottleneck) bandwidth of targeted > > path segments.. > > > > > > On Tue, Apr 13, 2010 at 1:14 PM, Aurelien Lafranchise > > <[email protected] > > <mailto:[email protected]>> wrote: > > > > Hi, > > > > Is your problem related to the widest shotest path ? If yes I > > can help you. > > > > Aur?lien > > > > naveen gowda a ?crit : > > > Hi All, > > > > > > If any one worked or working with estimating bottleneck > > bandwidth of path > > > pls help me regarding this... I need tcl code of this.. > > > > > > Thankin you > > > -- > > > With regards > > > Navi > > > > > > > > > > > > > -- > > With regards > > Navi > > > > > > > > > > -- > > With regards > > Navi > > > > > > ------------------------------ > > Message: 8 > Date: Wed, 14 Apr 2010 10:05:57 +0200 > From: pedro chaparro <[email protected]> > Subject: [ns] binary format for traffic traces??? > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > hi, i wanna know how can i generate a binary format file to use with > Application/Traffic/Trace Class, i have a traffic trace in text format, how > can i convert to .bin file?? > thanks > > -- > Ing Pedro Alonso Chaparro Valero > Ciudad Politecnica de la Innovaci?n > iTEAM - Mobile Communications Group > Polytechnic University of Valencia > C\ Camino de Vera S/N, Edificio 8G > 46022 Valencia, Spain > > > ------------------------------ > > Message: 9 > Date: Wed, 14 Apr 2010 13:41:25 +0530 > From: Ramprasath M <[email protected]> > Subject: [ns] Fwd: help - get node_id from tcl to c++ > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > ---------- Forwarded message ---------- > From: Ramprasath M <[email protected]> > Date: Wed, Apr 14, 2010 at 1:31 PM > Subject: help - get node_id from tcl to c++ > To: [email protected], [email protected] > > > > Hi, > > We are doing project in VANET, now we got a problem with the > implementation...V need to have node_id in our protocol.cc as like we used > in tcl file..Our protocol is much similar to DSR, v need compare the > node_id > which now requested for route from cc file with the node_id we traced from > an another file..The ids from this file will be like the ids in tcl > file.....Please help us...its so urgent...thank u > > > > -- > Regards, > Ramprasath.M > > > ------------------------------ > > Message: 10 > Date: Wed, 14 Apr 2010 09:11:20 +0000 (GMT) > From: Emma Ch <[email protected]> > Subject: [ns] problem with creating connection between N node "error > whan runnig the tcl script" > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=iso-8859-1 > > I wanted to create a connection between 8 nodes and one AP, the > transmission is in full duplex mode, for that i used this script: > > > set ns [new Simulator] > > # les dix noeuds: > set node_0 [$ns node] > > # cr?ation des outputs trace et nam: > set f [open glad.tr w] > $ns trace-all $f > set nf [open glad.nam w] > $ns namtrace-all $nf > # ====================================================================== > # 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(mac)??????????? Mac/802_11??????????????? ??? ;# 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(rp)???????????? DumbAgent????????????????? ??? ;# routing protocol > set val(start)????????? 0.0 > set val(ifqlen)???????? 50???????????????????????? ;# max packet in ifq > set val(nn)???????????? 9 > set val(tr)???????????? "trace" > set val(X)????????????? 500 > set val(Y)????????????? 500 > set val(CWmin)????????? 16 > set val(CWmax)????????? 1024 > set val(SlotTime)?????? 0.000009 > set val(SIFS)?????????? 0.000016 > set val(basicRate)????? 2Mb > set val(dataRate)?????? 54Mb > set val(PreambleLength)?? 104 > set val(PLCPHeaderLength)?? 48 > #------------------------------------------------------------------------ > # Codec:? G.711 > #------------------------------------------------------------------------ > #set val(ON)???????????? 1500ms > #set val(OFF)??????????? 1500ms > #set val(AppRate)??????? 96Kb > #set val(pktsize)???????? 160 #160 octets > #set val(pktinterval)???? 0.020 > #set pktsize $val(pktsize)???????? #160 octets > #set pktinterval $val(pktinterval)?? > #set val(run)???????????? 50.0 > #------------------------------------------------------------------------ > # MAC MIB > #------------------------------------------------------------------------ > Mac/802_11 ??? ??? set basicRate???????? $val(basicRate)Mb > Mac/802_11 ??? ??? set dataRate????????? $val(dataRate)Mb > Mac/802_11 ??? ??? set CWMin???????????? $val(CWmin) > Mac/802_11 ??? ??? set CWMax???????????? $val(CWmax) > Mac/802_11 ??? ??? set SlotTime????????? $val(SlotTime) > Mac/802_11 ??? ??? set SIFS????????????? $val(SIFS) > Mac/802_11????????????? set PreambleLength??? $val(PreambleLength);# no > preamble > Mac/802_11????????????? set PLCPHeaderLength? > $val(PLCPHeaderLength)???????????? ;# 128 bits > Mac/802_11????????????? set PLCPDataRate????? 1.0e6?????????? ;# 1Mbps > > # set up topography object > set topo?????? [new Topography] > #$topo load_flatgrid $val(X) $val(Y) > > # Create God > create-god $val(nn) > > # 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 OFF \ > ??? ??? ??? ?-macTrace OFF \ > ??? ??? ??? ?-movementTrace OFF??? ??? ??? ? > ??? ??? ??? ? > ??? for {set i 0} {$i < $val(nn) } {incr i} { > ??? ??? set node_($i) [$ns node]??? ? > ??? ??? $node_($i) random-motion 0??? ??? ;# disable random motion > ??? } > > > ? > set rtp0 [new Agent/RTP] > $ns attach-agent $node_0 $rtp0 > set cbr0 [new Application/Traffic/CBR] > $cbr0 attach-agent $rtp0 > $ns at 0.5 "$cbr0 start" > set null0 [new Agent/Null] > $ns attach-agent $node_0 $null0 > > # multi flows > for {set i 1} {$i < $val(nn) } {incr i 1} { > ??????? set node_($i) [$ns node] > ??? $ns duplex-link $node_($i) $node_0 1Mb 20ms DropTail > ??? set rtp_($i) [new Agent/RTP] > ??? set null_($i) [new Agent/Null] > ??? $ns attach-agent $node_($i) $rtp_($i) > ??? $ns attach-agent $node_($i) $null_($i) > ??????? #$rtp($node_($i) set class_($node_($i)) > ??? $ns connect $rtp_($i) $null0 > ??????? $ns connect $rtp0 $null_($i) > ??? set cbr_($i) [new Application/Traffic/CBR] > ??? $cbr_($i) attach-agent $rtp_($i) > ??????? puts [$cbr_($i) set packetSize_ 160] > ??????? puts [$cbr_($i) set interval_ 20ms] > ??????? $ns at 1.0 "cbr_($i) start" > } > > > > $ns at 10.0 "finish" > > proc finish {} { > ??? global ns f nf > ??? $ns flush-trace > ??? close $f > ??? close $nf > > ??? puts "running nam..." > ??? exec nam glad.nam & > ??? exit 0 > } > > $ns run > > > > when this runnig this script, i have this error in setting "cbr_(1)" > num_nodes is set 9 > 160 > > 160 > > 160 > > 160 > > 160 > > 160 > > 160 > > 160 > > ns: cbr_(1) start: invalid command name "cbr_(1)" > ??? while executing > "cbr_(1) start" > > > > please some help > > > > > > ------------------------------ > > Message: 11 > Date: Wed, 14 Apr 2010 03:50:21 -0700 (PDT) > From: sahib <[email protected]> > Subject: Re: [ns] wireless-wired-satellite scenario problem > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > > > > > > > HI Luigi RICOBON > I am facing the same problem, I need to use > wireless+satellite scenario and also need to use hierarchical addresses in > wireless. I have spent lot of time in making this scenario, but still can't > figure it out. > Did you manage to have wireless+satellite scenario in ns2? > > Can you please tell me how to use wireless+satellite node with hierarchical > addresses. > > Thanks in advance. > > Sahib > > > > > > > > > > > > > > > > > > > Alex Luigi RICOBON wrote: > > > > > > Hi guys, > > > > i want to create a mixed scenario, using wireless and satellite nodes. > the > > problem is that in wireless i have to use hiererchical addressing, and in > > satellite nodes i can't do that. > > > > can anyone help me? > > > > > > > > > > > > Alex Luigi RICOBON > > Tel: +393928007579 > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > > -- > View this message in context: > http://old.nabble.com/wireless-wired-satellite-scenario-problem-tp10421147p28241062.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 12 > Date: Wed, 14 Apr 2010 04:47:16 -0700 (PDT) > From: sahib <[email protected]> > Subject: [ns] hierarchical address for satellite node > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > > > Dear All > I have been trying to assign hierarchical addressing to > satellite node in ns2, and spent about three days but still can't figure it > out. > > Can anyone please tell me how to assign hierarchical address to a satellite > node, or wether its possible in ns2 or not? > > Thanks in advance. > -- > View this message in context: > http://old.nabble.com/hierarchical-address-for-satellite-node-tp28240951p28240951.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 13 > Date: Wed, 14 Apr 2010 05:08:11 -0700 (PDT) > From: "Teerawat Issariyakul" <[email protected]> > Subject: Re: [ns] problem: Classfier::no-slot{} default handler > (tcl/lib/ns-lib.tcl) > To: [email protected], [email protected] > Message-ID: <zyizmvus.1271246891.0692720.teera...@localhost> > Content-Type: text/plain; charset=ISO-8859-1 > > > Hello Meriem, > > I just put up a "no-slot error" on the following link. > > http://www.ns2ultimate.com/post/520626807/classifier-no-slot-error > > It might solve your problem. > > Best Regards, > > Teerawat Issariyakul > http://www.ns2ultimate.com/ > http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 > http://twitter.com/T_Bear > http://www.t-issariyakul.blogspot.com > http://www.ece.ubc.ca/~teerawat > > > > > On 4/13/2010, "meriem bouzouita" <[email protected]> wrote: > > > > >Hello, > >My simulation generates the following error message: > >Simulation is running...please wait... > >--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- > >??????? _o14: no target for slot -1 > >???????? _o14 type: Classifier/Hash/Dest > >?content dump: > >?classifier _o14 > >???????? 0 offset > >???????? 0 shift > >???????? 2147483647 mask > >???????? 1 slots > >???????????????? slot 5: _o16 (Classifier/Port) > >???????? -1 default > >?---------- Finished standard no-slot{} default handler ---------- > >I don't have any idea how to solve it, > >please can you help me, > >Thanks in advance > >Best regards. > > > > > > > > > > > > ------------------------------ > > Message: 14 > Date: Wed, 14 Apr 2010 12:23:22 +0000 (GMT) > From: Emma Ch <[email protected]> > Subject: [ns] problem with runnig tcl script "new $ANIMATOR_CLASS_ > $tracefile [join $args]" > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=iso-8859-1 > > I have tried with this example, for creationg my own topologie, > > when running the tcl code, I have this problem: > > class > Animator: constructor failed: class NetworkModel/Auto: constructor > failed: error when calling class NetworkModel/Auto: link 0 11 1.0 20.0 > 0 1.0 > node 0 or 11 is not defined... > ??? (_o34 cmd line 1) > ??? invoked from within > "_o34 cmd link 0 11 1.0 20.0 0 1.0" > ??? 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 "_o34" line 2) > ??? (SplitObject unknown line 2) > ??? invoked from within > "$self > link $dst $src $rate $delay $length $rev" > ??? (procedure "_o34" line 59) > ??? (NetworkModel layout_link line 59) > ??? invoked from within > "$self layout_link [lrange $line 1 end]" > ??? ("l" arm line 2) > ??? invoked from within > "switch $cmd { > "n" { > $self node $line > } > "g" { > $self layout_agent [lrange $line 1 end] > } > "l" { > $self layout_link [lrange $line 1 end] > } > "L" { > $self layo..." > ??? (procedure "_o34" line 17) > ??? (NetworkModel nam_layout line 17) > ??? invoked from within > "$self nam_layout $tracefile" > ??? (procedure "_o34" line 7) > ??? (Object next line 7) > ??? invoked from within > "_o34 next _o31 /home/emna/ns-allinone-2.34/ns-2.34/glad.nam" > ??? ("eval" body line 1) > ??? invoked from > within > "eval $self next $animator $tracefile" > ??? (procedure "_o34" line 2) > ??? (NetworkModel/Auto init line 2) > ??? invoked from within > "_o34 init _o31 /home/emna/ns-allinone-2.34/ns-2.34/glad.nam" > ??? (Class create line 1) > ??? invoked from within > "NetworkModel/Auto create _o34 _o31 > /home/emna/ns-allinone-2.34/ns-2.34/glad.nam" > ??? invoked from within > "catch "$className create $o $args" msg" > ??? invoked from within > "if [catch "$className create $o $args" msg] { > if [string match "__FAILED_SHADOW_OBJECT_" $msg] { > delete $o > return "" > } > global errorInfo > error "class $..." > ??? (procedure "new" line 3) > ??? invoked from within > "new $NETWORK_MODEL $self $tracefile" > ??? (procedure "_o31" line 87) > ??? (Animator init line > 87) > ??? invoked from within > "_o31 init /home/emna/ns-allinone-2.34/ns-2.34/glad.nam {}" > ??? (Class create line 1) > ??? invoked from within > "Animator create _o31 /home/emna/ns-allinone-2.34/ns-2.34/glad.nam {}" > ??? invoked from within > "catch "$className create $o $args" msg" > ??? invoked from within > "if [catch "$className create $o $args" msg] { > if [string match "__FAILED_SHADOW_OBJECT_" $msg] { > delete $o > return "" > } > global errorInfo > error "class $..." > ??? (procedure "new" line 3) > ??? invoked from within > "new $ANIMATOR_CLASS_ $tracefile? [join $args]" > > ------ > i denote that my own tcl script is: > > > set ns [new Simulator] > > # les dix noeuds: > set node_0 [$ns node] > > > # cr?ation des outputs trace et nam: > set f [open glad.tr w] > $ns trace-all $f > set nf [open > glad.nam w] > $ns namtrace-all $nf > # ====================================================================== > # 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(mac)??????????? Mac/802_11??????????????? ??? ;# 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(rp)???????????? DumbAgent????????????????? ??? ;# routing protocol > set val(start)????????? 0.0 > set > val(ifqlen)???????? 50???????????????????????? ;# max packet in ifq > set val(n)????????????? 10 > set val(tr)???????????? "trace" > set val(X)????????????? 500 > set val(Y)????????????? 500 > set val(CWmin)????????? 16 > set val(CWmax)????????? 1024 > set val(SlotTime)?????? 0.000009 > set val(SIFS)?????????? 0.000016 > set val(basicRate)????? > 2Mb > set val(dataRate)?????? 54Mb > set val(PreambleLength)?? 104 > set val(PLCPHeaderLength)?? 48 > #------------------------------------------------------------------------ > # Codec:? G.711 > #------------------------------------------------------------------------ > #set val(ON)???????????? 1500ms > #set val(OFF)??????????? 1500ms > #set val(AppRate)??????? 96Kb > #set val(pktsize)???????? 160 #160 octets > #set val(pktinterval)???? 0.020 > #set pktsize $val(pktsize)???????? #160 octets > #set pktinterval $val(pktinterval)?? > #set val(run)???????????? > 50.0 > #------------------------------------------------------------------------ > # MAC MIB > #------------------------------------------------------------------------ > Mac/802_11 ??? ??? set basicRate???????? $val(basicRate)Mb > Mac/802_11 ??? ??? set dataRate????????? $val(dataRate)Mb > Mac/802_11 ??? ??? set CWMin???????????? $val(CWmin) > Mac/802_11 ??? ??? set CWMax???????????? $val(CWmax) > Mac/802_11 ??? ??? set SlotTime????????? $val(SlotTime) > Mac/802_11 ??? ??? set > SIFS????????????? $val(SIFS) > Mac/802_11????????????? set PreambleLength??? $val(PreambleLength);# no > preamble > Mac/802_11????????????? set PLCPHeaderLength? > $val(PLCPHeaderLength)???????????? ;# 128 bits > Mac/802_11????????????? set PLCPDataRate????? 1.0e6?????????? ;# 1Mbps > > # set up topography object > set topo?????? [new Topography] > #$topo load_flatgrid $val(X) $val(Y) > > # Create God > create-god $val(n) > > # 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 OFF \ > > ??? ??? ??? ?-macTrace OFF \ > > ??? ??? ??? ?-movementTrace OFF??? ??? ??? ? > ??? ??? ??? ? > > ??? for {set i 0} {$i < $val(n) } {incr i} { > > ??? ??? set node_($i) [$ns node]??? ? > ??? ??? $node_($i) random-motion 0??? ??? ;# disable random motion > > ??? } > > > > set rtp_0 [new Agent/RTP] > # communication agent-network ($ns attach-agent $node $agent) > $ns attach-agent $node_0 $rtp_0 > $rtp_0 set class_ 0 > $ns color 0 Red > # la cr?ation de l'application / set ... [new Application/type] > set cbr_0 [new Application/Traffic/CBR] > $cbr_0 > attach-agent $rtp_0 > $ns at 0.5 "$cbr_0 start" > set null_0 [new Agent/Null] > $ns attach-agent $node_0 $null_0 > > > # multi flows > for {set i 1} {$i < $val(n) } {incr i 1} { > ??????? set node_($i) [$ns node] > > ??? $ns duplex-link $node_($i) $node_0 1Mb 20ms DropTail > ??? set rtp_($i) [new Agent/RTP] > ??? set null_($i) [new Agent/Null] > ??? $ns attach-agent $node_($i) $rtp_($i) > ??? $ns attach-agent $node_($i) $null_($i) > ??????? set color {Blue Red Yellow Orange Green Blue Red Blue Orange} > ??????? $rtp_($i) set class_ lindex $argv $i > ??? $ns connect $rtp_($i) $null_0 > ??????? $ns connect $rtp_0 $null_($i) > ??? set cbr_($i) [new Application/Traffic/CBR] > ??? > $cbr_($i) attach-agent $rtp_($i) > ??????? puts [$cbr_($i) set packetSize_ 160] > ??????? puts [$cbr_($i) set interval_ 20ms] > ??????? $ns at 0.1 "$cbr_($i) start" > ??????? $ns at 10.0 "finish" > } > > > > proc finish {} { > ??? global ns f nf > ??? $ns flush-trace > ??? close $f > ??? close $nf > > ??? puts "running nam..." > ??? exec nam glad.nam & > ??? exit 0 > } > > $ns run > > ------please some help > thanks > > > > > ------------------------------ > > Message: 15 > Date: Wed, 14 Apr 2010 21:22:17 +0800 (CST) > From: lianxiaoxu <[email protected]> > Subject: [ns] add a new protocol to ns > To: ns-users <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="gbk" > > Hello all: > today I tried to add a new protocol to ns, the new protocol is > called:protoname in the webpage > http://blog.csdn.net/charming520/archive/2009/05/25/4215418.aspx ,but when > I use the make command to generate .o file. I used the Makefile: > protoname.o:protoname.cc protoname.h > gcc -c protoname.cc > It seems that all the included file in protoname.h had not been found > during the edit time. > And I could find a solution,could someone help me? > Thank you and look forward to hearing from you! > the appendix is the errors. > > ------------------------------ > > Message: 16 > Date: Wed, 14 Apr 2010 07:18:31 -0700 (PDT) > From: "Teerawat Issariyakul" <[email protected]> > Subject: Re: [ns] add a new protocol to ns > To: [email protected], [email protected] > Message-ID: <tsnhy3ue.1271254711.7146170.teera...@localhost> > Content-Type: text/plain; charset=ISO-8859-1 > > > Hi, > > If you have a new module you would like to add to NS2, please go to > > http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 > > I hope it will help. > > Best Regards, > > Teerawat Issariyakul > http://www.ns2ultimate.com/ > http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 > http://twitter.com/T_Bear > http://www.t-issariyakul.blogspot.com > http://www.ece.ubc.ca/~teerawat > > > On 4/14/2010, "lianxiaoxu" <[email protected]> wrote: > > > > > > > ------------------------------ > > Message: 17 > Date: Wed, 14 Apr 2010 08:39:56 -0700 (PDT) > From: iftikhar ahmed <[email protected]> > Subject: [ns] Fw: error in geting value from Routing table field > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=iso-8859-1 > > > > > > > > > > > > dear sir /madam, > ? > ????? i m getting blank trace file .when i assign routing table field to > RREQ mmesssag field. > when i m getting through pointer as well. > can any body help me for the following; > ? > 1- is there any to get value from routing table field or variable? > 2- how can i get the value which is in routing table field in Rtable.cc? > 3- how can i print that value or any? value in any field of routingtable? > ? > plz help me in this regard, > ? > iftikhar ahmad > from pakistan > > > > > > ------------------------------ > > Message: 18 > Date: Wed, 14 Apr 2010 08:41:57 -0700 (PDT) > From: iftikhar ahmed <[email protected]> > Subject: [ns] error in geting value from Routing table field > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=iso-8859-1 > > > > > > > > > > > > > > > > > > > > dear sir /madam, > ? > ????? i m getting blank trace file .when i assign routing table field to > RREQ mmesssag field. > when i m getting through pointer as well. > can any body help me for the following; > ? > 1- is there any to get value from routing table field or variable? > 2- how can i get the value which is in routing table field in Rtable.cc? > 3- how can i print that value or any? value in any field of routingtable? > ? > plz help me in this regard, > ? > iftikhar ahmad > from pakistan > > > > > > > ------------------------------ > > Message: 19 > Date: Wed, 14 Apr 2010 10:50:38 -0500 > From: Jin Woo Kim <[email protected]> > Subject: [ns] ns use-newtrace question about new trace format > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > In ns2 manual, page 158, it mentioned use-newtrace format. Is it available > also to 802.15.4? > I simulated 802.15.4 with error model using new trace format (use-newtrace > format) > Is it also availalbe trace format to 802.15.4? > > > > ------------------------------ > > Message: 20 > Date: Wed, 14 Apr 2010 16:07:49 +0000 (GMT) > From: Emma Ch <[email protected]> > Subject: [ns] use of full duplex transmission for wireless nodes > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=utf-8 > > I want to make a scenario in wireless WLAN ,where nodes tramits data in > full duplex mode > I want to know: Is it true the use the command "duplex-link" in wireless > trasmission???? > Thanks > > > > > > ------------------------------ > > Message: 21 > Date: Wed, 14 Apr 2010 09:40:00 -0700 (PDT) > From: sahib <[email protected]> > Subject: [ns] problem in satellite+wired+wireless with hierarchical > addresses > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > > > Dear All > I am trying to make a simulation with > satellite+wired+wireless nodes in the scenario using hierarchical > addresses. > I have downloaded and modified the example given below: when i run the > example without hierarchical addresses it runs fine but when i use > hierarchical addresses it gives me following error: > > ****************************************************************************************************************************************** > ERROR: > [...@localhost NS2]$ ns aawal.tcl > num_nodes is set 6 > Stub No. 1 > size of istr[i] is > unsigned long > Error!! > str2addr:Address 1784827763 outside range of address field length 2048 > > > ****************************************************************************************************************************************** > > > > ************************************************** > Source code Example Starts here > *************************************************** > > ### This simulation is an example of combination of wired, wireless > ### and geo-satellite topologies. > > set ns [new Simulator] > > > > $ns node-config -addressType hierarchical > AddrParams set domain_num_ 2 ;# domain number > AddrParams set cluster_num_ {5 5} ;# cluster number for each domain > lappend tmp 5 ;# CN > lappend tmp 5 ;# RCST 1 > lappend tmp 5 ;# Satellite > lappend tmp 5 ;# RCST 0 > lappend tmp 5 ;# router > lappend tmp 5 ;# 802.16 MNs+BS > lappend tmp 5 ;# 802.16 MNs+BS > lappend tmp 5 ;# 802.11 MNs+AP > lappend tmp 5 ;# 802.11 MNs+AP > lappend tmp 5 ;# MultifaceNode > lappend tmp 5 ;# MultifaceNode > lappend tmp 5 ;# MultifaceNode > AddrParams set nodes_num_ $tmp > > > > > > > global opt_sat > set opt_sat(chan) Channel/Sat > set opt_sat(bw_up) 0.5Mb > set opt_sat(bw_down) 0.5Mb > set opt_sat(phy) Phy/Sat > set opt_sat(mac) Mac/Sat > set opt_sat(ifq) Queue/DropTail > set opt_sat(qlim) 50 > set opt_sat(ll) LL/Sat > > global opt_mobile > set opt_mobile(chan) Channel/WirelessChannel > set opt_mobile(prop) Propagation/TwoRayGround > set opt_mobile(netif) Phy/WirelessPhy > set opt_mobile(mac) Mac/802_11 > set opt_mobile(ifq) Queue/DropTail/PriQueue > set opt_mobile(ll) LL > set opt_mobile(ant) Antenna/OmniAntenna > set opt_mobile(ifqlen) 50 > set opt_mobile(tr) test-mobile-satellite.tr > set opt_mobile(namtr) test-mobile-satellite.nam > set opt_mobile(nn) 5 > set opt_mobile(adhocRouting) NOAH > set opt_mobile(stop) 50 > set num_wired_nodes 2 > set num_bs_nodes 1 > set net_distance 10000.0 > > set opt_mobile(x) [expr $opt_mobile(nn) * 100.0 * 2 + 100.0 + > $net_distance] > set opt_mobile(y) 1000 > > # set up for hierarchical routing > # $ns node-config -addressType hierarchical > # AddrParams set domain_num_ 4 > # lappend cluster_num 1 1 1 1 > # AddrParams set cluster_num_ $cluster_num > # lappend eilastlevel 20 20 20 20 > # AddrParams set nodes_num_ $eilastlevel > > # create topology of the wireless nodes to keep connectivity info > set topo [new Topography] > $topo load_flatgrid $opt_mobile(x) $opt_mobile(y) > # god needs to know the number of all wireless interfaces > create-god [expr $opt_mobile(nn) + $num_bs_nodes] > > # setup the trace file > set tracefd [open $opt_mobile(tr) w] > $ns trace-all $tracefd > $ns trace-all-satlinks $tracefd > set namtracefd [open $opt_mobile(namtr) w] > $ns namtrace-all $namtracefd > > # Set up satellite and terrestrial nodes > # Configure the node generator for bent-pipe satellite > # geo-repeater uses type Phy/Repeater > $ns node-config -satNodeType geo-repeater \ > -phyType Phy/Repeater \ > -channelType $opt_sat(chan) \ > -downlinkBW $opt_sat(bw_down) \ > -wiredRouting ON > > # GEO satellite at 95 degrees longitude West > puts "Stub No. 1" > set geo [$ns node 0.2.0] > puts "Stub No. 2" > $geo set-position 13#-95 > > $geo color red > $geo shape box > > # Configure the node generator for satellite terminals > $ns node-config -satNodeType terminal \ > -llType $opt_sat(ll) \ > -ifqType $opt_sat(ifq) \ > -ifqLen $opt_sat(qlim) \ > -macType $opt_sat(mac) \ > -phyType $opt_sat(phy) \ > -channelType $opt_sat(chan) \ > -downlinkBW $opt_sat(bw_down) \ > -wiredRouting ON > > # Two terminals: one in NY and one in SF > set vsat1 [$ns node 0.3.0] > $vsat1 set-position 43.71 10.38; # NY > set vsat2 [$ns node 0.1.0] > $vsat2 set-position 43.71 10.38; # SF > > > #new-terminal 43.71 10.38 > #new-terminal 43.71 10.38 > > > > $vsat1 color blue > $vsat1 shape hexagone > > $vsat2 color green > $vsat2 shape hexagone > > > # Add GSLs to geo satellites > $vsat1 add-gsl geo $opt_sat(ll) $opt_sat(ifq) $opt_sat(qlim) $opt_sat(mac) > $opt_sat(bw_up) \ > $opt_sat(phy) [$geo set downlink_] [$geo set uplink_] > $vsat2 add-gsl geo $opt_sat(ll) $opt_sat(ifq) $opt_sat(qlim) $opt_sat(mac) > $opt_sat(bw_up) \ > $opt_sat(phy) [$geo set downlink_] [$geo set uplink_] > > # unset the satellite node type, to create other nodes. > $ns unset satNodeType_ > $ns unset channelType_ > $ns node-config -reset > > > # create some desktop pc to transfer data from olsr to satellite > set w1 [$ns node 0.4.0] > $w1 color blue > $ns at 0.0 "$w1 add-mark w1 blue" > > set w2 [$ns node 0.0.0] > $w2 color green > $ns at 0.0 "$w2 add-mark w2 green" > > > > > # create links from desktop to vsat > $ns duplex-link $w1 $vsat1 100Mb 0.01ms DropTail > $ns duplex-link $w2 $vsat2 100Mb 0.01ms DropTail > > $ns node-config -adhocRouting $opt_mobile(adhocRouting) \ > -llType $opt_mobile(ll) \ > -macType $opt_mobile(mac) \ > -ifqType $opt_mobile(ifq) \ > -ifqLen $opt_mobile(ifqlen) \ > -antType $opt_mobile(ant) \ > -propInstance [new $opt_mobile(prop)] \ > -phyType $opt_mobile(netif) \ > -channel [new $opt_mobile(chan)] \ > -topoInstance $topo \ > -wiredRouting ON \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace ON > > # create base station 1 > set BS1 [$ns node 1.0.0] > $BS1 random-motion 0 > > > $BS1 color yellow > $BS1 shape box > > > $BS1 set X_ [expr $opt_mobile(nn) * 100.0] > $BS1 set Y_ [expr 500.0 + ((($opt_mobile(nn) * 93) % 21) - 10 ) * 10.0] > $BS1 set Z_ 0.0 > > > #--------------------------------------------------------------------------- > # Create mobile nodes > > #--------------------------------------------------------------------------- > > for {set i 0} {$i < $opt_mobile(nn)} {incr i} { > set node1($i) [$ns node 1.0.[expr $i+1]] > > $node1($i) color green > > > $node1($i) random-motion 1 > $node1($i) set X_ [expr $i * 100.0 + $net_distance] > $node1($i) set Y_ [expr 500.0 + ((($i * 93) % 21) - 10 ) * 10.0] > $node1($i) set Z_ 0.0 > $ns initial_node_pos $node1($i) 20 > $node1($i) base-station [AddrParams addr2id [$BS1 node-addr]] > } > > > # create links between wired and BS nodes > $ns duplex-link $w1 $BS1 100Mb 1ms DropTail > > > # setup TCP connections > set tcp1 [new Agent/TCP] > $ns attach-agent $node1(0) $tcp1 > > set sink1 [new Agent/TCPSink] > $ns attach-agent $w2 $sink1 > > > set ftp1 [new Application/FTP] > $ftp1 attach-agent $tcp1 > > $ns connect $tcp1 $sink1 > > > $ns at 2 "$cbr start" > $ns at 25 "$cbr stop" > > $ns at 3 "$ftp1 start" > $ns at 45 "$ftp1 stop" > > for {set i 1} {$i < $opt_mobile(stop)} {} { > $ns at $i "puts $i\n" > set i [expr $i * 1.2] > } > > #for {set i } {$i < $opt_mobile(nn) } {incr i} { > # $ns at $opt_mobile(stop).0000010 "$node1($i) reset"; > #} > #$ns at $opt_mobile(stop).0000010 "$BS1 reset"; > > $ns at $opt_mobile(stop).1 "puts \"NS EXITING...\" ; $ns halt" > > puts "Starting Simulation..." > $ns run > > > > ************************************************** > Source code Example Ends here > *************************************************** > > Can anyone please help me in sorting this problem. > > Best Regards > Sahib > > -- > View this message in context: > http://old.nabble.com/problem-in-satellite%2Bwired%2Bwireless-with-hierarchical-addresses-tp28245132p28245132.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 22 > Date: Wed, 14 Apr 2010 10:09:04 -0700 (PDT) > From: sahib <[email protected]> > Subject: [ns] problem in Wireless+wired+satellite using hierarchical > addresses > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > > Dear All > I am trying to make a simulation with > satellite+wired+wireless nodes in the scenario using hierarchical > addresses. > I have downloaded and modified the example given below: when i run the > example without hierarchical addresses it runs fine but when i use > hierarchical addresses it gives me following error: > > ****************************************************************************************************************************************** > ERROR: > [...@localhost NS2]$ ns aawal.tcl > num_nodes is set 6 > Stub No. 1 > size of istr[i] is > unsigned long > Error!! > str2addr:Address 1784827763 outside range of address field length 2048 > > > ****************************************************************************************************************************************** > > > > ************************************************** > Source code Example Starts here > *************************************************** > > ### This simulation is an example of combination of wired, wireless > ### and geo-satellite topologies. > > set ns [new Simulator] > > > > $ns node-config -addressType hierarchical > AddrParams set domain_num_ 2 ;# domain number > AddrParams set cluster_num_ {5 5} ;# cluster number for each domain > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > lappend tmp 5 > AddrParams set nodes_num_ $tmp > > > > > > > global opt_sat > set opt_sat(chan) Channel/Sat > set opt_sat(bw_up) 0.5Mb > set opt_sat(bw_down) 0.5Mb > set opt_sat(phy) Phy/Sat > set opt_sat(mac) Mac/Sat > set opt_sat(ifq) Queue/DropTail > set opt_sat(qlim) 50 > set opt_sat(ll) LL/Sat > > global opt_mobile > set opt_mobile(chan) Channel/WirelessChannel > set opt_mobile(prop) Propagation/TwoRayGround > set opt_mobile(netif) Phy/WirelessPhy > set opt_mobile(mac) Mac/802_11 > set opt_mobile(ifq) Queue/DropTail/PriQueue > set opt_mobile(ll) LL > set opt_mobile(ant) Antenna/OmniAntenna > set opt_mobile(ifqlen) 50 > set opt_mobile(tr) test-mobile-satellite.tr > set opt_mobile(namtr) test-mobile-satellite.nam > set opt_mobile(nn) 5 > set opt_mobile(adhocRouting) NOAH > set opt_mobile(stop) 50 > set num_wired_nodes 2 > set num_bs_nodes 1 > set net_distance 10000.0 > > set opt_mobile(x) [expr $opt_mobile(nn) * 100.0 * 2 + 100.0 + > $net_distance] > set opt_mobile(y) 1000 > > # set up for hierarchical routing > # $ns node-config -addressType hierarchical > # AddrParams set domain_num_ 4 > # lappend cluster_num 1 1 1 1 > # AddrParams set cluster_num_ $cluster_num > # lappend eilastlevel 20 20 20 20 > # AddrParams set nodes_num_ $eilastlevel > > # create topology of the wireless nodes to keep connectivity info > set topo [new Topography] > $topo load_flatgrid $opt_mobile(x) $opt_mobile(y) > # god needs to know the number of all wireless interfaces > create-god [expr $opt_mobile(nn) + $num_bs_nodes] > > # setup the trace file > set tracefd [open $opt_mobile(tr) w] > $ns trace-all $tracefd > $ns trace-all-satlinks $tracefd > set namtracefd [open $opt_mobile(namtr) w] > $ns namtrace-all $namtracefd > > # Set up satellite and terrestrial nodes > # Configure the node generator for bent-pipe satellite > # geo-repeater uses type Phy/Repeater > $ns node-config -satNodeType geo-repeater \ > -phyType Phy/Repeater \ > -channelType $opt_sat(chan) \ > -downlinkBW $opt_sat(bw_down) \ > -wiredRouting ON > > # GEO satellite at 95 degrees longitude West > puts "Stub No. 1" > set geo [$ns node 0.2.0] > puts "Stub No. 2" > $geo set-position 13#-95 > > $geo color red > $geo shape box > > # Configure the node generator for satellite terminals > $ns node-config -satNodeType terminal \ > -llType $opt_sat(ll) \ > -ifqType $opt_sat(ifq) \ > -ifqLen $opt_sat(qlim) \ > -macType $opt_sat(mac) \ > -phyType $opt_sat(phy) \ > -channelType $opt_sat(chan) \ > -downlinkBW $opt_sat(bw_down) \ > -wiredRouting ON > > # Two terminals: one in NY and one in SF > set vsat1 [$ns node 0.3.0] > $vsat1 set-position 43.71 10.38; # NY > set vsat2 [$ns node 0.1.0] > $vsat2 set-position 43.71 10.38; # SF > > > #new-terminal 43.71 10.38 > #new-terminal 43.71 10.38 > > > > $vsat1 color blue > $vsat1 shape hexagone > > $vsat2 color green > $vsat2 shape hexagone > > > # Add GSLs to geo satellites > $vsat1 add-gsl geo $opt_sat(ll) $opt_sat(ifq) $opt_sat(qlim) $opt_sat(mac) > $opt_sat(bw_up) \ > $opt_sat(phy) [$geo set downlink_] [$geo set uplink_] > $vsat2 add-gsl geo $opt_sat(ll) $opt_sat(ifq) $opt_sat(qlim) $opt_sat(mac) > $opt_sat(bw_up) \ > $opt_sat(phy) [$geo set downlink_] [$geo set uplink_] > > # unset the satellite node type, to create other nodes. > $ns unset satNodeType_ > $ns unset channelType_ > $ns node-config -reset > > > # create some desktop pc to transfer data from olsr to satellite > set w1 [$ns node 0.4.0] > $w1 color blue > $ns at 0.0 "$w1 add-mark w1 blue" > > set w2 [$ns node 0.0.0] > $w2 color green > $ns at 0.0 "$w2 add-mark w2 green" > > > > > # create links from desktop to vsat > $ns duplex-link $w1 $vsat1 100Mb 0.01ms DropTail > $ns duplex-link $w2 $vsat2 100Mb 0.01ms DropTail > > $ns node-config -adhocRouting $opt_mobile(adhocRouting) \ > -llType $opt_mobile(ll) \ > -macType $opt_mobile(mac) \ > -ifqType $opt_mobile(ifq) \ > -ifqLen $opt_mobile(ifqlen) \ > -antType $opt_mobile(ant) \ > -propInstance [new $opt_mobile(prop)] \ > -phyType $opt_mobile(netif) \ > -channel [new $opt_mobile(chan)] \ > -topoInstance $topo \ > -wiredRouting ON \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace ON > > # create base station 1 > set BS1 [$ns node 1.0.0] > $BS1 random-motion 0 > > > $BS1 color yellow > $BS1 shape box > > > $BS1 set X_ [expr $opt_mobile(nn) * 100.0] > $BS1 set Y_ [expr 500.0 + ((($opt_mobile(nn) * 93) % 21) - 10 ) * 10.0] > $BS1 set Z_ 0.0 > > > #--------------------------------------------------------------------------- > # Create mobile nodes > > #--------------------------------------------------------------------------- > > for {set i 0} {$i < $opt_mobile(nn)} {incr i} { > set node1($i) [$ns node 1.0.[expr $i+1]] > > $node1($i) color green > > > $node1($i) random-motion 1 > $node1($i) set X_ [expr $i * 100.0 + $net_distance] > $node1($i) set Y_ [expr 500.0 + ((($i * 93) % 21) - 10 ) * 10.0] > $node1($i) set Z_ 0.0 > $ns initial_node_pos $node1($i) 20 > $node1($i) base-station [AddrParams addr2id [$BS1 node-addr]] > } > > > # create links between wired and BS nodes > $ns duplex-link $w1 $BS1 100Mb 1ms DropTail > > > # setup TCP connections > set tcp1 [new Agent/TCP] > $ns attach-agent $node1(0) $tcp1 > > set sink1 [new Agent/TCPSink] > $ns attach-agent $w2 $sink1 > > > set ftp1 [new Application/FTP] > $ftp1 attach-agent $tcp1 > > $ns connect $tcp1 $sink1 > > > $ns at 2 "$cbr start" > $ns at 25 "$cbr stop" > > $ns at 3 "$ftp1 start" > $ns at 45 "$ftp1 stop" > > for {set i 1} {$i < $opt_mobile(stop)} {} { > $ns at $i "puts $i\n" > set i [expr $i * 1.2] > } > > #for {set i } {$i < $opt_mobile(nn) } {incr i} { > # $ns at $opt_mobile(stop).0000010 "$node1($i) reset"; > #} > #$ns at $opt_mobile(stop).0000010 "$BS1 reset"; > > $ns at $opt_mobile(stop).1 "puts \"NS EXITING...\" ; $ns halt" > > puts "Starting Simulation..." > $ns run > > > > ************************************************** > Source code Example Ends here > *************************************************** > > Can anyone please help me in sorting this problem. > > Best Regards > Sahib > > -- > View this message in context: > http://old.nabble.com/problem-in-Wireless%2Bwired%2Bsatellite-using-hierarchical-addresses-tp28245490p28245490.html > Sent from the ns-users mailing list archive at Nabble.com. > > > > ------------------------------ > > _______________________________________________ > Ns-users mailing list > [email protected] > http://mailman.isi.edu/mailman/listinfo/ns-users > > > End of Ns-users Digest, Vol 76, Issue 15 > **************************************** > -- Regards T.Naga Jyothi
