qosrns-general Mailing List for QoS Routing for ns-2
Brought to you by:
iamamardeep,
shreeraman
You can subscribe to this list here.
2002 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
(5) |
May
(12) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
From: <sm...@dr...> - 2003-11-24 04:17:41
|
Dear Friends, I was using Qosr and encountered the foll problems.... For example suppose there is a link with bandwidth 10Mb and I want to reserve 10Mb, i get the message bandwidth reservation failed. But when I make reservation for 9.9Mb the reservation takes place. I was wondering how could i modify my QOSR code to make sure tht 10Mb is reserved when 10Mb is asked for and there is 10Mb space available on the link. I have attached the code that I was using, please do help me and lemme know wht changes i can do to make this work. Thanks a lot, Take care, Sujith ----------------------------------------------------------------------- The pursuit of truth and beauty is a sphere of activity in which we are permitted to remain children all our lives.Anyone who has never made a mistake has never tried anything new. Few are those who see with their own eyes and feel with their own hearts. --Albert Einstein ---------------------------------------------------------------- |
From: <sm...@dr...> - 2003-11-09 21:58:00
|
Dear friends, Can anybody please send me a simple code wherein they have implemented the Get bw procedure...I just wanted to understand the functioning of Qosr in NS...and how to go about writing tcl scripts for QoS routing... Thanks, Regards, Sujith |
From: <Pen...@no...> - 2003-03-23 07:37:30
|
You might need to install ns2 first and untar qosrns package in the ns2 = directory. Then, you should be able to run ./configure The "configure" = is included in ns2 package not qosr package. =20 Br, Peng -----Original Message----- From: pj...@gy... [mailto:pj...@gy...] Sent: 22 March, 2003 03:36 To: qos...@li... Subject: How can I install qosrns-0.2-pre2-ns2.1b8a.tar file ? = <http://mail.gyc.ac.kr/syncmail/servlet/SyncSusin?a=3DxJHLecYTVHQ%3D&b=3D= ZCGzl%2Bfz1hYkf9Dt4VvVYdRKxotJuvwU>=20 I have two problems while install qosrns-0.2-pre2-ns2.1b8a.tar file.=20 1. For install, it was suggested to enter "./configure". But I can't find "configure" file in qosrns-0.2-pre2-ns2.1b8a.tar.=20 I can find "congure.in" file only in the file.=20 How can I install qosrns-0.2-pre2-ns2.1b8a.tar file ? 2. After I renameed "configure.in" into 'configure', and entered = "./configure".=20 But I have a error message below.=20 ---------------------------------------------=20 ./configure: dnl: command not found=20 ./configure: dnl: command not found=20 ./configure: line3: syntaa error near unexpected=20 token 'AC_INIT(ns_tclsh.cc)'=20 ./configure: line3: 'AC_INIT(ns_tclsh.cc)'=20 -------------------------------------------------=20 How can I install the qosrns-0.2-pre2-ns2.1b8a.tar.=20 Yours Sincerely.=20 ------------------------------------------------------- This SF.net = email is sponsored by:Crypto Challenge is now open! Get cracking and = register here for some mind boggling fun and the chance of winning an = Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en = _______________________________________________ Qosrns-general mailing = list Qos...@li... = https://lists.sourceforge.net/lists/listinfo/qosrns-general=20 |
From: <pj...@gy...> - 2003-03-22 02:05:36
|
<img src=http://mail.gyc.ac.kr/syncmail/servlet/SyncSusin?a=xJHLecYTVHQ%3D&b=ZCGzl%2Bfz1hYkf9Dt4VvVYdRKxotJuvwU width=1 height=1><HTML> <HEAD> <STYLE>P {margin-top:3px;margin-bottom:3px;}</STYLE> </HEAD> <BODY style="FONT-SIZE: 10pt; FONT-FAMILY: arial"><P><STRONG><FONT color=crimson>I have two problems while install qosrns-0.2-pre2-ns2.1b8a.tar file. </FONT></STRONG></P> <P><FONT color=blue>1. For install, it was suggested to enter "./configure".<BR><FONT color=saddlebrown> But I can't find "configure" file in qosrns-0.2-pre2-ns2.1b8a.tar. <BR></FONT> I can find "congure.in" file only in the file. <BR> </FONT><FONT color=crimson>How can I install qosrns-0.2-pre2-ns2.1b8a.tar file ?</FONT></P> <P><BR><FONT color=blue>2. After I renameed "configure.in" into 'configure', and entered "./configure". <BR></FONT><FONT color=orangered>But I have a error message below. <BR>--------------------------------------------- <BR>./configure: dnl: command not found <BR>./configure: dnl: command not found <BR>./configure: line3: syntaa error near unexpected <BR>token 'AC_INIT(ns_tclsh.cc)' <BR>./configure: line3: 'AC_INIT(ns_tclsh.cc)' <BR>------------------------------------------------- </FONT></P> <P><STRONG><FONT color=crimson>How can I install the qosrns-0.2-pre2-ns2.1b8a.tar. <BR></FONT></STRONG>Yours Sincerely. <BR></P></BODY> </HTML><br><br><br> |
From: <pj...@gy...> - 2003-02-25 08:46:25
|
<img src=http://mail.gyc.ac.kr/syncmail/servlet/SyncSusin?a=xJHLecYTVHQ%3D&b=BQYcqTboJfhUJq3vxd1DJ9RKxotJuvwU width=1 height=1><html><body>I have two problems while install qosrns-0.2-pre2-ns2.1b8a.tar. <br> <br>1. it is suggested to enter "./configure", But I can't find "configure" file in <br> qosrns-0.2-pre2-ns2.1b8a.tar. I can find "congure.in" file only. <br> How can I install qosrns-0.2-pre2-ns2.1b8a.tar file. <br> <br> <br>2. After I rename "configure.in" into 'configure', and entered "./configure". <br> But I have a message below. <br>--------------------------------------------- <br>./configure: dnl: command not found <br>./configure: dnl: command not found <br>./configure: line3: syntaa error near unexpected <br>token 'AC_INIT(ns_tclsh.cc)' <br>./configure: line3: 'AC_INIT(ns_tclsh.cc)' <br>------------------------------------------------- <br> <br>How can I install the qosrns-0.2-pre2-ns2.1b8a.tar. <br>Yours Sincerely. <br><br><br></body></html> |
From: Hassan F. <ha...@ho...> - 2002-12-04 18:56:31
|
Hi, Im working with ns-2.1b9a all in one package on Linux. Plus qosrns-0.2-pre2-ns2.1b9 project to simulate Qos IP network. My problem is that I got the following error when running some scripts : Segmentation fault Core dumped Although that my network is only 6 nodes & 10 links (not so large..!). Maybe Something is missed up in the implementation of the package (qosrn). Do anybody have idea about this error ..?! Your help is highly appreciated ------------ Hassan Fadel ------------ _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
From: Hassan F. <ha...@ho...> - 2002-12-04 18:52:32
|
Hi, Im working with ns-2.1b9a all in one package on Linux. Plus qosrns-0.2-pre2-ns2.1b9 project to simulate Qos IP network. My problem is that I got the following error when running some scripts : Segmentation fault Core dumped Although that my network is only 6 nodes & 10 links (not so large..!). Maybe Something is missed up in the implementation of the package (qosrn). Do anybody have idea about this error ..?! Your help is highly appreciated ------------ Hassan Fadel ------------ _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
From: costas s. <c_s...@ya...> - 2002-10-10 15:53:38
|
Hi, I noticed that QOSPF does not react to link dynamics, for example: $ns rtmodel-at 0.9 down $n0 $n1 the QOSPF cannot realise that the link is down even when you release the session at the same time and create another one just afterwards QOSPF tries to use the same link which is down. Have anybody got any ideas about it? I look forward to your reply, Kind Regards Costas Samdanis __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com |
From: Tarek N. <na...@in...> - 2002-10-08 10:42:04
|
Hi, The resources still reserved by cd-ldp. to release the ressources you can apply the function : "$MPLSnode send-crldp-release-msg $lspid" modified like outlined in : http://sourceforge.net/mailarchive/forum.php?thread_id=805544&forum_id=8130 Tell me if you find any problem. Tarek. costas samdanis wrote: > Hi, > > In QOSPF if you stop (e.g $ns at 1.0 "$cbr stop") the > flow traffic the bw is still reserved. Do anybody know > how to release the bw when the traffic of the flow > stops? > > I look forward to your reply, > > Costas Samdanis > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Qosrns-general mailing list > Qos...@li... > https://lists.sourceforge.net/lists/listinfo/qosrns-general |
From: costas s. <c_s...@ya...> - 2002-10-08 10:32:01
|
Hi, In QOSPF if you stop (e.g $ns at 1.0 "$cbr stop") the flow traffic the bw is still reserved. Do anybody know how to release the bw when the traffic of the flow stops? I look forward to your reply, Costas Samdanis __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com |
From: costas s. <c_s...@ya...> - 2002-07-10 18:03:07
|
Hi, I have downloaded the QOSPF for ns2. I computes the explicit route and implements source routing using that explicit route. Have anybody got any idea on how to change this source routing to distributed routing. Please help me Kind Regards Costas Samdanis CTR King's Collage __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com |
From: costas s. <c_s...@ya...> - 2002-07-01 16:05:18
|
Hi, I looked the example qosr.tcl, and i was thinking if it is possible to implement elastic reservations. Specifically, I mean, whenever QOSPF do an update and a better route exit to trigger an update also in the reseavation of the path and recompute the eroute. For example, n1 / \ 5Mb / \ 5Mb / \ / 2Mb \ n0----------n2 1. a 2.5 Mbps session between n0 and n2 fid 1 (path taken n0-n1-n2) 2. a 1.5 Mbps session between n0 and n2 fid 2 (path taken n0-n2) 3. a 1.5 Mbps session between n0 and n2 fid 3 (path taken n0-n1-n2) 4. a 3.0 Mbps session between n0 and n2 fid 4 (unsuccessful as bandwith not available so forwarded as best-effort fid 0) If fid 1 and fid 2 stop after 2.0sec, fid 4 which was unsuccessful so far, to be able to make a new reservation in the path n0-n1-n2 after the 2.0secs Kind Regards Costas Samdanis CTR King's Collage London __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |
From: Geunhyung K. <ge...@po...> - 2002-06-18 05:17:38
|
SGVsbG8sDQoNCkkgaGF2ZSBhIHF1ZXN0aW9uIGFib3V0IFFvU1IuDQpJbiB0aGUgcW9zci1zaW1w bGUudGNsLCBzZXNzaW9uIGNyZWF0aW9uIHNldHVwcyBzb3VyY2Ugcm91dGluZy4NCg0KRG9lcyBp dCBtZWFuIHRoYXQgdGhlIFFPU1BGIGRvZW4ndCBub3Qgcm91dGluZyB0YWJsZSA/DQoNCkkgd291 bGQgbGlrZSB0byBjb25maWd1cmUgY29zdCB2YWx1ZSBkeW5hbWljYWxseSBpbiB0aGUgUU9TUEYu IA0KV2hhdCBkbyBJIGhhdmUgdG8ga25vdyBmb3IgdGhhdCA/DQoNClRoYW5rcyBpbiBhZHZhbmNl LA0KDQpHZXVuaHl1bmcgDQoNCk5vbmUgb2YgdXMgaXMgYXMgc21hcnQgYXMgYWxsIG9mIHVzDQo9 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCkdldW5oeXVuZyBLaW0N Cg0KRS1tYWlsOiBnZXVua2ltQHBvc3RlY2guZWR1DQoNClRlbDogKzgyLTU0LTI3OS01NjU1DQpG YXg6ICs4Mi01NC0yNzktNTY5OQ0KDQpOZXR3b3JraW5nICYgRGlzdHJpYnV0ZWQgU3lzdGVtcyBM YWIuDQpDU0UNClBPU1RFQ0gNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT0= |
From: <TER...@te...> - 2002-06-13 17:27:42
|
ScanMail for Microsoft Exchange has detected virus-infected attachment(s). Sender = Tarek NADOUR Recipient(s) = ama...@ii...;pg...@tc...;ns-...@IS...;qosrns-general@li sts.sourceforge.net Subject = [ns] Re: Problem with resource release in MNS/QOSPF... Scanning Time = 06/13/2002 10:25:57 Action on virus found: The attachment ns-mpls-cbq.tcl matched file blocking settings. ScanMail has Moved it. The attachment was moved to E:\trendsm\Smex\Alert\ns-mpls-cbq3d08d5a571.tcl_. Warning to recipient. ScanMail has detected a virus or an attachment extension that is set up to be blocked. |
From: Tarek N. <na...@in...> - 2002-06-13 17:05:39
|
---------- Message transmis ---------- Subject: Re: Problem with resource release in MNS/QOSPF... Date: Thu, 13 Jun 2002 19:02:24 +0200 From: Tarek NADOUR <na...@in...> To: Amardeep Singh <ama...@ii...>, Peng Zhang <pg...@tc...>, ns-...@IS..., qos...@li... Hi all, The problem I have been talking about recently has been solved. The cause of this problem is that the "collect-resource" function does not call "bw-changed" after modification of "usable-bw_". After making changes to the source files of ns MNS/OSPF fine. The changes are as followed (I attached the necessary file also). Rgds.. Tarek. file : ~ns/tcl/mns_v2.0/ns-mpls-cbq.tcl SimpleLink instproc collect-resource {flowid cbq_qtype} { $self instvar usable_bw_ set cbqclass [$self get-class-in-cbq-pool $flowid] if { $cbqclass == -1 } { return } set link_bw [$self get-link-bw] set extra_bw [$self set usable_bw_] set cbqclass_bw [$cbqclass allot] self set usable_bw_ [expr $extra_bw + $cbqclass_bw * $link_bw] # Modified by Tarek Nadour set QOSPFenable [RtModule/MPLS set enableQOSPF] if {$QOSPFenable != 0} { set rtqospf [ [$self src] get-module "QOSPF"] $rtqospf bw-changed } # option: cbqclass bw okborrow maxidle prio xdelay $cbqclass CBQ-set-papameter 0.0 ignore ignore ignore ignore set oldqueue [$self get-queue-in-cbq-pool $cbqclass] $oldqueue reset $self CBQ-change-flowid $cbqclass -1 $self update-flowid-in-cbq-pool $cbqclass -1 } Le Jeudi 13 Juin 2002 14:55, Tarek NADOUR a écrit : > Hi All, > > I'm trying this example to see if MNS/QOSPF take account the resource > release (with contraint-based-routing), BUT I saw that the explicite route > selected first is not the same as the second ( despite ther is release > message to release the established LSP which the LSPID is 1100). This > choice (of the explicite route) is due to the fact which it does not take > account the resource release. > > Any response will be appreciated. > > Regards.. > > Tarek. > > > RtModule/MPLS set enableQOSPF 1 > > set ns [new Simulator] > $ns use-scheduler Heap > > set na [open test-constraint-routing.tr w] > set nf [open test-constraint-routing.nam w] > $ns trace-all $na > $ns namtrace-all $nf > set f0 [open src0.tr w] > set f1 [open src1.tr w] > set f2 [open src2.tr w] > proc finish {} { > global ns na nf f0 f1 f2 fs > $ns flush-trace > close $na > close $nf > close $f0 > close $f1 > close $f2 > exec ../nam-1.0a10/nam test-constraint-routing.nam & > #exec xgraph -m src0.tr src1.tr src2.tr -geometry 800x400 & > exit 0 > } > > > proc attach-expoo-traffic { node sink size burst idle rate } { > global ns > > set source [new Agent/CBR/UDP] > $ns attach-agent $node $source > > set traffic [new Traffic/Expoo] > $traffic set packet-size $size > $traffic set burst-time $burst > $traffic set idle-time $idle > $traffic set rate $rate > > $source attach-traffic $traffic > > $ns connect $source $sink > return $source > } > > > #Define a procedure which periodically records the bandwidth received by > the #traffic sink sink0 and writes it to the file f0. > > proc record {} { > global sink0 sink1 sink2 f0 f1 f2 > > set ns [Simulator instance] > > #Set the time after which the procedure should be called again > set time 0.065 > > #How many bytes have been received by the traffic sink? > set bw0 [$sink0 set bytes_] > set bw1 [$sink1 set bytes_] > set bw2 [$sink2 set bytes_] > > #Get the current time > set now [$ns now] > > #Calculate the bandwidth (in MBit/s) and write it to the file > puts $f0 "$now [expr $bw0/$time*8/1000000]" > puts $f1 "$now [expr $bw1/$time*8/1000000]" > puts $f2 "$now [expr $bw2/$time*8/1000000]" > > #Reset the bytes_ values on the traffic sink > $sink0 set bytes_ 0 > $sink1 set bytes_ 0 > $sink2 set bytes_ 0 > > #Re-schedule the procedure > $ns at [expr $now+$time] "record" > } > > > # routing protocol > $ns rtproto DV > > Node enable-module "QOSPF" > > # > # make nodes & MPLSnodes > # > set node0 [$ns node] > set LSR1 [$ns mpls-node] > set LSR2 [$ns mpls-node] > set LSR3 [$ns mpls-node] > set LSR4 [$ns mpls-node] > set LSR5 [$ns mpls-node] > set LSR6 [$ns mpls-node] > set LSR7 [$ns mpls-node] > set LSR8 [$ns mpls-node] > set LSR9 [$ns mpls-node] > set node10 [$ns node] > > # > # make links > # > $ns duplex-link $node0 $LSR1 3Mb 10ms DropTail > $ns duplex-link $LSR1 $LSR3 2Mb 10ms CBQ > $ns duplex-link $LSR3 $LSR5 1Mb 10ms CBQ > $ns duplex-link $LSR5 $LSR7 2Mb 10ms CBQ > $ns duplex-link $LSR7 $LSR9 1Mb 10ms CBQ > > $ns duplex-link $LSR1 $LSR2 1Mb 10ms CBQ > $ns duplex-link $LSR2 $LSR4 1Mb 10ms CBQ > $ns duplex-link $LSR4 $LSR6 2Mb 10ms CBQ > $ns duplex-link $LSR6 $LSR8 1Mb 10ms CBQ > $ns duplex-link $LSR8 $LSR9 2Mb 10ms CBQ > > $ns duplex-link $LSR1 $LSR2 1Mb 10ms CBQ > $ns duplex-link $LSR3 $LSR4 1Mb 10ms CBQ > $ns duplex-link $LSR5 $LSR6 1Mb 10ms CBQ > $ns duplex-link $LSR7 $LSR8 1Mb 10ms CBQ > > $ns duplex-link $LSR9 $node10 3Mb 10ms DropTail > > # > # configure ldp agents on all mpls nodes > # > $ns configure-ldp-on-all-mpls-nodes > > > # configure-cbq-for-SBTS {qlim cbq_qtype okborrow bw maxidle extradelay} > $ns cfg-cbq-for-SBTS 10 DropTail 1 0.1 auto 0 > $ns cfg-cbq-for-HBTS 10 DropTail 1 0.05 auto 0 > $ns cfg-cbq-for-RTS 10 DropTail 0 0.8 auto 0 > $ns cfg-cbq-for-STS 10 DropTail 1 0.05 auto 0 > > > $ns color 0 blue > $ns color 1010 purple > #$ns color 1020 yellow > #$ns color 1030 blue > > $ns bind-flowid-to-SBTS 0 > $ns bind-flowid-to-SBTS 100 > $ns bind-flowid-to-SBTS 200 > $ns bind-flowid-to-SBTS 300 > $ns bind-flowid-to-SBTS 400 > > $ns bind-ldp-to-STS > > $ns configure-qospf-nodes > > # > # set ldp-message clolr > # > $ns ldp-request-color blue > $ns ldp-mapping-color red > $ns ldp-withdraw-color magenta > $ns ldp-release-color orange > $ns ldp-notification-color green > > # > $ns collect-resource-info 4 > > #Create a traffic sink and attach it to the node node10 > set sink0 [new Agent/LossMonitor] > $ns attach-agent $node10 $sink0 > $sink0 clear > > #Create a traffic source > set src0 [attach-expoo-traffic $node0 $sink0 200 0 0 700k] > $src0 set fid_ 100 > $ns color 100 orange > > #Create a traffic sink and attach it to the node node10 > set sink1 [new Agent/LossMonitor] > $ns attach-agent $node10 $sink1 > $sink1 clear > > #Create a traffic source > set src1 [attach-expoo-traffic $node0 $sink1 200 0 0 700k] > $src1 set fid_ 200 > $ns color 200 magenta > > #Create a traffic sink and attach it to the node node10 > set sink2 [new Agent/LossMonitor] > $ns attach-agent $node10 $sink2 > $sink2 clear > > #Create a traffic source > set src2 [attach-expoo-traffic $node0 $sink2 200 0 0 700k] > $src2 set fid_ 300 > $ns color 300 blue > > proc notify-erlsp-setup {node lspid} { > global src0 src1 src2 st > > set module [$node get-module "MPLS"] > > set ns [Simulator instance] > if {[$node id] == 1} { > puts " o The CR-LSP of lspid $lspid has been just > established at [$ns now]" > > switch $lspid { > 1100 { $module bind-flow-erlsp 10 100 $lspid > #$src0 start > #puts "[$module get-flowid-for-lspid 1100]" > } > 1200 { $module bind-flow-erlsp 10 200 $lspid > #$src1 start > } > 1300 { $module bind-flow-erlsp 10 300 $lspid > $src2 start > } > default { > #puts "error" > #exit 1 > } > } > } > > } > > proc notify-erlsp-fail {node status lspid tr} { > > puts "nodeid=[$node id] : status=$status lspid=$lspid tr=$tr" > > } > > > proc constraint-based-routing { lspid sLSR dLSRid bw } { > global ns > set sLSRmodule [$sLSR get-module "MPLS"] > set er [$sLSRmodule constraint-based-routing $dLSRid $bw] > if {$er != -1} { > puts "--> The result of constraint-based routing for lspid $lspid : > Explicit Route=$er" > $sLSRmodule setup-crlsp $dLSRid $er $lspid $bw 400B 200B 7 3 > } else { > puts "--> The result of constraint-based routing for lspid $lspid : > Explicit Route= No path" > } > } > > for {set i 1} {$i < 7} {incr i} { > set a LSR$i > set m [eval $$a get-module "MPLS"] > eval set LSRmpls$i $m > } > > $ns at 1.0 "record" > > $ns at 1.0 "constraint-based-routing 1100 $LSR1 9 700kb" > $ns at 1.2 "$LSRmpls1 send-crldp-release-msg 1100" > > $ns at 1.5 "constraint-based-routing 1100 $LSR1 9 700kb" > > $ns at 4.1 "record" > $ns at 4.1 "finish" > > $ns run ------------------------------------------------------- |
From: Tarek N. <na...@in...> - 2002-06-13 17:02:01
|
Hi all, The problem I have been talking about recently has been solved. The cause of this problem is that the "collect-resource" function does not call "bw-changed" after modification of "usable-bw_". After making changes to the source files of ns MNS/OSPF fine. The changes are as followed (I attached the necessary file also). Rgds.. Tarek. file : ~ns/tcl/mns_v2.0/ns-mpls-cbq.tcl SimpleLink instproc collect-resource {flowid cbq_qtype} { $self instvar usable_bw_ set cbqclass [$self get-class-in-cbq-pool $flowid] if { $cbqclass == -1 } { return } set link_bw [$self get-link-bw] set extra_bw [$self set usable_bw_] set cbqclass_bw [$cbqclass allot] self set usable_bw_ [expr $extra_bw + $cbqclass_bw * $link_bw] # Modified by Tarek Nadour set QOSPFenable [RtModule/MPLS set enableQOSPF] if {$QOSPFenable != 0} { set rtqospf [ [$self src] get-module "QOSPF"] $rtqospf bw-changed } # option: cbqclass bw okborrow maxidle prio xdelay $cbqclass CBQ-set-papameter 0.0 ignore ignore ignore ignore set oldqueue [$self get-queue-in-cbq-pool $cbqclass] $oldqueue reset $self CBQ-change-flowid $cbqclass -1 $self update-flowid-in-cbq-pool $cbqclass -1 } Le Jeudi 13 Juin 2002 14:55, Tarek NADOUR a écrit : > Hi All, > > I'm trying this example to see if MNS/QOSPF take account the resource > release (with contraint-based-routing), BUT I saw that the explicite route > selected first is not the same as the second ( despite ther is release > message to release the established LSP which the LSPID is 1100). This > choice (of the explicite route) is due to the fact which it does not take > account the resource release. > > Any response will be appreciated. > > Regards.. > > Tarek. > > > RtModule/MPLS set enableQOSPF 1 > > set ns [new Simulator] > $ns use-scheduler Heap > > set na [open test-constraint-routing.tr w] > set nf [open test-constraint-routing.nam w] > $ns trace-all $na > $ns namtrace-all $nf > set f0 [open src0.tr w] > set f1 [open src1.tr w] > set f2 [open src2.tr w] > proc finish {} { > global ns na nf f0 f1 f2 fs > $ns flush-trace > close $na > close $nf > close $f0 > close $f1 > close $f2 > exec ../nam-1.0a10/nam test-constraint-routing.nam & > #exec xgraph -m src0.tr src1.tr src2.tr -geometry 800x400 & > exit 0 > } > > > proc attach-expoo-traffic { node sink size burst idle rate } { > global ns > > set source [new Agent/CBR/UDP] > $ns attach-agent $node $source > > set traffic [new Traffic/Expoo] > $traffic set packet-size $size > $traffic set burst-time $burst > $traffic set idle-time $idle > $traffic set rate $rate > > $source attach-traffic $traffic > > $ns connect $source $sink > return $source > } > > > #Define a procedure which periodically records the bandwidth received by > the #traffic sink sink0 and writes it to the file f0. > > proc record {} { > global sink0 sink1 sink2 f0 f1 f2 > > set ns [Simulator instance] > > #Set the time after which the procedure should be called again > set time 0.065 > > #How many bytes have been received by the traffic sink? > set bw0 [$sink0 set bytes_] > set bw1 [$sink1 set bytes_] > set bw2 [$sink2 set bytes_] > > #Get the current time > set now [$ns now] > > #Calculate the bandwidth (in MBit/s) and write it to the file > puts $f0 "$now [expr $bw0/$time*8/1000000]" > puts $f1 "$now [expr $bw1/$time*8/1000000]" > puts $f2 "$now [expr $bw2/$time*8/1000000]" > > #Reset the bytes_ values on the traffic sink > $sink0 set bytes_ 0 > $sink1 set bytes_ 0 > $sink2 set bytes_ 0 > > #Re-schedule the procedure > $ns at [expr $now+$time] "record" > } > > > # routing protocol > $ns rtproto DV > > Node enable-module "QOSPF" > > # > # make nodes & MPLSnodes > # > set node0 [$ns node] > set LSR1 [$ns mpls-node] > set LSR2 [$ns mpls-node] > set LSR3 [$ns mpls-node] > set LSR4 [$ns mpls-node] > set LSR5 [$ns mpls-node] > set LSR6 [$ns mpls-node] > set LSR7 [$ns mpls-node] > set LSR8 [$ns mpls-node] > set LSR9 [$ns mpls-node] > set node10 [$ns node] > > # > # make links > # > $ns duplex-link $node0 $LSR1 3Mb 10ms DropTail > $ns duplex-link $LSR1 $LSR3 2Mb 10ms CBQ > $ns duplex-link $LSR3 $LSR5 1Mb 10ms CBQ > $ns duplex-link $LSR5 $LSR7 2Mb 10ms CBQ > $ns duplex-link $LSR7 $LSR9 1Mb 10ms CBQ > > $ns duplex-link $LSR1 $LSR2 1Mb 10ms CBQ > $ns duplex-link $LSR2 $LSR4 1Mb 10ms CBQ > $ns duplex-link $LSR4 $LSR6 2Mb 10ms CBQ > $ns duplex-link $LSR6 $LSR8 1Mb 10ms CBQ > $ns duplex-link $LSR8 $LSR9 2Mb 10ms CBQ > > $ns duplex-link $LSR1 $LSR2 1Mb 10ms CBQ > $ns duplex-link $LSR3 $LSR4 1Mb 10ms CBQ > $ns duplex-link $LSR5 $LSR6 1Mb 10ms CBQ > $ns duplex-link $LSR7 $LSR8 1Mb 10ms CBQ > > $ns duplex-link $LSR9 $node10 3Mb 10ms DropTail > > # > # configure ldp agents on all mpls nodes > # > $ns configure-ldp-on-all-mpls-nodes > > > # configure-cbq-for-SBTS {qlim cbq_qtype okborrow bw maxidle extradelay} > $ns cfg-cbq-for-SBTS 10 DropTail 1 0.1 auto 0 > $ns cfg-cbq-for-HBTS 10 DropTail 1 0.05 auto 0 > $ns cfg-cbq-for-RTS 10 DropTail 0 0.8 auto 0 > $ns cfg-cbq-for-STS 10 DropTail 1 0.05 auto 0 > > > $ns color 0 blue > $ns color 1010 purple > #$ns color 1020 yellow > #$ns color 1030 blue > > $ns bind-flowid-to-SBTS 0 > $ns bind-flowid-to-SBTS 100 > $ns bind-flowid-to-SBTS 200 > $ns bind-flowid-to-SBTS 300 > $ns bind-flowid-to-SBTS 400 > > $ns bind-ldp-to-STS > > $ns configure-qospf-nodes > > # > # set ldp-message clolr > # > $ns ldp-request-color blue > $ns ldp-mapping-color red > $ns ldp-withdraw-color magenta > $ns ldp-release-color orange > $ns ldp-notification-color green > > # > $ns collect-resource-info 4 > > #Create a traffic sink and attach it to the node node10 > set sink0 [new Agent/LossMonitor] > $ns attach-agent $node10 $sink0 > $sink0 clear > > #Create a traffic source > set src0 [attach-expoo-traffic $node0 $sink0 200 0 0 700k] > $src0 set fid_ 100 > $ns color 100 orange > > #Create a traffic sink and attach it to the node node10 > set sink1 [new Agent/LossMonitor] > $ns attach-agent $node10 $sink1 > $sink1 clear > > #Create a traffic source > set src1 [attach-expoo-traffic $node0 $sink1 200 0 0 700k] > $src1 set fid_ 200 > $ns color 200 magenta > > #Create a traffic sink and attach it to the node node10 > set sink2 [new Agent/LossMonitor] > $ns attach-agent $node10 $sink2 > $sink2 clear > > #Create a traffic source > set src2 [attach-expoo-traffic $node0 $sink2 200 0 0 700k] > $src2 set fid_ 300 > $ns color 300 blue > > proc notify-erlsp-setup {node lspid} { > global src0 src1 src2 st > > set module [$node get-module "MPLS"] > > set ns [Simulator instance] > if {[$node id] == 1} { > puts " o The CR-LSP of lspid $lspid has been just > established at [$ns now]" > > switch $lspid { > 1100 { $module bind-flow-erlsp 10 100 $lspid > #$src0 start > #puts "[$module get-flowid-for-lspid 1100]" > } > 1200 { $module bind-flow-erlsp 10 200 $lspid > #$src1 start > } > 1300 { $module bind-flow-erlsp 10 300 $lspid > $src2 start > } > default { > #puts "error" > #exit 1 > } > } > } > > } > > proc notify-erlsp-fail {node status lspid tr} { > > puts "nodeid=[$node id] : status=$status lspid=$lspid tr=$tr" > > } > > > proc constraint-based-routing { lspid sLSR dLSRid bw } { > global ns > set sLSRmodule [$sLSR get-module "MPLS"] > set er [$sLSRmodule constraint-based-routing $dLSRid $bw] > if {$er != -1} { > puts "--> The result of constraint-based routing for lspid $lspid : > Explicit Route=$er" > $sLSRmodule setup-crlsp $dLSRid $er $lspid $bw 400B 200B 7 3 > } else { > puts "--> The result of constraint-based routing for lspid $lspid : > Explicit Route= No path" > } > } > > for {set i 1} {$i < 7} {incr i} { > set a LSR$i > set m [eval $$a get-module "MPLS"] > eval set LSRmpls$i $m > } > > $ns at 1.0 "record" > > $ns at 1.0 "constraint-based-routing 1100 $LSR1 9 700kb" > $ns at 1.2 "$LSRmpls1 send-crldp-release-msg 1100" > > $ns at 1.5 "constraint-based-routing 1100 $LSR1 9 700kb" > > $ns at 4.1 "record" > $ns at 4.1 "finish" > > $ns run |
From: Amardeep S. <ama...@ii...> - 2002-05-24 11:12:42
|
qosrns-0.2-pre2 for ns-2.1b9 has been released you can get it from www.sourceforge.net/projects/qosrns please report any bug reports / installation problems to this list -- Amardeep Singh |
From: Amardeep S. <ama...@ii...> - 2002-05-15 16:55:32
|
Hi all, A new version of qosrns has been released. I have uploaded qosrns-0.2-pre2-ns2.1b8a.tar.gz to the project page on sourceforge. This version will work with ns-2.1b8a. I need to make some changes for it to work with ns2.1b9. I would be releasing that tomorrow. This release comes with mns (mpls implementation for ns) extended with qospf support. For an example, see test-constraint-routing-qospf.tcl in tcl/ex directory. Please mail this list for any installation related problem. -- Amardeep Singh |
From: Tarek N. / E.N.S.T P. <na...@in...> - 2002-05-14 15:14:27
|
Hello, I've compiled ns with qosrns files and works perfectly ! Thanks. Tarek. Le Lundi 13 Mai 2002 17:46, Amardeep Singh a écrit : > On Mon, 13 May 2002, Tarek NADOUR / ENST Paris wrote: > > Hi All, > > > > How can I use QOSR with MPLS ? > > if you are comfortable with cvs you can download latest sources of qosrns > from sourceforge (checkout module qosrns) > http://sourceforge.net/cvs/?group_id=35391 > > or else, i would be doing a release of qosrns with mpls tomorrow |
From: Amardeep S. <ama...@ii...> - 2002-05-13 15:55:36
|
On Fri, 10 May 2002, Geunhyung Kim wrote: > Hello ! > > Does qosrns-0.2-prel require MPLS ? no, it doesn't require mpls. but unfortunately, Makefile.in shipped with qosrns-0.2-pre1 assumes that mpls sources are there. if you are comfortable with editing Makefile.in yourself, you can remove references to mns. Anyway, i would be doing a new release tomorrow to take care of it. > > I would like to add qosrns-0.2-prel into ns-2.1b9, > Please tell me what I should do for that. -- Amardeep Singh |
From: Amardeep S. <ama...@ii...> - 2002-05-13 15:52:18
|
On Mon, 13 May 2002, Tarek NADOUR / ENST Paris wrote: > Hi All, > > How can I use QOSR with MPLS ? if you are comfortable with cvs you can download latest sources of qosrns from sourceforge (checkout module qosrns) http://sourceforge.net/cvs/?group_id=35391 or else, i would be doing a release of qosrns with mpls tomorrow -- Amardeep Singh |
From: Tarek N. / E. P. <na...@in...> - 2002-05-13 11:45:55
|
Hi All, How can I use QOSR with MPLS ? Regards. Tarek. |
From: Geunhyung K. <ge...@po...> - 2002-05-09 16:05:08
|
SGVsbG8gIQ0KDQpEb2VzIHFvc3Jucy0wLjItcHJlbCByZXF1aXJlIE1QTFMgPw0KDQpJIHdvdWxk IGxpa2UgdG8gYWRkIHFvc3Jucy0wLjItcHJlbCBpbnRvIG5zLTIuMWI5LCANClBsZWFzZSB0ZWxs IG1lIHdoYXQgSSBzaG91bGQgZG8gZm9yIHRoYXQuDQoNCkJlc3QgcmVnYXJkcywNCg0KR2V1bmh5 dW5nIEtpbSANCg0KTm9uZSBvZiB1cyBpcyBhcyBzbWFydCBhcyBhbGwgb2YgdXMNCj09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KR2V1bmh5dW5nIEtpbQ0KDQpFLW1h aWw6IGdldW5raW1AcG9zdGVjaC5lZHUNCg0KVGVsOiArODItNTQtMjc5LTU2NTUNCkZheDogKzgy LTU0LTI3OS01Njk5DQoNCk5ldHdvcmtpbmcgJiBEaXN0cmlidXRlZCBTeXN0ZW1zIExhYi4NCkNT RQ0KUE9TVEVDSA0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ== |
From: Tarek N. <na...@in...> - 2002-05-07 12:33:10
|
Hi All, How can I use QOSR with MPLS ? regards. Tarek. |
From: Amardeep S. <ama...@ii...> - 2002-05-07 08:05:34
|
On Tue, 7 May 2002, Geunhyung Kim wrote: > Hello, > > I have a question about qosrns-0.2-prel. > Is there a relation between qosrns-0.2-prel and qosr-1.0.1 ? well, .2-pre1 is a new version of 1.0.1 > > Can I use qosrns-0.2-prel without qosr-1.0.1 ? yes > Is there any document aout qosrns-0.2-prel ? at present, api is presented in README.QOSR in qosrns package. more detailed documentation would be coming soon. meanwhile, if you have any specific doubts, you could ask them here. -- Amardeep Singh |