Hi I want to simulate Clustering in ad hoc network in NS2.30, The protocol for creating the cluster is very simple by sending the hello messages to every node and on gettin the reply from the different nodes the clusters are formed.Please give me some idea on how to implement it in NS using tcl Hopin to get a quick reply
On 5/13/07, Saurav Chakraborty <[EMAIL PROTECTED]> wrote: > > Hi I want to clustering Clustering in ad hoc network in NS2.30, > The protocol for creating the cluster is very simple by sending the hello > messages to every node and on gettin the reply from the different nodes the > clusters are formed.Please give me some idea on how to implement it in NS > using tcl > Hopin to get a quick reply > > > On 5/13/07, [EMAIL PROTECTED] <[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. Add "$ns rtproto DV" to dsRED code (Cao Trong Dai) > > 2. Add "$ns rtproto DV" to dsRED code (Cao Trong Dai) > > 3. how to find out the packet's transmission delay and queueing > > delay (SB) > > 4. AODV and Traffic Agent in NS-2 (Usman Javaid) > > 5. problems about a route agent(zigbee) ( [EMAIL PROTECTED]) > > 6. FW: Problem with thrutcp.tcl example (Guillermo Frick) > > 7. printing route cache (Mohammed Abu Hajar) > > 8. printing route cache (Mohammed Abu Hajar) > > 9. Inclusion of mns module in ns-2.31 (lorenzo) > > 10. Re: {Spam?} Run dsRED with routing protocol!!! Could anyone > > help me ??? (Augusto Neto) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Fri, 11 May 2007 19:17:08 -0700 (PDT) > > From: Cao Trong Dai <[EMAIL PROTECTED]> > > Subject: [ns] Add "$ns rtproto DV" to dsRED code > > To: Ns-users < [email protected]> > > Message-ID: <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset=iso-8859-1 > > > > Dear all, > > > > The following code is a available dsRED example in ns-2. It run > > normally. > > But when i add the routing protocol, for example "$ns rtproto DV", I > > received the error notification "The policy object doesn't exist, ERROR > > !!!". > > > > Could you help me to modify this code !!! > > > > Thank you very much > > > > Best Regards, > > > > > > > > #-------------------------------------------------------------------------------- > > # cbr-tb.tcl > > # Author: Jeremy Ethridge. > > # Dates: June 29-July 5, 1999. > > # Notes: A DS-RED script that uses CBR traffic agents and the Token > > Bucket policer. > > # > > # ---- > > # |s1|----------- > > # ---- 10 Mb \ > > # 5 ms \ > > # \---- ------ ---- > > ------ > > > > # |e1|-----------|core|----------|e2|-----------|dest| > > # /---- 10 Mb ------ 5 Mb ---- 10 Mb > > ------ > > # / 5 ms 5 ms 5 ms > > # ---- / > > # |s2|----------- > > # ---- 10 Mb > > # 5 ms > > # > > > > #-------------------------------------------------------------------------------- > > > > > > set ns [new Simulator] > > > > set cir0 1000000 > > set cbs0 3000 > > set rate0 2000000 > > set cir1 1000000 > > set cbs1 10000 > > set rate1 3000000 > > > > set testTime 85.0 > > set packetSize 1000 > > > > > > > > # Set up the network topology shown at the top of this file: > > set s1 [$ns node] > > set s2 [$ns node] > > set e1 [$ns node] > > set core [$ns node] > > set e2 [$ns node] > > set dest [$ns node] > > > > $ns duplex-link $s1 $e1 10Mb 5ms DropTail > > $ns duplex-link $s2 $e1 10Mb 5ms DropTail > > > > $ns simplex-link $e1 $core 10Mb 5ms dsRED/edge > > $ns simplex-link $core $e1 10Mb 5ms dsRED/core > > > > $ns simplex-link $core $e2 5Mb 5ms dsRED/core > > $ns simplex-link $e2 $core 5Mb 5ms dsRED/edge > > > > $ns duplex-link $e2 $dest 10Mb 5ms DropTail > > > > > > $ns duplex-link-op $s1 $e1 orient down-right > > $ns duplex-link-op $s2 $e1 orient up-right > > $ns duplex-link-op $e1 $core orient right > > $ns duplex-link-op $core $e2 orient right > > $ns duplex-link-op $e2 $dest orient right > > > > > > set qE1C [[$ns link $e1 $core] queue] > > set qE2C [[$ns link $e2 $core] queue] > > set qCE1 [[$ns link $core $e1] queue] > > set qCE2 [[$ns link $core $e2] queue] > > > > # Set DS RED parameters from Edge1 to Core: > > $qE1C meanPktSize $packetSize > > $qE1C set numQueues_ 1 > > $qE1C setNumPrec 2 > > $qE1C addPolicyEntry [$s1 id] [$dest id] TokenBucket 10 $cir0 $cbs0 > > $qE1C addPolicyEntry [$s2 id] [$dest id] TokenBucket 10 $cir1 $cbs1 > > $qE1C addPolicerEntry TokenBucket 10 11 > > $qE1C addPHBEntry 10 0 0 > > $qE1C addPHBEntry 11 0 1 > > $qE1C configQ 0 0 20 40 0.02 > > $qE1C configQ 0 1 10 20 0.10 > > > > # Set DS RED parameters from Edge2 to Core: > > $qE2C meanPktSize $packetSize > > $qE2C set numQueues_ 1 > > $qE2C setNumPrec 2 > > $qE2C addPolicyEntry [$dest id] [$s1 id] TokenBucket 10 $cir0 $cbs0 > > $qE2C addPolicyEntry [$dest id] [$s2 id] TokenBucket 10 $cir1 $cbs1 > > $qE2C addPolicerEntry TokenBucket 10 11 > > $qE2C addPHBEntry 10 0 0 > > $qE2C addPHBEntry 11 0 1 > > $qE2C configQ 0 0 20 40 0.02 > > $qE2C configQ 0 1 10 20 0.10 > > > > # Set DS RED parameters from Core to Edge1: > > $qCE1 meanPktSize $packetSize > > $qCE1 set numQueues_ 1 > > $qCE1 setNumPrec 2 > > $qCE1 addPHBEntry 10 0 0 > > $qCE1 addPHBEntry 11 0 1 > > $qCE1 configQ 0 0 20 40 0.02 > > $qCE1 configQ 0 1 10 20 0.10 > > > > # Set DS RED parameters from Core to Edge2: > > $qCE2 meanPktSize $packetSize > > $qCE2 set numQueues_ 1 > > $qCE2 setNumPrec 2 > > $qCE2 addPHBEntry 10 0 0 > > $qCE2 addPHBEntry 11 0 1 > > $qCE2 configQ 0 0 20 40 0.02 > > $qCE2 configQ 0 1 10 20 0.10 > > > > > > # Set up one CBR connection between each source and the destination: > > set udp0 [new Agent/UDP] > > $ns attach-agent $s1 $udp0 > > set cbr0 [new Application/Traffic/CBR] > > $cbr0 attach-agent $udp0 > > $cbr0 set packet_size_ $packetSize > > $udp0 set packetSize_ $packetSize > > $cbr0 set rate_ $rate0 > > set null0 [new Agent/Null] > > $ns attach-agent $dest $null0 > > $ns connect $udp0 $null0 > > > > set udp1 [new Agent/UDP] > > $ns attach-agent $s2 $udp1 > > set cbr1 [new Application/Traffic/CBR] > > $cbr1 attach-agent $udp1 > > $cbr1 set packet_size_ $packetSize > > $udp1 set packetSize_ $packetSize > > $cbr1 set rate_ $rate1 > > set null1 [new Agent/Null] > > $ns attach-agent $dest $null1 > > $ns connect $udp1 $null1 > > > > > > proc finish {} { > > global ns > > exit 0 > > } > > > > $qE1C printPolicyTable > > $qE1C printPolicerTable > > > > $ns at 0.0 "$cbr0 start" > > $ns at 0.0 "$cbr1 start" > > $ns at 20.0 "$qCE2 printStats" > > $ns at 40.0 "$qCE2 printStats" > > $ns at 60.0 "$qCE2 printStats" > > $ns at 80.0 "$qCE2 printStats" > > $ns at $testTime "$cbr0 stop" > > $ns at $testTime "$cbr1 stop" > > $ns at [expr $testTime + 1.0] "finish" > > > > $ns run > > > > --------------------------------- > > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: > > mail, news, photos & more. > > > > ------------------------------ > > > > Message: 2 > > Date: Fri, 11 May 2007 19:17:31 -0700 (PDT) > > From: Cao Trong Dai <[EMAIL PROTECTED]> > > Subject: [ns] Add "$ns rtproto DV" to dsRED code > > To: Ns-users <[email protected]> > > Message-ID: <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset=iso-8859-1 > > > > Dear all, > > > > The following code is a available dsRED example in ns-2. It run > > normally. > > But when i add the routing protocol, for example "$ns rtproto DV", I > > received the error notification "The policy object doesn't exist, ERROR > > !!!". > > > > Could you help me to modify this code !!! > > > > Thank you very much > > > > Best Regards, > > > > > > > > #-------------------------------------------------------------------------------- > > # cbr-tb.tcl > > # Author: Jeremy Ethridge. > > # Dates: June 29-July 5, 1999. > > # Notes: A DS-RED script that uses CBR traffic agents and the Token > > Bucket policer. > > # > > # ---- > > # |s1|----------- > > # ---- 10 Mb \ > > # 5 ms \ > > # \---- ------ ---- > > ------ > > > > # |e1|-----------|core|----------|e2|-----------|dest| > > # /---- 10 Mb ------ 5 Mb ---- 10 Mb > > ------ > > # / 5 ms 5 ms 5 ms > > # ---- / > > # |s2|----------- > > # ---- 10 Mb > > # 5 ms > > # > > > > #-------------------------------------------------------------------------------- > > > > > > set ns [new Simulator] > > > > set cir0 1000000 > > set cbs0 3000 > > set rate0 2000000 > > set cir1 1000000 > > set cbs1 10000 > > set rate1 3000000 > > > > set testTime 85.0 > > set packetSize 1000 > > > > > > > > # Set up the network topology shown at the top of this file: > > set s1 [$ns node] > > set s2 [$ns node] > > set e1 [$ns node] > > set core [$ns node] > > set e2 [$ns node] > > set dest [$ns node] > > > > $ns duplex-link $s1 $e1 10Mb 5ms DropTail > > $ns duplex-link $s2 $e1 10Mb 5ms DropTail > > > > $ns simplex-link $e1 $core 10Mb 5ms dsRED/edge > > $ns simplex-link $core $e1 10Mb 5ms dsRED/core > > > > $ns simplex-link $core $e2 5Mb 5ms dsRED/core > > $ns simplex-link $e2 $core 5Mb 5ms dsRED/edge > > > > $ns duplex-link $e2 $dest 10Mb 5ms DropTail > > > > > > $ns duplex-link-op $s1 $e1 orient down-right > > $ns duplex-link-op $s2 $e1 orient up-right > > $ns duplex-link-op $e1 $core orient right > > $ns duplex-link-op $core $e2 orient right > > $ns duplex-link-op $e2 $dest orient right > > > > > > set qE1C [[$ns link $e1 $core] queue] > > set qE2C [[$ns link $e2 $core] queue] > > set qCE1 [[$ns link $core $e1] queue] > > set qCE2 [[$ns link $core $e2] queue] > > > > # Set DS RED parameters from Edge1 to Core: > > $qE1C meanPktSize $packetSize > > $qE1C set numQueues_ 1 > > $qE1C setNumPrec 2 > > $qE1C addPolicyEntry [$s1 id] [$dest id] TokenBucket 10 $cir0 $cbs0 > > $qE1C addPolicyEntry [$s2 id] [$dest id] TokenBucket 10 $cir1 $cbs1 > > $qE1C addPolicerEntry TokenBucket 10 11 > > $qE1C addPHBEntry 10 0 0 > > $qE1C addPHBEntry 11 0 1 > > $qE1C configQ 0 0 20 40 0.02 > > $qE1C configQ 0 1 10 20 0.10 > > > > # Set DS RED parameters from Edge2 to Core: > > $qE2C meanPktSize $packetSize > > $qE2C set numQueues_ 1 > > $qE2C setNumPrec 2 > > $qE2C addPolicyEntry [$dest id] [$s1 id] TokenBucket 10 $cir0 $cbs0 > > $qE2C addPolicyEntry [$dest id] [$s2 id] TokenBucket 10 $cir1 $cbs1 > > $qE2C addPolicerEntry TokenBucket 10 11 > > $qE2C addPHBEntry 10 0 0 > > $qE2C addPHBEntry 11 0 1 > > $qE2C configQ 0 0 20 40 0.02 > > $qE2C configQ 0 1 10 20 0.10 > > > > # Set DS RED parameters from Core to Edge1: > > $qCE1 meanPktSize $packetSize > > $qCE1 set numQueues_ 1 > > $qCE1 setNumPrec 2 > > $qCE1 addPHBEntry 10 0 0 > > $qCE1 addPHBEntry 11 0 1 > > $qCE1 configQ 0 0 20 40 0.02 > > $qCE1 configQ 0 1 10 20 0.10 > > > > # Set DS RED parameters from Core to Edge2: > > $qCE2 meanPktSize $packetSize > > $qCE2 set numQueues_ 1 > > $qCE2 setNumPrec 2 > > $qCE2 addPHBEntry 10 0 0 > > $qCE2 addPHBEntry 11 0 1 > > $qCE2 configQ 0 0 20 40 0.02 > > $qCE2 configQ 0 1 10 20 0.10 > > > > > > # Set up one CBR connection between each source and the destination: > > set udp0 [new Agent/UDP] > > $ns attach-agent $s1 $udp0 > > set cbr0 [new Application/Traffic/CBR] > > $cbr0 attach-agent $udp0 > > $cbr0 set packet_size_ $packetSize > > $udp0 set packetSize_ $packetSize > > $cbr0 set rate_ $rate0 > > set null0 [new Agent/Null] > > $ns attach-agent $dest $null0 > > $ns connect $udp0 $null0 > > > > set udp1 [new Agent/UDP] > > $ns attach-agent $s2 $udp1 > > set cbr1 [new Application/Traffic/CBR] > > $cbr1 attach-agent $udp1 > > $cbr1 set packet_size_ $packetSize > > $udp1 set packetSize_ $packetSize > > $cbr1 set rate_ $rate1 > > set null1 [new Agent/Null] > > $ns attach-agent $dest $null1 > > $ns connect $udp1 $null1 > > > > > > proc finish {} { > > global ns > > exit 0 > > } > > > > $qE1C printPolicyTable > > $qE1C printPolicerTable > > > > $ns at 0.0 "$cbr0 start" > > $ns at 0.0 "$cbr1 start" > > $ns at 20.0 "$qCE2 printStats" > > $ns at 40.0 "$qCE2 printStats" > > $ns at 60.0 "$qCE2 printStats" > > $ns at 80.0 "$qCE2 printStats" > > $ns at $testTime "$cbr0 stop" > > $ns at $testTime "$cbr1 stop" > > $ns at [expr $testTime + 1.0] "finish" > > > > $ns run > > > > --------------------------------- > > Got a little couch potato? > > Check out fun summer activities for kids. > > > > ------------------------------ > > > > Message: 3 > > Date: 12 May 2007 05:47:04 -0000 > > From: "SB" <[EMAIL PROTECTED]> > > Subject: [ns] how to find out the packet's transmission delay and > > queueing delay > > To: [email protected] > > Message-ID: <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset=iso-8859-1 > > > > Dear all, > > how to find the packet's transmission delay and queuing delay? > > Thank you. > > > > ------------------------------ > > > > Message: 4 > > Date: Sat, 12 May 2007 11:04:48 +0200 > > From: "Usman Javaid" < [EMAIL PROTECTED]> > > Subject: [ns] AODV and Traffic Agent in NS-2 > > To: [email protected], [EMAIL PROTECTED] > > Message-ID: > > <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > Dear All, > > > > As we know that using AODV routing protocol, before sending the data, > > the > > source sends an RREQ messages and initiate the data transfer on the > > reception of RREP message (which containts the route). SendRequest(..) > > function is used to send the RREQ message. I am trying to find out the > > binding between the trigger (in tcl script) which sends the data (for > > example "cbr start") and the aodv mechanism which stops the source to > > send > > the packet and initiate (calls) the Send Request function (in NS-2 AODV > > code) > > > > I mean to say that how the Traffic Agent (UDP/CBR) comes to know that we > > are > > using AODV routing protocol so we need to first perform RREQ/RREP cycle > > and > > then send the data. This is exactly opposite in Proactive routing > > protocol > > where the data is sent by consulting the routing tables. > > > > Many thanks for your help. > > > > Best Regards, > > > > Usman Javaid > > > > > > ------------------------------ > > > > Message: 5 > > Date: Sat, 12 May 2007 22:18:50 +0800 (CST) > > From: [EMAIL PROTECTED] > > Subject: [ns] problems about a route agent(zigbee) > > To: [email protected] > > Message-ID: <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset="gb2312" > > > > > > hi everyone , > > > > i`m try to run the simplest zigbee router protocol on NS2.27! > > > > is anybody else have done this work? > > > > could you give me some opening code about zigbee?i really don`t know how > > to start my work. > > > > thank you! > > > > > > > > > > ------------------------------ > > > > Message: 6 > > Date: Sat, 12 May 2007 14:58:28 +0000 > > From: "Guillermo Frick" <[EMAIL PROTECTED] > > > Subject: [ns] FW: Problem with thrutcp.tcl example > > To: [email protected] > > Message-ID: <[EMAIL PROTECTED] > > > Content-Type: text/plain; charset=iso-8859-1; format=flowed > > > > Hi. > > Somedy could help me on this? > > I've a simulation with two NICs and I only need to move traffic from one > > nic > > to the other through the simulation? > > Can someboy help me with my script (showed below) or provide me a > > script? > > Thanks in advance > > > > > > >From: "Guillermo Frick" <[EMAIL PROTECTED] > > > >To: [email protected] > > >Subject: [ns] Problem with thrutcp.tcl example > > >Date: Fri, 11 May 2007 19:27:20 +0000 > > > > > > > > >Hi. > > >I'm new with ns and I'm trying to make a simple emulation that works as > > a > > >router. I'm running ns 2.31 in a Fedora Core 6 machine. > > >I was tryint to test the thrutcp.tcl example but it show an error as > > >follows: > > >TapAgent(_o66): linked sock 5 as READABLE > > >TapAgent(_o72): linked sock 8 as READABLE > > >IPTapAgent(_o66): sendpkt called while in read-only mode! > > >0.42666 PTapAgent(_o66) recvpkt, cc:1 > > >IPTapAgent(_o66): sendpkt called while in read-only mode! > > >0.72666 PTapAgent(_o66) recvpkt, cc:1 > > > > > >I was trying to search Google with no success. Can somebody help me on > > >this. > > > > > >This is the script: > > > > > > > > >######################################################## > > ># Testing passing real world traffic through the > > ># ns Simulator > > ># Author : Alefiya Hussain and Ankur Sheth > > ># Date : 05/14/2001 > > > > > > > > >set ns [new Simulator] > > >$ns use-scheduler RealTime > > > > > >set f [open out.tr w] > > >$ns trace-all $f > > >set nf [open out.nam w] > > >$ns namtrace-all $nf > > > > > ># Create the nodes needed to the transducer > > >set n1 [$ns node] > > >set n2 [$ns node] > > >set n3 [$ns node] > > >set n4 [$ns node] > > >set n5 [$ns node] > > > > > ># Setup connections between the nodes > > >$ns simplex-link $n1 $n5 10Mb 5ms DropTail > > >$ns simplex-link $n5 $n4 10Mb 5ms DropTail > > >$ns simplex-link $n3 $n5 10Mb 5ms DropTail > > >$ns simplex-link $n5 $n2 10Mb 5ms DropTail > > > > > ># Configure the first entry node > > >set tap1 [new Agent/IPTap]; # Create the TCPTap Agent > > >set bpf1 [new Network/Pcap/Live]; # Create the bpf > > >set dev [$bpf1 open readonly eth0] > > >$bpf1 filter "src 10.0.0.1 and dst 10.175.145.26" > > >#$bpf1 filter "src 128.9.160.95 and dst 128.9.160.196" > > >$tap1 network $bpf1; # Connect bpf to TCPTap Agent > > >$ns attach-agent $n1 $tap1; # Attach TCPTap Agent to the node > > > > > ># Configure the first exit node > > >set tap2 [new Agent/IPTap]; # Create a TCPTap Agent > > >set ipnet2 [new Network/IP]; # Create a Network agent > > >$ipnet2 open writeonly > > >$tap2 network $ipnet2; # Connect network agent to tap > > agent > > >$ns attach-agent $n2 $tap2; # Attach agent to the node. > > > > > > > > ># Configure the second entry node > > >set tap3 [new Agent/IPTap]; # Create the TCPTap Agent > > >set bpf3 [new Network/Pcap/Live]; # Create the bpf > > >set dev [$bpf3 open readonly eth1] > > >$bpf3 filter "src 10.175.145.26 and dst 10.0.0.1" > > >#$bpf3 filter "src 128.9.160.196 and dst 128.9.160.95" > > >$tap3 network $bpf3; # Connect bpf to TCPTap Agent > > >$ns attach-agent $n3 $tap3; # Attach TCPTap Agent to the node > > > > > > > > ># Configure the second exit node > > >set tap4 [new Agent/IPTap]; # Create a TCPTap Agent > > >set ipnet4 [new Network/IP]; # Create a Network agent > > >$ipnet4 open writeonly > > >$tap4 network $ipnet4; # Connect network agent to tap > > agent > > >$ns attach-agent $n4 $tap4; # Attach agent to the node. > > > > > > > > ># Connect the agents. > > >$ns simplex-connect $tap1 $tap4 > > >$ns simplex-connect $tap3 $tap2 > > > > > > > > >$ns at 50.0 "finish" > > > > > >proc finish {} { > > > global ns f nf > > > $ns flush-trace > > > close $f > > > close $nf > > > exit 0 > > >} > > > > > >$ns run > > > > > >######################################################## > > > > > > > > >Thanks a lot! > > > > > >_________________________________________________________________ > > >Sabe m?s sobre la pr?xima generaci?n del MSN Messenger. > > >http://imagine-msn.com/minisites/messenger/default.aspx?locale=es-ar > > > > > > > _________________________________________________________________ > > Sabe m?s sobre la pr?xima generaci?n del MSN Messenger. > > http://imagine-msn.com/minisites/messenger/default.aspx?locale=es-ar > > > > > > > > ------------------------------ > > > > Message: 7 > > Date: Sat, 12 May 2007 09:13:46 -0700 (PDT) > > From: Mohammed Abu Hajar < [EMAIL PROTECTED]> > > Subject: [ns] printing route cache > > To: NS_2 Mailing List <[email protected]> > > Message-ID: < [EMAIL PROTECTED]> > > Content-Type: text/plain; charset=iso-8859-1 > > > > Hello all, > > > > I want to print the route cache table of dsr protocol, have any one do > > that before? > > > > Thanks > > > > > > --------------------------------- > > Boardwalk for $500? In 2007? Ha! > > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! > > Games. > > > > ------------------------------ > > > > Message: 8 > > Date: Sat, 12 May 2007 09:23:11 -0700 (PDT) > > From: Mohammed Abu Hajar <[EMAIL PROTECTED]> > > Subject: [ns] printing route cache > > To: NS_2 Mailing List < [email protected]> > > Message-ID: <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset=iso-8859-1 > > > > Hello all, > > > > I want to printing the route cache of dsr protocol for each node , If > > any one do that before > > > > Thanks > > > > > > --------------------------------- > > The fish are biting. > > Get more visitors on your site using Yahoo! Search Marketing. > > > > ------------------------------ > > > > Message: 9 > > Date: Sat, 12 May 2007 20:41:51 +0200 > > From: lorenzo <[EMAIL PROTECTED]> > > Subject: [ns] Inclusion of mns module in ns-2.31 > > To: [email protected] > > Message-ID: <[EMAIL PROTECTED]> > > Content-Type: text/plain > > > > Somebody know if mns is already implemented in ns-2.31 or how can i > > install the module in this version? > > > > thanks...Bye > > > > Lorenzo Bartoli > > > > > > > > > > ------------------------------ > > > > Message: 10 > > Date: Sat, 12 May 2007 12:10:15 +0100 > > From: "Augusto Neto" < [EMAIL PROTECTED]> > > Subject: Re: [ns] {Spam?} Run dsRED with routing protocol!!! Could > > anyone help me ??? > > To: "'Cao Trong Dai'" < [EMAIL PROTECTED]> > > Cc: [email protected] > > Message-ID: <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset="iso-8859-1" > > > > I advise you to carefully read the NS-manual, since this basic doubt is > > described in details. As I told you in the last message, you must add > > policy > > for packets with PHB 0. In your TCL script you just add policies for PHB > > 10 > > and 11 (e.g., $qE1C addPHBEntry 10 0 0 and $qE1C addPHBEntry 11 0 1). At > > all > > queues of your simulation script (qE1C, qE2C, qCE1 and qCE2), above or > > below > > the lines I wrote, you insert $q----- addPHBEntry 0 0 0. You specify the > > > > queue ($q----) and insert the policy (addPHBEntry) in the intended queue > > (e.g., 0 0, the packets marked with 0 will be classified in the physical > > queue 0 and virtual 0). Once RTProto DV constantly floods the network > > for > > updates (where the packets are marked as 0), policies for PHB 0 must be > > configured at all nodes, otherwise this error output will always be > > displayed. > > > > > > > > Floating point exception due to use of cygwin? Strange, I?ve never heard > > > > about it, but it?s ok if it fixed the problem. > > > > > > > > Augusto > > > > > > > > > > > > _____ > > > > De: Cao Trong Dai [mailto:[EMAIL PROTECTED] > > Enviada: s?bado, 12 de Maio de 2007 3:05 > > Para: Augusto Neto > > Assunto: RE: RE: {Spam?} [ns] Run dsRED with routing protocol!!! Could > > anyone help me ??? > > > > > > > > Dear Mr Augusto Neto, > > > > The floating point exception is due to the limit performance of Cygwin. > > The problem is "The policy object doesn't exist, ERROR !!!". > > > > Could you help me to modify code ??? What command should I add ??? > > > > I'm so sorry to disturbing you. > > > > Thanks for your good job. > > > > Best Regards, > > > > Augusto Neto <[EMAIL PROTECTED]> wrote: > > > > This error arises since no policy for the flooding packets are set in > > the > > queues. You have to add the phb 0 at all nodes. All packets that > > traverse > > the network MUST be set in the policies. The floating point exception is > > due > > to the type of link (edge/core), set $e2 $dest as edge queue. > > > > > > > > Augusto > > > > > > > > _____ > > > > De: Cao Trong Dai [mailto: [EMAIL PROTECTED] > > Enviada: sexta-feira, 11 de Maio de 2007 5:20 > > Para: [EMAIL PROTECTED] > > Assunto: Fwd: RE: {Spam?} [ns] Run dsRED with routing protocol!!! Could > > anyone help me ??? > > > > > > > > Dear Sir, > > > > When you add routing protocol ($ns rtproto DV) to dsRed example (for > > example, ds-cbr-tb.tcl), ns will notify the error message. "The policy > > object doesn't exist, ERROR !!!" > > > > It's very important for me. So I wish you would help me. > > > > Thank you very much > > > > I'm looking forward to your soonest response > > > > Best Regards > > > > #--------------------------------------------------------------------------- > > > > ----- > > # cbr-tb.tcl > > # Author: Jeremy Ethridge. > > # Dates: June 29-July 5, 1999. > > # Notes: A DS-RED script that uses CBR traffic agents and the Token > > Bucket > > policer. > > # > > # ---- > > # |s1|----------- > > # ---- 10 Mb \ > > # 5 ms \ > > # \---- ------ ---- > > ------ > > > > # |e1|-----------|core|----------|e2|-----------|dest| > > # /---- 10 Mb ------ 5 Mb ---- 10 Mb > > ------ > > # / 5 ms 5 ms 5 ms > > # ---- / > > # |s2|----------- > > # ---- 10 Mb > > # 5 ms > > # > > #--------------------------------------------------------------------------- > > > > ----- > > > > > > set ns [new Simulator] > > > > set cir0 1000000 > > set cbs0 3000 > > set rate0 2000000 > > set cir1 1000000 > > set cbs1 10000 > > set rate1 3000000 > > > > set testTime 85.0 > > set packetSize 1000 > > > > > > > > # Set up the network topology shown at the top of this file: > > set s1 [$ns node] > > set s2 [$ns node] > > set e1 [$ns node] > > set core [$ns node] > > set e2 [$ns node] > > set dest [$ns node] > > > > $ns duplex-link $s1 $e1 10Mb 5ms DropTail > > $ns duplex-link $s2 $e1 10Mb 5ms DropTail > > > > $ns simplex-link $e1 $core 10Mb 5ms dsRED/edge > > $ns simplex-link $core $e1 10Mb 5ms dsRED/core > > > > $ns simplex-link $core $e2 5Mb 5ms dsRED/core > > $ns simplex-link $e2 $core 5Mb 5ms dsRED/edge > > > > $ns duplex-link $e2 $dest 10Mb 5ms DropTail > > > > > > $ns duplex-link-op $s1 $e1 orient down-right > > $ns duplex-link-op $s2 $e1 orient up-right > > $ns duplex-link-op $e1 $core orient right > > $ns duplex-link-op $core $e2 orient right > > $ns duplex-link-op $e2 $dest orient right > > > > > > set qE1C [[$ns link $e1 $core] queue] > > set qE2C [[$ns link $e2 $core] queue] > > set qCE1 [[$ns link $core $e1] queue] > > set qCE2 [[$ns link $core $e2] queue] > > > > # Set DS RED parameters from Edge1 to Core: > > $qE1C meanPktSize $packetSize > > $qE1C set numQueues_ 1 > > $qE1C setNumPrec 2 > > $qE1C addPolicyEntry [$s1 id] [$dest id] TokenBucket 10 $cir0 $cbs0 > > $qE1C addPolicyEntry [$s2 id] [$dest id] TokenBucket 10 $cir1 $cbs1 > > $qE1C addPolicerEntry TokenBucket 10 11 > > $qE1C addPHBEntry 10 0 0 > > $qE1C addPHBEntry 11 0 1 > > $qE1C configQ 0 0 20 40 0.02 > > $qE1C configQ 0 1 10 20 0.10 > > > > # Set DS RED parameters from Edge2 to Core: > > $qE2C meanPktSize $packetSize > > $qE2C set numQueues_ 1 > > $qE2C setNumPrec 2 > > $qE2C addPolicyEntry [$dest id] [$s1 id] TokenBucket 10 $cir0 $cbs0 > > $qE2C addPolicyEntry [$dest id] [$s2 id] TokenBucket 10 $cir1 $cbs1 > > $qE2C addPolicerEntry TokenBucket 10 11 > > $qE2C addPHBEntry 10 0 0 > > $qE2C addPHBEntry 11 0 1 > > $qE2C configQ 0 0 20 40 0.02 > > $qE2C configQ 0 1 10 20 0.10 > > > > # Set DS RED parameters from Core to Edge1: > > $qCE1 meanPktSize $packetSize > > $qCE1 set numQueues_ 1 > > $qCE1 setNumPrec 2 > > $qCE1 addPHBEntry 10 0 0 > > $qCE1 addPHBEntry 11 0 1 > > $qCE1 configQ 0 0 20 40 0.02 > > $qCE1 configQ 0 1 10 20 0.10 > > > > # Set DS RED parameters from Core to Edge2: > > $qCE2 meanPktSize $packetSize > > $qCE2 set numQueues_ 1 > > $qCE2 setNumPrec 2 > > $qCE2 addPHBEntry 10 0 0 > > $qCE2 addPHBEntry 11 0 1 > > $qCE2 configQ 0 0 20 40 0.02 > > $qCE2 configQ 0 1 10 20 0.10 > > > > > > # Set up one CBR connection between each source and the destination: > > set udp0 [new Agent/UDP] > > $ns attach-agent $s1 $udp0 > > set cbr0 [new Application/Traffic/CBR] > > $cbr0 attach-agent $udp0 > > $cbr0 set packet_size_ $packetSize > > $udp0 set packetSize_ $packetSize > > $cbr0 set rate_ $rate0 > > set null0 [new Agent/Null] > > $ns attach-agent $dest $null0 > > $ns connect $udp0 $null0 > > > > set udp1 [new Agent/UDP] > > $ns attach-agent $s2 $udp1 > > set cbr1 [new Application/Traffic/CBR] > > $cbr1 attach-agent $udp1 > > $cbr1 set packet_size_ $packetSize > > $udp1 set packetSize_ $packetSize > > $cbr1 set rate_ $rate1 > > set null1 [new Agent/Null] > > $ns attach-agent $dest $null1 > > $ns connect $udp1 $null1 > > > > > > proc finish {} { > > global ns > > exit 0 > > } > > > > $qE1C printPolicyTable > > $qE1C printPolicerTable > > > > $ns at 0.0 "$cbr0 start" > > $ns at 0.0 "$cbr1 start" > > $ns at 20.0 "$qCE2 printStats" > > $ns at 40.0 "$qCE2 printStats" > > $ns at 60.0 "$qCE2 printStats" > > $ns at 80.0 "$qCE2 printStats" > > $ns at $testTime "$cbr0 stop" > > $ns at $testTime "$cbr1 stop" > > $ns at [expr $testTime + 1.0] "finish" > > > > $ns run > > > > > > Note: forwarded message attached. > > > > > > > > _____ > > > > Ahhh...imagining that irresistible "new car" smell? > > Check out new > > <http://us.rd.yahoo.com/evt=48245/*http:/autos.yahoo.com/new_cars.html;_ylc= > > > > X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-> cars > > at Yahoo! Autos. > > > > > > > > > > > > _____ > > > > Give spam the boot. Take control with tough > > < > > http://us.rd.yahoo.com/evt=47960/*http:/advision.webevents.yahoo.com/mailbe > > ta/newmail_html.html> spam protection > > in the all-new Yahoo! Mail Beta. > > > > > > > > ------------------------------ > > > > _______________________________________________ > > Ns-users mailing list > > [email protected] > > http://mailman.isi.edu/mailman/listinfo/ns-users > > > > > > End of Ns-users Digest, Vol 41, Issue 12 > > **************************************** > > > > > > -- > ====== > sing as if no one is listening > dance as if no one is watching > love as you've never loved before > live as if heaven is here on earth > > -- ====== sing as if no one is listening dance as if no one is watching love as you've never loved before live as if heaven is here on earth
