LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2011, 07:38 AM   #1
mohak.nk
LQ Newbie
 
Registered: Oct 2011
Posts: 12

Rep: Reputation: Disabled
Error in applying A new Queue ( OLBP Scheme-user defined) patch to ns-allinone-2.33


I have received a scheme for pacing packets and its called queue length based pacing (QLBP) from its author.

He provided the documentation to patc that scheme in ns-allnone-2.33.
that is :
----------------------------------------------------------------------------
Apply QLBP patch

Step 1. Copy ns2-patch/queue/qlbp.cc and qlbp.h to ns-homefolder/ns-2.33/queue, where ns-homefolder is where the ns-allinone-2.33 package is installed.

Step 2. Copy lines 109 to 118 of ns2-patch/tcl/lib/ns-default.tcl into ns-homefolder/ns-2.33/tcl/lib/ns-default.tcl. The copied content can be inserted at line 109 of ns-homefolder/ns-2.33/ tcl/lib/ns-default.tcl. Note that don’t replace your ns-default.tcl with the provided ns-default.tcl. Doing so will cause a failure of running ns2 in your linux machine.

That is :
# added by Yan Cai

Queue/QLBP set drop_front_ false

Queue/QLBP set summarystats_ false

Queue/QLBP set queue_in_bytes_ false

Queue/QLBP set mean_pktsize_ 500

Queue/QLBP set qmax_ 20

Queue/QLBP set umax_ 100Mb

Queue/QLBP set umin_ 100Kb

Queue/QLBP set amplfer_ 1.0

Queue/QLBP set linespeed_ 100Mb


Step 3. Copy line 326 of ns2-patch/Makefile to line 326 of ns-homefolder/ns-2.33/Makefile.

That is : queue/qlbp.o \

Step 4. Go to ns-homefolder/ns-2.33/ and run “make” to recompile ns2.33
-------------------------------------------------------------------------
after going through the procedure I am getting following error :

-----------------------------------------------------------------------
invalid command name "Queue/QLBP"
while executing
"Queue/QLBP create _o645 "
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 Queue/$qtype"
("default" arm line 3)
invoked from within
"switch -exact $qtype {
ErrorModule {
if { [llength $args] > 0 } {
set q [eval new $qtype $args]
} else {
set q [new $qtype Fid]
}
}
intserv {
set qtyp..."
(procedure "_o3" line 14)
(Simulator simplex-link line 14)
invoked from within
"_o3 simplex-link _o141 _o153 100Mb 20ms QLBP"
("eval" body line 1)
invoked from within
"eval $self simplex-link $n1 $n2 $bw $delay $type $args"
(procedure "_o3" line 8)
(Simulator duplex-link line 8)
invoked from within
"$ns duplex-link $acr($i) $cr(0) $stage2_bw $stage2_delay QLBP"
(procedure "create_topology" line 54)
invoked from within
"create_topology"
(file "bell_topology.tcl" line 528)
------------------------------------------------------------------------

I think there is just a little error in patching the QLBP scheme..

PLEASE HELP ME AS SOON AS POSSIBLE...
 
Old 11-18-2011, 02:52 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Answered here :

http://www.linuxquestions.org/questi...-to-ns-911827/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
applying patch for boost 1.34.1 spawn500 Linux - Software 3 12-24-2007 02:55 PM
applying patch? alaios Linux - General 1 11-29-2004 11:41 AM
error while applying patch corbis_demon Programming 1 08-14-2004 12:21 PM
applying a patch darthczyz Linux - Newbie 2 05-07-2004 09:44 AM
Applying driver patch ... suriyamohan Linux - Software 20 05-08-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration