LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   new simulator problem (https://www.linuxquestions.org/questions/linux-newbie-8/new-simulator-problem-726993/)

Nanda27 05-29-2009 12:38 AM

Hi.. I want to transfer the file between two computers, while sending the file i need to trace for congestion node by using system ip adress. if its possible or not? is it possible means tell me how to do that.

Thanks and Regards

Nanda

knudfl 05-29-2009 08:07 AM

Ns2 simulates certain things, but I doubt
it can be used for the transfer directly,
may be by calling another utility ?

Suggest : start a new thread, asking for
file transferring in general.
( I know too little about the subject to
give any advise.)
.....
.....
And just another nice ns2 site, I found
http://nile.wpi.edu/NS/simple_ns.html
.....

knudfl 06-04-2009 03:39 PM

1 Attachment(s)
Please have a look at this
http://www.isi.edu/nsnam/archive/ns-.../msg03804.html
'congestion_parameter.tcl' is attached.
I edited line 139, was a comment only.
Running the file with 'ns' will generate 'nam.out'
to be run with 'nam' ... and click the play button.
.....
.....
Post # 16, quote
Quote:

.. I want to transfer the file between two computers, while sending the file I need to trace for congestion node by using system IP adress.
Suggest : Ask Google, using parts of the text.
I used the keyword .. trace for congestion node ..
..... and found the above link.
.....
.....
If you want to ask about file transfer, you will
have to rephrase the text. Ask for it generally,
and do not start with mentioning ns2 or any of the
ns2 specific words.
.....

Nanda27 06-06-2009 01:04 AM

1 Attachment(s)
Hi i hav attached my screen design. in this form when i click browse button it will show open file dialog box after that i was selected one file. by clicking the send button i need to find out the priority of file transformation ie: High or low priority in the option button. i want to transfer the file Varsha.doc to another system in the mean while i want to show the file transfering informaiton in Nam. Is this possible or not? plz tell me


Thanks and Regards..!

Nanda

neeraj.dwivedi 11-07-2009 03:02 AM

1 Attachment(s)
When i execute attached file as "ns example1.tcl" following errors i get ...


neeraj@ubuntu:~/mypractice$ ns example2.tcl
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o18: no target for slot -1
_o18 type: Classifier/Hash/Dest
content dump:
classifier _o18
0 offset
0 shift
2147483647 mask
1 slots
slot 2: _o112 (Classifier/Port)
-1 default
---------- Finished standard no-slot{} default handler ----------


please help me out.

knudfl 11-07-2009 05:23 PM

@ neeraj.dwivedi # 20.

Why do you think, there are errors in the ns reply ? ?
Quote:

please help me out.
I can see, you almost have the solution = " out. "

Suggest : move your example1.tcl to a new empty folder,
so you can see, what happens :
' cd new-folder/ '
' ns example1.tcl '
...which creates a new file : 'nam.out' .

Please then do the command ' nam nam.out ',
.. and the nam GUI will open. Hit the play button,
.. wait for the traffic to show up ..

And discover, that everything is OK. .. :) ..
.....

neeraj.dwivedi 11-08-2009 12:54 AM

thank you very much ...

when i perform according u , u were very true .
now i am able to see the nam . but this is not performing as my expectations.
during ns example2.tcl i got following response :-


--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o18: no target for slot -1
_o18 type: Classifier/Hash/Dest
content dump:
classifier _o18
0 offset
0 shift
2147483647 mask
1 slots
slot 2: _o112 (Classifier/Port)
-1 default
---------- Finished standard no-slot{} default handler ----------


is this gives any hint about my problem.

my problem is ...

in this script i have created 5 nodes, n0,n1,n2 provide traffic to n3 , and sink n4 gets traffic from n3. (as my expectations)

but in this nam , nam shows traffic only from node n0 & n1 to n3, and n4 works as sink. but n2 is not start traffic. why ?

neeraj.dwivedi 11-08-2009 01:25 AM

yeaaahhhaaaaa


i got the error .. error in script code.

thank you a ton brother.

knudfl 11-08-2009 01:53 AM

*
Can you attach the new script ..
.. Or replace the one in post # 20 ??

Please ..

neeraj.dwivedi 11-09-2009 02:33 AM

now it is perfect having no error.

but i have a new problem ..
please explain queuing theory as coded below ..

#Monitor the queue for the link between node 2 and node 3

$ns duplex-link-op $n2 $n3 queuePos 0.5


Actually i m not able to understand this line of code of TCL.please explain it.

neeraj.dwivedi 11-09-2009 02:33 AM

now it is perfect having no error.

but i have a new problem ..
please explain queuing theory as coded below ..

#Monitor the queue for the link between node 2 and node 3

$ns duplex-link-op $n2 $n3 queuePos 0.5


Actually i m not able to understand this line of code of TCL.please explain it.

neeraj.dwivedi 11-09-2009 02:43 AM

1 Attachment(s)
new script is attached with this ,now it is perfect having no error.

but i have a new problem ..
please explain queuing theory as coded below ..

#Monitor the queue for the link between node 2 and node 3

$ns duplex-link-op $n2 $n3 queuePos 0.5


Actually i m not able to understand this line of code of TCL.please explain it.

knudfl 11-09-2009 07:12 AM

Sorry, in fact I don't use ns2 very much.
So, for an explanation, please
Google .. $ns duplex-link-op $n2 $n3 queuePos 0.5 ..
http://www.google.com/search?hl=da&s...ng&lr=&aq=&oq=

.. and get 1,200 hits . Then you might find an explanation
quicker than I can. I would have to read through all that
text too.
.....

priya86mohanty 05-23-2012 11:57 AM

Hi,
I am trying to simulate WiMAX on ns-2.28. I have installed ns-2.28 on Ubuntu 11.04. Downloaded WimAX module from the website "http://www.lrc.ic.unicamp.br/wimax_ns2/". I followed the below steps as mentioned in the website:
1. Download the software ns-allinone-2.28 package
2. Download the latest ns-2 WiMAX module source code.
3. Unzip the ns-2 WiMAX module source code file.
4. Put the files from "mac" directory into ns-allinone-2.28\ns-2.28\mac.
5. Put the files which are in common and tcl respectively into ns-allinone-2.28\ns-2.28\common and ns-allinone-2.28\ns-2.28\tcl.
6. Modify the Makefile.in as follows
- After the sentence mac/mac-802_3.o add:
- mac/mac-802_16-base.o mac/mac-802_16-ss.o mac/mac-802_16-bs.o \
- mac/mac-802_16-FSM.o mac/mac-802_16-timers.o \
7. Go to the ns-allinone-2.28/ns-2.28 directory and execute "./configure", "make clean" and "make".

The Makefile.in is recompiled and .o files for the newly added WiMAX files are also generated. But when I am trying to run the example.tcl, I get an error saying:
xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/ns-2.28$ ns example.tcl
invalid command name "Mac/802_16BS"
while executing
"Mac/802_16BS set window_ 0.05"

(file "example.tcl" line 36)

I got to know that there is some problem after re-compilation but I am unable to find out what it is and what should be corrected so that the script runs. Kindly help me out with this.

Thanks.

knudfl 05-23-2012 04:45 PM

# 29.

That's right, wimax 1.02 / ns-2.28 doesn't work with the two tcl examples.
Wimax version 2.03 for ns-2.31 : OK.
ns example.tcl generates an example.tr 5MB.
ns example2.tcl : example2.tr 2.8 MB.

The binary ns from the 32bits Ubuntu 11.04 : ns231-wimax203-i686.tar.gz
> https://docs.google.com/open?id=0B7S...Wl2bmxDTTZ0ejg

.


All times are GMT -5. The time now is 11:07 AM.