LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   RCP implementation over ns2.30, Getting error on executing ns command. (https://www.linuxquestions.org/questions/linux-networking-3/rcp-implementation-over-ns2-30-getting-error-on-executing-ns-command-4175420987/)

bhargavigoswami 08-08-2012 06:56 AM

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.

knudfl 08-08-2012 10:39 AM

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.

.

bhargavigoswami 11-23-2012 11:22 PM

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......

knudfl 11-24-2012 02:58 AM

# 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 ?

.

bhargavigoswami 11-25-2012 09:07 PM

Quote:

Originally Posted by knudfl (Post 4835936)
# 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.


All times are GMT -5. The time now is 02:28 PM.