LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-08-2012, 07:56 AM   #1
bhargavigoswami
LQ Newbie
 
Registered: Jul 2012
Posts: 9

Rep: Reputation: Disabled
RCP implementation over ns2.30, Getting error on executing ns command.


I tried alot to install RCP over ns2.30. But I was unsuccessful.
First I installed ns2.30. I could successfully do that over Fedora 17.
Second I downloaded RCP for ns2.30 from following link

http://yuba.stanford.edu/rcp/

But, I could not implement it successfully.

During RCP implementation over ns2.30, it does not give me any error.
But when I run ns command, I get following error:

[amg@localhost ~]$ ns
ns:
[code omitted because of length]
: invalid command name "Queue/DropTailVariant"
while executing
"Queue/DropTailVariant set drop_front_ false"


I m stuck now. Can't move forward my research.
Need your help. Please help me.
 
Old 08-08-2012, 11:39 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Welcome to LQ.

Probably an error in one of the files from rcp-ns2.30.tar.gz .

I get the same poor result. And I have no solution, sorry.

.
 
Old 11-24-2012, 12:22 AM   #3
bhargavigoswami
LQ Newbie
 
Registered: Jul 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thumbs up

Got Solution for the problem.
Just need some changes in ns-default.tcl

Remove word "variant" and thats it. It start running smoothly.
Happy Researching......
 
1 members found this post helpful.
Old 11-24-2012, 03:58 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 3

The ns-default.tcl from rcp-ns2.30.tar.gz :
Code:
$ cat ns-default.tcl | grep -nA 1 variant
889:Agent/TCP set lessCareful_ false ;  # for the Less Careful variant of
890-                                    # bugFix_, just for illustration.
I found no "variant" in the code. There is a "variant" in the comment, line 889.

Which line did you edit ?

.
 
Old 11-25-2012, 10:07 PM   #5
bhargavigoswami
LQ Newbie
 
Registered: Jul 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by knudfl View Post
# 3

The ns-default.tcl from rcp-ns2.30.tar.gz :
Code:
$ cat ns-default.tcl | grep -nA 1 variant
889:Agent/TCP set lessCareful_ false ;  # for the Less Careful variant of
890-                                    # bugFix_, just for illustration.
I found no "variant" in the code. There is a "variant" in the comment, line 889.

Which line did you edit ?

.
From rcp-ns2.30.tar.gz go to location ns2.30/tcl/lib/ns-default.tcl
there you would find few lines as follows:
Queue/DropTailVariant/RCP set alpha_ 0.4
Queue/DropTailVariant/RCP set beta_ 0.4
Queue/DropTailVariant/RCP set gamma_ 1

Here, you just need to remove word "Variant" and thats it, "save and make" and then code starts working smoothly.
Hope it was clear. If not, welcome to the queries.
 
1 members found this post helpful.
  


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
invalid command type "llType" error occuring when executing a tcl script in ns2.34 madhu.bm Linux - Software 1 05-04-2012 06:30 AM
wireless implementation in ns2 bluetooth Linux - Newbie 6 02-23-2012 03:10 AM
have anyone tried FHCF implementation on NS2? stud17 Linux - Newbie 1 12-06-2011 08:38 PM
[SOLVED] error while executing wireless_simulation in ns2 geetha_sathish Linux - Newbie 1 09-03-2011 03:51 AM
Regarding NS2 implementation lalithimral Programming 1 05-03-2011 05:17 PM


All times are GMT -5. The time now is 11:43 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration